NEWS
RPI & Nginx & Ports
-
die inMem Server scheinen zu laufen auf den 9000ern
` > root@testserver:~# netstat -lnptuActive Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 2180/nginx
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 2123/sshd
tcp 0 0 0.0.0.0:443 0.0.0.0:* LISTEN 2180/nginx
tcp 0 0 0.0.0.0:9000 0.0.0.0:* LISTEN 23295/io.js-control
tcp 0 0 0.0.0.0:9001 0.0.0.0:* LISTEN 23295/io.js-control
tcp 0 0 127.0.0.1:3306 0.0.0.0:* LISTEN 2549/mysqld
udp 0 0 0.0.0.0:68 0.0.0.0:* 1984/dhcpcd
udp 0 0 192.168.0.23:123 0.0.0.0:* 2039/ntpd
udp 0 0 0.0.0.0:123 0.0.0.0:* 2039/ntpd
udp 0 0 0.0.0.0:5353 0.0.0.0:* 2098/avahi-daemon:
udp 0 0 0.0.0.0:56664 0.0.0.0:* 2098/avahi-daemon:
> sudo iobroker stopbeendet sie> root@testserver:/opt/iobroker# sudo node node_modules/iobroker.js-controller/controller.js2015-08-04 20:57:08.628 - info: host.testserver ioBroker.js-controller version 0.7.5 js-controller starting
2015-08-04 20:57:08.640 - info: host.testserver Copyright © 2014-2015 bluefox, hobbyquaker
2015-08-04 20:57:08.642 - info: host.testserver hostname: testserver
2015-08-04 20:57:08.644 - info: host.testserver ip addresses: 192.168.0.23
2015-08-04 20:57:08.695 - info: inMem-states listening on port 9000
2015-08-04 20:57:08.743 - info: inMem-objects listening on port 9001
2015-08-04 20:57:08.755 - info: host.testserver InMemoryDB connected
2015-08-04 20:57:08.777 - info: host.testserver 2 instances found
2015-08-04 20:57:08.780 - info: host.testserver starting 2 instances
2015-08-04 20:57:08.870 - info: host.testserver instance system.adapter.admin.0 started with pid 8798
2015-08-04 20:57:12.801 - info: host.testserver instance system.adapter.admin.1 started with pid 8836
2015-08-04 20:57:18.474 - error: admin.0 no connection to objects DB
2015-08-04 20:57:22.397 - error: admin.1 no connection to objects DB `
danach sind sie im netstat auch wieder sichtbar -
Habe jetzt noch mal versucht zu installieren und es hat geklappt. `
auf nem PI? mit Raspberian?vielleicht irgendwas an den apt-gets die ich installiert hab (oder auch nicht)?
hab jetzt keinen Bock mehr.
schreibe mir grad nen neues Raspberian auf die SD-Karte und versuche es auf na sauberen Installation
-
mir ist gerade was aufgefallen.
Die Anleitung bei GIT unterscheidet zwischen zwei node-downloads.
iobroker.net nicht
` > Node.js (Node.js version >= 0.8, including npm)Debian package for ARM (Raspbian, Cubian, …) `
ich habe die erste Version von ioBroker.net verwendet -
OK, here is the Issue.
um den PI "headless" zu betreiben ist es üblich die X11 Komponenten zu entfernt.
apt-get -y purge x11-commondazu gehören die folgenden. Sobald die weg sind, geht ioBroker nicht mehr.
` > cups-bsd cups-client esound-common fonts-droid fonts-roboto ghostscript libaudiofile1 libaudit0libcupsimage2 libcwiid1 libdirectfb-1.2-9 libesd0 libfile-copy-recursive-perl libgs9 libgs9-common
libijs-0.35 libjbig2dec0 libmad0 libmikmod2 libpaper-utils libpaper1 libpciaccess0 libpoppler19
libportmidi0 libqt4-network libruby1.9.1 libsclang1 libscsynth1 libts-0.0-0 libvorbisfile3 libxfce4util-bin
libxfce4util-common libxfce4util4 libxfconf-0-2 libxkbfile1 libxp6 libyaml-0-2 poppler-data poppler-utils
pypy-upstream-doc ruby1.9.1 supercollider supercollider-common supercollider-server tcl8.4 tcl8.5 tk8.4
tsconf update-inetd xfce-keyboard-shortcuts xfconf
> blt* epiphany-browser* gsfonts-x11* gstreamer1.0-plugins-bad* gvfs* gvfs-backends* gvfs-daemons* gvfs-fuse*idle* idle-python2.7* idle-python3.2* idle3* lesstif2* libaudio2* libfluidsynth1* libice6*
liblightdm-gobject-1-0* libobrender27* libpulse0* libqscintilla2-8* libqt4-svg* libqtgui4* libqtwebkit4*
libsdl-image1.2* libsdl-mixer1.2* libsdl-ttf2.0-0* libsdl1.2debian* libsm6* libsmpeg0* libwebkitgtk-3.0-0*
libxaw7* libxfce4ui-1-0* libxklavier16* libxmu6* libxss1* libxt6* libxtst6* libzbar0* lightdm*
lightdm-gtk-greeter* lxde* lxde-core* obconf* openbox* oracle-java8-jdk* pipanel* pistore* pypy-setuptools*
pypy-upstream* pypy-upstream-dev* python-pygame* python-tk* python3-pygame* python3-tk* qjackctl*
raspberrypi-net-mods* raspberrypi-ui-mods* sonic-pi* timidity* tk8.5* wolfram-engine* wpagui* x11-common*
x11-utils* x11-xkb-utils* x11-xserver-utils* x2x* xfce4-mixer* xfonts-encodings* xfonts-utils* xinit* xpdf*
xserver-common* xserver-xorg* xserver-xorg-core* xserver-xorg-input-all* xserver-xorg-input-evdev*
xserver-xorg-input-synaptics* xserver-xorg-video-fbdev* xserver-xorg-video-fbturbo* zenity* `
Hast Du eine Idee welcher Teil das Problem darstellen könnte?
-
Habe jetzt auf pi2 aufgerufen:
sudo apt-get -y purge x11-common cd /opt/iobroker sudo iobroker startund es geht.
Probier mal beim gestoppten ioBroker:
cd /opt/iobroker sudo node node_modules/iobroker.js-controller/controller.jsWas kommt da?
Bei mir:
pi@raspberrypi /opt/iobroker $ sudo node node_modules/iobroker.js-controller/controller.js 2015-08-05 21:30:12.753 - info: host.raspberrypi ioBroker.js-controller version 0.7.3 js-controller starting 2015-08-05 21:30:12.766 - info: host.raspberrypi Copyright (c) 2014-2015 bluefox, hobbyquaker 2015-08-05 21:30:12.769 - info: host.raspberrypi hostname: raspberrypi 2015-08-05 21:30:12.770 - info: host.raspberrypi ip addresses: 192.168.1.86 2015-08-05 21:30:12.822 - info: inMem-states listening on port 9000 2015-08-05 21:30:12.868 - info: inMem-objects listening on port 9001 2015-08-05 21:30:12.880 - info: host.raspberrypi InMemoryDB connected 2015-08-05 21:30:12.900 - info: host.raspberrypi 1 instance found 2015-08-05 21:30:12.903 - info: host.raspberrypi starting 1 instance 2015-08-05 21:30:12.996 - info: host.raspberrypi instance system.adapter.admin.0 started with pid 25986 2015-08-05 21:30:18.016 - info: admin.0 starting. Version 0.5.6 in /opt/iobroker/node_modules/iobroker.admin 2015-08-05 21:30:18.146 - info: admin.0 requesting all states 2015-08-05 21:30:18.150 - info: admin.0 requesting all objects 2015-08-05 21:30:18.155 - info: admin.0 http server listening on port 8081 2015-08-05 21:30:18.156 - info: admin.0 Use link "http://localhost:8081" to configure. 2015-08-05 21:30:18.246 - info: admin.0 received all objects 2015-08-05 21:30:18.252 - info: admin.0 received all states 2015-08-05 21:30:32.134 - info: host.raspberrypi Update repository "default" under "conf/sources-dist.json" -
interessant.
bei mir Back to the Roots
` > pi@raspberrypi /opt/iobroker $ sudo node node_modules/iobroker.js-controller/controller.js2015-08-05 20:50:25.141 - info: host.raspberrypi ioBroker.js-controller version 0.7.5 js-controller starting
2015-08-05 20:50:25.153 - info: host.raspberrypi Copyright © 2014-2015 bluefox, hobbyquaker
2015-08-05 20:50:25.155 - info: host.raspberrypi hostname: raspberrypi
2015-08-05 20:50:25.156 - info: host.raspberrypi ip addresses: 192.168.0.23
2015-08-05 20:50:25.211 - info: inMem-states listening on port 9000
2015-08-05 20:50:25.346 - info: inMem-objects listening on port 9001
2015-08-05 20:50:25.358 - info: host.raspberrypi InMemoryDB connected
2015-08-05 20:50:25.383 - info: host.raspberrypi 8 instances found
2015-08-05 20:50:25.386 - info: host.raspberrypi starting 6 instances
2015-08-05 20:50:25.481 - info: host.raspberrypi instance system.adapter.admin.0 started with pid 14207
2015-08-05 20:50:29.408 - info: host.raspberrypi instance system.adapter.hm-rpc.0 started with pid 14245
2015-08-05 20:50:33.408 - info: host.raspberrypi instance system.adapter.web.0 started with pid 14283
****2015-08-05 20:50:35.108 - error: admin.0 no connection to objects DB
2015-08-05 20:50:36.145 - error: hm-rpc.0 no connection to objects DB
2015-08-05 20:50:40.585 - error: web.0 no connection to objects DB
2015-08-05 20:50:44.011 - error: vis.0 no connection to objects DB****
2015-08-05 20:50:45.402 - info: host.raspberrypi instance system.adapter.history.0 started with pid 14411
2015-08-05 20:50:51.975 - error: history.0 no connection to objects DB `
hast Du nen Reboot nach dem purge gemacht?
auch auf dem neuen kernel?
Linux raspberrypi 4.0.9-v7+ #807ich habe oben einen Fehler gemacht.
ich habe auch "sonic-pi" entfernt und oben nicht gepostet.
Dieser Teil ist für die ganzen Removes verantwortlich. Wenn ich "sonic-pi" wieder installiere, klappt es aber trotzdem nicht.
-
ich gebe langsam auf.
habe ein weiteres neues Image geschrieben.
apt-get -y update && apt-get -y upgrade && apt-get -y autoremovenode & iobroker installiert
=>funktioniert
apt-get -y purge x11-common=>funktioniert
reboot -h=> bekannter Fehler. geht nicht mehr.
Irgend was aus dem X11 Package fehlt ihm :-(
Hey! Du scheinst an dieser Unterhaltung interessiert zu sein, hast aber noch kein Konto.
Hast du es satt, bei jedem Besuch durch die gleichen Beiträge zu scrollen? Wenn du dich für ein Konto anmeldest, kommst du immer genau dorthin zurück, wo du zuvor warst, und kannst dich über neue Antworten benachrichtigen lassen (entweder per E-Mail oder Push-Benachrichtigung). Du kannst auch Lesezeichen speichern und Beiträge positiv bewerten, um anderen Community-Mitgliedern deine Wertschätzung zu zeigen.
Mit deinem Input könnte dieser Beitrag noch besser werden 💗
Registrieren Anmelden