NEWS
[gelöst] Hilfe: Nach js-controller Upgrade auf 1.4.2 startet iob nicht mehr
- 
					
					
					
					
 Hallo, habe eben das Upgrade des js-controller von 1.2.3 auf 1.4.2 gemacht. iobroker start stürzt nun ab! Wie kann ich das reparieren / zurücksetzen? !! ist mein Produktiv-System !! Danke Bernd ! Starting iobroker controller daemon… 
 ! /opt/iobroker/node_modules/daemonize2/lib/daemonize.js:136
 ! throw new Error(msg.error);
 ! ^
 ! Error: TypeError: Cannot set property DailyRotateFile of # <object>which has only a getter
 ! at Object. <anonymous>(/opt/iobroker/node_modules/winston-daily-rotate-file/index.js:184:36)
 ! at Module._compile (module.js:570:32)
 ! at Object.Module._extensions..js (module.js:579:10)
 ! at Module.load (module.js:487:32)
 ! at tryModuleLoad (module.js:446:12)
 ! at Function.Module._load (module.js:438:3)
 ! at Module.require (module.js:497:17)
 ! at require (internal/module.js:20:19)
 ! at Object. <anonymous>(/opt/iobroker/node_modules/iobroker.js-controller/lib/logger.js:7:23)
 ! at Module._compile (module.js:570:32)
 ! at ChildProcess. <anonymous>(/opt/iobroker/node_modules/daemonize2/lib/daemonize.js:136:19)
 ! at emitTwo (events.js:106:13)
 ! at ChildProcess.emit (events.js:191:7)
 ! at process.nextTick (internal/child_process.js:787:12)
 ! at _combinedTickCallback (internal/process/next_tick.js:73:7)
 ! at process._tickCallback (internal/process/next_tick.js:104:9)
 ! root@iobroker:/opt/iobroker#</anonymous></anonymous></anonymous></object>
- 
					
					
					
					
 @bku:iobroker start stürzt nun ab! ` Da stellt sich die Frage: 
 @bku:habe eben das Upgrade des js-controller von 1.2.3 auf 1.4.2 gemacht. ` 
 wie du das gemacht hast?So lange bleibt mir nur die üblichen Verdächtigen abzufragen? sonst noch was gemacht? iobroker vorher gestoppt? Raspi oder wasauchimmer danach neu gestartet? Gruß Rainer 
- 
					
					
					
					
 Wie in der Hilfe beschrieben: - 
stop 
- 
update 
- 
upgrade self 
- 
start 
 
