NEWS
[gelöst] iob nodejs-update 18 => curl: no URL specified!
-
Moin,
ich versuche gerade bei einem Freund nodejs auf Version 18 zu bringen. Der ist auf dem
Stable
Zweig unterwegs (im Gegensatz zu mir)
Ich habe zunächst einiob fix
durchgeführt damit er den
iob diag
befehl auch kennt. Und den Befehl um nodejs zu fixen:pi@iobroker2:/opt/iobroker$ iob nodejs-update 18 curl: no URL specified! curl: try 'curl --help' or 'curl --manual' for more information pi@iobroker2:/opt/iobroker$ iob nodejs-update curl: no URL specified! curl: try 'curl --help' or 'curl --manual' for more information
Dazu habe ich hier so nichts gefunden.
Hier die Langfassung vom diag:
Skript v.2023-10-10 *** BASE SYSTEM *** Static hostname: iobroker2 Icon name: computer-vm Chassis: vm Virtualization: vmware Operating System: Ubuntu 22.04.3 LTS Kernel: Linux 5.15.0-91-generic Architecture: x86-64 Hardware Vendor: VMware, Inc. Hardware Model: VMware7,1 model name : AMD FX-9830P RADEON R7, 12 COMPUTE CORES 4C+8G Docker : false Virtualization : vmware Kernel : x86_64 Userland : amd64 Systemuptime and Load: 19:50:49 up 40 min, 2 users, load average: 0.05, 0.03, 0.07 CPU threads: 3 *** Time and Time Zones *** Local time: Sat 2023-12-30 19:50:49 CET Universal time: Sat 2023-12-30 18:50:49 UTC RTC time: Sat 2023-12-30 18:50:48 Time zone: Europe/Berlin (CET, +0100) System clock synchronized: yes NTP service: active RTC in local TZ: no *** User and Groups *** pi /home/pi pi adm cdrom sudo dip plugdev lxd iobroker *** X-Server-Setup *** X-Server: false Desktop: Terminal: tty Boot Target: graphical.target *** MEMORY *** total used free shared buff/cache available Mem: 3.9G 214M 2.7G 1.0M 991M 3.4G Swap: 3.9G 0B 3.9G Total: 7.8G 214M 6.6G 3911 M total memory 214 M used memory 451 M active memory 471 M inactive memory 2705 M free memory 107 M buffer memory 884 M swap cache 3924 M total swap 0 M used swap 3924 M free swap *** FAILED SERVICES *** UNIT LOAD ACTIVE SUB DESCRIPTION * iobroker.service loaded failed failed ioBroker Server LOAD = Reflects whether the unit definition was properly loaded. ACTIVE = The high-level unit activation state, i.e. generalization of SUB. SUB = The low-level unit activation state, values depend on unit type. 1 loaded units listed. *** FILESYSTEM *** Filesystem Type Size Used Avail Use% Mounted on tmpfs tmpfs 392M 1.2M 390M 1% /run /dev/sda2 ext4 62G 12G 48G 20% / tmpfs tmpfs 2.0G 0 2.0G 0% /dev/shm tmpfs tmpfs 5.0M 0 5.0M 0% /run/lock /dev/sda1 vfat 1.1G 6.1M 1.1G 1% /boot/efi tmpfs tmpfs 392M 4.0K 392M 1% /run/user/1000 Messages concerning ext4 filesystem in dmesg: [Sat Dec 30 19:09:54 2023] EXT4-fs (sda2): mounted filesystem with ordered data mode. Opts: (null). Quota mode: none. [Sat Dec 30 19:09:55 2023] EXT4-fs (sda2): re-mounted. Opts: (null). Quota mode: none. Show mounted filesystems \(real ones only\): TARGET SOURCE FSTYPE OPTIONS / /dev/sda2 ext4 rw,relatime |-/snap/core20/2015 /dev/loop0 squashfs ro,nodev,relatime,errors=continue |-/snap/core20/2105 /dev/loop1 squashfs ro,nodev,relatime,errors=continue |-/snap/lxd/23541 /dev/loop2 squashfs ro,nodev,relatime,errors=continue |-/snap/lxd/24322 /dev/loop3 squashfs ro,nodev,relatime,errors=continue |-/snap/snapd/20290 /dev/loop4 squashfs ro,nodev,relatime,errors=continue |-/snap/snapd/20092 /dev/loop5 squashfs ro,nodev,relatime,errors=continue `-/boot/efi /dev/sda1 vfat rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro Files in neuralgic directories: /var: 1.9G /var/ 836M /var/lib 805M /var/log 801M /var/log/journal/20bd9355d56c4e4b8e72a2b69d49e2c0 801M /var/log/journal Archived and active journals take up 800.0M in the file system. /opt/iobroker/backups: 32M /opt/iobroker/backups/ /opt/iobroker/iobroker-data: 243M /opt/iobroker/iobroker-data/ 163M /opt/iobroker/iobroker-data/files 70M /opt/iobroker/iobroker-data/backup-objects 67M /opt/iobroker/iobroker-data/files/javascript.admin 48M /opt/iobroker/iobroker-data/files/javascript.admin/static The five largest files in iobroker-data are: 21M /opt/iobroker/iobroker-data/files/web.admin/static/js/main.aaea95f8.js.map 11M /opt/iobroker/iobroker-data/objects.jsonl 8.3M /opt/iobroker/iobroker-data/files/web.admin/static/js/main.aaea95f8.js 7.5M /opt/iobroker/iobroker-data/files/javascript.admin/static/js/691.26ff76ce.chunk.js.map 7.1M /opt/iobroker/iobroker-data/files/javascript.admin/static/js/610.d3cce782.chunk.js.map USB-Devices by-id: USB-Sticks - Avoid direct links to /dev/* in your adapter setups, please always prefer the links 'by-id': find: '/dev/serial/by-id/': No such file or directory *** NodeJS-Installation *** /home/iobroker/.diag.sh: line 277: nodejs: command not found /usr/bin/node v16.20.2 /usr/bin/npm 8.19.4 /usr/bin/npx 8.19.4 /usr/bin/corepack 0.17.0 /home/iobroker/.diag.sh: line 288: nodejs: command not found *** nodejs is NOT correctly installed *** nodejs: Installed: 16.20.2-deb-1nodesource1 Candidate: 16.20.2-deb-1nodesource1 Version table: *** 16.20.2-deb-1nodesource1 500 500 https://deb.nodesource.com/node_16.x jammy/main amd64 Packages 100 /var/lib/dpkg/status 12.22.9~dfsg-1ubuntu3.2 500 500 http://de.archive.ubuntu.com/ubuntu jammy-updates/universe amd64 Packages 500 http://de.archive.ubuntu.com/ubuntu jammy-security/universe amd64 Packages 12.22.9~dfsg-1ubuntu3 500 500 http://de.archive.ubuntu.com/ubuntu jammy/universe amd64 Packages Temp directories causing npm8 problem: 0 No problems detected Errors in npm tree: *** ioBroker-Installation *** ioBroker Status iobroker is not running on this host. Objects type: jsonl States type: jsonl Core adapters versions js-controller: 5.0.17 admin: 6.12.0 javascript: 7.1.6 Adapters from github: 2 Adapter State system.adapter.admin.0 : admin : iobroker2 - enabled, port: 8081, bind: 0.0.0.0, run as: admin system.adapter.alexa2.0 : alexa2 : iobroker2 - enabled system.adapter.backitup.0 : backitup : iobroker2 - enabled system.adapter.discovery.0 : discovery : iobroker2 - enabled system.adapter.easee.0 : easee : iobroker2 - disabled system.adapter.emporia.0 : emporia : iobroker2 - enabled system.adapter.ical.0 : ical : iobroker2 - enabled system.adapter.javascript.0 : javascript : iobroker2 - enabled system.adapter.mqtt.0 : mqtt : iobroker2 - disabled, port: 1883, bind: 0.0.0.0 system.adapter.octoprint.0 : octoprint : iobroker2 - disabled system.adapter.shelly.0 : shelly : iobroker2 - enabled, port: 1882, bind: 0.0.0.0 system.adapter.shelly.1 : shelly : iobroker2 - enabled, port: 1882, bind: 0.0.0.0 system.adapter.shuttercontrol.0 : shuttercontrol : iobroker2 - disabled system.adapter.sonoff.0 : sonoff : iobroker2 - enabled, port: 1884, bind: 0.0.0.0 system.adapter.sourceanalytix.0 : sourceanalytix : iobroker2 - enabled system.adapter.systeminfo.0 : systeminfo : iobroker2 - enabled system.adapter.time-switch.0 : time-switch : iobroker2 - enabled system.adapter.tr-064.0 : tr-064 : iobroker2 - disabled system.adapter.trashschedule.0 : trashschedule : iobroker2 - enabled system.adapter.tuya.0 : tuya : iobroker2 - enabled system.adapter.vis-canvas-gauges.0 : vis-canvas-gauges : iobroker2 - enabled system.adapter.vis-icontwo.0 : vis-icontwo : iobroker2 - enabled system.adapter.vis-inventwo.0 : vis-inventwo : iobroker2 - enabled system.adapter.vis-rgraph.0 : vis-rgraph : iobroker2 - enabled system.adapter.vis-timeandweather.0 : vis-timeandweather : iobroker2 - enabled system.adapter.vis-weather.0 : vis-weather : iobroker2 - enabled system.adapter.vis.0 : vis : iobroker2 - enabled system.adapter.web.0 : web : iobroker2 - enabled, port: 8082, bind: 0.0.0.0, run as: admin system.adapter.zigbee.0 : zigbee : iobroker2 - disabled, port: /dev/serial/by-id/usb-Texas_Instruments_TI_CC2531_USB_CDC___0X00124B0014D9A175-if00 system.adapter.zigbee.1 : zigbee : iobroker2 - enabled, port: tcp://192.168.2.166:5000 + instance is alive Enabled adapters with bindings system.adapter.admin.0 : admin : iobroker2 - enabled, port: 8081, bind: 0.0.0.0, run as: admin system.adapter.shelly.0 : shelly : iobroker2 - enabled, port: 1882, bind: 0.0.0.0 system.adapter.shelly.1 : shelly : iobroker2 - enabled, port: 1882, bind: 0.0.0.0 system.adapter.sonoff.0 : sonoff : iobroker2 - enabled, port: 1884, bind: 0.0.0.0 system.adapter.web.0 : web : iobroker2 - enabled, port: 8082, bind: 0.0.0.0, run as: admin system.adapter.zigbee.1 : zigbee : iobroker2 - enabled, port: tcp://192.168.2.166:5000 ioBroker-Repositories stable : http://download.iobroker.net/sources-dist.json beta : http://download.iobroker.net/sources-dist-latest.json Active repo(s): stable Installed ioBroker-Instances Used repository: stable Adapter "admin" : 6.12.0 , installed 6.12.0 Adapter "alexa2" : 3.26.3 , installed 3.26.3 Adapter "backitup" : 2.9.8 , installed 2.9.8 Adapter "discovery" : 4.2.0 , installed 4.2.0 Adapter "easee" : 1.0.10 , installed 1.0.10 Adapter "emporia" : 0.0.12 , installed 0.0.13 Adapter "ical" : 1.13.3 , installed 1.13.3 Adapter "javascript" : 7.1.6 , installed 7.1.6 Controller "js-controller": 5.0.17 , installed 5.0.17 Adapter "lametric" : 3.1.1 , installed 3.1.1 Adapter "mqtt" : 5.1.0 , installed 5.1.0 Adapter "octoprint" : 5.1.0 , installed 5.1.0 Adapter "shelly" : 6.6.1 , installed 6.6.1 Adapter "shuttercontrol": 1.6.3 , installed 1.6.3 Adapter "simple-api" : 2.7.2 , installed 2.7.2 Adapter "socketio" : 6.6.0 , installed 6.6.0 Adapter "sonoff" : 3.0.3 , installed 3.0.3 Adapter "systeminfo" : 1.1.0 , installed 1.1.0 Adapter "tr-064" : 4.2.18 , installed 4.2.18 Adapter "trashschedule": 2.3.0 , installed 2.3.0 Adapter "tuya" : 3.15.0 , installed 3.15.0 Adapter "vis" : 1.5.4 , installed 1.5.4 Adapter "vis-canvas-gauges": 1.0.1, installed 1.0.1 Adapter "vis-icontwo" : 1.0.0 , installed 1.0.0 Adapter "vis-inventwo" : 3.3.3 , installed 3.3.3 Adapter "vis-rgraph" : 0.0.2 , installed 0.0.2 Adapter "vis-timeandweather": 1.2.2, installed 1.2.2 Adapter "vis-weather" : 2.5.6 , installed 2.5.6 Adapter "web" : 6.1.10 , installed 6.1.10 Adapter "ws" : 2.5.8 , installed 2.5.8 Adapter "zigbee" : 1.9.5 , installed 1.8.24 [Updatable] Objects and States Please stand by - This may take a while Objects: 4382 States: 4490 *** OS-Repositories and Updates *** Hit:1 http://de.archive.ubuntu.com/ubuntu jammy InRelease Hit:2 http://de.archive.ubuntu.com/ubuntu jammy-updates InRelease Hit:3 http://de.archive.ubuntu.com/ubuntu jammy-backports InRelease Hit:4 http://de.archive.ubuntu.com/ubuntu jammy-security InRelease Get:5 https://deb.nodesource.com/node_16.x jammy InRelease [4583 B] Fetched 4583 B in 1s (4199 B/s) Reading package lists... Pending Updates: 0 *** Listening Ports *** Active Internet connections (only servers) Proto Recv-Q Send-Q Local Address Foreign Address State User Inode PID/Program name tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 0 23726 837/sshd: /usr/sbin tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN 0 18668 1/init tcp 0 0 127.0.0.53:53 0.0.0.0:* LISTEN 102 20855 699/systemd-resolve tcp6 0 0 :::22 :::* LISTEN 0 23728 837/sshd: /usr/sbin tcp6 0 0 :::111 :::* LISTEN 0 17633 1/init udp 0 0 127.0.0.53:53 0.0.0.0:* 102 20854 699/systemd-resolve udp 0 0 0.0.0.0:111 0.0.0.0:* 0 18669 1/init udp6 0 0 fe80::20c:29ff:fea9:546 :::* 101 21110 655/systemd-network udp6 0 0 :::111 :::* 0 18670 1/init *** Log File - Last 25 Lines *** 2023-12-30 19:25:48.243 - info: alexa2.0 (1081) terminating 2023-12-30 19:25:48.243 - info: shelly.0 (1036) terminating 2023-12-30 19:25:48.243 - info: zigbee.1 (1066) terminating 2023-12-30 19:25:48.244 - info: zigbee.1 (1066) Terminated (NO_ERROR): Without reason 2023-12-30 19:25:48.459 - info: host.iobroker2 instance system.adapter.systeminfo.0 terminated with code 0 (NO_ERROR) 2023-12-30 19:25:48.506 - info: host.iobroker2 instance system.adapter.emporia.0 terminated with code 0 (NO_ERROR) 2023-12-30 19:25:48.618 - info: host.iobroker2 instance system.adapter.alexa2.0 terminated with code 0 (NO_ERROR) 2023-12-30 19:25:48.618 - info: host.iobroker2 instance system.adapter.vis-inventwo.0 terminated with code 0 (NO_ERROR) 2023-12-30 19:25:48.619 - info: host.iobroker2 instance system.adapter.trashschedule.0 terminated with code 0 (NO_ERROR) 2023-12-30 19:25:48.675 - info: host.iobroker2 instance system.adapter.shelly.1 terminated with code 0 (NO_ERROR) 2023-12-30 19:25:48.682 - info: host.iobroker2 instance system.adapter.shelly.0 terminated with code 0 (NO_ERROR) 2023-12-30 19:25:48.710 - info: host.iobroker2 instance system.adapter.discovery.0 terminated with code 0 (NO_ERROR) 2023-12-30 19:25:48.711 - info: host.iobroker2 instance system.adapter.sourceanalytix.0 terminated with code 0 (NO_ERROR) 2023-12-30 19:25:48.711 - info: host.iobroker2 instance system.adapter.backitup.0 terminated with code 0 (NO_ERROR) 2023-12-30 19:25:48.711 - info: host.iobroker2 instance system.adapter.time-switch.0 terminated with code 0 (NO_ERROR) 2023-12-30 19:25:48.724 - info: host.iobroker2 instance system.adapter.admin.0 terminated with code 0 (NO_ERROR) 2023-12-30 19:25:48.749 - info: host.iobroker2 instance system.adapter.javascript.0 terminated with code 0 (NO_ERROR) 2023-12-30 19:25:48.772 - info: host.iobroker2 instance system.adapter.web.0 terminated with code 0 (NO_ERROR) 2023-12-30 19:25:48.804 - info: host.iobroker2 instance system.adapter.sonoff.0 terminated with code 0 (NO_ERROR) 2023-12-30 19:25:48.821 - info: host.iobroker2 instance system.adapter.zigbee.1 terminated with code 0 (NO_ERROR) 2023-12-30 19:25:50.724 - info: tuya.0 (1096) terminating 2023-12-30 19:25:50.725 - info: tuya.0 (1096) Terminated (NO_ERROR): Without reason 2023-12-30 19:25:51.267 - info: host.iobroker2 instance system.adapter.tuya.0 terminated with code 0 (NO_ERROR) 2023-12-30 19:25:51.267 - info: host.iobroker2 All instances are stopped. 2023-12-30 19:25:51.391 - info: host.iobroker2 terminated
und die Zusammenfassung:
======================= SUMMARY ======================= v.2023-10-10 Static hostname: iobroker2 Icon name: computer-vm Chassis: vm Virtualization: vmware Operating System: Ubuntu 22.04.3 LTS Kernel: Linux 5.15.0-91-generic Architecture: x86-64 Hardware Vendor: VMware, Inc. Hardware Model: VMware7,1 Installation: vmware Kernel: x86_64 Userland: amd64 Timezone: Europe/Berlin (CET, +0100) User-ID: 1000 X-Server: false Boot Target: graphical.target Pending OS-Updates: 0 Pending iob updates: 1 /home/iobroker/.diag.sh: line 486: nodejs: command not found Nodejs-Installation: /usr/bin/node v16.20.2 /usr/bin/npm 8.19.4 /usr/bin/npx 8.19.4 /usr/bin/corepack 0.17.0 Recommended versions are nodejs 18.19.0 and npm 10.2.3 *** nodejs is NOT correctly installed *** Wrong installation path detected. This needs to be fixed. Please check https://forum.iobroker.net/topic/35090/howto-nodejs-installation-und-upgrades-unter-debian for more information on how to fix these errors. MEMORY: total used free shared buff/cache available Mem: 3.9G 221M 2.7G 1.0M 991M 3.4G Swap: 3.9G 0B 3.9G Total: 7.8G 221M 6.6G Active iob-Instances: 1 Active repo(s): stable ioBroker Core: js-controller 5.0.17 admin 6.12.0 ioBroker Status: iobroker is not running on this host. Objects type: jsonl States type: jsonl Status admin and web instance: system.adapter.admin.0 : admin : iobroker2 - enabled, port: 8081, bind: 0.0.0.0, run as: admin system.adapter.web.0 : web : iobroker2 - enabled, port: 8082, bind: 0.0.0.0, run as: admin Objects: 4382 States: 4490 Size of iob-Database: 11M /opt/iobroker/iobroker-data/objects.jsonl 1.1M /opt/iobroker/iobroker-data/states.jsonl =================== END OF SUMMARY ====================
Danke!
-
Hast du da auch schon geguckt?
-
@bananajoe sagte in iob nodejs-update 18 => curl: no URL specified!:
Die Meldung von curl sehe ich zum ersten mal. Kann ich mir im Moment auch nicht erklären. Was passiert denn, wenn du das Argument
18
weglässt?iob nodejs-update
-
Nein, das hat damit nix zu tun. Betrifft ubuntu (noch) nicht.
-
@thomas-braun dann kommt 1:1 die gleiche Meldung. Im ersten Post hatte ich beides ausprobiert, einmal mit und einmal ohne
-
Ah, sorry, nicht genau genug gelesen...
Im Skritp steht nur dieses curl-Kommando drin:
curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key
Hau das mal direkt ins Terminal rein.
-
@thomas-braun funktioniert, ich sehe den Key dann als Text
-
Wo finde ich denn das Script?
-
ich spamme hier:
pi@iobroker2:/opt/iobroker$ cat iobroker #!/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 --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/iobroker/iob_diag.log else sudo -H -u iobroker node /opt/iobroker/node_modules/iobroker.js-controller/iobroker.js "$@" fi
wird also dynamisch heruntergeladen. irgendwie fehlt da aber eine URL
-
-
und die Zeile müsste richtig so aussehen:
sudo -u iobroker curl -sLf https://iobroker.net/node-update.sh --output /home/iobroker/.nodejs-update.sh && bash /home/iobroker/.nodejs-update.sh "$2"
ich korrigier das mal ...
-
Ah, dann ist das gar nicht im skript selber sondern 'nur' im Aufruf.
-
@thomas-braun jupp, das war schon das ganze Problem, jetzt geht es
-
Aber komisch, wo kommt denn der verstümmelte Eintrag her?
Denn auf meinem System steht das ganz korrekt drin. -
Hoppla, nach einem
iob fix
ist es bei mir auch kaputt gegangen.
-
@thomas-braun Die Installation bei ihm habe ich gemacht, wie immer unter Ubuntu, hier dann 22.04.
Installation über das Skript. Er steht auf stable und hat immer brav die Updates der Adapter eingespielt, ich habe ab und zu das Ubuntu gepatcht.Keine Ahnung warum das fehlte,
iob fix
ändert das doch, oder? dendiag
hat der mir ja auch hinzugefügt -
Da macht der fixer das kaputt. Warum auch immer.
-
@thomas-braun muss jetzt jemand einen Issue eröffnen? Wenn ja wo?
-
Ich kümmere mich gerade schon. Alles gut!
-
Falscher Eintrag in
/opt/iobroker/iobroker
:sudo -u iobroker curl -sLf --output /home/iobroker/.nodejs-update.sh && bash /home/iobroker/.nodejs-update.sh "$2"
richtig müsste es heißen:
sudo -u iobroker curl -sLf https://iobroker.net/node-update.sh --output /home/iobroker/.nodejs-update.sh && bash /home/iobroker/.nodejs-update.sh "$2"