NEWS
No objects found - wie repariere ich das?
-
Hi,
bevor ich jetzt noch mehr kaputt mache, frage ich lieber erstmal flöt.
Problem:
iobroker.js sagt nur noch "No Objects found". (Aktuell läuft iobroker noch, aber wenn ich über die Kommandozeile iobroker starte kommt der Fehler und auch wenn der admin instanzen anlegen will oder ähnliches -> ich vermute, wenn ich den controller neustarte, wird der auch nicht mehr laufen, daher hab ich das bisher vermieden).Als erstes habe ich voller Panik gescheckt, aber die objects.json gibt es noch puh. An iobroker.json hat sich seit Oktober nichts mehr verändert -> kann es auch nicht sein.
Was habe ich gemacht um da zu landen:
- ich wollte ein paar npm Fehler loswerden, die immer beim updaten/installieren von adaptern auftreten. Dadurch hat das ganze relativ lange gedauert. Ging auch halbwegs, bis ich an einer dependency von js-controller ankam.
- Gefährliches Halbwissen angewandt und gedacht, das repariert npm install js-controller bestimmt.
- Effekt war: es gab eine Reihe Fehler (unter anderem aus einem install script vom js-controller?) -> npm hat dann den js-controller kurzerhand ganz gelöscht.
- js-controller aus Backup wiederhergestellt -> sollte wieder gehen? -> nein, aktueller Status mit No Objects found.
Aktuelle Vermutung: npm hat vielleicht noch mehr dependencies mit gelöscht? Wie fixe ich das am einfachsten?
Danke an jemanden mit guter Idee. :-)
-
Hi,
bevor ich jetzt noch mehr kaputt mache, frage ich lieber erstmal flöt.
Problem:
iobroker.js sagt nur noch "No Objects found". (Aktuell läuft iobroker noch, aber wenn ich über die Kommandozeile iobroker starte kommt der Fehler und auch wenn der admin instanzen anlegen will oder ähnliches -> ich vermute, wenn ich den controller neustarte, wird der auch nicht mehr laufen, daher hab ich das bisher vermieden).Als erstes habe ich voller Panik gescheckt, aber die objects.json gibt es noch puh. An iobroker.json hat sich seit Oktober nichts mehr verändert -> kann es auch nicht sein.
Was habe ich gemacht um da zu landen:
- ich wollte ein paar npm Fehler loswerden, die immer beim updaten/installieren von adaptern auftreten. Dadurch hat das ganze relativ lange gedauert. Ging auch halbwegs, bis ich an einer dependency von js-controller ankam.
- Gefährliches Halbwissen angewandt und gedacht, das repariert npm install js-controller bestimmt.
- Effekt war: es gab eine Reihe Fehler (unter anderem aus einem install script vom js-controller?) -> npm hat dann den js-controller kurzerhand ganz gelöscht.
- js-controller aus Backup wiederhergestellt -> sollte wieder gehen? -> nein, aktueller Status mit No Objects found.
Aktuelle Vermutung: npm hat vielleicht noch mehr dependencies mit gelöscht? Wie fixe ich das am einfachsten?
Danke an jemanden mit guter Idee. :-)
@Garfonso sagte in No objects found - wie repariere ich das?:
iobroker.js sagt nur noch "No Objects found".
Wo genau?
@Garfonso sagte in No objects found - wie repariere ich das?:
Was habe ich gemacht
Hast du da die exakten Befehle und deren Response?
@Garfonso sagte in No objects found - wie repariere ich das?:
Wie fixe ich das am einfachsten?
Wahrscheinlich tatsächlich wieder mit npm install irgendwas ;-)
Hattest du beim controller install vorher iobroker gestoppt?
-
@Garfonso sagte in No objects found - wie repariere ich das?:
iobroker.js sagt nur noch "No Objects found".
Wo genau?
@Garfonso sagte in No objects found - wie repariere ich das?:
Was habe ich gemacht
Hast du da die exakten Befehle und deren Response?
@Garfonso sagte in No objects found - wie repariere ich das?:
Wie fixe ich das am einfachsten?
Wahrscheinlich tatsächlich wieder mit npm install irgendwas ;-)
Hattest du beim controller install vorher iobroker gestoppt?
@Homoran said in No objects found - wie repariere ich das?:
@Garfonso sagte in No objects found - wie repariere ich das?:
iobroker.js sagt nur noch "No Objects found".
Wo genau?
So z.B.:
achim@Server:/opt/iobroker$ ./iobroker status No objects found!@Garfonso sagte in No objects found - wie repariere ich das?:
Was habe ich gemacht
Hast du da die exakten Befehle und deren Response?
Hm.. mal sehen.
Zu 1.: da habe ich im Grunde mit npm ls PACKET geguckt, wer das braucht, wenn sich da keiner gemeldet hat mit npm uninstall PACKET gelöscht. Ging, wie geschrieben in Ordnung bis es um unix-dgram ging.
Dazu die Warnung von NPM:npm WARN enoent ENOENT: no such file or directory, open '/opt/iobroker/node_modules/unix-dgram/package.json'Das braucht der js-controller, also konnte ich das nicht löschen, npm ls Ausgabe dazu (das ist mittlerweile übrigens gefixt, ist mir gerade aufgefallen, yeah ;-) )
achim@Server:/opt/iobroker$ npm ls unix-dgram iobroker.inst@1.1.2 /opt/iobroker ├─┬ iobroker.js-controller@2.1.1 │ └─┬ winston-syslog@2.3.0 │ └── unix-dgram@2.0.2 └── extraneous error: ENOENT: no such file or directory, open '/opt/iobroker/no de_modules/unix-dgram/package.json npm ERR! extraneous: unix-dgram /opt/iobroker/node_modules/unix-dgram npm ERR! error in /opt/iobroker/node_modules/unix-dgram: ENOENT: no such file or directory, open '/opt/iobroker/node_modules/unix-dgram/package.json'Zu 2.:
achim@Server:/opt/iobroker$ sudo npm install --save --prefix /opt/iobroker/ iobroker.js-controller > iobroker.js-controller@2.1.1 preinstall /opt/iobroker/node_modules/iobroker.js-controller > node lib/preinstallCheck.js NPM version: 6.9.0 > unix-dgram@2.0.2 install /opt/iobroker/node_modules/unix-dgram > node-gyp rebuild make: Entering directory '/opt/iobroker/node_modules/unix-dgram/build' CXX(target) Release/obj.target/unix_dgram/src/unix_dgram.o ../src/unix_dgram.cc: In function ‘void {anonymous}::OnRecv({anonymous}::SocketContext*)’: ../src/unix_dgram.cc:121:25: warning: ‘v8::Local<v8::Value> Nan::MakeCallback(v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value>*)’ is deprecated [-Wdeprecated-declarations] argv); ^ In file included from ../src/unix_dgram.cc:5:0: ../../nan/nan.h:1024:46: note: declared here NAN_DEPRECATED inline v8::Local<v8::Value> MakeCallback( ^~~~~~~~~~~~ ../src/unix_dgram.cc: In function ‘void {anonymous}::OnWritable({anonymous}::SocketContext*)’: ../src/unix_dgram.cc:129:28: warning: ‘v8::Local<v8::Value> Nan::MakeCallback(v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value>*)’ is deprecated [-Wdeprecated-declarations] 0, NULL); ^ In file included from ../src/unix_dgram.cc:5:0: ../../nan/nan.h:1024:46: note: declared here NAN_DEPRECATED inline v8::Local<v8::Value> MakeCallback( ^~~~~~~~~~~~ ../src/unix_dgram.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE {anonymous}::Socket(Nan::NAN_METHOD_ARGS_TYPE)’: ../src/unix_dgram.cc:189:37: warning: ‘int32_t v8::Value::Int32Value() const’ is deprecated: Use maybe version [-Wdeprecated-declarations] domain = info[0]->Int32Value(); ^ In file included from /home/achim/.node-gyp/10.17.0/include/node/v8.h:26:0, from /home/achim/.node-gyp/10.17.0/include/node/node.h:63, from ../../nan/nan.h:54, from ../src/unix_dgram.cc:5: /home/achim/.node-gyp/10.17.0/include/node/v8.h:2478:46: note: declared here V8_DEPRECATED("Use maybe version", int32_t Int32Value() const); ^ /home/achim/.node-gyp/10.17.0/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’ declarator __attribute__((deprecated(message))) ^~~~~~~~~~ ../src/unix_dgram.cc:190:37: warning: ‘int32_t v8::Value::Int32Value() const’ is deprecated: Use maybe version [-Wdeprecated-declarations] type = info[1]->Int32Value(); ^ In file included from /home/achim/.node-gyp/10.17.0/include/node/v8.h:26:0, from /home/achim/.node-gyp/10.17.0/include/node/node.h:63, from ../../nan/nan.h:54, from ../src/unix_dgram.cc:5: /home/achim/.node-gyp/10.17.0/include/node/v8.h:2478:46: note: declared here V8_DEPRECATED("Use maybe version", int32_t Int32Value() const); ^ /home/achim/.node-gyp/10.17.0/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’ declarator __attribute__((deprecated(message))) ^~~~~~~~~~ ../src/unix_dgram.cc:191:37: warning: ‘int32_t v8::Value::Int32Value() const’ is deprecated: Use maybe version [-Wdeprecated-declarations] protocol = info[2]->Int32Value(); ^ In file included from /home/achim/.node-gyp/10.17.0/include/node/v8.h:26:0, from /home/achim/.node-gyp/10.17.0/include/node/node.h:63, from ../../nan/nan.h:54, from ../src/unix_dgram.cc:5: /home/achim/.node-gyp/10.17.0/include/node/v8.h:2478:46: note: declared here V8_DEPRECATED("Use maybe version", int32_t Int32Value() const); ^ /home/achim/.node-gyp/10.17.0/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’ declarator __attribute__((deprecated(message))) ^~~~~~~~~~ ../src/unix_dgram.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE {anonymous}::Bind(Nan::NAN_METHOD_ARGS_TYPE)’: ../src/unix_dgram.cc:230:28: warning: ‘int32_t v8::Value::Int32Value() const’ is deprecated: Use maybe version [-Wdeprecated-declarations] fd = info[0]->Int32Value(); ^ In file included from /home/achim/.node-gyp/10.17.0/include/node/v8.h:26:0, from /home/achim/.node-gyp/10.17.0/include/node/node.h:63, from ../../nan/nan.h:54, from ../src/unix_dgram.cc:5: /home/achim/.node-gyp/10.17.0/include/node/v8.h:2478:46: note: declared here V8_DEPRECATED("Use maybe version", int32_t Int32Value() const); ^ /home/achim/.node-gyp/10.17.0/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’ declarator __attribute__((deprecated(message))) ^~~~~~~~~~ ../src/unix_dgram.cc:231:33: warning: ‘v8::String::Utf8Value::Utf8Value(v8::Local<v8::Value>)’ is deprecated: Use Isolate version [-Wdeprecated-declarations] String::Utf8Value path(info[1]); ^ In file included from /home/achim/.node-gyp/10.17.0/include/node/v8.h:26:0, from /home/achim/.node-gyp/10.17.0/include/node/node.h:63, from ../../nan/nan.h:54, from ../src/unix_dgram.cc:5: /home/achim/.node-gyp/10.17.0/include/node/v8.h:2892:28: note: declared here explicit Utf8Value(Local<v8::Value> obj)); ^ /home/achim/.node-gyp/10.17.0/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’ declarator __attribute__((deprecated(message))) ^~~~~~~~~~ ../src/unix_dgram.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE {anonymous}::SendTo(Nan::NAN_METHOD_ARGS_TYPE)’: ../src/unix_dgram.cc:258:28: warning: ‘int32_t v8::Value::Int32Value() const’ is deprecated: Use maybe version [-Wdeprecated-declarations] fd = info[0]->Int32Value(); ^ In file included from /home/achim/.node-gyp/10.17.0/include/node/v8.h:26:0, from /home/achim/.node-gyp/10.17.0/include/node/node.h:63, from ../../nan/nan.h:54, from ../src/unix_dgram.cc:5: /home/achim/.node-gyp/10.17.0/include/node/v8.h:2478:46: note: declared here V8_DEPRECATED("Use maybe version", int32_t Int32Value() const); ^ /home/achim/.node-gyp/10.17.0/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’ declarator __attribute__((deprecated(message))) ^~~~~~~~~~ ../src/unix_dgram.cc:259:27: warning: ‘v8::Local<v8::Object> v8::Value::ToObject() const’ is deprecated: Use maybe version [-Wdeprecated-declarations] buf = info[1]->ToObject(); ^ In file included from /home/achim/.node-gyp/10.17.0/include/node/node.h:63:0, from ../../nan/nan.h:54, from ../src/unix_dgram.cc:5: /home/achim/.node-gyp/10.17.0/include/node/v8.h:10046:15: note: declared here Local<Object> Value::ToObject() const { ^~~~~ ../src/unix_dgram.cc:260:33: warning: ‘uint32_t v8::Value::Uint32Value() const’ is deprecated: Use maybe version [-Wdeprecated-declarations] offset = info[2]->Uint32Value(); ^ In file included from /home/achim/.node-gyp/10.17.0/include/node/v8.h:26:0, from /home/achim/.node-gyp/10.17.0/include/node/node.h:63, from ../../nan/nan.h:54, from ../src/unix_dgram.cc:5: /home/achim/.node-gyp/10.17.0/include/node/v8.h:2477:47: note: declared here V8_DEPRECATED("Use maybe version", uint32_t Uint32Value() const); ^ /home/achim/.node-gyp/10.17.0/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’ declarator __attribute__((deprecated(message))) ^~~~~~~~~~ ../src/unix_dgram.cc:261:33: warning: ‘uint32_t v8::Value::Uint32Value() const’ is deprecated: Use maybe version [-Wdeprecated-declarations] length = info[3]->Uint32Value(); ^ In file included from /home/achim/.node-gyp/10.17.0/include/node/v8.h:26:0, from /home/achim/.node-gyp/10.17.0/include/node/node.h:63, from ../../nan/nan.h:54, from ../src/unix_dgram.cc:5: /home/achim/.node-gyp/10.17.0/include/node/v8.h:2477:47: note: declared here V8_DEPRECATED("Use maybe version", uint32_t Uint32Value() const); ^ /home/achim/.node-gyp/10.17.0/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’ declarator __attribute__((deprecated(message))) ^~~~~~~~~~ ../src/unix_dgram.cc:262:33: warning: ‘v8::String::Utf8Value::Utf8Value(v8::Local<v8::Value>)’ is deprecated: Use Isolate version [-Wdeprecated-declarations] String::Utf8Value path(info[4]); ^ In file included from /home/achim/.node-gyp/10.17.0/include/node/v8.h:26:0, from /home/achim/.node-gyp/10.17.0/include/node/node.h:63, from ../../nan/nan.h:54, from ../src/unix_dgram.cc:5: /home/achim/.node-gyp/10.17.0/include/node/v8.h:2892:28: note: declared here explicit Utf8Value(Local<v8::Value> obj)); ^ /home/achim/.node-gyp/10.17.0/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’ declarator __attribute__((deprecated(message))) ^~~~~~~~~~ ../src/unix_dgram.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE {anonymous}::Send(Nan::NAN_METHOD_ARGS_TYPE)’: ../src/unix_dgram.cc:302:28: warning: ‘int32_t v8::Value::Int32Value() const’ is deprecated: Use maybe version [-Wdeprecated-declarations] fd = info[0]->Int32Value(); ^ In file included from /home/achim/.node-gyp/10.17.0/include/node/v8.h:26:0, from /home/achim/.node-gyp/10.17.0/include/node/node.h:63, from ../../nan/nan.h:54, from ../src/unix_dgram.cc:5: /home/achim/.node-gyp/10.17.0/include/node/v8.h:2478:46: note: declared here V8_DEPRECATED("Use maybe version", int32_t Int32Value() const); ^ /home/achim/.node-gyp/10.17.0/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’ declarator __attribute__((deprecated(message))) ^~~~~~~~~~ ../src/unix_dgram.cc:303:27: warning: ‘v8::Local<v8::Object> v8::Value::ToObject() const’ is deprecated: Use maybe version [-Wdeprecated-declarations] buf = info[1]->ToObject(); ^ In file included from /home/achim/.node-gyp/10.17.0/include/node/node.h:63:0, from ../../nan/nan.h:54, from ../src/unix_dgram.cc:5: /home/achim/.node-gyp/10.17.0/include/node/v8.h:10046:15: note: declared here Local<Object> Value::ToObject() const { ^~~~~ ../src/unix_dgram.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE {anonymous}::Connect(Nan::NAN_METHOD_ARGS_TYPE)’: ../src/unix_dgram.cc:340:28: warning: ‘int32_t v8::Value::Int32Value() const’ is deprecated: Use maybe version [-Wdeprecated-declarations] fd = info[0]->Int32Value(); ^ In file included from /home/achim/.node-gyp/10.17.0/include/node/v8.h:26:0, from /home/achim/.node-gyp/10.17.0/include/node/node.h:63, from ../../nan/nan.h:54, from ../src/unix_dgram.cc:5: /home/achim/.node-gyp/10.17.0/include/node/v8.h:2478:46: note: declared here V8_DEPRECATED("Use maybe version", int32_t Int32Value() const); ^ /home/achim/.node-gyp/10.17.0/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’ declarator __attribute__((deprecated(message))) ^~~~~~~~~~ ../src/unix_dgram.cc:341:33: warning: ‘v8::String::Utf8Value::Utf8Value(v8::Local<v8::Value>)’ is deprecated: Use Isolate version [-Wdeprecated-declarations] String::Utf8Value path(info[1]); ^ In file included from /home/achim/.node-gyp/10.17.0/include/node/v8.h:26:0, from /home/achim/.node-gyp/10.17.0/include/node/node.h:63, from ../../nan/nan.h:54, from ../src/unix_dgram.cc:5: /home/achim/.node-gyp/10.17.0/include/node/v8.h:2892:28: note: declared here explicit Utf8Value(Local<v8::Value> obj)); ^ /home/achim/.node-gyp/10.17.0/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’ declarator __attribute__((deprecated(message))) ^~~~~~~~~~ ../src/unix_dgram.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE {anonymous}::Close(Nan::NAN_METHOD_ARGS_TYPE)’: ../src/unix_dgram.cc:361:28: warning: ‘int32_t v8::Value::Int32Value() const’ is deprecated: Use maybe version [-Wdeprecated-declarations] fd = info[0]->Int32Value(); ^ In file included from /home/achim/.node-gyp/10.17.0/include/node/v8.h:26:0, from /home/achim/.node-gyp/10.17.0/include/node/node.h:63, from ../../nan/nan.h:54, from ../src/unix_dgram.cc:5: /home/achim/.node-gyp/10.17.0/include/node/v8.h:2478:46: note: declared here V8_DEPRECATED("Use maybe version", int32_t Int32Value() const); ^ /home/achim/.node-gyp/10.17.0/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’ declarator __attribute__((deprecated(message))) ^~~~~~~~~~ SOLINK_MODULE(target) Release/obj.target/unix_dgram.node COPY Release/unix_dgram.node make: Leaving directory '/opt/iobroker/node_modules/unix-dgram/build' > iobroker.js-controller@2.1.1 install /opt/iobroker/node_modules/iobroker.js-controller > node iobroker.js setup first Cannot delete file. Not critical: Error: EACCES: permission denied, unlink '/opt/iobroker/node_modules/iobroker.js-controller/lib/setup/../../_service_iobroker.bat' Cannot delete file. Not critical: Error: EACCES: permission denied, unlink '/opt/iobroker/node_modules/iobroker.js-controller/lib/setup/../../iobroker.bat' Cannot delete file. Not critical: Error: EACCES: permission denied, unlink '/opt/iobroker/node_modules/iobroker.js-controller/lib/setup/../../iob.bat' fs.js:114 throw err; ^ Error: EACCES: permission denied, mkdir '/opt/iobroker/node_modules/iobroker.js-controller/lib/setup/../../tmp' at Object.mkdirSync (fs.js:757:3) at Setup.setup (/opt/iobroker/node_modules/iobroker.js-controller/lib/setup/setupSetup.js:688:58) at processCommand (/opt/iobroker/node_modules/iobroker.js-controller/lib/setup.js:235:23) at Object.module.exports.execute (/opt/iobroker/node_modules/iobroker.js-controller/lib/setup.js:2408:5) at Object.<anonymous> (/opt/iobroker/node_modules/iobroker.js-controller/iobroker.js:1:24) at Module._compile (internal/modules/cjs/loader.js:778:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10) at Module.load (internal/modules/cjs/loader.js:653:32) at tryModuleLoad (internal/modules/cjs/loader.js:593:12) at Function.Module._load (internal/modules/cjs/loader.js:585:3) npm WARN enoent ENOENT: no such file or directory, open '/opt/iobroker/node_modules/iobroker.rflink/package.json' npm WARN onvif-snapshot@1.0.2 requires a peer of onvif@^0.5.5 but none is installed. You must install peer dependencies yourself. npm WARN onvif-snapshot@1.0.2 requires a peer of onvif@^0.5.5 but none is installed. You must install peer dependencies yourself. npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.1.2 (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":"x64"}) npm WARN optional SKIPPING OPTIONAL DEPENDENCY: osx-temperature-sensor@1.0.4 (node_modules/osx-temperature-sensor): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for osx-temperature-sensor@1.0.4: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"}) npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! iobroker.js-controller@2.1.1 install: `node iobroker.js setup first` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the iobroker.js-controller@2.1.1 install script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above. npm ERR! A complete log of this run can be found in: npm ERR! /home/achim/.npm/_logs/2019-12-11T10_27_40_876Z-debug.logWegen dem ganzen Rot wollte ich sehen, ob noch etwas geht. Weil mir nichts besseres eingefallen ist, was keinen Effekt haben dürfte, das hier:
achim@Server:/opt/iobroker$ sudo iobroker upgrade self internal/modules/cjs/loader.js:638 throw err; ^ Error: Cannot find module '/opt/iobroker/node_modules/iobroker.js-controller/iobroker.js' at Function.Module._resolveFilename (internal/modules/cjs/loader.js:636:15) at Function.Module._load (internal/modules/cjs/loader.js:562:25) at Function.Module.runMain (internal/modules/cjs/loader.js:831:12) at startup (internal/bootstrap/node.js:283:19) at bootstrapNodeJSCore (internal/bootstrap/node.js:623:3)Dann eher in Panik das hier (dürfte aber keinen Effekt gehabt haben):
achim@Server:/opt/iobroker$ sudo bash install.sh Use user root for install. Set permissions... Start iobroker... /opt/iobroker/node_modules/iobroker/install/linux/install.sh: line 65: cd: /opt/iobroker/node_modules/iobroker.js-controller/: No such file or directory internal/modules/cjs/loader.js:638 throw err; ^ Error: Cannot find module '/opt/iobroker/node_modules/iobroker.js-controller/iobroker.js' at Function.Module._resolveFilename (internal/modules/cjs/loader.js:636:15) at Function.Module._load (internal/modules/cjs/loader.js:562:25) at Function.Module.runMain (internal/modules/cjs/loader.js:831:12) at startup (internal/bootstrap/node.js:283:19) at bootstrapNodeJSCore (internal/bootstrap/node.js:623:3) call http://ip_address:8081/ in browser to get the AdminUI of ioBrokerNochmal npm install versucht, diesmal ohne die ganzen Parameter (Effekt derselbe wie beim ersten mal):
achim@Server:/opt/iobroker$ sudo npm install iobroker.js-controller > iobroker.js-controller@2.1.1 preinstall /opt/iobroker/node_modules/iobroker.js-controller > node lib/preinstallCheck.js NPM version: 6.9.0 > iobroker.js-controller@2.1.1 install /opt/iobroker/node_modules/iobroker.js-controller > node iobroker.js setup first Cannot delete file. Not critical: Error: EACCES: permission denied, unlink '/opt/iobroker/node_modules/iobroker.js-controller/lib/setup/../../_service_iobroker.bat' Cannot delete file. Not critical: Error: EACCES: permission denied, unlink '/opt/iobroker/node_modules/iobroker.js-controller/lib/setup/../../iobroker.bat' Cannot delete file. Not critical: Error: EACCES: permission denied, unlink '/opt/iobroker/node_modules/iobroker.js-controller/lib/setup/../../iob.bat' fs.js:114 throw err; ^ Error: EACCES: permission denied, mkdir '/opt/iobroker/node_modules/iobroker.js-controller/lib/setup/../../tmp' at Object.mkdirSync (fs.js:757:3) at Setup.setup (/opt/iobroker/node_modules/iobroker.js-controller/lib/setup/setupSetup.js:688:58) at processCommand (/opt/iobroker/node_modules/iobroker.js-controller/lib/setup.js:235:23) at Object.module.exports.execute (/opt/iobroker/node_modules/iobroker.js-controller/lib/setup.js:2408:5) at Object.<anonymous> (/opt/iobroker/node_modules/iobroker.js-controller/iobroker.js:1:24) at Module._compile (internal/modules/cjs/loader.js:778:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10) at Module.load (internal/modules/cjs/loader.js:653:32) at tryModuleLoad (internal/modules/cjs/loader.js:593:12) at Function.Module._load (internal/modules/cjs/loader.js:585:3) npm WARN enoent ENOENT: no such file or directory, open '/opt/iobroker/node_modules/iobroker.rflink/package.json' npm WARN onvif-snapshot@1.0.2 requires a peer of onvif@^0.5.5 but none is installed. You must install peer dependencies yourself. npm WARN onvif-snapshot@1.0.2 requires a peer of onvif@^0.5.5 but none is installed. You must install peer dependencies yourself. npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.1.2 (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":"x64"}) npm WARN optional SKIPPING OPTIONAL DEPENDENCY: osx-temperature-sensor@1.0.4 (node_modules/osx-temperature-sensor): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for osx-temperature-sensor@1.0.4: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"}) npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! iobroker.js-controller@2.1.1 install: `node iobroker.js setup first` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the iobroker.js-controller@2.1.1 install script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above. npm ERR! A complete log of this run can be found in: npm ERR! /home/achim/.npm/_logs/2019-12-11T10_32_09_766Z-debug.logDanach habe ich dann festgestellt, dass es den Ordner /opt/iobroker/node_modules/iobroker.js-controller gar nicht mehr gibt. Also habe ich ihn aus dem Backup wiederhergestellt.
achim@Server:/opt/iobroker/node_modules/iobroker.js-controller$ ll total 376K -rw-r--r-- 1 root root 51K Oct 26 1985 CHANGELOG.md -rw-r--r-- 1 root root 420 Oct 26 1985 compactgroupController.js drwxr-xr-x 2 root root 4.0K Dec 11 11:44 conf/ -rw-r--r-- 1 root root 158 Oct 26 1985 controller.js -rw-r--r-- 1 root root 8.2K Oct 26 1985 gulpfile.js -rw-r--r-- 1 root root 74 Oct 26 1985 iob -rw-r--r-- 1 root root 1 Dec 2 15:51 iob_npm.done -rwxr-xr-x 1 root root 33 Oct 26 1985 iobroker.js* -rw-r--r-- 1 root root 42K Dec 2 15:51 io-package.json drwxr-xr-x 10 root root 4.0K Dec 11 11:44 lib/ -rw-r--r-- 1 root root 1.2K Oct 26 1985 LICENSE -rw-r--r-- 1 root root 166K Oct 26 1985 main.js drwxr-xr-x 41 root root 4.0K Dec 2 15:51 node_modules/ -rw-r--r-- 1 root root 5.4K Dec 2 15:51 package.json -rw-r--r-- 1 root root 238 Dec 10 05:31 pids.txt -rw-r--r-- 1 root root 29K Oct 26 1985 README.md -rw-r--r-- 1 root root 5.7K Oct 26 1985 reinstall.js drwxr-xr-x 2 root root 4.0K Dec 2 15:51 tmp/ -rw-r--r-- 1 root root 4.7K Oct 26 1985 tsconfig.jsonUnd da bin ich nun.
Wahrscheinlich tatsächlich wieder mit npm install irgendwas ;-)
Ich will es hoffen. ;-)
Hattest du beim controller install vorher iobroker gestoppt?
Nein. Bisher habe ich den noch gar nicht gestoppt. Wie hoch ist die chance, dass das das Problem einfach repariert gegenüber er startet gar nicht mehr?
EDIT: irgendwie waren ein paar Sachen weg / abgeschnitten.
-
@Homoran said in No objects found - wie repariere ich das?:
@Garfonso sagte in No objects found - wie repariere ich das?:
iobroker.js sagt nur noch "No Objects found".
Wo genau?
So z.B.:
achim@Server:/opt/iobroker$ ./iobroker status No objects found!@Garfonso sagte in No objects found - wie repariere ich das?:
Was habe ich gemacht
Hast du da die exakten Befehle und deren Response?
Hm.. mal sehen.
Zu 1.: da habe ich im Grunde mit npm ls PACKET geguckt, wer das braucht, wenn sich da keiner gemeldet hat mit npm uninstall PACKET gelöscht. Ging, wie geschrieben in Ordnung bis es um unix-dgram ging.
Dazu die Warnung von NPM:npm WARN enoent ENOENT: no such file or directory, open '/opt/iobroker/node_modules/unix-dgram/package.json'Das braucht der js-controller, also konnte ich das nicht löschen, npm ls Ausgabe dazu (das ist mittlerweile übrigens gefixt, ist mir gerade aufgefallen, yeah ;-) )
achim@Server:/opt/iobroker$ npm ls unix-dgram iobroker.inst@1.1.2 /opt/iobroker ├─┬ iobroker.js-controller@2.1.1 │ └─┬ winston-syslog@2.3.0 │ └── unix-dgram@2.0.2 └── extraneous error: ENOENT: no such file or directory, open '/opt/iobroker/no de_modules/unix-dgram/package.json npm ERR! extraneous: unix-dgram /opt/iobroker/node_modules/unix-dgram npm ERR! error in /opt/iobroker/node_modules/unix-dgram: ENOENT: no such file or directory, open '/opt/iobroker/node_modules/unix-dgram/package.json'Zu 2.:
achim@Server:/opt/iobroker$ sudo npm install --save --prefix /opt/iobroker/ iobroker.js-controller > iobroker.js-controller@2.1.1 preinstall /opt/iobroker/node_modules/iobroker.js-controller > node lib/preinstallCheck.js NPM version: 6.9.0 > unix-dgram@2.0.2 install /opt/iobroker/node_modules/unix-dgram > node-gyp rebuild make: Entering directory '/opt/iobroker/node_modules/unix-dgram/build' CXX(target) Release/obj.target/unix_dgram/src/unix_dgram.o ../src/unix_dgram.cc: In function ‘void {anonymous}::OnRecv({anonymous}::SocketContext*)’: ../src/unix_dgram.cc:121:25: warning: ‘v8::Local<v8::Value> Nan::MakeCallback(v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value>*)’ is deprecated [-Wdeprecated-declarations] argv); ^ In file included from ../src/unix_dgram.cc:5:0: ../../nan/nan.h:1024:46: note: declared here NAN_DEPRECATED inline v8::Local<v8::Value> MakeCallback( ^~~~~~~~~~~~ ../src/unix_dgram.cc: In function ‘void {anonymous}::OnWritable({anonymous}::SocketContext*)’: ../src/unix_dgram.cc:129:28: warning: ‘v8::Local<v8::Value> Nan::MakeCallback(v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value>*)’ is deprecated [-Wdeprecated-declarations] 0, NULL); ^ In file included from ../src/unix_dgram.cc:5:0: ../../nan/nan.h:1024:46: note: declared here NAN_DEPRECATED inline v8::Local<v8::Value> MakeCallback( ^~~~~~~~~~~~ ../src/unix_dgram.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE {anonymous}::Socket(Nan::NAN_METHOD_ARGS_TYPE)’: ../src/unix_dgram.cc:189:37: warning: ‘int32_t v8::Value::Int32Value() const’ is deprecated: Use maybe version [-Wdeprecated-declarations] domain = info[0]->Int32Value(); ^ In file included from /home/achim/.node-gyp/10.17.0/include/node/v8.h:26:0, from /home/achim/.node-gyp/10.17.0/include/node/node.h:63, from ../../nan/nan.h:54, from ../src/unix_dgram.cc:5: /home/achim/.node-gyp/10.17.0/include/node/v8.h:2478:46: note: declared here V8_DEPRECATED("Use maybe version", int32_t Int32Value() const); ^ /home/achim/.node-gyp/10.17.0/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’ declarator __attribute__((deprecated(message))) ^~~~~~~~~~ ../src/unix_dgram.cc:190:37: warning: ‘int32_t v8::Value::Int32Value() const’ is deprecated: Use maybe version [-Wdeprecated-declarations] type = info[1]->Int32Value(); ^ In file included from /home/achim/.node-gyp/10.17.0/include/node/v8.h:26:0, from /home/achim/.node-gyp/10.17.0/include/node/node.h:63, from ../../nan/nan.h:54, from ../src/unix_dgram.cc:5: /home/achim/.node-gyp/10.17.0/include/node/v8.h:2478:46: note: declared here V8_DEPRECATED("Use maybe version", int32_t Int32Value() const); ^ /home/achim/.node-gyp/10.17.0/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’ declarator __attribute__((deprecated(message))) ^~~~~~~~~~ ../src/unix_dgram.cc:191:37: warning: ‘int32_t v8::Value::Int32Value() const’ is deprecated: Use maybe version [-Wdeprecated-declarations] protocol = info[2]->Int32Value(); ^ In file included from /home/achim/.node-gyp/10.17.0/include/node/v8.h:26:0, from /home/achim/.node-gyp/10.17.0/include/node/node.h:63, from ../../nan/nan.h:54, from ../src/unix_dgram.cc:5: /home/achim/.node-gyp/10.17.0/include/node/v8.h:2478:46: note: declared here V8_DEPRECATED("Use maybe version", int32_t Int32Value() const); ^ /home/achim/.node-gyp/10.17.0/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’ declarator __attribute__((deprecated(message))) ^~~~~~~~~~ ../src/unix_dgram.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE {anonymous}::Bind(Nan::NAN_METHOD_ARGS_TYPE)’: ../src/unix_dgram.cc:230:28: warning: ‘int32_t v8::Value::Int32Value() const’ is deprecated: Use maybe version [-Wdeprecated-declarations] fd = info[0]->Int32Value(); ^ In file included from /home/achim/.node-gyp/10.17.0/include/node/v8.h:26:0, from /home/achim/.node-gyp/10.17.0/include/node/node.h:63, from ../../nan/nan.h:54, from ../src/unix_dgram.cc:5: /home/achim/.node-gyp/10.17.0/include/node/v8.h:2478:46: note: declared here V8_DEPRECATED("Use maybe version", int32_t Int32Value() const); ^ /home/achim/.node-gyp/10.17.0/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’ declarator __attribute__((deprecated(message))) ^~~~~~~~~~ ../src/unix_dgram.cc:231:33: warning: ‘v8::String::Utf8Value::Utf8Value(v8::Local<v8::Value>)’ is deprecated: Use Isolate version [-Wdeprecated-declarations] String::Utf8Value path(info[1]); ^ In file included from /home/achim/.node-gyp/10.17.0/include/node/v8.h:26:0, from /home/achim/.node-gyp/10.17.0/include/node/node.h:63, from ../../nan/nan.h:54, from ../src/unix_dgram.cc:5: /home/achim/.node-gyp/10.17.0/include/node/v8.h:2892:28: note: declared here explicit Utf8Value(Local<v8::Value> obj)); ^ /home/achim/.node-gyp/10.17.0/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’ declarator __attribute__((deprecated(message))) ^~~~~~~~~~ ../src/unix_dgram.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE {anonymous}::SendTo(Nan::NAN_METHOD_ARGS_TYPE)’: ../src/unix_dgram.cc:258:28: warning: ‘int32_t v8::Value::Int32Value() const’ is deprecated: Use maybe version [-Wdeprecated-declarations] fd = info[0]->Int32Value(); ^ In file included from /home/achim/.node-gyp/10.17.0/include/node/v8.h:26:0, from /home/achim/.node-gyp/10.17.0/include/node/node.h:63, from ../../nan/nan.h:54, from ../src/unix_dgram.cc:5: /home/achim/.node-gyp/10.17.0/include/node/v8.h:2478:46: note: declared here V8_DEPRECATED("Use maybe version", int32_t Int32Value() const); ^ /home/achim/.node-gyp/10.17.0/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’ declarator __attribute__((deprecated(message))) ^~~~~~~~~~ ../src/unix_dgram.cc:259:27: warning: ‘v8::Local<v8::Object> v8::Value::ToObject() const’ is deprecated: Use maybe version [-Wdeprecated-declarations] buf = info[1]->ToObject(); ^ In file included from /home/achim/.node-gyp/10.17.0/include/node/node.h:63:0, from ../../nan/nan.h:54, from ../src/unix_dgram.cc:5: /home/achim/.node-gyp/10.17.0/include/node/v8.h:10046:15: note: declared here Local<Object> Value::ToObject() const { ^~~~~ ../src/unix_dgram.cc:260:33: warning: ‘uint32_t v8::Value::Uint32Value() const’ is deprecated: Use maybe version [-Wdeprecated-declarations] offset = info[2]->Uint32Value(); ^ In file included from /home/achim/.node-gyp/10.17.0/include/node/v8.h:26:0, from /home/achim/.node-gyp/10.17.0/include/node/node.h:63, from ../../nan/nan.h:54, from ../src/unix_dgram.cc:5: /home/achim/.node-gyp/10.17.0/include/node/v8.h:2477:47: note: declared here V8_DEPRECATED("Use maybe version", uint32_t Uint32Value() const); ^ /home/achim/.node-gyp/10.17.0/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’ declarator __attribute__((deprecated(message))) ^~~~~~~~~~ ../src/unix_dgram.cc:261:33: warning: ‘uint32_t v8::Value::Uint32Value() const’ is deprecated: Use maybe version [-Wdeprecated-declarations] length = info[3]->Uint32Value(); ^ In file included from /home/achim/.node-gyp/10.17.0/include/node/v8.h:26:0, from /home/achim/.node-gyp/10.17.0/include/node/node.h:63, from ../../nan/nan.h:54, from ../src/unix_dgram.cc:5: /home/achim/.node-gyp/10.17.0/include/node/v8.h:2477:47: note: declared here V8_DEPRECATED("Use maybe version", uint32_t Uint32Value() const); ^ /home/achim/.node-gyp/10.17.0/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’ declarator __attribute__((deprecated(message))) ^~~~~~~~~~ ../src/unix_dgram.cc:262:33: warning: ‘v8::String::Utf8Value::Utf8Value(v8::Local<v8::Value>)’ is deprecated: Use Isolate version [-Wdeprecated-declarations] String::Utf8Value path(info[4]); ^ In file included from /home/achim/.node-gyp/10.17.0/include/node/v8.h:26:0, from /home/achim/.node-gyp/10.17.0/include/node/node.h:63, from ../../nan/nan.h:54, from ../src/unix_dgram.cc:5: /home/achim/.node-gyp/10.17.0/include/node/v8.h:2892:28: note: declared here explicit Utf8Value(Local<v8::Value> obj)); ^ /home/achim/.node-gyp/10.17.0/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’ declarator __attribute__((deprecated(message))) ^~~~~~~~~~ ../src/unix_dgram.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE {anonymous}::Send(Nan::NAN_METHOD_ARGS_TYPE)’: ../src/unix_dgram.cc:302:28: warning: ‘int32_t v8::Value::Int32Value() const’ is deprecated: Use maybe version [-Wdeprecated-declarations] fd = info[0]->Int32Value(); ^ In file included from /home/achim/.node-gyp/10.17.0/include/node/v8.h:26:0, from /home/achim/.node-gyp/10.17.0/include/node/node.h:63, from ../../nan/nan.h:54, from ../src/unix_dgram.cc:5: /home/achim/.node-gyp/10.17.0/include/node/v8.h:2478:46: note: declared here V8_DEPRECATED("Use maybe version", int32_t Int32Value() const); ^ /home/achim/.node-gyp/10.17.0/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’ declarator __attribute__((deprecated(message))) ^~~~~~~~~~ ../src/unix_dgram.cc:303:27: warning: ‘v8::Local<v8::Object> v8::Value::ToObject() const’ is deprecated: Use maybe version [-Wdeprecated-declarations] buf = info[1]->ToObject(); ^ In file included from /home/achim/.node-gyp/10.17.0/include/node/node.h:63:0, from ../../nan/nan.h:54, from ../src/unix_dgram.cc:5: /home/achim/.node-gyp/10.17.0/include/node/v8.h:10046:15: note: declared here Local<Object> Value::ToObject() const { ^~~~~ ../src/unix_dgram.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE {anonymous}::Connect(Nan::NAN_METHOD_ARGS_TYPE)’: ../src/unix_dgram.cc:340:28: warning: ‘int32_t v8::Value::Int32Value() const’ is deprecated: Use maybe version [-Wdeprecated-declarations] fd = info[0]->Int32Value(); ^ In file included from /home/achim/.node-gyp/10.17.0/include/node/v8.h:26:0, from /home/achim/.node-gyp/10.17.0/include/node/node.h:63, from ../../nan/nan.h:54, from ../src/unix_dgram.cc:5: /home/achim/.node-gyp/10.17.0/include/node/v8.h:2478:46: note: declared here V8_DEPRECATED("Use maybe version", int32_t Int32Value() const); ^ /home/achim/.node-gyp/10.17.0/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’ declarator __attribute__((deprecated(message))) ^~~~~~~~~~ ../src/unix_dgram.cc:341:33: warning: ‘v8::String::Utf8Value::Utf8Value(v8::Local<v8::Value>)’ is deprecated: Use Isolate version [-Wdeprecated-declarations] String::Utf8Value path(info[1]); ^ In file included from /home/achim/.node-gyp/10.17.0/include/node/v8.h:26:0, from /home/achim/.node-gyp/10.17.0/include/node/node.h:63, from ../../nan/nan.h:54, from ../src/unix_dgram.cc:5: /home/achim/.node-gyp/10.17.0/include/node/v8.h:2892:28: note: declared here explicit Utf8Value(Local<v8::Value> obj)); ^ /home/achim/.node-gyp/10.17.0/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’ declarator __attribute__((deprecated(message))) ^~~~~~~~~~ ../src/unix_dgram.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE {anonymous}::Close(Nan::NAN_METHOD_ARGS_TYPE)’: ../src/unix_dgram.cc:361:28: warning: ‘int32_t v8::Value::Int32Value() const’ is deprecated: Use maybe version [-Wdeprecated-declarations] fd = info[0]->Int32Value(); ^ In file included from /home/achim/.node-gyp/10.17.0/include/node/v8.h:26:0, from /home/achim/.node-gyp/10.17.0/include/node/node.h:63, from ../../nan/nan.h:54, from ../src/unix_dgram.cc:5: /home/achim/.node-gyp/10.17.0/include/node/v8.h:2478:46: note: declared here V8_DEPRECATED("Use maybe version", int32_t Int32Value() const); ^ /home/achim/.node-gyp/10.17.0/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’ declarator __attribute__((deprecated(message))) ^~~~~~~~~~ SOLINK_MODULE(target) Release/obj.target/unix_dgram.node COPY Release/unix_dgram.node make: Leaving directory '/opt/iobroker/node_modules/unix-dgram/build' > iobroker.js-controller@2.1.1 install /opt/iobroker/node_modules/iobroker.js-controller > node iobroker.js setup first Cannot delete file. Not critical: Error: EACCES: permission denied, unlink '/opt/iobroker/node_modules/iobroker.js-controller/lib/setup/../../_service_iobroker.bat' Cannot delete file. Not critical: Error: EACCES: permission denied, unlink '/opt/iobroker/node_modules/iobroker.js-controller/lib/setup/../../iobroker.bat' Cannot delete file. Not critical: Error: EACCES: permission denied, unlink '/opt/iobroker/node_modules/iobroker.js-controller/lib/setup/../../iob.bat' fs.js:114 throw err; ^ Error: EACCES: permission denied, mkdir '/opt/iobroker/node_modules/iobroker.js-controller/lib/setup/../../tmp' at Object.mkdirSync (fs.js:757:3) at Setup.setup (/opt/iobroker/node_modules/iobroker.js-controller/lib/setup/setupSetup.js:688:58) at processCommand (/opt/iobroker/node_modules/iobroker.js-controller/lib/setup.js:235:23) at Object.module.exports.execute (/opt/iobroker/node_modules/iobroker.js-controller/lib/setup.js:2408:5) at Object.<anonymous> (/opt/iobroker/node_modules/iobroker.js-controller/iobroker.js:1:24) at Module._compile (internal/modules/cjs/loader.js:778:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10) at Module.load (internal/modules/cjs/loader.js:653:32) at tryModuleLoad (internal/modules/cjs/loader.js:593:12) at Function.Module._load (internal/modules/cjs/loader.js:585:3) npm WARN enoent ENOENT: no such file or directory, open '/opt/iobroker/node_modules/iobroker.rflink/package.json' npm WARN onvif-snapshot@1.0.2 requires a peer of onvif@^0.5.5 but none is installed. You must install peer dependencies yourself. npm WARN onvif-snapshot@1.0.2 requires a peer of onvif@^0.5.5 but none is installed. You must install peer dependencies yourself. npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.1.2 (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":"x64"}) npm WARN optional SKIPPING OPTIONAL DEPENDENCY: osx-temperature-sensor@1.0.4 (node_modules/osx-temperature-sensor): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for osx-temperature-sensor@1.0.4: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"}) npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! iobroker.js-controller@2.1.1 install: `node iobroker.js setup first` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the iobroker.js-controller@2.1.1 install script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above. npm ERR! A complete log of this run can be found in: npm ERR! /home/achim/.npm/_logs/2019-12-11T10_27_40_876Z-debug.logWegen dem ganzen Rot wollte ich sehen, ob noch etwas geht. Weil mir nichts besseres eingefallen ist, was keinen Effekt haben dürfte, das hier:
achim@Server:/opt/iobroker$ sudo iobroker upgrade self internal/modules/cjs/loader.js:638 throw err; ^ Error: Cannot find module '/opt/iobroker/node_modules/iobroker.js-controller/iobroker.js' at Function.Module._resolveFilename (internal/modules/cjs/loader.js:636:15) at Function.Module._load (internal/modules/cjs/loader.js:562:25) at Function.Module.runMain (internal/modules/cjs/loader.js:831:12) at startup (internal/bootstrap/node.js:283:19) at bootstrapNodeJSCore (internal/bootstrap/node.js:623:3)Dann eher in Panik das hier (dürfte aber keinen Effekt gehabt haben):
achim@Server:/opt/iobroker$ sudo bash install.sh Use user root for install. Set permissions... Start iobroker... /opt/iobroker/node_modules/iobroker/install/linux/install.sh: line 65: cd: /opt/iobroker/node_modules/iobroker.js-controller/: No such file or directory internal/modules/cjs/loader.js:638 throw err; ^ Error: Cannot find module '/opt/iobroker/node_modules/iobroker.js-controller/iobroker.js' at Function.Module._resolveFilename (internal/modules/cjs/loader.js:636:15) at Function.Module._load (internal/modules/cjs/loader.js:562:25) at Function.Module.runMain (internal/modules/cjs/loader.js:831:12) at startup (internal/bootstrap/node.js:283:19) at bootstrapNodeJSCore (internal/bootstrap/node.js:623:3) call http://ip_address:8081/ in browser to get the AdminUI of ioBrokerNochmal npm install versucht, diesmal ohne die ganzen Parameter (Effekt derselbe wie beim ersten mal):
achim@Server:/opt/iobroker$ sudo npm install iobroker.js-controller > iobroker.js-controller@2.1.1 preinstall /opt/iobroker/node_modules/iobroker.js-controller > node lib/preinstallCheck.js NPM version: 6.9.0 > iobroker.js-controller@2.1.1 install /opt/iobroker/node_modules/iobroker.js-controller > node iobroker.js setup first Cannot delete file. Not critical: Error: EACCES: permission denied, unlink '/opt/iobroker/node_modules/iobroker.js-controller/lib/setup/../../_service_iobroker.bat' Cannot delete file. Not critical: Error: EACCES: permission denied, unlink '/opt/iobroker/node_modules/iobroker.js-controller/lib/setup/../../iobroker.bat' Cannot delete file. Not critical: Error: EACCES: permission denied, unlink '/opt/iobroker/node_modules/iobroker.js-controller/lib/setup/../../iob.bat' fs.js:114 throw err; ^ Error: EACCES: permission denied, mkdir '/opt/iobroker/node_modules/iobroker.js-controller/lib/setup/../../tmp' at Object.mkdirSync (fs.js:757:3) at Setup.setup (/opt/iobroker/node_modules/iobroker.js-controller/lib/setup/setupSetup.js:688:58) at processCommand (/opt/iobroker/node_modules/iobroker.js-controller/lib/setup.js:235:23) at Object.module.exports.execute (/opt/iobroker/node_modules/iobroker.js-controller/lib/setup.js:2408:5) at Object.<anonymous> (/opt/iobroker/node_modules/iobroker.js-controller/iobroker.js:1:24) at Module._compile (internal/modules/cjs/loader.js:778:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10) at Module.load (internal/modules/cjs/loader.js:653:32) at tryModuleLoad (internal/modules/cjs/loader.js:593:12) at Function.Module._load (internal/modules/cjs/loader.js:585:3) npm WARN enoent ENOENT: no such file or directory, open '/opt/iobroker/node_modules/iobroker.rflink/package.json' npm WARN onvif-snapshot@1.0.2 requires a peer of onvif@^0.5.5 but none is installed. You must install peer dependencies yourself. npm WARN onvif-snapshot@1.0.2 requires a peer of onvif@^0.5.5 but none is installed. You must install peer dependencies yourself. npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.1.2 (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":"x64"}) npm WARN optional SKIPPING OPTIONAL DEPENDENCY: osx-temperature-sensor@1.0.4 (node_modules/osx-temperature-sensor): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for osx-temperature-sensor@1.0.4: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"}) npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! iobroker.js-controller@2.1.1 install: `node iobroker.js setup first` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the iobroker.js-controller@2.1.1 install script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above. npm ERR! A complete log of this run can be found in: npm ERR! /home/achim/.npm/_logs/2019-12-11T10_32_09_766Z-debug.logDanach habe ich dann festgestellt, dass es den Ordner /opt/iobroker/node_modules/iobroker.js-controller gar nicht mehr gibt. Also habe ich ihn aus dem Backup wiederhergestellt.
achim@Server:/opt/iobroker/node_modules/iobroker.js-controller$ ll total 376K -rw-r--r-- 1 root root 51K Oct 26 1985 CHANGELOG.md -rw-r--r-- 1 root root 420 Oct 26 1985 compactgroupController.js drwxr-xr-x 2 root root 4.0K Dec 11 11:44 conf/ -rw-r--r-- 1 root root 158 Oct 26 1985 controller.js -rw-r--r-- 1 root root 8.2K Oct 26 1985 gulpfile.js -rw-r--r-- 1 root root 74 Oct 26 1985 iob -rw-r--r-- 1 root root 1 Dec 2 15:51 iob_npm.done -rwxr-xr-x 1 root root 33 Oct 26 1985 iobroker.js* -rw-r--r-- 1 root root 42K Dec 2 15:51 io-package.json drwxr-xr-x 10 root root 4.0K Dec 11 11:44 lib/ -rw-r--r-- 1 root root 1.2K Oct 26 1985 LICENSE -rw-r--r-- 1 root root 166K Oct 26 1985 main.js drwxr-xr-x 41 root root 4.0K Dec 2 15:51 node_modules/ -rw-r--r-- 1 root root 5.4K Dec 2 15:51 package.json -rw-r--r-- 1 root root 238 Dec 10 05:31 pids.txt -rw-r--r-- 1 root root 29K Oct 26 1985 README.md -rw-r--r-- 1 root root 5.7K Oct 26 1985 reinstall.js drwxr-xr-x 2 root root 4.0K Dec 2 15:51 tmp/ -rw-r--r-- 1 root root 4.7K Oct 26 1985 tsconfig.jsonUnd da bin ich nun.
Wahrscheinlich tatsächlich wieder mit npm install irgendwas ;-)
Ich will es hoffen. ;-)
Hattest du beim controller install vorher iobroker gestoppt?
Nein. Bisher habe ich den noch gar nicht gestoppt. Wie hoch ist die chance, dass das das Problem einfach repariert gegenüber er startet gar nicht mehr?
EDIT: irgendwie waren ein paar Sachen weg / abgeschnitten.
@Garfonso sagte in No objects found - wie repariere ich das?:
Nein.
bei "Arbeiten am" Controller muss iobroker gestoppt sein, sonst kann (wie du bemerkt hast) npm nicht alle notwendigen Anhängigkeiten installieren
Ein einfaches kopieren von Daten hilft dann auch nichts.
Hast du bereits auf 2.1.1 upgedatet gehabt?
-
@Garfonso
Dann hilftz nur Augen zu und durch ;-)
Du hast ja ein BAckupIch bin weniger der Linux Crack als du.
Mach mal:
iobroker stop npm install iobroker.js-controller iobroker start ´´´ den install Befehl ggf. noch mit --production Wenn du nicht zu tief im System herumgeschraubt hast müsste das reichen. Worst Case wäre dann eine Neuinstallation mit anschließendem Restore des Backups. ABER: Was hast du für ein Backup? nur eine Kopie des ioBroker Verzeichnisses? -
@Garfonso sagte in No objects found - wie repariere ich das?:
Nein.
bei "Arbeiten am" Controller muss iobroker gestoppt sein, sonst kann (wie du bemerkt hast) npm nicht alle notwendigen Anhängigkeiten installieren
Ein einfaches kopieren von Daten hilft dann auch nichts.
Hast du bereits auf 2.1.1 upgedatet gehabt?
@Homoran
Ich bin ehrlich gesagt noch nicht wirklich von der Aussage überzeugt. Es gibt ja keinen Fehler von NPM, sondern vom setup Skript.Das Problem liegt eher in dem setup script und wenn ich darüber nachdenke kann ich mich dunkel daran erinnern, dass das bei der Erstinstallation (also noch ganz ohne laufenden ioBroker) genauso war und auch der gleiche Fehler:
Error: EACCES: permission denied, mkdir '/opt/iobroker/node_modules/iobroker.js-controller/lib/setup/../../tmp'Wie kann da permission denied sein? Ich bin root. Die Fehlermeldung ist hier etwas irreführend, der Ordner /opt/iobroker/node_modules/iobroker.js-controller/ existiert zu dem Zeitpunkt gar nicht. Aus irgendeinem Grund löscht das setup skript den ganzen Ordner. Von der Position der Fehlermeldung muss das irgendwo hier schiefgehen: https://github.com/ioBroker/ioBroker.js-controller/blob/af31ada43f74c918aae2295acac7ab25730ad471/lib/setup/setupSetup.js#L673
Bei den ganzen Pfadrücksprüngen blicke ich nicht durch. Wobei ich auch verwirrt bin, dass ich der einzige bin mit dem Problem (aber wie festgestellt schon immer. Witzigerweise auch nur auf dem Server, die slaves haben das Problem nicht -> vielleicht liegt es daran, dass der Server kein Pi ist? grübel).Naja, mit der Erkenntnis konnte ich das Problem jedenfalls aktuell fixen:
root@Server:/opt/iobroker# npm install --ignore-scripts iobroker.js-controller npm WARN enoent ENOENT: no such file or directory, open '/opt/iobroker/node_modules/iobroker.rflink/package.json' npm WARN onvif-snapshot@1.0.2 requires a peer of onvif@^0.5.5 but none is installed. You must install peer dependencies yourself. npm WARN onvif-snapshot@1.0.2 requires a peer of onvif@^0.5.5 but none is installed. You must install peer dependencies yourself. npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.1.2 (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":"x64"}) npm WARN optional SKIPPING OPTIONAL DEPENDENCY: osx-temperature-sensor@1.0.4 (node_modules/osx-temperature-sensor): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for osx-temperature-sensor@1.0.4: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"}) + iobroker.js-controller@2.1.1 added 46 packages from 42 contributors and audited 45180 packages in 59.429s found 216 vulnerabilities (64 low, 12 moderate, 140 high) run `npm audit fix` to fix them, or `npm audit` for detailsErgebnis:
root@Server:/opt/iobroker# ./iobroker status iobroker is running on this host. At least one iobroker host is running. Objects type: file States type: fileVielen Dank für deine Hilfe (meine ich ernst). Erst dadurch konnte ich in Ruhe über das Problem nachdenken. Jetzt werd ich mal schauen, ob ich rausfinden kann, warum das überhaupt auftritt. grübel
-
@Garfonso
Dann hilftz nur Augen zu und durch ;-)
Du hast ja ein BAckupIch bin weniger der Linux Crack als du.
Mach mal:
iobroker stop npm install iobroker.js-controller iobroker start ´´´ den install Befehl ggf. noch mit --production Wenn du nicht zu tief im System herumgeschraubt hast müsste das reichen. Worst Case wäre dann eine Neuinstallation mit anschließendem Restore des Backups. ABER: Was hast du für ein Backup? nur eine Kopie des ioBroker Verzeichnisses?@Homoran said in No objects found - wie repariere ich das?:
Ich bin weniger der Linux Crack als du.
Naja, das ist übertrieben. ;-) Ich kenne meinen Server jetzt seit ein paar Jahren und mit npm hab ich mich auch schon öfter gestritten...
@Homoran said in No objects found - wie repariere ich das?:
Was hast du für ein Backup?
nur eine Kopie des ioBroker Verzeichnisses?Backup landet bei mir in der Cloud mit Versionierung usw.
Aber im Grunde läuft es auf eine "Kopie des ioBroker Verzeichnisses" hinaus. Was gefällt dir daran nicht? -
@Homoran
Ich bin ehrlich gesagt noch nicht wirklich von der Aussage überzeugt. Es gibt ja keinen Fehler von NPM, sondern vom setup Skript.Das Problem liegt eher in dem setup script und wenn ich darüber nachdenke kann ich mich dunkel daran erinnern, dass das bei der Erstinstallation (also noch ganz ohne laufenden ioBroker) genauso war und auch der gleiche Fehler:
Error: EACCES: permission denied, mkdir '/opt/iobroker/node_modules/iobroker.js-controller/lib/setup/../../tmp'Wie kann da permission denied sein? Ich bin root. Die Fehlermeldung ist hier etwas irreführend, der Ordner /opt/iobroker/node_modules/iobroker.js-controller/ existiert zu dem Zeitpunkt gar nicht. Aus irgendeinem Grund löscht das setup skript den ganzen Ordner. Von der Position der Fehlermeldung muss das irgendwo hier schiefgehen: https://github.com/ioBroker/ioBroker.js-controller/blob/af31ada43f74c918aae2295acac7ab25730ad471/lib/setup/setupSetup.js#L673
Bei den ganzen Pfadrücksprüngen blicke ich nicht durch. Wobei ich auch verwirrt bin, dass ich der einzige bin mit dem Problem (aber wie festgestellt schon immer. Witzigerweise auch nur auf dem Server, die slaves haben das Problem nicht -> vielleicht liegt es daran, dass der Server kein Pi ist? grübel).Naja, mit der Erkenntnis konnte ich das Problem jedenfalls aktuell fixen:
root@Server:/opt/iobroker# npm install --ignore-scripts iobroker.js-controller npm WARN enoent ENOENT: no such file or directory, open '/opt/iobroker/node_modules/iobroker.rflink/package.json' npm WARN onvif-snapshot@1.0.2 requires a peer of onvif@^0.5.5 but none is installed. You must install peer dependencies yourself. npm WARN onvif-snapshot@1.0.2 requires a peer of onvif@^0.5.5 but none is installed. You must install peer dependencies yourself. npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.1.2 (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":"x64"}) npm WARN optional SKIPPING OPTIONAL DEPENDENCY: osx-temperature-sensor@1.0.4 (node_modules/osx-temperature-sensor): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for osx-temperature-sensor@1.0.4: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"}) + iobroker.js-controller@2.1.1 added 46 packages from 42 contributors and audited 45180 packages in 59.429s found 216 vulnerabilities (64 low, 12 moderate, 140 high) run `npm audit fix` to fix them, or `npm audit` for detailsErgebnis:
root@Server:/opt/iobroker# ./iobroker status iobroker is running on this host. At least one iobroker host is running. Objects type: file States type: fileVielen Dank für deine Hilfe (meine ich ernst). Erst dadurch konnte ich in Ruhe über das Problem nachdenken. Jetzt werd ich mal schauen, ob ich rausfinden kann, warum das überhaupt auftritt. grübel
@Garfonso sagte in No objects found - wie repariere ich das?:
Aus irgendeinem Grund löscht das setup skript den ganzen Ordner.
Ja!
Das ist ein temporärer Ordner, der nach der Installation gelöscht wird.@Garfonso sagte in No objects found - wie repariere ich das?:
vielleicht liegt es daran, dass der Server kein Pi ist?
Nein, das tut es bei mir auch auf Debian nativ und in Proxmox.
@Garfonso sagte in No objects found - wie repariere ich das?:
Was gefällt dir daran nicht?
wenn du ein
iobroker backupmachen würdest mit späteremiobroker restoreOder die Analoga im BackitUp Adapter, würden alle Instanzen komplett neu installiert ohne Ballst oder eingeschlichene Fehler.
Außerdem würde bei einem Node-/ oder Systemwechsel alles für die entsprechende Hardware / Node-Version neu kompiliert.@Garfonso sagte in No objects found - wie repariere ich das?:
Wie kann da permission denied sein?
Wie alt ist deine Installation?
Hast du ggf. mal den Fixer drüberlaufen lassen.
Diese Meldung gab es gaaaanz früher mal -
@Garfonso sagte in No objects found - wie repariere ich das?:
Aus irgendeinem Grund löscht das setup skript den ganzen Ordner.
Ja!
Das ist ein temporärer Ordner, der nach der Installation gelöscht wird.@Garfonso sagte in No objects found - wie repariere ich das?:
vielleicht liegt es daran, dass der Server kein Pi ist?
Nein, das tut es bei mir auch auf Debian nativ und in Proxmox.
@Garfonso sagte in No objects found - wie repariere ich das?:
Was gefällt dir daran nicht?
wenn du ein
iobroker backupmachen würdest mit späteremiobroker restoreOder die Analoga im BackitUp Adapter, würden alle Instanzen komplett neu installiert ohne Ballst oder eingeschlichene Fehler.
Außerdem würde bei einem Node-/ oder Systemwechsel alles für die entsprechende Hardware / Node-Version neu kompiliert.@Garfonso sagte in No objects found - wie repariere ich das?:
Wie kann da permission denied sein?
Wie alt ist deine Installation?
Hast du ggf. mal den Fixer drüberlaufen lassen.
Diese Meldung gab es gaaaanz früher mal@Homoran said in No objects found - wie repariere ich das?:
@Garfonso sagte in No objects found - wie repariere ich das?:
Aus irgendeinem Grund löscht das setup skript den ganzen Ordner.
Ja!
Das ist ein temporärer Ordner, der nach der Installation gelöscht wird.Da hast du mich falsch verstanden. Es wird nicht der tmp Ordner gelöscht, sondern an der Stelle, wo das setup skript den tmp Ordner erstellen will, ist /opt/iobroker/node_modules/iobroker.js-controller/ schon komplett gelöscht. Das war damals bei der Erstinstallation auch schon so und ich weiß noch, dass ich damals ziemlich verzweifelt bin...
@Homoran said in No objects found - wie repariere ich das?:
wenn du ein iobroker backup machen würdest mit späterem iobroker restore Oder die Analoga im BackitUp Adapter, würden alle Instanzen komplett neu installiert ohne Ballst oder eingeschlichene Fehler.
Außerdem würde bei einem Node-/ oder Systemwechsel alles für die entsprechende Hardware / Node-Version neu kompiliert.Also wäre deine Empfehlung mal iobroker backup auszuführen, den Ordner node_modules platt zu machen und dann iobroker restore?
-
@Homoran said in No objects found - wie repariere ich das?:
@Garfonso sagte in No objects found - wie repariere ich das?:
Aus irgendeinem Grund löscht das setup skript den ganzen Ordner.
Ja!
Das ist ein temporärer Ordner, der nach der Installation gelöscht wird.Da hast du mich falsch verstanden. Es wird nicht der tmp Ordner gelöscht, sondern an der Stelle, wo das setup skript den tmp Ordner erstellen will, ist /opt/iobroker/node_modules/iobroker.js-controller/ schon komplett gelöscht. Das war damals bei der Erstinstallation auch schon so und ich weiß noch, dass ich damals ziemlich verzweifelt bin...
@Homoran said in No objects found - wie repariere ich das?:
wenn du ein iobroker backup machen würdest mit späterem iobroker restore Oder die Analoga im BackitUp Adapter, würden alle Instanzen komplett neu installiert ohne Ballst oder eingeschlichene Fehler.
Außerdem würde bei einem Node-/ oder Systemwechsel alles für die entsprechende Hardware / Node-Version neu kompiliert.Also wäre deine Empfehlung mal iobroker backup auszuführen, den Ordner node_modules platt zu machen und dann iobroker restore?
@Garfonso sagte in No objects found - wie repariere ich das?:
Also wäre deine Empfehlung mal iobroker backup auszuführen, den Ordner node_modules platt zu machen und dann iobroker restore?
nicht ganz.
Den gesamten ioBroker Ordner und dann eine Neuinstallation - darin dann das RestoreAber dieses "you don`t have the Permission" macht mich jetzt doch neugierig was da schiefgelaufen ist
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