Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Kapua » Kura doesn't work properly on Raspberry Pi
Kura doesn't work properly on Raspberry Pi [message #1792198] Thu, 12 July 2018 14:05
Mohab Aly is currently offline Mohab AlyFriend
Messages: 5
Registered: July 2018
Junior Member
Description of the issue I am encountering in Kura:
Every time when trying to connect to Kura via Raspberry pi "after following the tutorial steps", internal error occurs!.

Textual description of the issue:

- Component affected:
- [ ] 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 (paste the result of **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

- [ ] Eclipse Kura Marketplace
- [ ] Kura Website
- [ ] Kura Documentation: iot.eclipse.org/java/tutorial

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

- Textual description of the issue:

I'm trying to get to work with the Kura (iot.eclipse.org/java/tutorial) example, 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 `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! 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.

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]

On a side note: Also I followed other tutorials on how to install Kura on RPI
[1] www.opensourcerers.org/installing-and-running-eclipse-kura-on-a-raspberry-pi-b-model-1/
[2] eclipse.github.io/kura/intro/raspberry-pi-quick-start.html

According to them, 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
Previous Topic:Data visualisation of Kapua devices
Next Topic:Unable to start kapua again after reboot
Goto Forum:
  


Current Time: Sat Nov 17 21:18:37 GMT 2018

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

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

Back to the top