Product: TIBCO Spotfire®
"Falling back to copy+delete" error is seen in server.log file while deploying packages in TIBCO Spotfire Server using Admin UI.
During deploying packages in TIBCO Spotfire Server, the following series of entries are typically seen if there is a problem with permissions or probably due to incorrect shutdown of the spotfire server before it started again.
WARN 2020-11-18T09:12:21,461-0500 [*DeploymentUpdater*] server.deployment.DeploymentManager: Unable to remove old area dir: C:\tibco\tss\10.10.2\tomcat\temp\TIBCO\TSS\deploy\3023614e-3246-47e4-8726-f9b982d90e24
DEBUG 2020-11-18T09:12:21,461-0500 [*DeploymentUpdater*] server.util.FileUtils: Unable to move C:\tibco\tss\10.10.2\tomcat\temp\TIBCO\TSS\deploy\3023614e-3246-47e4-8726-f9b982d90e24-TEMP-11654322045902430025 to C:\tibco\tss\10.10.2\tomcat\temp\TIBCO\TSS\deploy\3023614e-3246-47e4-8726-f9b982d90e24. Falling back to copy+delete.
java.nio.file.FileAlreadyExistsException: C:\tibco\tss\10.10.2\tomcat\temp\TIBCO\TSS\deploy\3023614e-3246-47e4-8726-f9b982d90e24
at sun.nio.fs.WindowsFileCopy.move(WindowsFileCopy.java:351) ~[?:?]
at sun.nio.fs.WindowsFileSystemProvider.move(WindowsFileSystemProvider.java:292) ~[?:?]
at java.nio.file.Files.move(Files.java:1421) ~[?:?]
at com.spotfire.server.util.FileUtils.move(FileUtils.java:379) ~[spotfire-server.jar:?]
at com.spotfire.server.deployment.DeploymentManager.replaceAreaDirectory(DeploymentManager.java:3479) ~[spotfire-server.jar:?]
at com.spotfire.server.deployment.DeploymentManager.refreshArea(DeploymentManager.java:2783) ~[spotfire-server.jar:?]
at com.spotfire.server.deployment.DeploymentManager.refreshUpdated(DeploymentManager.java:2728) ~[spotfire-server.jar:?]
at com.spotfire.server.deployment.DeploymentManager$DeploymentUpdater.run(DeploymentManager.java:1800) ~[spotfire-server.jar:?]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) ~[?:?]
at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:305) ~[?:?]
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:305) ~[?:?]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) ~[?:?]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) ~[?:?]
at java.lang.Thread.run(Thread.java:834) [?:?]
WARN 2020-11-18T09:12:22,321-0500 [*DeploymentUpdater*] server.deployment.DeploymentManager: Exception refreshing updated deployments
com.spotfire.server.deployment.DeploymentException: Failed to move directory 'C:\tibco\tss\10.10.2\tomcat\temp\TIBCO\TSS\deploy\3023614e-3246-47e4-8726-f9b982d90e24-TEMP-11654322045902430025' to 'C:\tibco\tss\10.10.2\tomcat\temp\TIBCO\TSS\deploy'
at com.spotfire.server.deployment.DeploymentManager.replaceAreaDirectory(DeploymentManager.java:3485) ~[spotfire-server.jar:?]
at com.spotfire.server.deployment.DeploymentManager.refreshArea(DeploymentManager.java:2783) ~[spotfire-server.jar:?]
at com.spotfire.server.deployment.DeploymentManager.refreshUpdated(DeploymentManager.java:2728) ~[spotfire-server.jar:?]
at com.spotfire.server.deployment.DeploymentManager$DeploymentUpdater.run(DeploymentManager.java:1800) ~[spotfire-server.jar:?]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) ~[?:?]
at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:305) ~[?:?]
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:305) ~[?:?]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) ~[?:?]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) ~[?:?]
at java.lang.Thread.run(Thread.java:834) [?:?]
Caused by: java.nio.file.AccessDeniedException: C:\tibco\tss\10.10.2\tomcat\temp\TIBCO\TSS\deploy\3023614e-3246-47e4-8726-f9b982d90e24\Contents\Automation Services Core.cab.gz
at sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:89) ~[?:?]
at sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:103) ~[?:?]
at sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:108) ~[?:?]
at sun.nio.fs.WindowsFileCopy.copy(WindowsFileCopy.java:164) ~[?:?]
at sun.nio.fs.WindowsFileSystemProvider.copy(WindowsFileSystemProvider.java:283) ~[?:?]
at java.nio.file.Files.copy(Files.java:1294) ~[?:?]
at com.spotfire.server.util.FileUtils$CopyDirectoryVisitor.visitFile(FileUtils.java:454) ~[spotfire-server.jar:?]
at com.spotfire.server.util.FileUtils$CopyDirectoryVisitor.visitFile(FileUtils.java:419) ~[spotfire-server.jar:?]
at java.nio.file.Files.walkFileTree(Files.java:2724) ~[?:?]
at java.nio.file.Files.walkFileTree(Files.java:2796) ~[?:?]
at com.spotfire.server.util.FileUtils.move(FileUtils.java:382) ~[spotfire-server.jar:?]
at com.spotfire.server.deployment.DeploymentManager.replaceAreaDirectory(DeploymentManager.java:3479) ~[spotfire-server.jar:?]
... 9 more
Here are two options outlined below that will help solve the problem:
Option 1:-
1) Make sure that the account running the TIBCO Spotfire server service has full access to the temp folder.
2) Check if "Everyone" has read/write access to the folder "<installation folder>\tomcat\" folder and see if you can deploy the packages.
Option 2:-
If above does not solve the problem, then follow below steps:
1) Stop the TIBCO Spotfire Server service.
2) Open task manager and make sure no "tomcat9.exe" process are running. If there are then kill the processes.
3) Make sure Everyone has read/write access to the folder "<installation folder>\tomcat\" and the account running the Spotfire server service has full access to the temp folder.
4) Start the TIBCO Spotfire server service again and test deploying packages.
Doc: Adding software packages to a deployment area
Comments
0 comments
Article is closed for comments.