mcservice does not start on a fresh Ubuntu 20.04 install #4617
Replies: 2 comments 6 replies
-
Installed how? With the installer? The installer runs mirth as root. That's bad practice. I'd use the tar.gz file and create a named user that owns the extracted file system. See https://forums.mirthproject.io/forum/mirth-connect/support/178428-run-mirth-service-manually-works-running-from-systemd-errs-with-no-suitable-jvm?p=179090#post179090 for a systemd start up script. |
Beta Was this translation helpful? Give feedback.
-
I tried to follow your hints.
java -version
[Unit] [Service] [Install]
I also tried to understand the INSTALL4J_JAVA_HOME bit from the thread, but that's a different issue. However, I get the same error as before when I check the status of the mirth.service. ● mirth.service - mirth Jul 01 13:34:21 srv254 mcserver[214664]: Caused by: java.lang.reflect.InaccessibleObjectException: Unable to make field private final java.util.Comparator java.util.TreeMap.comparator accessible: > |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
trying to get this mirth server to run. Installed it on Ubuntu 20.04 with openjdk-16-jdk. Sysctemctl status mcservice shows me the following:
● mcservice.service - Mirth Connect Service
Loaded: loaded (/etc/systemd/system/mcservice.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Fri 2021-06-25 08:11:08 UTC; 3min 22s ago
Process: 554 ExecStart=/opt/mirthconnect/mcservice start-launchd (code=exited, status=1/FAILURE)
Main PID: 554 (code=exited, status=1/FAILURE)
Jun 25 08:11:08 srv254 mcservice[554]: Caused by: java.lang.reflect.InaccessibleObjectException: Unable to make field private final java.util.Comparator java.util.TreeMap.comparator accessible: module java.base does not "opens java.util" to unnamed module @17bffc17
Jun 25 08:11:08 srv254 mcservice[554]: at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:357)
Jun 25 08:11:08 srv254 mcservice[554]: at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:297)
Jun 25 08:11:08 srv254 mcservice[554]: at java.base/java.lang.reflect.Field.checkCanSetAccessible(Field.java:177)
Jun 25 08:11:08 srv254 mcservice[554]: at java.base/java.lang.reflect.Field.setAccessible(Field.java:171)
Jun 25 08:11:08 srv254 mcservice[554]: at com.thoughtworks.xstream.core.util.Fields.locate(Fields.java:40)
Jun 25 08:11:08 srv254 mcservice[554]: at com.thoughtworks.xstream.converters.collections.TreeMapConverter.(TreeMapConverter.java:50)
Jun 25 08:11:08 srv254 mcservice[554]: ... 31 more
Jun 25 08:11:08 srv254 systemd[1]: mcservice.service: Main process exited, code=exited, status=1/FAILURE
Jun 25 08:11:08 srv254 systemd[1]: mcservice.service: Failed with result 'exit-code'.
Am I using the wrong Java environment? What's going on here?
Kind regards,
Starfish
Beta Was this translation helpful? Give feedback.
All reactions