NEWS
Admin Seite funktioniert nach Admin update nicht mehr
-
Hey,
ich habe vorhin mal das neue Admin update gemacht. Dabei ist der Iobroker wohl ausgegangen und ich komme über die ip nicht mehr auf die Admin Seite. Die Vis Seiten funktionieren und Steuern kann ich auch alles normal. Auch der Vis Editor geht noch. Ich habe auch in der Fritzbox geschaut ob mein Pi 3b noch die gleiche IP hat und das hat er. Über Putty komme ich auch drauf und habe auch schon updates gemacht.
Weiß evtl schon jemand woran das liegen kann? Welche Infos braucht ihr evtl noch?
Grüße
-
-
@Glasfaser Danke habe es hin bekommen. Wie bekomme ich das neuste node.js update? Also die v12? Habe diesen Befehl gefunden:
curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -
sudo apt-get install -y nodejsFür die v12 soll man einfach statt der 10 die 12 eingeben, das klappt bei mir leider nicht.
-
cd /opt/iobroker iobroker stop curl -sL https://deb.nodesource.com/setup_12.x | bash - apt install -y nodejs npm rebuild
ich hoffe du hast es nicht vorher vermurkst !
-
@Glasfaser
Stattapt install -y nodejs
würde ich ein
sudo apt upgrade
empfehlen. Installiert ist nodejs ja schon, jetzt soll auf die höhere Version upgegradet werden.
-
Da ist ja die große Frage .... was er vorher an Copy&Paste da reingeballert hat !!
-
@Glasfaser
Okay, ein upgrade setzt ein sauberes Setup bzgl. der Vorversion voraus. -
Und das denke ich mal nicht , weil er so komische Befehle reingeballert hat !
da bin ich Vorsichtig !
-
@Glasfaser
Mit geb0rkter Vorinstallation funktioniert alles über apt aber auch nicht mehr sauber. -
Dann warten wir mal .... was noch kommt .
ohne Grund wird wohl der Admin nicht mehr aktiv gewesen sein nach dem Update !
-
@Hermanito33 sagte in Admin Seite funktioniert nach Admin update nicht mehr:
mein Pi 3b
Bevor du alles UptoDate machst ... wieviel Instanzen hast du laufen !?
-
@Glasfaser ```
Also ich habe das mal durchlaufen lassen. Ich glaube ich habe mein ganzen Iobroker sowieso schon vermurkst mit den ganzen befehlen die ich schon reingehauen habe. Müsste eigentlich mal komplett neu installieren. Aktuell laufen 19 Instanzen, ich habe mir aber nen Raspberry pi 4 mit 4GB bestellt.pi@ioBroker-Pi:~ $ cd /opt/iobroker pi@ioBroker-Pi:/opt/iobroker $ pi@ioBroker-Pi:/opt/iobroker $ iobroker stop pi@ioBroker-Pi:/opt/iobroker $ curl -sL https://deb.nodesource.com/setup_12.x | bash - ## Installing the NodeSource Node.js 12.x repo... ## Populating apt-get cache... + apt-get update Paketlisten werden gelesen... Fertig W: chmod 0700 of directory /var/lib/apt/lists/partial failed - SetupAPTPartialDi rectory (1: Die Operation ist nicht erlaubt) E: Sperrdatei /var/lib/apt/lists/lock konnte nicht geöffnet werden. - open (13: Keine Berechtigung) E: Das Verzeichnis /var/lib/apt/lists/ kann nicht gesperrt werden. W: Problem beim Entfernen (unlink) der Datei /var/cache/apt/pkgcache.bin - Remov eCaches (13: Keine Berechtigung) W: Problem beim Entfernen (unlink) der Datei /var/cache/apt/srcpkgcache.bin - Re moveCaches (13: Keine Berechtigung) Error executing command, exiting pi@ioBroker-Pi:/opt/iobroker $ apt install -y nodejs E: Sperrdatei /var/lib/dpkg/lock konnte nicht geöffnet werden. - open (13: Keine Berechtigung) E: Sperren des Administrationsverzeichnisses (/var/lib/dpkg/) nicht möglich, sin d Sie root? pi@ioBroker-Pi:/opt/iobroker $ npm rebuild > iobroker@2.0.2 install /opt/iobroker/node_modules/iobroker > node lib/checkVersions.js NPM version: 6.14.4 > iobroker@2.0.2 postinstall /opt/iobroker/node_modules/iobroker > node lib/install.js lib/install.js is not being run as part of an installation - skipping... > @abandonware/noble@1.9.2-5 install /opt/iobroker/node_modules/@abandonware/nob le > node-gyp rebuild make: Verzeichnis „/opt/iobroker/node_modules/@abandonware/noble/build“ wird bet reten SOLINK_MODULE(target) Release/obj.target/noble.node COPY Release/noble.node make: Verzeichnis „/opt/iobroker/node_modules/@abandonware/noble/build“ wird ver lassen > @serialport/bindings@2.0.8 install /opt/iobroker/node_modules/@serialport/bind ings > prebuild-install --tag-prefix @serialport/bindings@ || node-gyp rebuild prebuild-install WARN install No prebuilt binaries found (target=12.16.3 runtime =node arch=arm libc= platform=linux) make: Verzeichnis „/opt/iobroker/node_modules/@serialport/bindings/build“ wird b etreten CXX(target) Release/obj.target/bindings/src/serialport.o ../src/serialport.cpp: In function ‘void EIO_AfterGet(uv_work_t*)’: ../src/serialport.cpp:329:96: warning: ‘bool v8::Object::Set(v8::Local<v8::Value >, v8::Local<v8::Value>)’ is deprecated: Use maybe version [-Wdeprecated-declara tions] an::New<v8::String>("cts").ToLocalChecked(), Nan::New<v8::Boolean>(data->cts)); ^ In file included from /home/iobroker/.cache/node-gyp/12.16.3/include/node/v8-int ernal.h:14:0, from /home/iobroker/.cache/node-gyp/12.16.3/include/node/v8.h:2 7, from /home/iobroker/.cache/node-gyp/12.16.3/include/node/node.h :67, from ../../../nan/nan.h:54, from ../src/./serialport.h:6, from ../src/serialport.cpp:1: /home/iobroker/.cache/node-gyp/12.16.3/include/node/v8.h:3499:22: note: declared here bool Set(Local<Value> key, Local<Value> value)); ^ /home/iobroker/.cache/node-gyp/12.16.3/include/node/v8config.h:328:3: note: in d efinition of macro ‘V8_DEPRECATED’ declarator __attribute__((deprecated(message))) ^~~~~~~~~~ ../src/serialport.cpp:330:96: warning: ‘bool v8::Object::Set(v8::Local<v8::Value >, v8::Local<v8::Value>)’ is deprecated: Use maybe version [-Wdeprecated-declara tions] an::New<v8::String>("dsr").ToLocalChecked(), Nan::New<v8::Boolean>(data->dsr)); ^ In file included from /home/iobroker/.cache/node-gyp/12.16.3/include/node/v8-int ernal.h:14:0, from /home/iobroker/.cache/node-gyp/12.16.3/include/node/v8.h:2 7, from /home/iobroker/.cache/node-gyp/12.16.3/include/node/node.h :67, from ../../../nan/nan.h:54, from ../src/./serialport.h:6, from ../src/serialport.cpp:1: /home/iobroker/.cache/node-gyp/12.16.3/include/node/v8.h:3499:22: note: declared here bool Set(Local<Value> key, Local<Value> value)); ^ /home/iobroker/.cache/node-gyp/12.16.3/include/node/v8config.h:328:3: note: in d efinition of macro ‘V8_DEPRECATED’ declarator __attribute__((deprecated(message))) ^~~~~~~~~~ ../src/serialport.cpp:331:96: warning: ‘bool v8::Object::Set(v8::Local<v8::Value >, v8::Local<v8::Value>)’ is deprecated: Use maybe version [-Wdeprecated-declara tions] an::New<v8::String>("dcd").ToLocalChecked(), Nan::New<v8::Boolean>(data->dcd)); ^ In file included from /home/iobroker/.cache/node-gyp/12.16.3/include/node/v8-int ernal.h:14:0, from /home/iobroker/.cache/node-gyp/12.16.3/include/node/v8.h:2 7, from /home/iobroker/.cache/node-gyp/12.16.3/include/node/node.h :67, from ../../../nan/nan.h:54, from ../src/./serialport.h:6, from ../src/serialport.cpp:1: /home/iobroker/.cache/node-gyp/12.16.3/include/node/v8.h:3499:22: note: declared here bool Set(Local<Value> key, Local<Value> value)); ^ /home/iobroker/.cache/node-gyp/12.16.3/include/node/v8config.h:328:3: note: in d efinition of macro ‘V8_DEPRECATED’ declarator __attribute__((deprecated(message))) ^~~~~~~~~~ ../src/serialport.cpp: In function ‘void EIO_AfterGetBaudRate(uv_work_t*)’: ../src/serialport.cpp:378:106: warning: ‘bool v8::Object::Set(v8::Local<v8::Valu e>, v8::Local<v8::Value>)’ is deprecated: Use maybe version [-Wdeprecated-declar ations] ::String>("baudRate").ToLocalChecked(), Nan::New<v8::Integer>(data->baudRate)); ^ In file included from /home/iobroker/.cache/node-gyp/12.16.3/include/node/v8-int ernal.h:14:0, from /home/iobroker/.cache/node-gyp/12.16.3/include/node/v8.h:2 7, from /home/iobroker/.cache/node-gyp/12.16.3/include/node/node.h :67, from ../../../nan/nan.h:54, from ../src/./serialport.h:6, from ../src/serialport.cpp:1: /home/iobroker/.cache/node-gyp/12.16.3/include/node/v8.h:3499:22: note: declared here bool Set(Local<Value> key, Local<Value> value)); ^ /home/iobroker/.cache/node-gyp/12.16.3/include/node/v8config.h:328:3: note: in d efinition of macro ‘V8_DEPRECATED’ declarator __attribute__((deprecated(message))) ^~~~~~~~~~ CXX(target) Release/obj.target/bindings/src/serialport_unix.o CXX(target) Release/obj.target/bindings/src/poller.o CXX(target) Release/obj.target/bindings/src/serialport_linux.o SOLINK_MODULE(target) Release/obj.target/bindings.node COPY Release/bindings.node make: Verzeichnis „/opt/iobroker/node_modules/@serialport/bindings/build“ wird v erlassen > iobroker.javascript@4.5.1 postinstall /opt/iobroker/node_modules/iobroker.java script > node ./install/installTypings.js Installing NodeJS typings... latest @types: 14, installed node: 12 > iobroker.js-controller@2.2.10 preinstall /opt/iobroker/node_modules/iobroker.j s-controller > node lib/preinstallCheck.js NPM version: 6.14.4 > iobroker.js-controller@2.2.10 install /opt/iobroker/node_modules/iobroker.js-c ontroller > node iobroker.js setup first The following notifications happened during sync: - Ignoring Directory "daswetter.admin" because officially not created as meta ob ject. Please remove directory! - Ignoring Directory "habpanel" because officially not created as meta object. P lease remove directory! - Ignoring Directory "habpanel.admin" because officially not created as meta obj ect. Please remove directory! - Ignoring Directory "iogo.admin" because officially not created as meta object. Please remove directory! - Ignoring Directory "kodi" because officially not created as meta object. Pleas e remove directory! - Ignoring Directory "kodi.admin" because officially not created as meta object. Please remove directory! > ws@0.6.5 install /opt/iobroker/node_modules/websocket-stream/node_modules/ws > (node-gyp rebuild 2> builderror.log) || (exit 0) make: Verzeichnis „/opt/iobroker/node_modules/websocket-stream/node_modules/ws/b uild“ wird betreten CXX(target) Release/obj.target/bufferutil/src/bufferutil.o bufferutil.target.mk:111: die Regel für Ziel „Release/obj.target/bufferutil/src/ bufferutil.o“ scheiterte make: Verzeichnis „/opt/iobroker/node_modules/websocket-stream/node_modules/ws/b uild“ wird verlassen > ws@0.7.0 install /opt/iobroker/node_modules/create-stream-server/node_modules/ ws > (node-gyp rebuild 2> builderror.log) || (exit 0) make: Verzeichnis „/opt/iobroker/node_modules/create-stream-server/node_modules/ ws/build“ wird betreten CXX(target) Release/obj.target/bufferutil/src/bufferutil.o bufferutil.target.mk:111: die Regel für Ziel „Release/obj.target/bufferutil/src/ bufferutil.o“ scheiterte make: Verzeichnis „/opt/iobroker/node_modules/create-stream-server/node_modules/ ws/build“ wird verlassen > raw-socket@1.7.0 install /opt/iobroker/node_modules/iobroker.radar2/node_modul es/raw-socket > node-gyp rebuild make: Verzeichnis „/opt/iobroker/node_modules/iobroker.radar2/node_modules/raw-s ocket/build“ wird betreten CXX(target) Release/obj.target/raw/src/raw.o SOLINK_MODULE(target) Release/obj.target/raw.node COPY Release/raw.node make: Verzeichnis „/opt/iobroker/node_modules/iobroker.radar2/node_modules/raw-s ocket/build“ wird verlassen > usb@1.6.1 install /opt/iobroker/node_modules/iobroker.radar2/node_modules/usb > prebuild-install --verbose || node-gyp rebuild prebuild-install info begin Prebuild-install version 5.3.3 prebuild-install info looking for cached prebuild @ /home/iobroker/.npm/_prebuil ds/86d719-usb-v1.6.1-node-v72-linux-arm.tar.gz prebuild-install http request GET https://github.com/tessel/node-usb/releases/do wnload/v1.6.1/usb-v1.6.1-node-v72-linux-arm.tar.gz prebuild-install http 404 https://github.com/tessel/node-usb/releases/download/v 1.6.1/usb-v1.6.1-node-v72-linux-arm.tar.gz prebuild-install WARN install No prebuilt binaries found (target=12.16.3 runtime =node arch=arm libc= platform=linux) make: Verzeichnis „/opt/iobroker/node_modules/iobroker.radar2/node_modules/usb/b uild“ wird betreten CC(target) Release/obj.target/libusb/libusb/libusb/core.o CC(target) Release/obj.target/libusb/libusb/libusb/descriptor.o CC(target) Release/obj.target/libusb/libusb/libusb/hotplug.o CC(target) Release/obj.target/libusb/libusb/libusb/io.o CC(target) Release/obj.target/libusb/libusb/libusb/strerror.o CC(target) Release/obj.target/libusb/libusb/libusb/sync.o CC(target) Release/obj.target/libusb/libusb/libusb/os/poll_posix.o CC(target) Release/obj.target/libusb/libusb/libusb/os/threads_posix.o CC(target) Release/obj.target/libusb/libusb/libusb/os/linux_usbfs.o CC(target) Release/obj.target/libusb/libusb/libusb/os/linux_udev.o AR(target) Release/obj.target/usb.a COPY Release/usb.a CXX(target) Release/obj.target/usb_bindings/src/node_usb.o ../src/node_usb.cc: In function ‘void handleHotplug(std::pair<libusb_device*, li busb_hotplug_event>)’: ../src/node_usb.cc:151:58: warning: ‘v8::Local<v8::Value> Nan::MakeCallback(v8:: Local<v8::Object>, const char*, int, v8::Local<v8::Value>*)’ is deprecated [-Wde precated-declarations] Nan::MakeCallback(Nan::New(hotplugThis), "emit", 2, argv); ^ In file included from ../src/helpers.h:3:0, from ../src/node_usb.h:21, from ../src/node_usb.cc:1: ../node_modules/nan/nan.h:1001:46: note: declared here NAN_DEPRECATED inline v8::Local<v8::Value> MakeCallback( ^~~~~~~~~~~~ CXX(target) Release/obj.target/usb_bindings/src/device.o ../src/device.cc: In static member function ‘static void Req::default_after(uv_w ork_t*)’: ../src/device.cc:237:64: warning: ‘v8::Local<v8::Value> Nan::MakeCallback(v8::Lo cal<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value>*)’ is deprec ated [-Wdeprecated-declarations] Nan::MakeCallback(device, Nan::New(baton->callback), 1, argv); ^ In file included from ../src/helpers.h:3:0, from ../src/node_usb.h:21, from ../src/device.cc:1: ../node_modules/nan/nan.h:959:46: note: declared here NAN_DEPRECATED inline v8::Local<v8::Value> MakeCallback( ^~~~~~~~~~~~ CXX(target) Release/obj.target/usb_bindings/src/transfer.o ../src/transfer.cc: In function ‘void handleCompletion(Transfer*)’: ../src/transfer.cc:126:72: warning: ‘v8::Local<v8::Value> Nan::MakeCallback(v8:: Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value>*)’ is depr ecated [-Wdeprecated-declarations] Nan::MakeCallback(self->handle(), Nan::New(self->v8callback), 3, argv); ^ In file included from ../src/helpers.h:3:0, from ../src/node_usb.h:21, from ../src/transfer.cc:1: ../node_modules/nan/nan.h:959:46: note: declared here NAN_DEPRECATED inline v8::Local<v8::Value> MakeCallback( ^~~~~~~~~~~~ SOLINK_MODULE(target) Release/obj.target/usb_bindings.node COPY Release/usb_bindings.node make: Verzeichnis „/opt/iobroker/node_modules/iobroker.radar2/node_modules/usb/b uild“ wird verlassen > @abandonware/noble@1.9.2-5 install /opt/iobroker/node_modules/iobroker.radar2/ node_modules/@abandonware/noble > node-gyp rebuild make: Verzeichnis „/opt/iobroker/node_modules/iobroker.radar2/node_modules/@aban donware/noble/build“ wird betreten SOLINK_MODULE(target) Release/obj.target/noble.node COPY Release/noble.node make: Verzeichnis „/opt/iobroker/node_modules/iobroker.radar2/node_modules/@aban donware/noble/build“ wird verlassen > raw-socket@1.7.0 install /opt/iobroker/node_modules/iobroker.radar2/node_modul es/raw-socket > node-gyp rebuild make: Verzeichnis „/opt/iobroker/node_modules/iobroker.radar2/node_modules/raw-s ocket/build“ wird betreten CXX(target) Release/obj.target/raw/src/raw.o SOLINK_MODULE(target) Release/obj.target/raw.node COPY Release/raw.node make: Verzeichnis „/opt/iobroker/node_modules/iobroker.radar2/node_modules/raw-s ocket/build“ wird verlassen > node-bluetooth@1.2.6 install /opt/iobroker/node_modules/iobroker.radar2/node_m odules/node-bluetooth > node-gyp configure build make: Verzeichnis „/opt/iobroker/node_modules/iobroker.radar2/node_modules/node- bluetooth/build“ wird betreten CXX(target) Release/obj.target/BluetoothSerialPort/src/linux/BluetoothSerialPo rt.o ../src/linux/BluetoothSerialPort.cc:18:14: error: variable or field ‘InitAll’ de clared void void InitAll(Handle<Object> exports) { ^~~~~~ ../src/linux/BluetoothSerialPort.cc:18:14: error: ‘Handle’ was not declared in t his scope ../src/linux/BluetoothSerialPort.cc:18:27: error: expected primary-expression be fore ‘>’ token void InitAll(Handle<Object> exports) { ^ ../src/linux/BluetoothSerialPort.cc:18:29: error: ‘exports’ was not declared in this scope void InitAll(Handle<Object> exports) { ^~~~~~~ In file included from ../src/linux/BluetoothSerialPort.cc:12:0: ../src/linux/BluetoothSerialPort.cc:23:34: error: ‘InitAll’ was not declared in this scope NODE_MODULE(BluetoothSerialPort, InitAll) ^ /home/iobroker/.cache/node-gyp/12.16.3/include/node/node.h:608:36: note: in defi nition of macro ‘NODE_MODULE_X’ (node::addon_register_func) (regfunc), \ ^~~~~~~ ../src/linux/BluetoothSerialPort.cc:23:1: note: in expansion of macro ‘NODE_MODU LE’ NODE_MODULE(BluetoothSerialPort, InitAll) ^~~~~~~~~~~ BluetoothSerialPort.target.mk:115: die Regel für Ziel „Release/obj.target/Blueto othSerialPort/src/linux/BluetoothSerialPort.o“ scheiterte make: *** [Release/obj.target/BluetoothSerialPort/src/linux/BluetoothSerialPort. o] Fehler 1 make: Verzeichnis „/opt/iobroker/node_modules/iobroker.radar2/node_modules/node- bluetooth/build“ wird verlassen gyp ERR! build error gyp ERR! stack Error: `make` failed with exit code: 2 gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_ modules/node-gyp/lib/build.js:194:23) gyp ERR! stack at ChildProcess.emit (events.js:310:20) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_proces s.js:275:12) gyp ERR! System Linux 4.19.66-v7+ gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_mod ules/node-gyp/bin/node-gyp.js" "configure" "build" gyp ERR! cwd /opt/iobroker/node_modules/iobroker.radar2/node_modules/node-blueto oth gyp ERR! node -v v12.16.3 gyp ERR! node-gyp -v v5.1.0 gyp ERR! not ok npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! node-bluetooth@1.2.6 install: `node-gyp configure build` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the node-bluetooth@1.2.6 install script. npm ERR! This is probably not a problem with npm. There is likely additional log ging output above. npm ERR! A complete log of this run can be found in: npm ERR! /home/iobroker/.npm/_logs/2020-05-15T19_59_05_978Z-debug.log
-
sudo apt upgrade
-
Müssen die nicht auf der gleichen Version sein?
-
@Hermanito33
Nein. nodejs und node müssen gleich sein:nodejs -v && node -v && npm -v
Und bitte keine Screenshots, sondern Konsolenausgaben in </> CodeTags packen.
-
@Thomas-Braun ```
code_textpi@ioBroker-Pi:/opt/iobroker $ nodejs -v && node -v && npm -v v10.20.1 v12.16.3 6.14.4
-
@Hermanito33
Falsch installiert.which nodejs which node which npm
-
@Thomas-Braun ```
pi@ioBroker-Pi:/opt/iobroker $ which nodejs /usr/bin/nodejs pi@ioBroker-Pi:/opt/iobroker $ which node /usr/local/bin/node pi@ioBroker-Pi:/opt/iobroker $ which npm /usr/local/bin/npm pi@ioBroker-Pi:/opt/iobroker $
-
Ojehh ....
-
@Glasfaser Dachte ich mir fast