By: Patrick Ethier user 07 Feb 2017 at 11:28 a.m. CST

1 Response
Patrick Ethier gravatar
First off, running apt-get install gluu-server-3.0.0 seems to have issues downloading the .deb file. It keeps asking to run apt-get with the --fix-missing flag which doesn't work. On to the real problem. The Ubuntu "init" script gluu-server-3.0.0 doesn't support a start/stop cycle. Doing so, off the default install, results in a "Service Unavailable 503" page when recovering from a reboot cycle (or a start/stop/start cycle). It seems this is due to the openldap (solserver?) service not being fully "up" when the oxauth and identity jetty instances are starting.... To reproduce follow this process: 1) Follow install guide for stock Ubuntu VM (limits, etc.), make sure /etchosts entry contains IP/hostname to rule out DNS issues 2) Follow setup guide for .deb file via apt-get (see comment above, ended up downloading .deb from the repo and running dpkg -i instead) 3) sudo service gluu-server-3.0.0 start 4) sudo service gluu-server-3.0.0 login 5) cd /install/community-edition-setup/ 6) run setup.py 7) Log into https://<yourhost> with the admin creds supplied by setup.py to confirm everything is OK 8) At this point, exit out of the chroot/jail and issue a "sudo reboot" command... OR "sudo service gluu-server-3.0.0 stop" 9) Upon reboot, issue "sudo service gluu-server-3.0.0 start" 10) Browse to https://<yourhost>, 503 error ensues every time! ------ Temporary workaround ----- 11) sudo gluu-server-3.0.0 login 12) cd /etc/init.d 13) ./identity stop 14) ./oxauth stop 15) ./solserver stop 16) ./solserver start 17) ./oxauth start 18) ./identity start 19) Log onto https://<yourhost>, login prompt should have returned... Finally, on Ubuntu, the gluu-server-3.0.0 should have a header as similar to what follows (Important Default-Start and Default-Stop attributes so that update-rc.d script can be run so the gluu services start on reboot): ### BEGIN INIT INFO # Provides: gluu # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Short-Description: GLUU Server # Description: GLUU service ### END INIT INFO

By Mohib Zico Account Admin 07 Feb 2017 at 11:35 a.m. CST

Mohib Zico gravatar
Duplicate issue. Closing this ticket. Active one is [here](https://support.gluu.org/installation/3734/testing-new-install-of-300-fails-to-startstop-services-after-initial-install/).