Task type 'backup' against agent

Enterprise Administration Module failing to take remote backups. Getting the vague message "Command line threw an InterruptedException for command". Any ideas why this is failing and how to fix it?

org.apache.commons.io.IOExceptionWithCause: Command line threw an InterruptedException for command [cmd.exe, /C, dir /a /-c "C:\Remote_Gateway_Backups"] timeout=10000

at org.apache.commons.io.FileSystemUtils.performCommand(FileSystemUtils.java:513)

at org.apache.commons.io.FileSystemUtils.freeSpaceWindows(FileSystemUtils.java:297)

at org.apache.commons.io.FileSystemUtils.freeSpaceOS(FileSystemUtils.java:264)

at org.apache.commons.io.FileSystemUtils.freeSpaceKb(FileSystemUtils.java:200)

at com.inductiveautomation.eam.gateway.module.controller.util.Archiver.testFreeSpace(Archiver.java:536)

at com.inductiveautomation.eam.gateway.module.controller.util.Archiver.saveGwbk(Archiver.java:162)

at com.inductiveautomation.eam.gateway.tasks.impl.gatewaybackup.GatewayBackupTask.saveBackup(GatewayBackupTask.java:208)

at com.inductiveautomation.eam.gateway.tasks.impl.gatewaybackup.GatewayBackupTask.runGatewayBackup(GatewayBackupTask.java:191)

at com.inductiveautomation.eam.gateway.tasks.impl.gatewaybackup.GatewayBackupTask.lambda$queueOperation$0(GatewayBackupTask.java:121)

at com.inductiveautomation.metro.impl.services.ServiceManagerImpl$ServiceResponseDelegatingHandler.accept(ServiceManagerImpl.java:888)

at com.inductiveautomation.metro.impl.services.ServiceManagerImpl$ServiceResponseDelegatingHandler.accept(ServiceManagerImpl.java:863)

at java.base/java.util.concurrent.CompletableFuture.uniWhenComplete(Unknown Source)

at java.base/java.util.concurrent.CompletableFuture$UniWhenComplete.tryFire(Unknown Source)

at java.base/java.util.concurrent.CompletableFuture.postComplete(Unknown Source)

at java.base/java.util.concurrent.CompletableFuture.complete(Unknown Source)

at com.inductiveautomation.metro.impl.jobs.RpcJob.responseReceived(RpcJob.java:24)

at com.inductiveautomation.metro.impl.RpcTaskManager$RpcIntent.receive(RpcTaskManager.java:112)

at com.inductiveautomation.metro.impl.RpcTaskManager$RpcIntent.receive(RpcTaskManager.java:58)

at com.inductiveautomation.metro.impl.CentralManagerImpl.handleLocal(CentralManagerImpl.java:446)

at com.inductiveautomation.metro.impl.ConnectionWatcher.handle(ConnectionWatcher.java:429)

at com.inductiveautomation.metro.impl.ConnectionWatcher.handle(ConnectionWatcher.java:44)

at com.inductiveautomation.metro.impl.protocol.websocket.WebSocketConnection.forward(WebSocketConnection.java:1345)

at com.inductiveautomation.metro.impl.protocol.websocket.WebSocketConnection$RunDownload.run(WebSocketConnection.java:1905)

at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)

at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)

at java.base/java.lang.Thread.run(Unknown Source)

Caused by: java.lang.InterruptedException: null

at java.base/java.lang.ProcessImpl.waitFor(Unknown Source)

at org.apache.commons.io.FileSystemUtils.performCommand(FileSystemUtils.java:494)

... 25 common frames omitted

org.apache.commons.io.IOExceptionWithCause: Command line threw an InterruptedException for command [cmd.exe, /C, dir /a /-c ā€œC:\Remote_Gateway_Backupsā€] timeout=10000
at org.apache.commons.io.FileSystemUtils.performCommand(FileSystemUtils.java:513)
at org.apache.commons.io.FileSystemUtils.freeSpaceWindows(FileSystemUtils.java:297)
at org.apache.commons.io.FileSystemUtils.freeSpaceOS(FileSystemUtils.java:264)
at org.apache.commons.io.FileSystemUtils.freeSpaceKb(FileSystemUtils.java:200)
at com.inductiveautomation.eam.gateway.module.controller.util.Archiver.testFreeSpace(Archiver.java:536)

When trying to determine whether your destination directory has sufficient free space to store backups (per the EAM setting), we invoke a ā€˜nativeā€™ command per OS. On Windows, this is dir /a /-c. To prevent other issues, this command is only allowed to run for 10 seconds. On your system, this command failed to complete within 10 seconds. How many files are in this folder? If you manually invoke dir /a /-c in C:\Remote_Gateway_Backups, how long does it take to evaluate?

1 Like

It magically started working. I suspect a windows network user account access control issue. Thank you.