percussion / percussioncms

Percussion CMS - Content Management System
https://percussioncmshelp.intsof.com/percussioncms
Apache License 2.0
11 stars 9 forks source link

ServerAdministrator can't save perc-ds.properties #727

Closed mariosm1 closed 1 year ago

mariosm1 commented 1 year ago

Describe the bug The serveradmin tool deletes the copy of the jetty/base/perc-ds.properties after attempting to overwrite it as shown in the server log:

2023-02-01 14:38:08,019 ERROR [com.percussion.utils.container.adapters.JettyDatasourceConfigurationAdapter] Error saving jetty datasource file: D:\Perc81Test\jetty\base\etc\perc-ds.properties C:sun.nio.fs.WindowsException:L:83 2023-02-01 14:38:08,034 INFO [com.percussion.ObjectStore] Locking server configuration for 30 minutes 2023-02-01 14:38:08,034 INFO [com.percussion.ObjectStore] Locking server configuration for 30 minutes 2023-02-01 14:38:08,034 ERROR [com.percussion.utils.container.adapters.JettyDatasourceConfigurationAdapter] Error saving jetty datasource file: D:\Perc81Test\jetty\base\etc\perc-ds.properties C:sun.nio.fs.WindowsException:L:83 2023-02-01 14:38:08,050 INFO [com.percussion.ObjectStore] Locking server configuration for 30 minutes 2023-02-01 14:38:08,050 INFO [com.percussion.ObjectStore] Locking server configuration for 30 minutes 2023-02-01 14:38:08,081 INFO [com.percussion.ObjectStore] Locking server configuration for 30 minutes 2023-02-01 14:38:08,081 INFO [com.percussion.ObjectStore] Locking server configuration for 30 minutes 2023-02-01 14:38:08,097 INFO [com.percussion.ObjectStore] Unlocking server configuration.

It will also change the server-beans.xml which causes the latest startup errors in the attached log: server.log

Altered server-beans.xml server-beans-altered.txt

Original server-beans.xml server-beans.txt

mariosm1 commented 1 year ago

@sonyDeswal The perc-ds.properties is saved correctly on another instance (not ts-trees6). But the server-beans.xml is still corrupted after using the serveradmin tool - here is the server log after using it. server.log