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

Unimus support forum
Stefan
Posts: 10
Joined: Wed Jul 27, 2016 4:15 pm

Wed Nov 30, 2016 3:50 pm

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
User avatar
Tomas
Posts: 1220
Joined: Sat Jun 25, 2016 12:33 pm

Wed Nov 30, 2016 4:01 pm

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?
Stefan
Posts: 10
Joined: Wed Jul 27, 2016 4:15 pm

Wed Nov 30, 2016 4:12 pm

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?
Attachments
unimus.jpg
unimus.jpg (166.64 KiB) Viewed 11018 times
User avatar
Tomas
Posts: 1220
Joined: Sat Jun 25, 2016 12:33 pm

Wed Nov 30, 2016 4:20 pm

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
Stefan
Posts: 10
Joined: Wed Jul 27, 2016 4:15 pm

Wed Nov 30, 2016 4:41 pm

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
User avatar
Tomas
Posts: 1220
Joined: Sat Jun 25, 2016 12:33 pm

Wed Nov 30, 2016 5:08 pm

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 :)
Stefan
Posts: 10
Joined: Wed Jul 27, 2016 4:15 pm

Wed Nov 30, 2016 5:22 pm

ah i see, so i manage to attach it but seems like webinterface is not working still .. wired
Attachments
uniimus.jpg
uniimus.jpg (252.74 KiB) Viewed 11002 times
User avatar
Tomas
Posts: 1220
Joined: Sat Jun 25, 2016 12:33 pm

Wed Nov 30, 2016 5:26 pm

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.
Stefan
Posts: 10
Joined: Wed Jul 27, 2016 4:15 pm

Wed Nov 30, 2016 6:01 pm

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 ..
Attachments
un2.jpg
un2.jpg (188.19 KiB) Viewed 10996 times
un1.jpg
un1.jpg (204.29 KiB) Viewed 10996 times
User avatar
Tomas
Posts: 1220
Joined: Sat Jun 25, 2016 12:33 pm

Wed Nov 30, 2016 6:16 pm

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.
Post Reply