NEWS
TESTER gesucht / Backup auf Fritz.nas - node 18.18.0
-
@thomas-braun sagte in TESTER gesucht / Backup auf Fritz.nas - node 18.18.0:
In /etc/environment
echad@chet:/opt/iobroker $ echo $UV_USE_IO_URING 0
puh, ich wusste dass du das weisst und jetzt sollte das Backup funktionieren. Probiere einfach mal iob backup und auch das skript
-
/opt/iobroker/backups unmounted //fritz.box/fritz.nas/Hitachi-HTS545012B9SA00-01/iobbackups/chet mounted into /opt/iobroker/backups file test_pipeline_compressed_tar.tar.gz created file test_pipeline_compressed_tar.tar.gz done number of files in test_pipeline_compressed_tar.tar.gz: 0 file test_pipeline_compressed_zlib.tar.gz created file test_pipeline_compressed_zlib.tar.gz done number of files in test_pipeline_compressed_zlib.tar.gz: 0 file test_pipeline_uncompressed.tar created file test_pipeline_uncompressed.tar done number of files in test_pipeline_uncompressed.tar: 0 listing of created files in /opt/iobroker/backups -rwxrwxrwx 1 root root 252416 Oct 14 2023 /opt/iobroker/backups/test_pipeline_uncompressed.tar -rwxrwxrwx 1 root root 16384 Oct 14 00:49 /opt/iobroker/backups/test_pipeline_compressed_zlib.tar.gz -rwxrwxrwx 1 root root 16384 Oct 14 00:49 /opt/iobroker/backups/test_pipeline_compressed_tar.tar.gz
Und Backup geht in die Hose...
-
@thomas-braun gestern ging das doch! im script zeile vor test():
console.log(process.env.UV_USE_IO_URING)
-
Alle Backups von heute sind Murks:
echad@chet:/opt/iobroker $ ls -lAh backups/ | grep 2023_10_14 -rwxrwxrwx 1 root root 16K Oct 14 00:28 historyDB_2023_10_14-00_27_45_chet_backupiobroker.tar.gz -rwxrwxrwx 1 root root 16K Oct 14 00:53 historyDB_2023_10_14-00_53_15_chet_backupiobroker.tar.gz -rwxrwxrwx 1 root root 16K Oct 14 00:27 iobroker_2023_10_14-00_27_33_chet_backupiobroker.tar.gz -rwxrwxrwx 1 root root 16K Oct 14 00:53 iobroker_2023_10_14-00_53_04_chet_backupiobroker.tar.gz -rwxrwxrwx 1 root root 16K Oct 14 00:28 javascripts_2023_10_14-00_28_19_chet_backupiobroker.tar.gz -rwxrwxrwx 1 root root 14K Oct 14 00:53 javascripts_2023_10_14-00_53_48_chet_backupiobroker.tar.gz -rwxrwxrwx 1 root root 957 Oct 14 00:28 zigbee.0_2023_10_14-00_28_18_chet_backupiobroker.tar.gz -rwxrwxrwx 1 root root 968 Oct 14 00:53 zigbee.0_2023_10_14-00_53_47_chet_backupiobroker.tar.gz
Skript:
/opt/iobroker/backups unmounted //fritz.box/fritz.nas/Hitachi-HTS545012B9SA00-01/iobbackups/chet mounted into /opt/iobroker/backups file test_pipeline_compressed_tar.tar.gz created file test_pipeline_compressed_tar.tar.gz done number of files in test_pipeline_compressed_tar.tar.gz: 115 file test_pipeline_compressed_zlib.tar.gz created file test_pipeline_compressed_zlib.tar.gz done number of files in test_pipeline_compressed_zlib.tar.gz: 115 file test_pipeline_uncompressed.tar created file test_pipeline_uncompressed.tar done number of files in test_pipeline_uncompressed.tar: 115 listing of created files in /opt/iobroker/backups -rwxrwxrwx 1 root root 821248 Oct 14 00:58 /opt/iobroker/backups/test_pipeline_uncompressed.tar -rwxrwxrwx 1 root root 154604 Oct 14 00:58 /opt/iobroker/backups/test_pipeline_compressed_zlib.tar.gz -rwxrwxrwx 1 root root 154604 Oct 14 00:58 /opt/iobroker/backups/test_pipeline_compressed_tar.tar.gz
-
@thomas-braun die Ausgabe vor 10Min. war doch negativ, auch beim Skript. Und jetzt ist sie ok. Beide Male sollte die env gesetzt sein. Jetzt bin ich verwirrt
-
@fastfoot
Ich muss ins Bett. Keine Konzentration mehr. -
@fastfoot N8! geht mir auch so. Morgen knacken wir das
-
Ich hab jetzt die Kiste komplett gebootet, damit /etc/environment definitiv gesourct wird.
Backups kaputt.
-
@thomas-braun sagte in TESTER gesucht / Backup auf Fritz.nas - node 18.18.0:
Ich hab jetzt die Kiste komplett gebootet, damit /etc/environment definitiv gesourct wird.
Backups kaputt.
da hab ich noch was, aber nach dem Schlafen
-
Aber die ENV wird jetzt systemweit berücksichtigt:
echad@chet:/opt/iobroker $ node cifs.js 0 Copy output from below /opt/iobroker/backups unmounted //fritz.box/fritz.nas/Hitachi-HTS545012B9SA00-01/iobbackups/chet mounted into /opt/iobroker/backups file test_pipeline_compressed_tar.tar.gz created file test_pipeline_compressed_tar.tar.gz done number of files in test_pipeline_compressed_tar.tar.gz: 115 file test_pipeline_compressed_zlib.tar.gz created file test_pipeline_compressed_zlib.tar.gz done number of files in test_pipeline_compressed_zlib.tar.gz: 115 file test_pipeline_uncompressed.tar created file test_pipeline_uncompressed.tar done number of files in test_pipeline_uncompressed.tar: 115 listing of created files in /opt/iobroker/backups -rwxrwxrwx 1 root root 821248 Oct 14 01:15 /opt/iobroker/backups/test_pipeline_uncompressed.tar -rwxrwxrwx 1 root root 154609 Oct 14 01:15 /opt/iobroker/backups/test_pipeline_compressed_zlib.tar.gz -rwxrwxrwx 1 root root 154609 Oct 14 01:15 /opt/iobroker/backups/test_pipeline_compressed_tar.tar.gz
-
Fun fact:
Den iobroker interessiert das aber nicht:echad@chet:/opt/iobroker $ sudo -u iobroker node cifs.js undefined Copy output from below /opt/iobroker/backups unmounted //fritz.box/fritz.nas/Hitachi-HTS545012B9SA00-01/iobbackups/chet mounted into /opt/iobroker/backups file test_pipeline_compressed_tar.tar.gz created file test_pipeline_compressed_tar.tar.gz done number of files in test_pipeline_compressed_tar.tar.gz: 0 file test_pipeline_compressed_zlib.tar.gz created file test_pipeline_compressed_zlib.tar.gz done number of files in test_pipeline_compressed_zlib.tar.gz: 0 file test_pipeline_uncompressed.tar created file test_pipeline_uncompressed.tar done number of files in test_pipeline_uncompressed.tar: 0 listing of created files in /opt/iobroker/backups -rwxrwxrwx 1 root root 253952 Oct 14 01:17 /opt/iobroker/backups/test_pipeline_uncompressed.tar -rwxrwxrwx 1 root root 16384 Oct 14 01:17 /opt/iobroker/backups/test_pipeline_compressed_zlib.tar.gz -rwxrwxrwx 1 root root 16384 Oct 14 01:17 /opt/iobroker/backups/test_pipeline_compressed_tar.tar.gz
End of output to copy
-
@thomas-braun sagte in TESTER gesucht / Backup auf Fritz.nas - node 18.18.0:
Den iobroker interessiert das aber nicht:
na da haben wirs!
vi iob
sudo -H -u iobroker node /opt/iobroker/node_modules/iobroker.js-controller/iobroker.js "$@"
abändern mit
UV_USE_IO_URING=0
davor setzen
stoppen und iob start. NICHT über den service -
echad@chet:/opt/iobroker $ env | grep UV_USE UV_USE_IO_URING=0 echad@chet:/opt/iobroker $ sudo -H -u iobroker env | grep UV_USE echad@chet:/opt/iobroker $
Der Schlingel!
-
@thomas-braun mach mal noch den iob edit, das geht noch
-
#!/usr/bin/bash if (( $# == 1 )) && ([ "$1" = "start" ] || [ "$1" = "stop" ] || [ "$1" = "restart" ]); then sudo systemctl $1 iobroker elif [ "$1" = "fix" ]; then curl -sL https://iobroker.net/fix.sh | bash - elif [ "$1" = "nodejs-update" ]; then sudo -u iobroker curl -sLf https://iobroker.net/node-update.sh --output /home/iobroker/.nodejs-update.sh && bash /home/iobroker/.nodejs-update.sh $2 elif [ "$1" = "diag" ]; then sudo -u iobroker curl -sLf https://iobroker.net/diag.sh --output /home/iobroker/.diag.sh && bash /home/iobroker/.diag.sh | sudo -u iobroker tee /home/iobroke> else UV_USE_IO_URING=0 sudo -H -u iobroker node /opt/iobroker/node_modules/iobroker.js-controller/iobroker.js "$@" fi
Habs mit nano gemacht, auf vi hatte ich um die Uhrzeit keinen Bock mehr...
-
@thomas-braun Nee, davor, so wie beim script, sonst haben wir denselben Sch......
-
@thomas-braun sagte in TESTER gesucht / Backup auf Fritz.nas - node 18.18.0:
iobroker node /opt/iobroker/node_modules/iobroker.js-controller/iobroker.js "$@"
oder alternativ auf der Konsole
su iobroker UV_USE_IO_URING=0 node /opt/iobroker/node_modules/iobroker.js-controller/iobroker.js start
-
Negativ, Backups sind Schrott.
-
@thomas-braun dann morgen, kann nicht mehr
-
@thomas-braun sagte in TESTER gesucht / Backup auf Fritz.nas - node 18.18.0:
Negativ, Backups sind Schrott.
Bei mir im wsl kam dass ich keine environments setzen dürfe! im wsl darf ich nicht root sein, so wie es soll. Aber so gehts
UV_USE_IO_URING=0 sudo -H -u iobroker --preserve-env=UV_USE_IO_URING env | grep UV_
und so den Aufruf von iobroker im iob gestalten