jmxtrans fail to start on CentOS/Fedora after a reboot
See original GitHub issueAfter installing jmxtrans on CentOS or Fedora using RPM package and rebooting:
[root@fedora25 user]# /etc/init.d/jmxtrans start
Starting JmxTrans...
[root@fedora25 user]# /etc/init.d/jmxtrans status
JmxTrans is not running.
This is caused by the PID dir “/var/run/jmxtrans/” that does not exists because /var/run/ is a tmpfs filesystem which is not persisted across reboot. This is the case at least on CentOS 7 and Fedora 25.
It’s solved by creating the folder and changing ownership:
[root@fedora25 user]# mkdir /var/run/jmxtrans
[root@fedora25 user]# chown jmxtrans:jmxtrans /var/run/jmxtrans
[root@fedora25 user]# /etc/init.d/jmxtrans start
Starting JmxTrans...
[root@fedora25 user]# /etc/init.d/jmxtrans status
JmxTrans is running (2483).
Issue Analytics
- State:
- Created 6 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
jmxtrans: What is it and how to configure it
All you need to do is configure the JAVA_ARGS to enable the JMX port to be open, ... This seems to work in...
Read more >Java unable to start as service on Centos/Rocky/Fedora ...
I'm able to run the application as my user as the policies are more permissive that if running from an ExecStart in systemd....
Read more >Jenkins intermittently fails to restart on RHEL 7 and CentOS 7
Jenkins is effectively down. Nothing is logged. Sometimes, after numerous restarts, the Jenkins service may start up again normally.
Read more >Fedora 36 will never reboot! Can only use "1 time after initial ...
But after trying to restart my laptop I cannot get anything to display. I get a dark grey screen. ... Then after reboot...
Read more >jmxtrans - Installation.wiki - Google Code
Once you have it installed, you also need to make sure to enable remote access ... file which you can download and install...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
My workaround was to modify the wrapper script. First, I changed the chkconfig line to start at 80. Then, under the definition of the PIDDIR, I added:
side note to this issue, we should move to systemd and let systemd handle do the watchdog, output parsing, etc and get rid of appassembler… this might be easier / nicer