View Issue Details

IDProjectCategoryView StatusLast Update
0004934SymmetricDS ProBugpublic2022-01-12 19:26
Reporterelong Assigned Toelong  
Prioritynormal 
Status assignedResolutionopen 
Product Version3.14.0 
Target Version3.14.0 
Summary0004934: Service won't start on Windows after enabling JMX
DescriptionFrom setup program, when you enable JMX, the server won't start as a service because the "security" folder needs to be owned by the user that runs the server. The service runs as user "System".

-- After install
icacls jmxremote.password /setowner %username%
icacls jmxremote.password /inheritance:r
icacls jmxremote.password /grant %username%:(r,w,f)

-- Switching to Service
takeown /f jmxremote.password
icacls jmxremote.password /setowner %username%
icacls jmxremote.password /reset
icacls jmxremote.password /inheritance:r
icacls jmxremote.password /grant System:(r)
icacls jmxremote.password /setowner System
icacls jmxremote.password /remove %username%

-- Switching back to User
takeown /f jmxremote.password
icacls jmxremote.password /setowner %username%
icacls jmxremote.password /reset
icacls jmxremote.password /inheritance:r
icacls jmxremote.password /grant %username%:(r,w,f)

This appears to be a Windows-only issue. On Unix/Mac, we set the file permissions in security folder to 600, which seems to be enough to avoid the error -- if running the service, it defaults to root, which can still read the file and doesn't care if the owner is different.
Tagsapi

Activities

There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2021-03-31 18:31 elong New Issue
2021-03-31 18:31 elong Status new => assigned
2021-03-31 18:31 elong Assigned To => elong
2021-03-31 18:31 elong Tag Attached: api
2021-04-28 14:43 admin Target Version 3.12.9 => 3.12.10
2021-05-28 11:55 admin Target Version 3.12.10 => 3.12.11
2021-07-12 20:53 admin Target Version 3.12.11 => 3.13.0
2021-11-02 20:09 elong Target Version 3.13.0 => 3.13.1
2021-12-11 17:09 admin Target Version 3.13.1 => 3.13.2
2021-12-20 14:27 admin Target Version 3.13.2 => 3.13.3
2022-01-12 16:42 elong Description Updated View Revisions
2022-01-12 19:26 elong Product Version 3.12.0 => 3.14.0
2022-01-12 19:26 elong Target Version 3.13.3 => 3.14.0