By: Mohamad Taheri user 27 Aug 2016 at 8:28 a.m. CDT

19 Responses
Mohamad Taheri gravatar
Hi, I used gluu, and every thing was OK until My Server Shutdown unexpectly. after turn on, when I run this command:`sudo /etc/init.d/gluu-server-2.4.4 start` gluu start currectly but I can't reach gluu server, browser give me "ERR_CONNECTION_REFUSED" and also I can't login to gluu chroot environment what should I have to do?

By Mohib Zico staff 27 Aug 2016 at 9:31 a.m. CDT

Mohib Zico gravatar
>> when I run this command:sudo /etc/init.d/gluu-server-2.4.4 start gluu start currectly Can you please check apache log and oxtrust.log? See if there is any error there?

By Mohamad Taheri user 27 Aug 2016 at 9:35 a.m. CDT

Mohamad Taheri gravatar
No I can't, I cant login too gluu server, can I access too logs in other way?

By Michael Schwartz Account Admin 27 Aug 2016 at 9:41 a.m. CDT

Michael Schwartz gravatar
If the Gluu Server is not shut down properly, like any other linux system, it may be left in a bad state. You are saying that this fails: ``` service gluu-server-2.4.4 login ``` If that is failed, can you at least read the files in `/opt/gluu-server-2.4.4`? I wonder if it's an OpenDJ problem. That is the component most likely to be mad at you for a sudden crash.

By Mohamad Taheri user 28 Aug 2016 at 11:21 p.m. CDT

Mohamad Taheri gravatar
Yes I can read the files in `/opt/gluu-server-2.4.4`. which logs do you need?

By Mohamad Taheri user 29 Aug 2016 at 5:44 a.m. CDT

Mohamad Taheri gravatar
Please Help Me : (

By Mohib Zico staff 30 Aug 2016 at 4:12 a.m. CDT

Mohib Zico gravatar
>> which logs do you need? You can do these things: 1. Stop tomcat, opendj and apache. 2. Remove all logs. 3. Stop Gluu Server container. 4. Wait for couple of mins to give it some time to stop properly. 5. Start Gluu Server container. 6. Give it 10 mins to start all properly. 7. See if your Gluu Server is serving properly in browser or not. 8. If not, check all [logs](https://gluu.org/docs/gluu-defaults/logs/) for any kind of error.

By Mohamad Taheri user 30 Aug 2016 at 5:27 a.m. CDT

Mohamad Taheri gravatar
Stop Tomcat? I can't login to gluu server! I think it's better to remove gluu and install it again : (

By Mohib Zico staff 30 Aug 2016 at 6:19 a.m. CDT

Mohib Zico gravatar
>> Stop Tomcat? I can't login to gluu server! If I understand you correctly... you can't login to _Web UI_ of Gluu Server. But those steps we mentioned need _SSH access_ into your VM.

By Mohamad Taheri user 30 Aug 2016 at 7 a.m. CDT

Mohamad Taheri gravatar
Unfortunately you have misunderstood, I can't login to gluu Chroot Environment(`service gluu-server-2.4.4 login`) and also I can't reach gluu Web UI, Browser return "ERR_CONNECTION_REFUSED".

By Mohib Zico staff 30 Aug 2016 at 7:17 a.m. CDT

Mohib Zico gravatar
Oh.... that's really bad. You need to either restore chroot container or re-installation.

By Mohamad Taheri user 30 Aug 2016 at 7:21 a.m. CDT

Mohamad Taheri gravatar
restore chroot container? I don't know about that, Can I rescue my data?, Users,Groups, Clients, etc.

By Mohib Zico staff 30 Aug 2016 at 7:23 a.m. CDT

Mohib Zico gravatar
>> Can I rescue my data?, Users,Groups, Clients, etc. Depends on the condition. But for production... we *do* need to rescue anyhow. :)

By Mohamad Taheri user 30 Aug 2016 at 8:46 a.m. CDT

Mohamad Taheri gravatar
; )

By Mohamad Taheri user 20 Sep 2016 at 1:08 a.m. CDT

Mohamad Taheri gravatar
Hi, I test Gluu with Ubuntu 14.04 and 16.04. I have shut both servers down unexpectedly, the result was interesting, Gluu on Ubuntu 14.04 works perfectly but another gluu on ubuntu 16.04 doesn't work.(as I past days.) finally I decided to use Gluu on Ubuntu 14.04 :D (I think this is more robust)

By Mohib Zico staff 20 Sep 2016 at 1:19 a.m. CDT

Mohib Zico gravatar
Thanks a bunch for sharing your result, Taheri. Going to pass to the info to our QA team.

By Michael Schwartz Account Admin 20 Sep 2016 at 9:25 a.m. CDT

Michael Schwartz gravatar
If Gluu Server crashes, the LDAP server or the filesystem itself may be left in a bad state. This is actually true with any unix system. You need to make sure you have periodic backups so you can revert.

By Adrian Alves staff 20 Sep 2016 at 9:56 a.m. CDT

Adrian Alves gravatar
Hello Mohamad, the correct way to start ubuntu 16.04 service is this: "/etc/init.d/gluu-server-2.4.4 start" as root, if that wont work for you can you please send us the output of that command? Cheers, Adrian.-

By Mohamad Taheri user 20 Sep 2016 at 10:05 a.m. CDT

Mohamad Taheri gravatar
I describe error in previous tickets. Gluu tell me that it start correctly, but when I want to login, again Gluu tell me first start. It's true that we have to make backups but Gluu crash after any unexpected shutdown, but other services works fine. thanks for your amazing product :)

By Michael Schwartz Account Admin 20 Sep 2016 at 10:35 a.m. CDT

Michael Schwartz gravatar
yes, but Gluu is the only chroot container probably...