Abend,
da mir ein Cubietruck zu teuer war habe ich ein Armbian und anschließend fhem nach Anleitung (http://www.fhemwiki.de/wiki/Cubieboard_3) auf ein Banana Pro geworfen.
Liegt noch auf der µSD, verschieben kann ichs ja noch wenn es denn mal funktioniert.
Log:
2016.04.08 20:22:14 1: Including fhem.cfg
2016.04.08 20:22:14 3: telnetPort: port 7072 opened
2016.04.08 20:22:14 3: WEB: port 8083 opened
2016.04.08 20:22:14 3: WEBphone: port 8084 opened
2016.04.08 20:22:14 3: WEBtablet: port 8085 opened
2016.04.08 20:22:14 2: eventTypes: loaded 0 events from ./log/eventTypes.txt
2016.04.08 20:22:14 1: Including ./log/fhem.save
2016.04.08 20:22:14 1: usb create starting
2016.04.08 20:22:15 1: usb create end
ps:
PID TTY TIME CMD
2427 pts/0 00:00:00 bash
2547 pts/0 00:00:00 ps
laut htop läuft aber
perl fhem.pl fhem.cfg
Wo kann ich auf der Suche nach dem Fehler noch nachgucken?
Mach mal
ps ax
Ist das webfrontend nicht zu erreichen?
Was sagt netstate
ps ax:
PID TTY STAT TIME COMMAND
1 ? Ss 0:03 init [2]
2 ? S 0:00 [kthreadd]
3 ? S 0:00 [ksoftirqd/0]
6 ? S 0:00 [migration/0]
7 ? S 0:00 [migration/1]
8 ? S 0:00 [kworker/1:0]
9 ? S 0:00 [ksoftirqd/1]
10 ? S< 0:00 [cpuset]
11 ? S< 0:00 [khelper]
12 ? S 0:00 [kdevtmpfs]
13 ? S< 0:00 [netns]
14 ? S 0:00 [sync_supers]
15 ? S 0:00 [bdi-default]
16 ? S< 0:00 [kintegrityd]
17 ? S< 0:00 [crypto]
18 ? S< 0:00 [kblockd]
19 ? S 0:00 [khubd]
20 ? S< 0:00 [cpufreq_uevent]
21 ? S 0:00 [kworker/1:1]
22 ? S< 0:00 [cfg80211]
24 ? S< 0:00 [rpciod]
25 ? S 0:00 [khungtaskd]
26 ? S 0:00 [kswapd0]
27 ? SN 0:00 [ksmd]
28 ? S 0:00 [fsnotify_mark]
29 ? S 0:00 [ecryptfs-kthrea]
30 ? S< 0:00 [nfsiod]
31 ? S< 0:00 [cifsiod]
32 ? S 0:00 [jfsIO]
33 ? S 0:00 [jfsCommit]
34 ? S 0:00 [jfsCommit]
35 ? S 0:00 [jfsSync]
36 ? S< 0:00 [xfsalloc]
37 ? S< 0:00 [xfs_mru_cache]
38 ? S< 0:00 [xfslogd]
52 ? S 0:00 [scsi_eh_0]
53 ? S 0:00 [kworker/u:1]
54 ? S< 0:00 [sun7i-spi.0]
55 ? S< 0:00 [bond0]
56 ? S 0:00 [kworker/u:2]
63 ? S< 0:00 [kmpathd]
64 ? S< 0:00 [kmpath_handlerd]
65 ? S 0:11 [cfinteractive]
66 ? S< 0:00 [binder]
67 ? S< 0:00 [codec_resume]
68 ? S 0:03 [hdmi proc]
69 ? S< 0:00 [deferwq]
70 ? S 0:00 [mmcqd/0]
71 ? S 0:00 [jbd2/mmcblk0p1-]
72 ? S< 0:00 [ext4-dio-unwrit]
186 ? Ss 0:00 udevd --daemon
589 ? S< 0:00 [krfcommd]
1705 ? S 0:00 udevd --daemon
1707 ? S 0:00 udevd --daemon
1952 ? Sl 0:00 /usr/sbin/rsyslogd -c5
2012 ? Ss 0:00 /usr/sbin/acpid
2036 ? Ss 0:00 /usr/sbin/cron
2046 ? Ss 0:00 /usr/bin/dbus-daemon --system
2101 ? Ss 0:02 /usr/sbin/haveged -w 1024
2123 ? Ss 0:00 /usr/sbin/bluetoothd
2162 ? Ss 0:01 /usr/sbin/ntpd -p /var/run/ntpd.pid -g -u 103:108
2232 ? Ss 0:00 /usr/sbin/lircd --driver=devinput --device=/dev/input/event1
2291 ? Ss 0:00 /usr/sbin/sshd
2341 tty1 Ss+ 0:00 /sbin/getty --noclear 38400 tty1
2342 tty2 Ss+ 0:00 /sbin/getty 38400 tty2
2343 tty3 Ss+ 0:00 /sbin/getty 38400 tty3
2344 tty4 Ss+ 0:00 /sbin/getty 38400 tty4
2345 ttyS0 Ss+ 0:00 /sbin/getty -L ttyS0 115200 vt100
2351 ? Ss 0:02 sshd: root@pts/0
2427 pts/0 Ss 0:00 -bash
2502 pts/0 S 0:00 perl fhem.pl fhem.cfg
2517 ? S 0:00 [kworker/0:1]
2562 ? S 0:00 [kworker/0:0]
2563 ? S 0:00 [kworker/0:2]
2564 pts/0 R+ 0:00 ps ax
netstat:
Active Internet connections (w/o servers)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 304 .:ssh T430.fritz.box:50069 ESTABLISHED
Active UNIX domain sockets (w/o servers)
Proto RefCnt Flags Type State I-Node Path
unix 8 [ ] DGRAM 4291 /dev/log
unix 2 [ ] DGRAM 4593
unix 2 [ ] DGRAM 4473
unix 2 [ ] DGRAM 3263
unix 3 [ ] STREAM CONNECTED 3244 /var/run/dbus/system_bus_socket
unix 3 [ ] STREAM CONNECTED 3243
unix 2 [ ] DGRAM 4389
unix 2 [ ] DGRAM 3230
unix 3 [ ] STREAM CONNECTED 4348
unix 3 [ ] STREAM CONNECTED 4347
unix 2 [ ] DGRAM 4331
unix 3 [ ] DGRAM 274
unix 3 [ ] DGRAM 273
Frontend ist nicht erreichbar, laut Fing auf meinem Handy antwortet nur der ssh-Port.
Ok, sorry
Ich meinte
netstat -nlp
Dein ps ax sieht gut aus
Danke schon mal für die Antworten!
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:7072 0.0.0.0:* LISTEN 2502/perl
tcp 0 0 0.0.0.0:8083 0.0.0.0:* LISTEN 2502/perl
tcp 0 0 0.0.0.0:8084 0.0.0.0:* LISTEN 2502/perl
tcp 0 0 0.0.0.0:8085 0.0.0.0:* LISTEN 2502/perl
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 2291/sshd
tcp6 0 0 :::22 :::* LISTEN 2291/sshd
udp 0 0 192.168.178.210:123 0.0.0.0:* 2162/ntpd
udp 0 0 127.0.0.1:123 0.0.0.0:* 2162/ntpd
udp 0 0 0.0.0.0:123 0.0.0.0:* 2162/ntpd
udp6 0 0 fe80::8e:7ff:fe01:4:123 :::* 2162/ntpd
udp6 0 0 ::1:123 :::* 2162/ntpd
udp6 0 0 :::123 :::* 2162/ntpd
Active UNIX domain sockets (only servers)
Proto RefCnt Flags Type State I-Node PID/Program name Path
unix 2 [ ACC ] STREAM LISTENING 4471 2232/lircd /var/run/lirc/lircd
unix 2 [ ACC ] STREAM LISTENING 3211 2046/dbus-daemon /var/run/dbus/system_bus_socket
unix 2 [ ACC ] STREAM LISTENING 3248 2123/bluetoothd /var/run/sdp
unix 2 [ ACC ] SEQPACKET LISTENING 1463 186/udevd /run/udev/control
unix 2 [ ACC ] STREAM LISTENING 4334 2012/acpid /var/run/acpid.socket
Ich sollte noch erwähnen dass ich die Kiste per /etc/network/interfaces auf eine feste IP eingestellt habe (unrhetorische Frage: gibts nen besseren Weg?)
Sehe da erstmal keine Probleme. Passt alles so weit.
Es so ein zu richten ist ok. Mach mal bitte ein ifconfig und ein route.
Ausserdem versuche mal vom Pi ein telnet localhost 8083 und wenn es da keine Probleme gibt machst Du von einem anderen PC aus ein telnet ip-banana-pi 8083
Grüße
ifconfig:
eth0 Link encap:Ethernet HWaddr 02:8e:07:01:4c:22
inet addr:192.168.178.210 Bcast:192.168.178.255 Mask:255.255.255.0
inet6 addr: fe80::8e:7ff:fe01:4c22/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:31516 errors:0 dropped:7 overruns:0 frame:0
TX packets:11676 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:3516905 (3.3 MiB) TX bytes:1275788 (1.2 MiB)
Interrupt:117
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
route:
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
default fritz.box 0.0.0.0 UG 0 0 0 eth0
192.168.178.0 * 255.255.255.0 U 0 0 0 eth0
ZitatAusserdem versuche mal vom Pi ein telnet localhost 8083 und wenn es da keine Probleme gibt machst Du von einem anderen PC aus ein telnet ip-banana-pi 8083
Du meinst dass ich via ssh darauf zugreife?
Das mache ich die ganze Zeit von meinem Laptop aus und funktioniert problemlos, ich habe keinen Fernseher und mein Behelfs-HMDI-Monitor hat ein Kabel von 5cm (Lapdock), das würde ein ziemlicher Veitstanz ;)
Zitat von: Erdschluss am 08 April 2016, 23:22:47
ifconfig:
eth0 Link encap:Ethernet HWaddr 02:8e:07:01:4c:22
inet addr:192.168.178.210 Bcast:192.168.178.255 Mask:255.255.255.0
inet6 addr: fe80::8e:7ff:fe01:4c22/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:31516 errors:0 dropped:7 overruns:0 frame:0
TX packets:11676 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:3516905 (3.3 MiB) TX bytes:1275788 (1.2 MiB)
Interrupt:117
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
route:
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
default fritz.box 0.0.0.0 UG 0 0 0 eth0
192.168.178.0 * 255.255.255.0 U 0 0 0 eth0
Du meinst dass ich via ssh darauf zugreife?
Das mache ich die ganze Zeit von meinem Laptop aus und funktioniert problemlos, ich habe keinen Fernseher und mein Behelfs-HMDI-Monitor hat ein Kabel von 5cm (Lapdock), das würde ein ziemlicher Veitstanz ;)
Nein Du sollst per telnet prüfen ob hinter dem Port 8083 ein Dienst läuft. Also erstmal direkt auf den Pi gehen und telnet localhost 8083 machen wenn das geht machst du es von einem anderen rechner aus zum pi
localhost:
telnet localhost 8083
Trying ::1...
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
HTTP/1.1 302 Found
Content-Length: 0
Location: /fhem
von einem anderen aus:
HTTP/1.1 302 Found
Content-Length: 0
Location: /fhem
also ich sehe das jetzt kein problem.
und wenn du in einem browser ein gibst
http://192.168.178.210:8083/fhem
dann kommt nichts? hast du noch irgendwelche geräte mit dran dann zieh die mal ab. und deaktiviere in der fhem.cfg bitte mal
# Disable this to avoid looking for new USB devices on startup
define initialUsbCheck notify global:INITIALIZED usb create
Das ist eine ganz frische Installation.
Jetzt funktionierts in der Tat, seltsam :D
Danke für den Beistand ;)
Du könntest auch mal nachsehen ob die IP welche fhem verwendet vom Router schon für ein anderes Gerät verwendet wird. Hatte ich schon das fhem auf dem Webif nicht erreichbar war weil sich eine Spielconsole die IP geschnappt hat.
VG
Frank