Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Kura » How to get the current status of the Kura from command line
How to get the current status of the Kura from command line [message #1758974] Tue, 04 April 2017 21:48 Go to next message
Fatih o. is currently offline Fatih o.Friend
Messages: 5
Registered: March 2017
Junior Member
Hello,

how to get the information whether Kura is started or stopped from the command line?

When I enter this;
pi@pi:$ sudo /etc/init.d/kura status 
.


the console only shows a period (.) I do not know if it is the correct way to look at the current "running" or "stopped" status of Kura.

Thank you in advance.
Re: How to get the current status of the Kura from command line [message #1758991 is a reply to message #1758974] Wed, 05 April 2017 05:52 Go to previous messageGo to next message
Said Ucar is currently offline Said UcarFriend
Messages: 56
Registered: June 2015
Member
Hello,

You can try;

sudo service kura status


-Said.
Re: How to get the current status of the Kura from command line [message #1759058 is a reply to message #1758991] Wed, 05 April 2017 16:12 Go to previous messageGo to next message
Fatih o. is currently offline Fatih o.Friend
Messages: 5
Registered: March 2017
Junior Member
Thank you for your answer.

I have entered what you said and the result is;

● kura.service - LSB: Kura initscript
   Loaded: loaded (/etc/init.d/kura)
   Active: active (running) since Thu 2017-03-30 07:18:07 CEST; 6 days ago
  Process: 595 ExecStart=/etc/init.d/kura start (code=exited, status=0/SUCCESS)
   CGroup: /system.slice/kura.service
           ├─1397 wpa_supplicant -B -D nl80211 -i wlan0 -c /etc/wpa_supplican...
           └─1408 dhclient -nw -lf /var/lib/dhclient/dhclient.wlan0.leases -p...

Mar 30 07:18:07 pi kura[595]: Starting Kura.
Mar 30 07:18:07 pi systemd[1]: Started LSB: Kura initscript.
Mar 30 07:18:35 pi dhclient[1408]: DHCPACK from 192.168.2.1
Mar 30 21:30:04 pi dhclient[1408]: bound to 192.168.2.101 -- renewal in 656...s.
Hint: Some lines were ellipsized, use -l to show in full.


Even if I could not connected to Kura Web UI and the Kura via Eclipse, the message above says in the third column, active (running) since ....

Two related questions;

1. What is active in the message above?

2. When I could not connect to Kura Web UI, what should be started?


Thank you in advance for your help.
Re: How to get the current status of the Kura from command line [message #1759066 is a reply to message #1759058] Wed, 05 April 2017 18:04 Go to previous messageGo to next message
David Woodard is currently offline David WoodardFriend
Messages: 420
Registered: July 2014
Senior Member
Hello,

If you just want to know if Kura is running, you can run the command recommended by Said. You can also run

ps aux | grep java


If you have multiple Java processes running, you can grep for the PID of Kura found in /var/run/kura.pid.

It looks like Kura is running on your system. If you are having trouble using Kura, check both log files (/var/log/kura-console.log and /var/log/kura.log) for errors. You should also check the 'ss' and 'ls' commands from the OSGi console to make sure all components are active.

Thanks,
--Dave
Re: How to get the current status of the Kura from command line [message #1759069 is a reply to message #1759066] Wed, 05 April 2017 19:51 Go to previous messageGo to next message
Fatih o. is currently offline Fatih o.Friend
Messages: 5
Registered: March 2017
Junior Member
Thanks for the answer but I still did not understand.

If the message says that the Kura is running, why could not I connect to Web UI (after I issued sudo /etc/init.d/kura start, I could connect again)?

[Updated on: Wed, 05 April 2017 20:06]

Report message to a moderator

Re: How to get the current status of the Kura from command line [message #1759591 is a reply to message #1759069] Thu, 13 April 2017 14:07 Go to previous message
David Woodard is currently offline David WoodardFriend
Messages: 420
Registered: July 2014
Senior Member
Hello,

Unfortunately I am not sure. One possibility is that you have multiple instances of Kura running. If Kura attempts to start along side an already running instance of Kura, the web bundle (Web UI) will not start because the HTTP port is in use. I would recommend restarting your device. Kura should start automatically.

Thanks,
--Dave
Previous Topic:de.dentrassi.kura.addons.milo in Kura RaspPi
Next Topic:Kura problem, Disconnect from cloud service
Goto Forum:
  


Current Time: Tue Apr 23 09:55:42 GMT 2024

Powered by FUDForum. Page generated in 0.03527 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top