java.lang.RuntimeException: Directories must end in the system path separator ('/')

JIRA | Alan McCoy | 2 years ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 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 ('/')
  2. 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 ('/')

    Root Cause Analysis

    1. java.lang.RuntimeException

      Directories must end in the system path separator ('/')

      at com.xgen.svc.brs.grid.BackupDaemonConfiguration.getRootDirectory()
    2. com.xgen.svc
      Daemon.main
      1. com.xgen.svc.brs.grid.BackupDaemonConfiguration.getRootDirectory(BackupDaemonConfiguration.java:482)
      2. com.xgen.svc.brs.grid.BackupDaemonConfiguration.<init>(BackupDaemonConfiguration.java:88)
      3. com.xgen.svc.brs.grid.Daemon.initialize(Daemon.java:662)
      4. com.xgen.svc.brs.grid.Daemon.main(Daemon.java:745)
      4 frames