View Issue Details

IDProjectCategoryView StatusLast Update
0004934SymmetricDS ProBugpublic2024-03-18 13:18
Reporterelong Assigned To 
Prioritynormal 
Status acknowledgedResolutionopen 
Product 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

elong

2022-11-30 13:37

developer   ~0002221

Not an issue with Windows 10 and Adoptium (Eclipse Temurin) JDK.

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
2022-07-25 16:51 elong Target Version 3.14.0 => 3.14.1
2022-08-24 19:52 elong Target Version 3.14.1 => 3.14.2
2022-10-03 14:32 elong Target Version 3.14.2 => 3.14.3
2022-11-07 13:08 elong Target Version 3.14.3 => 3.15.0
2022-11-30 13:37 elong Note Added: 0002221
2023-09-25 19:45 admin Target Version 3.15.0 => 3.15.1
2023-10-06 13:20 elong Fixed in Version 3.15.1 =>
2023-11-14 20:24 elong Target Version 3.15.1 => 3.15.2
2023-12-15 20:20 admin Target Version 3.15.2 => 3.15.3
2024-02-05 14:29 admin Target Version 3.15.3 => 3.15.4
2024-03-18 13:18 elong Assigned To elong =>
2024-03-18 13:18 elong Status assigned => acknowledged
2024-03-18 13:18 elong Target Version 3.15.4 =>