- 
- 
					
					
					
					
 @bku:Wie kann ich das reparieren / zurücksetzen? ` 
 Image Backup ?
- 
					
					
					
					
 Hatte vorher nur - iobroker backup
 gemacht. Restore probiert, durchgelaufen aber auch 1.4.3 (statt vorher 1.2.3) 
- 
					
					
					
					
 Wie kann ich die 1.2.3 wieder drüber-installieren? 
- 
					
					
					
					
 bite erst einmal den RasPi oder wasauchimmer rebooten. 
- 
					
					
					
					
 Läuft auf Synology unter Docker. Neustart ohne Erfolg: ! root@iobroker:/# cd /opt/iobroker 
 ! root@iobroker:/opt/iobroker# ps uax
 ! USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
 ! root 1 0.0 0.0 4276 644 ? Ss 19:16 0:00 sh /opt/iobroker/startup.sh
 ! root 21 0.0 0.0 19848 2192 ? S 19:16 0:00 /bin/bash
 ! root 22 0.0 0.0 38292 1584 ? R+ 19:17 0:00 ps uax
 ! root@iobroker:/opt/iobroker# iobroker start
 ! Starting iobroker controller daemon…
 ! /opt/iobroker/node_modules/daemonize2/lib/daemonize.js:136
 ! throw new Error(msg.error);
 ! ^
 ! Error: TypeError: Cannot set property DailyRotateFile of # <object>which has only a getter
 ! at Object. <anonymous>(/opt/iobroker/node_modules/winston-daily-rotate-file/index.js:184:36)
 ! at Module._compile (module.js:570:32)
 ! at Object.Module._extensions..js (module.js:579:10)
 ! at Module.load (module.js:487:32)
 ! at tryModuleLoad (module.js:446:12)
 ! at Function.Module._load (module.js:438:3)
 ! at Module.require (module.js:497:17)
 ! at require (internal/module.js:20:19)
 ! at Object. <anonymous>(/opt/iobroker/node_modules/iobroker.js-controller/lib/logger.js:7:23)
 ! at Module._compile (module.js:570:32)
 ! at ChildProcess. <anonymous>(/opt/iobroker/node_modules/daemonize2/lib/daemonize.js:136:19)
 ! at emitTwo (events.js:106:13)
 ! at ChildProcess.emit (events.js:191:7)
 ! at process.nextTick (internal/child_process.js:787:12)
 ! at _combinedTickCallback (internal/process/next_tick.js:73:7)
 ! at process._tickCallback (internal/process/next_tick.js:104:9)
 ! r</anonymous></anonymous></anonymous></object>
- 
					
					
					
					
 Nochmal intalliert: ! root@iobroker:/opt/iobroker# npm install iobroker.js-controller 
 ! npm WARN lifecycle iobroker.js-controller@1.4.2~preinstall: cannot run in wd %s %s (wd=%s) iobroker.js-controller@1.4.2 node lib/preinstall_ch
 ! eck.js /opt/iobroker/node_modules/.staging/iobroker.js-controller-a76002ca
 ! > iobroker.js-controller@1.4.2 install /opt/iobroker/node_modules/iobroker.js-controller
 ! > node iobroker.js setup first
 ! iobroker.core@0.1.0 /opt/iobroker
 ! └─┬ iobroker.js-controller@1.4.2
 ! └── UNMET PEER DEPENDENCY winston@2.4.3
 ! npm WARN winston-daily-rotate-file@1.7.2 requires a peer of winston@2.x but none was installed.
 ! root@iobroker:/opt/iobroker# iobroker start
 ! Starting iobroker controller daemon…
 ! /opt/iobroker/node_modules/daemonize2/lib/daemonize.js:136
 ! throw new Error(msg.error);
 ! ^
 ! Error: TypeError: Cannot set property DailyRotateFile of # <object>which has only a getter
 ! at Object. <anonymous>(/opt/iobroker/node_modules/winston-daily-rotate-file/index.js:184:36)
 ! at Module._compile (module.js:570:32)
 ! at Object.Module._extensions..js (module.js:579:10)
 ! at Module.load (module.js:487:32)
 ! at tryModuleLoad (module.js:446:12)
 ! at Function.Module._load (module.js:438:3)
 ! at Module.require (module.js:497:17)
 ! at require (internal/module.js:20:19)
 ! at Object. <anonymous>(/opt/iobroker/node_modules/iobroker.js-controller/lib/logger.js:7:23)
 ! at Module._compile (module.js:570:32)
 ! at ChildProcess. <anonymous>(/opt/iobroker/node_modules/daemonize2/lib/daemonize.js:136:19)
 ! at emitTwo (events.js:106:13)
 ! at ChildProcess.emit (events.js:191:7)
 ! at process.nextTick (internal/child_process.js:787:12)
 ! at _combinedTickCallback (internal/process/next_tick.js:73:7)
 ! at process._tickCallback (internal/process/next_tick.js:104:9)
 ! r</anonymous></anonymous></anonymous></object>
- 
					
					
					
					
 cd /opt/iobroker npm install winston@2
- 
					
					
					
					
 cd /opt/iobroker npm install winston@2 ```` `DANKE - das wars. Läuft wieder. Gruß Bernd 
 
		
	 
		
	 
			
		 
			
		