NEWS
Autostart funktioniert nicht
-
Hallo zusammen,
ich bin die letzten Tage von einem Raspberry auf eine VM mit Ubunto 16.04 umgestiegen. Die Installation lief sauber durch und hatte auch beim Backup einspielen nur kleinere Probleme mit yahka die aber jetzt gelöst sind und auch dieser sauber startet, wenn Iobroker gestartet ist.
Ich hab schon ein bisschen was ausprobiert und zwar sagt mir
systemctl status -l iobroker.service
! iobroker@iobroker-qnap:~$ systemctl status -l iobroker.service
! ● iobroker.service - LSB: starts ioBroker
! Loaded: loaded (/etc/init.d/iobroker.sh; bad; vendor preset: enabled)
! Active: active (exited) since Sa 2018-01-27 13:11:35 CET; 53min left
! Docs: man:systemd-sysv-generator(8)
! Process: 990 ExecStart=/etc/init.d/iobroker.sh start (code=exited, status=0/SU
! Jan 27 13:11:30 iobroker-qnap systemd[1]: Starting LSB: starts ioBroker…
! Jan 27 13:11:30 iobroker-qnap sudo[991]: root : TTY=unknown ; PWD=/ ; USER=i
! Jan 27 13:11:30 iobroker-qnap sudo[991]: pam_unix(sudo:session): session opened
! Jan 27 13:11:35 iobroker-qnap iobroker.sh[990]: Starting ioBrokerStarting iobrok
! Jan 27 13:11:35 iobroker-qnap iobroker.sh[990]: iobroker controller daemon faile
! Jan 27 13:11:35 iobroker-qnap iobroker.sh[990]: Error: Failed to write pidfile (
! Jan 27 13:11:35 iobroker-qnap sudo[991]: pam_unix(sudo:session): session closed
! Jan 27 13:11:35 iobroker-qnap systemd[1]: Started LSB: starts ioBroker.Dann dachte ich in der suderos steht vielleicht was mit requiretty das war auch ein Tipp aber da hab ich auch nix gefunden. auch in der iobroker.sh hat eine Pfadänderung mit /local/ nichts gebracht.
Auch ein chmod 777 auf iobroker hat auch nichts gebracht.
Jetzt bin ich leider ratlos.
Vielleicht könnt ihr mir noch helfen…
Gruß
-
startet iobroker wen ndu nur
/etc/init.d/iobroker.sh
ausführst ??
-
Nein leider nicht iobroker controller daemon failed to start: Failed to write pidfile (EACCES)
Error: Failed to write pidfile (EACCES)
-
Nachdem dies ein Rechte problem war habe ich jetzt nochmal sudo chmod -R 777 /opt/iobroker gemacht. jetzt startet der Iobroker sauber durch. Aber irgendwo habe ich immer noch ein Rechte Problem weil nun mein Amazon Dash Adapter nicht mehr funktioniert…
! amazon-dash.0 2018-01-27 13:02:25.295 info cleaned everything up…
! amazon-dash.0 2018-01-27 13:02:25.294 error at Socket.onack (/opt/iobroker/node_modules/iobroker.js-controller/node_modules/socket.io-client/lib/socket.js:312:9)
! amazon-dash.0 2018-01-27 13:02:25.294 error at Socket. (/opt/iobroker/node_modules/iobroker.js-controller/lib/adapter.js:710:25)
! amazon-dash.0 2018-01-27 13:02:25.294 error at initAdapter (/opt/iobroker/node_modules/iobroker.js-controller/lib/adapter.js:4659:18)
! amazon-dash.0 2018-01-27 13:02:25.294 error at Adapter.emit (events.js:166:7)
! amazon-dash.0 2018-01-27 13:02:25.294 error at emitNone (events.js:67:13)
! amazon-dash.0 2018-01-27 13:02:25.294 error at Adapter. (/opt/iobroker/node_modules/iobroker.amazon-dash/main.js:39:5)
! amazon-dash.0 2018-01-27 13:02:25.294 error at main (/opt/iobroker/node_modules/iobroker.amazon-dash/main.js:75:29)
! amazon-dash.0 2018-01-27 13:02:25.294 error at Object.exports.createSession (/opt/iobroker/node_modules/iobroker.amazon-dash/node_modules/pcap/pcap.js:123:12)
! amazon-dash.0 2018-01-27 13:02:25.294 error at new PcapSession (/opt/iobroker/node_modules/iobroker.amazon-dash/node_modules/pcap/pcap.js:49:39)
! amazon-dash.0 2018-01-27 13:02:25.294 error at Error (native)
! amazon-dash.0 2018-01-27 13:02:25.294 error Error: socket: Operation not permitted
! amazon-dash.0 2018-01-27 13:02:25.287 error uncaught exception: socket: Operation not permittedMh aber das ist jetzt das kleine Übel