ioBroker.js-controller icon indicating copy to clipboard operation
ioBroker.js-controller copied to clipboard

Restore very old backup fails

Open Apollon77 opened this issue 3 years ago • 3 comments

https://forum.iobroker.net/topic/54067/wiederherstellung-error-abbruch/2

backitup.0
2022-04-09 00:43:59.660 error [ERROR] [iobroker] at BackupRestore._restoreAfterStop (/opt/iobroker/node_modules/iobroker.js-controller/lib/setup/setupBackup.js:686:52)
backitup.0
2022-04-09 00:43:59.658 error [ERROR] [iobroker] TypeError: Cannot read property 'hostname' of undefined
backitup.0
2022-04-09 00:43:59.655 error [ERROR] [iobroker] This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise rejected with the reason:

Apollon77 avatar Apr 12 '22 19:04 Apollon77

TypeError: Cannot read property 'hostname' of undefined
  File "/opt/iobroker/node_modules/iobroker.js-controller/lib/setup/setupBackup.js", line 686, col 52, in BackupRestore._restoreAfterStop
    restore.config ? restore.config.system.hostname || hostname : hostname,
  File "/opt/iobroker/node_modules/iobroker.js-controller/lib/setup/setupBackup.js", line 1118, col 49, in Daemon.<anonymous>
    const exitCode = await this._restoreAfterStop(false, force, dontDeleteAdapters);
  File "events.js", line 412, col 35, in Daemon.emit
  File "domain.js", line 475, col 12, in Daemon.emit
  File "/opt/iobroker/node_modules/daemonize2/lib/daemonize.js", line 246, col 14, in Daemon._kill
    this.emit("notrunning");
  File "/opt/iobroker/node_modules/daemonize2/lib/daemonize.js", line 185, col 17, in Daemon.stop
    return this._kill(signals || ["SIGTERM"], timeout || 0, listener);
  File "/opt/iobroker/node_modules/iobroker.js-controller/lib/setup/setupBackup.js", line 1122, col 24, in <anonymous>
    daemon.stop();

Apollon77 avatar Apr 19 '22 11:04 Apollon77

seems like iun this case "restore.config.system" is not existing

Apollon77 avatar Apr 19 '22 11:04 Apollon77