Date Posted:
Product: TIBCO Spotfire®
Product: TIBCO Spotfire®
Problem:
Unable to save client deployment to TIBCO Spotfire Server with error "java.io.IOException: No space left on device".
Solution:
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) ...
This issue occurs if there is no disk space left on the drive or partition where the TIBCO Spotfire Server is installed. For example, in Windows you can view the drive space in File Explorer and in Linux you can use the below command on a Linux machine to check the disk space
df -k
For example, here we can see that 99% of the disk space is used which is not sufficient:
$ df -k Filesystem 1K-blocks Used Available Use% Mounted on /dev/mapper/VolGroup-lv_root 15939004 14837972 284700 99% / tmpfs 1961340 84 1961256 1% /dev/shm /dev/sda1 487652 122266 339786 27% /boot /dev/mapper/VolGroup-lv_data 61792252 8132884 50513848 14% /DATA
To resolve this issue, free up space on the disk or partition used by the TIBCO Spotfire Server by removing unnecessary content and consider adding more disk space to the drive or partition. Once there is sufficient disk space, try to save the deployment again. Doc: Adding software packages to a deployment area
Comments
0 comments
Article is closed for comments.