Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bug]: error at migrating the iobroker db from jsonl to redis #2945

Closed
1 task done
dlehmann69iob opened this issue Oct 19, 2024 · 0 comments · Fixed by #2947
Closed
1 task done

[bug]: error at migrating the iobroker db from jsonl to redis #2945

dlehmann69iob opened this issue Oct 19, 2024 · 0 comments · Fixed by #2947
Labels

Comments

@dlehmann69iob
Copy link

dlehmann69iob commented Oct 19, 2024

No existing issues.

  • There is no existing issue for my problem.

Description

`======================= SUMMARY =======================
v.2024-08-12

Static hostname: iobroker
Icon name: computer-container
Chassis: container ☐
Virtualization: lxc
Operating System: Debian GNU/Linux 12 (bookworm)
Kernel: Linux 6.8.12-2-pve
Architecture: x86-64

Installation: lxc
Kernel: x86_64
Userland: 64 bit
Timezone: Europe/Berlin (CEST, +0200)
User-ID: 0
Display-Server: false
Boot Target: graphical.target

Pending OS-Updates: 0
Pending iob updates: 0

Nodejs-Installation:
/usr/bin/nodejs v20.18.0
/usr/bin/node v20.18.0
/usr/bin/npm 10.8.2
/usr/bin/npx 10.8.2
/usr/bin/corepack 0.29.3

Recommended versions are nodejs 20.18.0 and npm 10.8.2
Your nodejs installation is correct

MEMORY:
total used free shared buff/cache available
Mem: 8.6G 1.6G 5.6G 86K 1.5G 7.0G
Swap: 8.6G 1.1M 8.6G
Total: 17G 1.6G 14G

Active iob-Instances: 22
Upgrade policy: none

ioBroker Core: js-controller 7.0.0
admin 7.2.6

ioBroker Status: iobroker is running on this host.

Objects type: jsonl
States type: jsonl

Status admin and web instance:

  • system.adapter.admin.0 : admin : iobroker - enabled, port: 8081, bind: 0.0.0.0, run as: admin
  • system.adapter.web.0 : web : iobroker - enabled, port: 8082, bind: 0.0.0.0, run as: admin

Objects: 15063
States: 12530

Size of iob-Database:

26M /opt/iobroker/iobroker-data/objects.jsonl
4.5M /opt/iobroker/iobroker-data/states.jsonl

=================== END OF SUMMARY ====================`

At the migration I get the following error.

Connecting to previous DB "jsonl/jsonl"... Creating backup ... This can take some time ... please be patient! host.iobroker 15067 objects saved host.iobroker 12330 states saved host.iobroker Validating backup ... host.iobroker Backup not created: ENOENT: no such file or directory, open '/opt/iobroker/node_modules/iobroker.js-controller/tmp/backup/config.json' Uncaught Rejection: IoBrokerError: ENOENT: no such file or directory, open '/opt/iobroker/node_modules/iobroker.js-controller/tmp/backup/config.json' at BackupRestore.createBackup (file:///opt/iobroker/node_modules/@iobroker/js-controller-cli/src/lib/setup/setupBackup.ts:382:19) at file:///opt/iobroker/node_modules/@iobroker/js-controller-cli/src/lib/setup/setupSetup.ts:597:36 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: IoBrokerError: ENOENT: no such file or directory, open '/opt/iobroker/node_modules/iobroker.js-controller/tmp/backup/config.json' at BackupRestore.createBackup (file:///opt/iobroker/node_modules/@iobroker/js-controller-cli/src/lib/setup/setupBackup.ts:382:19) at file:///opt/iobroker/node_modules/@iobroker/js-controller-cli/src/lib/setup/setupSetup.ts:597:36
Please also see my forum post here - https://forum.iobroker.net/topic/77556/fehler-bei-der-migration-von-jsonl-zu-redis/2

Reproduction instruction

iobroker setup custom

JS-controller version

7.0.0

Node version

20.18.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
1 participant