我正在尝试使用Kura example,但是我遇到了一些错误,它对我来说无法正常工作。我正在使用预安装Java 1.8.0_65的Raspberry Pi 2 B +。
基本上,当使用[sudo dpkg -i kura_1.4.0_raspberry-pi-2_installer.deb]或(例如'kura_1.3.0')安装Kura时,dpkg抱怨缺少某些依赖项,因此失败,因此,我使用[sudo apt-get install -f]自动下载它们。问题是,当后面的命令运行时,它会中断[isc-dhcp-server]并使其在重新启动Raspberry Pi时失败,“并且将RPI的IP地址改为静态地址。”
此外,在访问Kura的网站以安装IoT温室软件包时,我遇到了无法修复的怪异内部错误(日志附在描述的结尾!)。现象是这样发生的:
首先,导航到“屏幕左侧”的“服务”部分中的[MqttDataTransport],并将broker-url更改为[mqtt://iot.eclipse.org:1883 /],然后将[ [从DataService部分将connect.auto-on-startup]设置为true,Kura在Connect上遇到内部服务器错误,并且不允许我继续“即保持断开连接”状态。
此外,当尝试在“软件包”部分的“安装/升级”部分中安装[http://iot.eclipse.org/java/demo/org.eclipse.greenhouse.iot-0.1.0.dp]软件包时,它表示文件已成功下载,但其中未显示任何内容;该区域显示“未安装软件包”,甚至在RPI文件夹中找不到文件。反过来,Greenhouse Publisher在“服务”部分中未按预期显示。
我不知道该教程是否有效!我检查了太多次连接。所以我认为问题出在另一个地方。
您能以某种方式帮助我吗? 非常感谢您的宝贵时间。
其他信息:
isc-dhcp服务器的状态:
$ sudo服务isc-dhcp-server状态
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文件内容:
$ 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
远程登录到iot.eclipse.org:
$ telnet iot.eclipse.org 1883
Trying 198.41.30.241...
Connected to iot.eclipse.org.
Escape character is '^]'
库拉日志:
[a] kura.log [b] kura-console.log
在旁注:另外,我还按照其他教程介绍如何在RPI上安装Kura,例如[http://www.opensourcerers.org/installing-and-running-eclipse-kura-on-a-raspberry-pi-b-model-1/] [http://eclipse.github.io/kura/intro/raspberry-pi-quick-start.html],据他们说,他们要求清除dhcpcd5并删除网络管理器,然后安装Kura;而根据主要的tutorial,它会在不删除/清除dhcpcd5 /网络管理器设置的情况下安装Kura。我俩都很累,但是问题仍然存在。
非常感谢,如果需要其他信息,请告诉我。期待你的回复。莫哈卜(Mohab)