When deploying a client deployment on the TIBCO Spotfire Server, you may come across an issue, where you are able to upload a deployment and "Validate" it, but cannot save. There will be a notification indicating an issue. Looking in the TIBCO Spotfire Server logs you will see an error like:
WARN 2016-04-08T22:28:50,236-0400 [user, #205, #5802] server.util.StreamUtil: Unable to close stream
java.io.IOException: No space left on device
at java.io.FileOutputStream.writeBytes(Native Method)
at java.io.FileOutputStream.write(FileOutputStream.java:326)
at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:82)
...
DEBUG 2016-04-08T22:28:50,479-0400 [user, #205, #5802] spotfire.rs.RestExceptionHandler: Resolving exception from handler [public java.util.List<java.lang.String> com.spotfire.rs.deployment.DeploymentController.saveDistribution(com.spotfire.rs.deployment.dto.SaveDistributionDTO) throws com.spotfire.server.deployment.DeploymentException]: com.spotfire.server.deployment.DeploymentException: Problem unpacking package
ERROR 2016-04-08T22:28:50,479-0400 [user, #205, #5802] spotfire.rs.RestExceptionHandler: Intercepted exception in request to /rest/deployment/saveDistribution
com.spotfire.server.deployment.DeploymentException: Problem unpacking package
at com.spotfire.server.deployment.DeploymentManager.unpackPackages(DeploymentManager.java:2463)
at com.spotfire.server.deployment.DeploymentManager.unpackDistributionToFileSystem(DeploymentManager.java:2353)
at com.spotfire.server.deployment.DeploymentManager.deployDistribution(DeploymentManager.java:1717)
at com.spotfire.ws.deployments.ClientDeploymentWorkspace.deploy(ClientDeploymentWorkspace.java:488)
...
Caused by: java.util.concurrent.ExecutionException: java.lang.RuntimeException: java.lang.RuntimeException: com.spotfire.server.deployment.DeploymentException: Problem unpacking package
at java.util.concurrent.ForkJoinTask.get(ForkJoinTask.java:1006)
at com.spotfire.server.deployment.DeploymentManager.unpackPackages(DeploymentManager.java:2452)
... 87 more
Caused by: java.lang.RuntimeException: java.lang.RuntimeException: com.spotfire.server.deployment.DeploymentException: Problem unpacking package
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
...
Caused by: java.lang.RuntimeException: com.spotfire.server.deployment.DeploymentException: Problem unpacking package
at com.spotfire.server.deployment.DeploymentManager.lambda$null$6(DeploymentManager.java:2450)
at java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:184)
...
Caused by: com.spotfire.server.deployment.DeploymentException: Problem unpacking package
at com.spotfire.server.deployment.DeploymentManager.lambda$null$6(DeploymentManager.java:2440)
... 21 more
Caused by: java.io.IOException: No space left on device
at java.io.FileOutputStream.writeBytes(Native Method)
at java.io.FileOutputStream.write(FileOutputStream.java:326)
at java.security.DigestOutputStream.write(DigestOutputStream.java:145)
...