NEWS
[ Gelöst ] js.controller Upgrade mach Probleme
- 
					
					
					
					
 Hallo in die Runde, ich habe ein gut laufendes bisher fehlerfreien IoBroker am laufen und wollte nun den js.controller upgraden. 
 Leider bekomme ich da Fehlermeldungen, welche ich auch nach forschen hier im Forum nicht wirklich deuten kann.
 Wie im Code zu sehen sollte sich die Fehlermeldung auf IoBroker im node_moduls Verzeichniss beziehen, nur da gibt es dieses Verzeichniss nicht.
 Etwas änhliches hatte ich schon Probiert mit npm rebuilt, hat aber nichts gebracht.
 Und ans löschen von Dateien habe ich mich noch nicht getraut. root@raspberrypi:~# nodejs -v v10.18.1 root@raspberrypi:~# npm -v 6.14.0 root@raspberrypi:~# iobroker stop root@raspberrypi:~# iobroker upgrade self Update js-controller from @2.1.1 to @2.2.9 NPM version: 6.14.0 npm install iobroker.js-controller@2.2.9 --unsafe-perm --loglevel error --prefix "/opt/iobroker" (System call) npm ERR! code ELOOP npm ERR! syscall access npm ERR! path /opt/iobroker/node_modules/iobroker npm ERR! errno -40 npm ERR! ELOOP: too many symbolic links encountered, access '/opt/iobroker/node_modules/iobroker' npm ERR! A complete log of this run can be found in: npm ERR! /home/iobroker/.npm/_logs/2020-02-28T16_47_19_378Z-debug.log host.raspberrypi Cannot install iobroker.js-controller@2.2.9: 216 root@raspberrypi:~#Siehe Code - wie bekomme ich die aktuelle Version aufgespielt ? 
 Für eine kurzanleitung wäre ich Dankbar.
- 
					
					
					
					
 @schroeder1 
 Versuch das mal im IOBroker Verzeichnis und nicht im root.
- 
					
					
					
					
 @Jan1 braucht man doch normal nicht, dachte ich, ausser man hat nicht mit dem Installationscript installiert. 
 @schroeder1 dir fehlt dasiobroker updatevor dem upgrade
- 
					
					
					
					
 @Jan1 Hatte ich auch schon gemacht, das gleiche Ergebniss. root@raspberrypi:~# iobroker stop root@raspberrypi:~# cd /opt/iobroker root@raspberrypi:/opt/iobroker# iobroker upgrade self Update js-controller from @2.1.1 to @2.2.9 NPM version: 6.14.0 npm install iobroker.js-controller@2.2.9 --unsafe-perm --loglevel error --prefix "/opt/iobroker" (System call) npm ERR! code ELOOP npm ERR! syscall access npm ERR! path /opt/iobroker/node_modules/iobroker npm ERR! errno -40 npm ERR! ELOOP: too many symbolic links encountered, access '/opt/iobroker/node_modules/iobroker' npm ERR! A complete log of this run can be found in: npm ERR! /home/iobroker/.npm/_logs/2020-02-28T17_06_52_866Z-debug.log host.raspberrypi Cannot install iobroker.js-controller@2.2.9: 216 root@raspberrypi:/opt/iobroker#Das update hatte ich schon vorher gemacht, dann upgrade.. 
- 
					
					
					
					
 @crunchip 
 War eben mein erster Gedanke.
 Ich bin da eben bei Copy&Paste und dann läuft das 
- 
					
					
					
					
 @Jan1 
 Bin schon seit Tagen am suchen noch einer Lösung, noch läuft ja alles super.
 Aber man möchte ja gerne auf dem neuesten Stand bleiben. 
- 
					
					
					
					
 @schroeder1 
 Anscheinend bist das nicht, so wie @crunchip schreibt.
- 
					
					
					
					
 @schroeder1 vllt mal so probieren 
 ins Verzeichnis /opt/iobroker
 iobroker stop
 prüfen
 ps auxww|grep iosudo -H -u iobroker npm install iobroker.js-controller
- 
					
					
					
					
 @schroeder1 sagte in js.controller Upgrade mach Probleme: gerne auf dem neuesten Stand bleiben wie siehts mit node.js aus? 
