syncloud/syncloud — Issue #5: synchronization fails on unknown folders
Author: cyberb
Created: 2012-01-10 06:00:21+00:00
State: open

sync config:

{"synchronizations": [
{
"name": "Test Sync",
"paths": [
{
"login": "anonimous",
"path": "/my/test-sync/from",
"storageId": 0
},
{
"login": "ribalkin",
"path": "/my/test-sync/unknown",
"storageId": 0
}
]
}
]}

log:

bob@bob:/my/projects/syncloud/distr/syncloud-0.0.1$ java -jar lib/syncloud-ice-service-0.0.1.jar
2012-01-10 00:55:05,760 0 [main] INFO syncloud.ice.service.Server - service starting ...
2012-01-10 00:55:05,881 121 [main] INFO syncloud.ice.service.Server - synchronization background task started
2012-01-10 00:55:05,881 121 [Timer-0] INFO syncloud.core.synchronization.Synchronization - synchronization cycle started
2012-01-10 00:55:05,886 126 [Timer-0] INFO syncloud.core.dao.JsonDao - loading config file: /home/bob/.syncloud/config/syncs.json
2012-01-10 00:55:05,935 175 [Timer-0] DEBUG syncloud.core.synchronization.Synchronization - found sync: Test Sync
2012-01-10 00:55:05,935 175 [Timer-0] DEBUG syncloud.core.synchronization.Synchronization - adding path to synchronize: /my/test-sync/from
2012-01-10 00:55:05,937 177 [Timer-0] DEBUG syncloud.core.synchronization.Synchronization - adding path to synchronize: /my/test-sync/unknown
2012-01-10 00:55:05,939 179 [Timer-0] DEBUG syncloud.core.synchronization.Synchronizer - folders to synchronize: 2
2012-01-10 00:55:06,123 363 [main] INFO syncloud.ice.service.Server - ice adapter activated
2012-01-10 00:55:06,589 829 [Timer-0] ERROR syncloud.filesystem.FSFolder - unable to create file unknown
java.io.IOException: No such file or directory
at java.io.UnixFileSystem.createFileExclusively(Native Method)
at java.io.File.createNewFile(File.java:883)
at syncloud.filesystem.FSFolder.createFile(FSFolder.java:94)
at syncloud.core.synchronization.nodes.FilesSyncBundle.create(FilesSyncBundle.java:51)
at syncloud.core.synchronization.nodes.SyncBundle.synchronize(SyncBundle.java:111)
at syncloud.core.synchronization.nodes.SyncBundle.synchronize(SyncBundle.java:98)
at syncloud.core.synchronization.nodes.SyncBundle.synchronize(SyncBundle.java:44)
at syncloud.core.synchronization.nodes.FilesSyncBundle.synchronize(FilesSyncBundle.java:21)
at syncloud.core.synchronization.nodes.FoldersSyncBundle.synchronize(FoldersSyncBundle.java:55)
at syncloud.core.synchronization.nodes.FoldersSyncBundle.synchronizeChilds(FoldersSyncBundle.java:34)
at syncloud.core.synchronization.Synchronizer.synchronize(Synchronizer.java:41)
at syncloud.core.synchronization.Synchronization.run(Synchronization.java:56)
at java.util.TimerThread.mainLoop(Timer.java:512)
at java.util.TimerThread.run(Timer.java:462)
Exception in thread "Timer-0" syncloud.storage.StorageException: unable to create file unknown
at syncloud.filesystem.FSFolder.createFile(FSFolder.java:99)
at syncloud.core.synchronization.nodes.FilesSyncBundle.create(FilesSyncBundle.java:51)
at syncloud.core.synchronization.nodes.SyncBundle.synchronize(SyncBundle.java:111)
at syncloud.core.synchronization.nodes.SyncBundle.synchronize(SyncBundle.java:98)
at syncloud.core.synchronization.nodes.SyncBundle.synchronize(SyncBundle.java:44)
at syncloud.core.synchronization.nodes.FilesSyncBundle.synchronize(FilesSyncBundle.java:21)
at syncloud.core.synchronization.nodes.FoldersSyncBundle.synchronize(FoldersSyncBundle.java:55)
at syncloud.core.synchronization.nodes.FoldersSyncBundle.synchronizeChilds(FoldersSyncBundle.java:34)
at syncloud.core.synchronization.Synchronizer.synchronize(Synchronizer.java:41)
at syncloud.core.synchronization.Synchronization.run(Synchronization.java:56)
at java.util.TimerThread.mainLoop(Timer.java:512)
at java.util.TimerThread.run(Timer.java:462)