Page 1 of 2

[Solved] Unimus is active but i cannot open web interface?

Posted: Wed Nov 30, 2016 3:50 pm
by Stefan
Hey, my esix suddenly shut down recently, and when i started my VM where i have ubuntu and unimus installed, i cannot open it on web interface anymore, i can ping ip all fine. Is there any troubleshooting guide for that ? I have put lot of devices there and i need to have access to them and to add more in future.

Thanks

Re: Unimus is active but i cannot open web interface?

Posted: Wed Nov 30, 2016 4:01 pm
by Tomas
I would start with some basic debugging commands:

If running as .jar:

Code: Select all

ps aux | egrep '[Uu]nimus'
ps aux | grep java
netstat -na | grep 8085
If running in Tomcat:

Code: Select all

ps aux | egrep '[Tt]omcat'
ps aux | grep java
netstat -na | grep 8080
That should tell you if Unimus is running, and if its actually listening on its web port.
How does the output of those look like?

Re: Unimus is active but i cannot open web interface?

Posted: Wed Nov 30, 2016 4:12 pm
by Stefan
Tomas wrote:I would start with some basic debugging commands:

If running as .jar:

Code: Select all

ps aux | egrep '[Uu]nimus'
ps aux | grep java
netstat -na | grep 8085
If running in Tomcat:

Code: Select all

ps aux | egrep '[Tt]omcat'
ps aux | grep java
netstat -na | grep 8080
That should tell you if Unimus is running, and if its actually listening on its web port.
How does the output of those look like?

Re: Unimus is active but i cannot open web interface?

Posted: Wed Nov 30, 2016 4:20 pm
by Tomas
It seems Unimus is not actually running.
You have to run it with 'java -jar Unimus.jar'.

UPDATE:
We have an installer which will help install in Ubuntu/Debian:
https://wiki.unimus.net/pages/viewpage. ... eId=950330

Re: Unimus is active but i cannot open web interface?

Posted: Wed Nov 30, 2016 4:41 pm
by Stefan
Tomas wrote:It seems Unimus is not actually running.
You have to run it with 'java -jar Unimus.jar'.
ah i see, i was wondering if that could be made auto start if server reboots it self.

Still the same after running ( java -jar Unimus.jar ) web interface is not operational

Re: Unimus is active but i cannot open web interface?

Posted: Wed Nov 30, 2016 5:08 pm
by Tomas
What did it say in console when you ran it?
Did it properly start?

I recommend running Unimus in screen:

Code: Select all

screen -md 'java -jar Unimus.jar'
List all active screens

Code: Select all

screen -ls
You can then connect to the screen by

Code: Select all

screen -r
To disconnect from the screen

Code: Select all

Control+a
d
This will keep Unimus running in a screen instance, so even when you disconnect from the Linux, it will still work.
This means you can SSH into the and/or disconnect from the SSH at any time, but to get back to Unimus, just do 'screen -r'.

Just make sure to not close it inside the screen session :)

Re: Unimus is active but i cannot open web interface?

Posted: Wed Nov 30, 2016 5:22 pm
by Stefan
ah i see, so i manage to attach it but seems like webinterface is not working still .. wired

Re: Unimus is active but i cannot open web interface?

Posted: Wed Nov 30, 2016 5:26 pm
by Tomas
From the output of 'netstat -na | grep 8085' we see that Unimus is not listening on its web-port, it means it didnt start successfuly.

Try to run 'java -jar Unimus.jar' in your main shell.
It should start logging to the console, and it should tell you why it failed to start.

Please post the logs of the startup here.

Re: Unimus is active but i cannot open web interface?

Posted: Wed Nov 30, 2016 6:01 pm
by Stefan
These are some warring i could catch, i try rebooting VM and starting unimus again only with java -jar Unimus.jar but still the same. Nothing is listening on 8085 port as well, i wouldn't like to reinstall it as i have around 50 devices added already ..

Re: Unimus is active but i cannot open web interface?

Posted: Wed Nov 30, 2016 6:16 pm
by Tomas
Error is related to permission issues on the HSQL database files.

I see you are running Unimus as the 'unimus' user.
Any chance you were running it as root previously?

Try 'sudo java -jar Unimus.jar' - or just 'sudo su' to switch to root and then run it normally.