openfire-3.9.1 service start Issue on Centos 7



  • Hello All,

    I am having issue when starting the openfire with commad " systemctl start openfire".

    I have installed Centos 7 minimal (CentOS Linux release 7.5.1804 (Core) ) and installed openfire-3.9.1-1.x86_64.rpm.

    Configured JAVA_HOME and alsl installed the libstdc++.i686.

    But when I start the openfire with commad " systemctl start openfire", I am getting the error
    " systemd[1]: PID file /var/run/openfire.pid not readable (yet?) after start."

    Openfire is not able to control with systemctl and also with service start Openfire.

    Output of journalctl -u openfire -f -a -n 0

    May 30 20:37:14 Centos. systemd[1]: Starting SYSV: Openfire is an XMPP server, which is a server that facilitates XML based communication, such a s chat....
    May 30 20:37:14 Centos. su[1574]: (to root) root on none
    May 30 20:37:14 Centos. openfire[1562]: Starting openfire:
    May 30 20:37:15 Centos. systemd[1]: PID file /var/run/openfire.pi d not readable (yet?) after start.
    May 30 20:37:15 Centos. systemd[1]: Failed to start SYSV: Openfir e is an XMPP server, which is a server that facilitates XML based communication, such as chat..
    May 30 20:37:15 Centos. systemd[1]: Unit openfire.service entered failed state.
    May 30 20:37:15 Centos. systemd[1]: openfire.service failed.

    [[email protected] ~]# systemctl start openfire
    Job for openfire.service failed because a configured resource limit was exceeded. See "systemctl status openfire.service" and "journalctl -xe" for details.

    Please advice and help to start openfire with systemctl . openfire-3.9.1 is working fine with Centos 6.5 version



  • @sreekumarpg said in openfire-3.9.1 service start Issue on Centos 7:

    But when I start the openfire with commad " systemctl start openfire", I am getting the error
    " systemd[1]: PID file /var/run/openfire.pid not readable (yet?) after start."
    Openfire is not able to control with systemctl and also with service start Openfire.
    Output of journalctl -u openfire -f -a -n 0
    May 30 20:37:14 Centos. systemd[1]: Starting SYSV: Openfire is an XMPP server, which is a server that facilitates XML based communication, such a s chat....
    May 30 20:37:14 Centos. su[1574]: (to root) root on none
    May 30 20:37:14 Centos. openfire[1562]: Starting openfire:
    May 30 20:37:15 Centos. systemd[1]: PID file /var/run/openfire.pi d not readable (yet?) after start.
    May 30 20:37:15 Centos. systemd[1]: Failed to start SYSV: Openfir e is an XMPP server, which is a server that facilitates XML based communication, such as chat..
    May 30 20:37:15 Centos. systemd[1]: Unit openfire.service entered failed state.
    May 30 20:37:15 Centos. systemd[1]: openfire.service failed.

    Why dont you isntall the openfire version with java bundled and let it do its magic. I think your installing the version without JRE

    https://www.igniterealtime.org/downloads/



  • @sreekumarpg said in openfire-3.9.1 service start Issue on Centos 7:

    Hello All,

    I am having issue when starting the openfire with commad " systemctl start openfire".

    I have installed Centos 7 minimal (CentOS Linux release 7.5.1804 (Core) ) and installed openfire-3.9.1-1.x86_64.rpm.

    Configured JAVA_HOME and alsl installed the libstdc++.i686.

    But when I start the openfire with commad " systemctl start openfire", I am getting the error
    " systemd[1]: PID file /var/run/openfire.pid not readable (yet?) after start."

    Openfire is not able to control with systemctl and also with service start Openfire.

    Output of journalctl -u openfire -f -a -n 0

    May 30 20:37:14 Centos. systemd[1]: Starting SYSV: Openfire is an XMPP server, which is a server that facilitates XML based communication, such a s chat....
    May 30 20:37:14 Centos. su[1574]: (to root) root on none
    May 30 20:37:14 Centos. openfire[1562]: Starting openfire:
    May 30 20:37:15 Centos. systemd[1]: PID file /var/run/openfire.pi d not readable (yet?) after start.
    May 30 20:37:15 Centos. systemd[1]: Failed to start SYSV: Openfir e is an XMPP server, which is a server that facilitates XML based communication, such as chat..
    May 30 20:37:15 Centos. systemd[1]: Unit openfire.service entered failed state.
    May 30 20:37:15 Centos. systemd[1]: openfire.service failed.

    [[email protected] ~]# systemctl start openfire
    Job for openfire.service failed because a configured resource limit was exceeded. See "systemctl status openfire.service" and "journalctl -xe" for details.

    Please advice and help to start openfire with systemctl . openfire-3.9.1 is working fine with Centos 6.5 version

    Openfire is on version 4.2.3 I assume it is not supported to be running on CentOS 7?


  • Service Provider

    Maybe OpenFire has logged to /var/log with more information?



  • Thanks All,

    We are having internal chat system as Openfire on 3.9.1 and we have modified some of the features and rebuild the rpm. This is the reason we are not using the latest version.

    This customized build is working fine in Centos 6.5 , now we are planing to upgraded the Centos to 7. While testing the Openfire on 3.9.1, we are not able to control the service through systemctl .
    Is Openfire on 3.9.1 is compatable with centos 7? Any workaround to make the Openfire on 3.9.1 function in centos 7?


  • Service Provider

    @sreekumarpg said in openfire-3.9.1 service start Issue on Centos 7:

    journalctl -xe

    What does this say?



  • @scottalanmiller

    [[email protected] ~]# journalctl -xe

    systemd[1]: openfire.service failed.
    systemd[1]: Starting SYSV: Openfire is an XMPP server, which is a server that facilitates XML based communication, such as chat....
    su[2402]: (to root) root on none
    openfire[2389]: Starting openfire:
    systemd[1]: PID file /var/run/openfire.pid not readable (yet?) after start.
    systemd[1]: Failed to start SYSV: Openfire is an XMPP server, which is a server that facilitates XML based communication, such as chat..
    systemd[1]: Unit openfire.service entered failed state.
    systemd[1]: openfire.service failed.
    -- Subject: Unit openfire.service has failed
    -- Defined-By: systemd
    -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel



  • Not sure, but I think if we modification the script inside /etc/init.d/openfire file it may work.

    I have tried to replace the openfire file with openfire 4.1 version under /etc/init.d, now the pid error is not there and starting the service but after 3-4 sec its Shutting down openfire

    Starting SYSV: Openfire is an XMPP server, which is a server that facilitates XML based communication, such as chat....
    su[1614]: (to root) root on none
    openfire[1601]: Starting openfire:
    systemd[1]: Started SYSV: Openfire is an XMPP server, which is a server that facilitates XML based communication, such as chat....
    ..........................
    openfire[1649]: Shutting down openfire: [FAILED]