-
Somewhat related - I just encountered it today. During second start of Tigase:
2016-09-23 15:02:44.283 [main] ConfigHolder.loadConfiguration() SEVERE: could not replace configuration file with file in DSL format java.nio.file.FileAlreadyExistsException: etc/init.properties.old at sun.nio.fs.UnixCopyFile.move(UnixCopyFile.java:429) at sun.nio.fs.UnixFileSystemProvider.move(UnixFileSystemProvider.java:262) -
I removed any existing hardcoded references to
etc/init.propertiesfile with exception of one used when there is no--properties-fileparameter.I also added code to remove existing old file if one exists and to I'm using name of config file passed as parameter with
.oldsuffix as a backup file for converted configuration.+Note:+ It is possible to pass more than one property file as config file in Tigase XMPP Server 7.1.0 and earlier. Now however it is not supported in Tigase XMPP Server 7.2.0-SNAPSHOT, so configuration will be loaded from multiple property files, converted to DSL and store under name of first configuration file.
-
Andrzej Wójcik wrote:
I removed any existing hardcoded references to
etc/init.propertiesfile with exception of one used when there is no--properties-fileparameter.Works correctly now.
I also added code to remove existing old file if one exists and to I'm using name of config file passed as parameter with
.oldsuffix as a backup file for converted configuration.This works as well. However:
-
I would add a log entry to the
tigase-console.logfile that such conversion was performed, what was changed and where files were moved; -
I'm not sure if in-place replacing is good - I would lean towards saving converted configuration to @
.new@, leave old file as-is (and also print log entry with information).
-
| Type |
Bug
|
| Priority |
Normal
|
| Assignee | |
| RedmineID |
4565
|
| Version |
tigase-server-8.0.0
|
| Spent time |
0
|
it seems to be limited to
etc/init.properties(hardcoded?!) and ignores properties configuration files passed as a parameter (currently up to 7.1.x it is possible to have multiple files)as a result of the above, it creates
etc/init.properties.neweven though we may have configured different file