By: Paraskevi Dimou user 21 May 2019 at 4:43 p.m. CDT

3 Responses
Paraskevi Dimou gravatar
Hello, I am trying to start gluu server but I receive the below error: "[....] Starting gluu-server-3.1.6 (via systemctl): gluu-server-3.1.6.serviceJob for gluu-server-3.1.6.service failed because the control process exited with error code. See "systemctl status gluu-server-3.1.6.service" and "journalctl -xe" for details." **systemctl status gluu-server-3.1.6.service** ● gluu-server-3.1.6.service - LSB: This shell script takes care of starting and stopping Loaded: loaded (/etc/init.d/gluu-server-3.1.6; bad; vendor preset: enabled) Active: failed (Result: exit-code) since Wed 2019-05-22 00:29:37 EEST; 2min 9s ago Docs: man:systemd-sysv-generator(8) Process: 39735 ExecStart=/etc/init.d/gluu-server-3.1.6 start (code=exited, status=2) CGroup: /system.slice/gluu-server-3.1.6.service ├─1835 /opt/jre/bin/java -server -Dorg.opends.server.scriptName=start-ds org.opends.server.core.DirectoryServer --configClass org.opends.server.extens ├─2607 /usr/sbin/rsyslogd ├─2664 /usr/sbin/apache2 -k start ├─2667 /usr/sbin/apache2 -k start ├─2668 /usr/sbin/apache2 -k start ├─2730 /usr/sbin/cron ├─2743 /usr/bin/dbus-daemon --system ├─2769 /opt/jre/bin/java -server -Xms256m -Xmx1227m -XX:MaxMetaspaceSize=526m -XX:+DisableExplicitGC -Dgluu.base=/etc/gluu -Dserver.base=/opt/gluu/jet ├─2931 /opt/jre/bin/java -server -Xms256m -Xmx818m -XX:MaxMetaspaceSize=351m -XX:+DisableExplicitGC -Dgluu.base=/etc/gluu -Dserver.base=/opt/gluu/jett └─2997 /opt/jre/bin/java -server -Xms256m -Xmx358m -XX:MaxMetaspaceSize=154m -XX:+DisableExplicitGC -Dgluu.base=/etc/gluu -Dserver.base=/opt/gluu/jett May 22 00:29:37 localhost systemd[1]: Starting LSB: This shell script takes care of starting and stopping... May 22 00:29:37 localhost gluu-server-3.1.6[39735]: ERROR: Can't start gluu server. May 22 00:29:37 localhost gluu-server-3.1.6[39735]: HINT: Please manually remove /var/run/gluu-server-3.1.6.pid and unmount chroot container by running May 22 00:29:37 localhost gluu-server-3.1.6[39735]: rm -f /var/run/gluu-server-3.1.6.pid May 22 00:29:37 localhost gluu-server-3.1.6[39735]: df -aP | grep gluu-server-3.1.6 | awk '{print $6}' | xargs -I {} umount -l {} May 22 00:29:37 localhost systemd[1]: gluu-server-3.1.6.service: Control process exited, code=exited status=2 May 22 00:29:37 localhost systemd[1]: Failed to start LSB: This shell script takes care of starting and stopping. May 22 00:29:37 localhost systemd[1]: gluu-server-3.1.6.service: Unit entered failed state. May 22 00:29:37 localhost systemd[1]: gluu-server-3.1.6.service: Failed with result 'exit-code'. **journalctl -xe** -- Unit gluu-server-3.1.6.service has begun starting up. May 22 00:29:37 localhost gluu-server-3.1.6[39735]: ERROR: Can't start gluu server. May 22 00:29:37 localhost gluu-server-3.1.6[39735]: HINT: Please manually remove /var/run/gluu-server-3.1.6.pid and unmount chroot container by running May 22 00:29:37 localhost gluu-server-3.1.6[39735]: rm -f /var/run/gluu-server-3.1.6.pid May 22 00:29:37 localhost gluu-server-3.1.6[39735]: df -aP | grep gluu-server-3.1.6 | awk '{print $6}' | xargs -I {} umount -l {} May 22 00:29:37 localhost systemd[1]: gluu-server-3.1.6.service: Control process exited, code=exited status=2 May 22 00:29:37 localhost systemd[1]: Failed to start LSB: This shell script takes care of starting and stopping. -- Subject: Unit gluu-server-3.1.6.service has failed -- Defined-By: systemd -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel -- -- Unit gluu-server-3.1.6.service has failed. -- -- The result is failed. May 22 00:29:37 localhost systemd[1]: gluu-server-3.1.6.service: Unit entered failed state. May 22 00:29:37 localhost systemd[1]: gluu-server-3.1.6.service: Failed with result 'exit-code'. I run the command `netstat -tulpn | grep 443` (Not all processes could be identified, non-owned process info will not be shown, you would have to be root to see it all.) tcp6 0 0 :::443 :::* LISTEN - and the command `service apache2 status` ● apache2.service Loaded: not-found (Reason: No such file or directory) Active: inactive (dead) I tried to stop apache2 `systemctl stop apache2` Failed to stop apache2.service: Unit apache2.service not loaded. `systemctl disable apache2` Failed to execute operation: No such file or directory Thank you in advance for your help

By Sahil Arora staff 22 May 2019 at 7:09 a.m. CDT

Sahil Arora gravatar
HI Paraskevi , Can you please confirm is it a fresh install on a new VM? Can you please try to run these commands and try again ``` rm -f /var/run/gluu-server-3.1.6.pid df -aP | grep gluu-server-3.1.6 | awk '{print $6}' | xargs -I {} umount -l {} ```

By Paraskevi Dimou user 23 May 2019 at 4:56 p.m. CDT

Paraskevi Dimou gravatar
Hi. Yes, it is a fresh install on a Ubuntu 16.04 VM. I run the command that you mentioned and then I run the command to start gluu server and i get the message "[OK] Starting gluu-server..." Then I am trying to login but I get the error "gluu-server-3.1.6 is not running. Please start it by running : /etc/init.d/gluu-server-3.1.6 start".

By Sahil Arora staff 23 May 2019 at 9:05 p.m. CDT

Sahil Arora gravatar
I am not able to reproduce this on Ubuntu16.04 instance. Please try to re-install the package and let me know ``` apt-get purge gluu-server-3.1.6.sp1 apt-get update apt-get install gluu-server-3.1.6.sp1 ```