- 
					
					
					
					
 @crunchip 
 hier die aktuellen Daten:
 Plattform: linux
 Die Architektur: arm
 CPUs: 4
 Geschwindigkeit: 1500 MHz
 Modell: ARMv7 Processor rev 3 (v7l)
 RAM: 3.8 GB
 System-Betriebszeit: 1 T. 23:37:15
 Node.js: v10.18.1
 NPM: 6.14.0
 Datenträgergröße: 29.0 GiB
 Datenträger verfügbar: 25.3 GiB
 Adapter-Anzahl: 269
 Betriebszeit: 01:21:39
 Aktive Instanzen: 11root@raspberrypi:~# iobroker stop root@raspberrypi:~# cd /opt/iobroker root@raspberrypi:/opt/iobroker# ps auxww|grep io root 12 0.0 0.0 0 0 ? S Feb26 0:00 [migration/0] root 15 0.0 0.0 0 0 ? S Feb26 0:00 [migration/1] root 20 0.0 0.0 0 0 ? S Feb26 0:00 [migration/2] root 25 0.0 0.0 0 0 ? S Feb26 0:00 [migration/3] root 42 0.0 0.0 0 0 ? I< Feb26 0:00 [rpciod] root 44 0.0 0.0 0 0 ? I< Feb26 0:00 [xprtiod] root 48 0.0 0.0 0 0 ? I< Feb26 0:00 [nfsiod] root 64 0.0 0.0 0 0 ? I< Feb26 0:00 [DWC Notificatio] root 328 0.1 0.5 63216 20844 ? Ssl Feb26 4:47 /usr/bin/python /usr/local/bin/meyectl startserver -c /etc/motioneye/motioneye.conf message+ 358 0.0 0.0 6736 3680 ? Ss Feb26 0:00 /usr/bin/dbus-daemon --system --address=systemd: --nofork --nopidfile --systemd-activation --syslog-only root 496 96.9 2.5 519644 102652 ? SLl Feb26 2771:47 /usr/bin/motion -n -c /etc/motioneye/motion.conf -d 5 root 575 0.0 0.3 35300 12532 ? S Feb26 0:00 /usr/bin/python /usr/local/bin/meyectl startserver -c /etc/motioneye/motioneye.conf root 5674 0.0 0.2 55116 11872 ? Sl Feb26 0:03 /usr/bin/lxsession -s LXDE-pi -e LXDE root 5712 0.0 0.0 6544 3352 ? Ss Feb26 0:00 /usr/bin/dbus-daemon --session --address=systemd: --nofork --nopidfile --systemd-activation --syslog-only root 5780 0.0 0.0 4488 288 ? Ss Feb26 0:00 /usr/bin/ssh-agent x-session-manager root 5902 0.0 0.1 30624 4876 ? Sl Feb26 0:00 /usr/lib/at-spi2-core/at-spi2-registryd --use-gnome-session root 30500 0.0 0.0 7360 540 pts/0 S+ 19:41 0:00 grep io root@raspberrypi:/opt/iobroker#sudo -H -u iobroker npm install iobroker.js-controller 
 probiere ich jetzt aus...
- 
					
					
					
					
 damit dann dieses.. root@raspberrypi:/opt/iobroker# sudo -H -u iobroker npm install iobroker.js-controller npm WARN deprecated circular-json@0.3.3: CircularJSON is in maintenance only, flatted is its successor. npm WARN checkPermissions Missing write access to /opt/iobroker/node_modules/iobroker npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@~2.1.2 (node_modules/chokidar/node_modules/fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.1.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"arm"}) npm WARN ajv-keywords@2.1.1 requires a peer of ajv@^5.0.0 but none is installed. You must install peer dependencies yourself. npm ERR! code ELOOP npm ERR! syscall access npm ERR! path /opt/iobroker/node_modules/iobroker npm ERR! errno -40 npm ERR! ELOOP: too many symbolic links encountered, access '/opt/iobroker/node_modules/iobroker' npm ERR! A complete log of this run can be found in: npm ERR! /home/iobroker/.npm/_logs/2020-02-28T18_44_12_606Z-debug.log root@raspberrypi:/opt/iobroker#
- 
					
					
					
					
 @schroeder1 sagte in js.controller Upgrade mach Probleme: Node.js: v10.18.1 
 NPM: 6.14.0aktuelle node.js Version wäre 10.19 
 npm ist schon eine neue version, vllt hat es damit etwas zu tunim zweifel vllt mal das /home/iobroker/.npm/_logs/2020-02-28T18_44_12_606Z-debug.logansehen
 ansonsten bin ich da leider auch überfragt
- 
					
					
					
					
 @crunchip 
 hier mal das log..
 2020-02-28T18_44_12_606Z-debug.logeventuell sollte ich mal diese Anleitung abarbeiten: 
 node.js richtig updaten
- 
					
					
					
					
 @schroeder1 v10.x hast du ja schon drauf, ein update auf 10.19 sollte mit einem 
 apt update
 apt upgrade
 ausreichen
- 
					
					
					
					
 @crunchip 
 sorry, apt update und apt upgrade haben nicht zum ergebniss geführt.aber node.js richtig updaten 
 ab Punkt 4.c hat geholfen root@raspberrypi:~# iobroker stop root@raspberrypi:~# iobroker upgrade self Host "raspberrypi" is up to date. root@raspberrypi:~#Besten Dank für Deine Hilfe  
- 
					
					
					
					
 @schroeder1 na dann is wieder alles im Lot  
 
		
	 
		
	