Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Kura » Kura doesn't work properly on Raspberry Pi
Kura doesn't work properly on Raspberry Pi [message #1792214] Thu, 12 July 2018 16:44 Go to next message
Mohab Aly is currently offline Mohab AlyFriend
Messages: 5
Registered: July 2018
Junior Member
Hi,

Internal error occurs every time when trying to connect to Kura via Raspberry Pi.

Distribution:
Installer name (e.g. kura_3.1.0_raspberry-pi-2-3_installer.deb): kura_1.4.0_raspberry-pi-2_installer.deb (also kura_1.3.0_raspberry-pi-2_installer.deb)
Platform (e.g. Raspberry pi 2): Raspberry pi 2 B+
Kura version affected (e.g. Kura 3.1.0): Kura 1.4.0 (also Kura 1.3.0)
Java version (result of the java -version:
java version "1.8.0_65"
Java(TM) SE Runtime Environment (build 1.8.0_65-b17)
Java HotSpot(TM) Client VM (build 25.65-b01, mixed mode)
Host OS (e.g. Debian): Raspbian GNU/Linux 9 (stretch)
Host OS version: 9 (stretch)

Development environment:
Version: 9 (stretch)
Operating system (Mac OS, Windows, Linux): Linux
OS Version: 9 (stretch)
IDE Version: 9
Host System Java Version: 1.8.0_65

Kura Documentation: https://iot.eclipse.org/java/tutorial

If needed to replicate the issue, the browser used:
Name: Chromium
Version: 65.0.3325.181 (official Build) Built on Raspbian, running on Raspbian 9.4 (32-bit)

I'm trying to get to work with the Kura example "listed above", but I have some errors and it doesn't work for me properly. As stated above, I am using Raspberry PI 2 B+ with Java 1.8.0_65 preinstalled.

Basically, when installing Kura using the
sudo dpkg -I kura_1.4.0_raspberry-pi-2_installer.deb
or ('kura_1.3.0' for example), the dpkg complains about missing some dependencies and fails, hence, I used the
sudo apt-get install -f
to download them automatically. The thing is when the later command runs, it breaks the
 isc-dhcp-server
and makes it fail on the reboot of the Raspberry Pi "plus the RPI's IP address got changed to a static one instead".

Furthermore, when accessing Kura's website to install the IoT greenhouse package, I encounter weird internal error that I am not able to fix (logs are attached at the end of the description!). Here is how the phenomenon happens:

First, navigating to the MqttDataTransport in the Services section "on the left hand side of the screen" and changing the broker-url to mqtt://iot.eclipse.org:1883/ and setting the connect.auto-on-startup to true from the DataService section, Kura encounters internal server error on Connect and doesn't let me to proceed "i.e., remains disconnected".

Moreover, when trying to install the greenhouse iot
http://iot.eclipse.org/java/demo/org.eclipse.greenhouse.iot-0.1.0.dp
package in the "install/upgrade" part in the "Packages section", it says that the file was successfully downloaded, but nothing is shown in there; the area says "no packages installed" and even no file(s) is/are found in the RPI folders. In turn, the Greenhouse Publisher didn't show up as expected in the "Service section".

I don't know whether the tutorial is working properly! I checked the connections too many times. So i think the problem is in another place.

Could you help me in some way?
Thank you so much for your time and help. That's greatly appreciated.

Additional information:

The status of the isc-dhcp-server:

$ sudo service isc-dhcp-server status

isc-dhcp-server.service - LSB: DHCP server
Loaded: loaded (/etc/init.d/isc-dhcp-server; generated; vendor present: enabled)
Active: failed (Result: exit-code) since wed 2018-07-11 11:55:20 EDT; 5h 51min ago
Docs: man:system-sysv-generator(8)
Process: 625 ExecStart=/etc/init.d/isc-dhcp-server start (code=exited, status=1/FAILURE)
Jul 11 11:55:14 raspberrypi system[1]: Starting LSB: DHCP server...
Jul 11 11:55:17 raspberrypi isc-dhcp-server[625]: Launching both IPv4 and IPv6 servers (please configure INTERFACES in /etc/default/isc-dhcp-server if you only want one or the other).
Jul 11 11:55:18 raspberrypi dhcp[674]: Wrote 0 leases to leases file.
Jul 11 11:55:20 raspberrypi dhcp[674]:
Jul 11 11:55:20 raspberrypi isc-dhcp-server[625]: Starting ISCDHCPv4 server: dhcpcheck syslog for diagnostics. ... failed!
Jul 11 11:55:20 raspberrypi isc-dhcp-server[625]: failed!
Jul 11 11:55:20 raspberrypi system[1]: isc-dhcp-server.service: Control process exited, code=exited status=1
Jul 11 11:55:20 raspberrypi system[1]: Failed to start LSB: DHCP server.
Jul 11 11:55:20 raspberrypi system[1]: isc-dhcp-server.service: Unit entered failed state.
Jul 11 11:55:20 raspberrypi system[1]: isc-dhcp-server.service: Failed with result 'exit-code'.


/etc/network/interfaces file contents:

$ sudo vi /etc/network/interfaces

# /etc/network/interfaces -- configuration file for ifup(8), if down(8)

# The loopback interface
auto lo
iface lo inet static
address 127.0.0.1
netmask 255.0.0.0

# Wired or wireless interfaces
auto eth0
iface eth0 inet dhcp

auto wlan0 
iface wlan0 inet static
address 172.16.1.1
netmask 255.255.255.0


$ ifconfig

eth0: flags=4163<UP, BROADCAST, RUNNING, MULTICAST> mtu 1500
inet 132.207.28.227 netmask 255.255.255.0 broadcast 132.207.28.255
inet6 fe80::ba27:ebff:fe9c:e18a prefixlen 64 scopeid 0x20<link>
ether b8:27:eb:9c:e1:8a txqueuelen 1000 (Ethernet)
RX packets 41260 bytes 10561442 (10.0 MiB)
RX errors 0 dropped 400 overruns 0 frame 0
TX packets 3878 bytes 468255 (457.2 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

lo: flags=73<UP, LOOPBACK, RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 : :1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1000 (Local loopback)
RX packets 3434 bytes 7217826 (6.8 MiB)
RX errors 0 dropped 400 overruns 0 frame 0
TX packets 3878 bytes 7217826 (6.8 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0


$ telnet iot.eclipse.org 1883

Trying 198.41.30.241...
Connected to iot.eclipse.org.
Escape character is '^]'


Kura logs: [attached]
1. kura.log
2. kura-console.log

In other tutorials on how to install Kura on RPI; some times they ask to purge dhcpcd5 and remove network manager first then install Kura; whereas according to the main tutorial, it installs Kura without removing/purging dhcpcd5/network manager settings. I tired both, but still the issue persists.

Thank you so much, and please let me know if additional pieces of information are needed. Looking forward to your reply. Mohab

  • Attachment: kura.log
    (Size: 160.03KB, Downloaded 169 times)
  • Attachment: kura-console.log
    (Size: 51.69KB, Downloaded 132 times)
Re: Kura doesn't work properly on Raspberry Pi [message #1793931 is a reply to message #1792214] Mon, 20 August 2018 16:34 Go to previous messageGo to next message
Shivappa Hugar is currently offline Shivappa HugarFriend
Messages: 1
Registered: August 2018
Junior Member
I am also facing same issue
Re: Kura doesn't work properly on Raspberry Pi [message #1794134 is a reply to message #1793931] Fri, 24 August 2018 08:34 Go to previous message
Matteo Maiero is currently offline Matteo MaieroFriend
Messages: 423
Registered: July 2015
Location: Italy
Senior Member
Hi Shivappa.
could you detail better what is the issue you are facing?
If you take a look at the following issue https://github.com/eclipse/kura/issues/2157 you may find more details on what exposed by Mohab.

Best regards,
Matteo
Previous Topic:Kura REST API URL
Next Topic:Wrong Deployment Package URL sent by DeploymentAgentService
Goto Forum:
  


Current Time: Thu Apr 25 22:11:30 GMT 2024

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

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

Back to the top