java.lang.RuntimeException: Unable to rename old path 'E:\arcgisserver\directories\arcgissystem\arcgisinput\Data/OS.MapServer' to new path 'E:\arcgisserver\directories\arcgissystem\arcgisinput\Data/OS_201604151509.MapServer'.

  1. 0

    Not able to overwrite/delete an existing Service in ArcGIS Server?

    Geographic Information Systems | 8 months ago | Astha Devra
    java.lang.RuntimeException: Unable to rename old path 'E:\arcgisserver\directories\arcgissystem\arcgisinput\Data/OS.MapServer' to new path 'E:\arcgisserver\directories\arcgissystem\arcgisinput\Data/OS_201604151509.MapServer'.
  2. 0

    [CASSANDRA-8535] java.lang.RuntimeException: Failed to rename XXX to YYY - ASF JIRA

    apache.org | 11 months ago
    java.lang.RuntimeException: Failed to rename E:\Upsource\Upsource_2.0.262_new_cassandra\data\cassandra\data\upsource\content-f13ce210136211e59a87137398728adc\upsource-content-tmp-ka-18-Index.db to E:\Upsource\Upsource_2.0.262_new_cassandra\ data\cassandra\data\upsource\content-f13ce210136211e59a87137398728adc\upsource-content-ka-18-Index.db
  3. 0

    {code} java.lang.RuntimeException: Failed to rename build\test\cassandra\data;0\system\schema_keyspaces-b0f2235744583cdb9631c43e59ce3676\system-schema_keyspaces-tmp-ka-5-Index.db to build\test\cassandra\data;0\system\schema_keyspaces-b0f2235744583cdb9631c43e59ce3676\system-schema_keyspaces-ka-5-Index.db at org.apache.cassandra.io.util.FileUtils.renameWithConfirm(FileUtils.java:170) ~[main/:na] at org.apache.cassandra.io.util.FileUtils.renameWithConfirm(FileUtils.java:154) ~[main/:na] at org.apache.cassandra.io.sstable.SSTableWriter.rename(SSTableWriter.java:569) ~[main/:na] at org.apache.cassandra.io.sstable.SSTableWriter.rename(SSTableWriter.java:561) ~[main/:na] at org.apache.cassandra.io.sstable.SSTableWriter.close(SSTableWriter.java:535) ~[main/:na] at org.apache.cassandra.io.sstable.SSTableWriter.finish(SSTableWriter.java:470) ~[main/:na] at org.apache.cassandra.io.sstable.SSTableRewriter.finishAndMaybeThrow(SSTableRewriter.java:349) ~[main/:na] at org.apache.cassandra.io.sstable.SSTableRewriter.finish(SSTableRewriter.java:324) ~[main/:na] at org.apache.cassandra.io.sstable.SSTableRewriter.finish(SSTableRewriter.java:304) ~[main/:na] at org.apache.cassandra.db.compaction.CompactionTask.runMayThrow(CompactionTask.java:200) ~[main/:na] at org.apache.cassandra.utils.WrappedRunnable.run(WrappedRunnable.java:28) ~[main/:na] at org.apache.cassandra.db.compaction.CompactionTask.executeInternal(CompactionTask.java:75) ~[main/:na] at org.apache.cassandra.db.compaction.AbstractCompactionTask.execute(AbstractCompactionTask.java:59) ~[main/:na] at org.apache.cassandra.db.compaction.CompactionManager$BackgroundCompactionTask.run(CompactionManager.java:226) ~[main/:na] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) ~[na:1.7.0_45] at java.util.concurrent.FutureTask.run(FutureTask.java:262) ~[na:1.7.0_45] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) ~[na:1.7.0_45] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [na:1.7.0_45] at java.lang.Thread.run(Thread.java:744) [na:1.7.0_45] Caused by: java.nio.file.FileSystemException: build\test\cassandra\data;0\system\schema_keyspaces-b0f2235744583cdb9631c43e59ce3676\system-schema_keyspaces-tmp-ka-5-Index.db -> build\test\cassandra\data;0\system\schema_keyspaces-b0f2235744583cdb9631c43e59ce3676\system-schema_keyspaces-ka-5-Index.db: The process cannot access the file because it is being used by another process. at sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:86) ~[na:1.7.0_45] at sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:97) ~[na:1.7.0_45] at sun.nio.fs.WindowsFileCopy.move(WindowsFileCopy.java:301) ~[na:1.7.0_45] at sun.nio.fs.WindowsFileSystemProvider.move(WindowsFileSystemProvider.java:287) ~[na:1.7.0_45] at java.nio.file.Files.move(Files.java:1345) ~[na:1.7.0_45] at org.apache.cassandra.io.util.FileUtils.atomicMoveWithFallback(FileUtils.java:184) ~[main/:na] at org.apache.cassandra.io.util.FileUtils.renameWithConfirm(FileUtils.java:166) ~[main/:na] ... 18 common frames omitted {code}

    Apache's JIRA Issue Tracker | 2 years ago | Leonid Shalupov
    java.lang.RuntimeException: Failed to rename E:\Upsource\Upsource_2.0.262_new_cassandra\data\cassandra\data\upsource\content-f13ce210136211e59a87137398728adc\upsource-content-tmp-ka-18-Index.db to E:\Upsource\Upsource_2.0.262_new_cassandra\ data\cassandra\data\upsource\content-f13ce210136211e59a87137398728adc\upsource-content-ka-18-Index.db
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    [CASSANDRA-8535] java.lang.RuntimeException: Failed to rename XXX to YYY - ASF JIRA

    apache.org | 1 year ago
    java.lang.RuntimeException: Failed to rename E:\Upsource\Upsource_2.0.262_new_cassandra\data\cassandra\data\upsource\content-f13ce210136211e59a87137398728adc\upsource-content-tmp-ka-18-Index.db to E:\Upsource\Upsource_2.0.262_new_cassandra\ data\cassandra\data\upsource\content-f13ce210136211e59a87137398728adc\upsource-content-ka-18-Index.db
  6. 0

    If conf-daemon.properties has a Windows carriage-return at the end of {{rootDirectory=/var/lib/mongodb/backup/}}, then the Backup Daemon will fail just after startup with: {noformat} Exception in thread "main" java.lang.RuntimeException: Directories must end in the system path separator ('/') at com.xgen.svc.brs.grid.BackupDaemonConfiguration.getRootDirectory(BackupDaemonConfiguration.java:482) at com.xgen.svc.brs.grid.BackupDaemonConfiguration.<init>(BackupDaemonConfiguration.java:88) at com.xgen.svc.brs.grid.Daemon.initialize(Daemon.java:662) at com.xgen.svc.brs.grid.Daemon.main(Daemon.java:745) {noformat} Note that the service startup works: {code} $ sudo service mongodb-mms-backup-daemon start Starting pre-flight checks Successfully finished pre-flight checks Start Backup Daemon... [ OK ] {code} If visible spaces are added instead, then the startup sequence gives this error: {code} $ sudo service mongodb-mms-backup-daemon start Starting pre-flight checks rootDirectory `/var/lib/mongodb/backup/ ` defined in conf-daemon.properties does not exist. Pre-flight checks failed. Service can not start. {code} (tested on Linux ip-172-31-15-48 3.14.35-28.38.amzn1.x86_64 #1 SMP Wed Mar 11 22:50:37 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux) Filing this to consider if more general white-space is acceptable to ignore for the configuration file. Alternatively, error on all extra white-space similarly. To recreate: 1. Edit the conf-daemon.properties file and add a Windows carriage return (e.g. in vi/vim: ctrl-V ctrl-M) to the end of rootDirectory 2. Try to start the daemon 3. Check the daemon.log file

    JIRA | 2 years ago | Alan McCoy
    java.lang.RuntimeException: Directories must end in the system path separator ('/')

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.RuntimeException

      Unable to rename old path 'E:\arcgisserver\directories\arcgissystem\arcgisinput\Data/OS.MapServer' to new path 'E:\arcgisserver\directories\arcgissystem\arcgisinput\Data/OS_201604151509.MapServer'.

      at com.esri.arcgis.discovery.util.FileUtil.renameTo()
    2. com.esri.arcgis
      ServiceManager.renameService
      1. com.esri.arcgis.discovery.util.FileUtil.renameTo(FileUtil.java:81)
      2. com.esri.arcgis.discovery.admin.services.ServiceManager.renameService(ServiceManager.java:856)
      2 frames