NEWS
SONOFF NSPanel mit Lovelace UI
-
@armilar Ansonsten gebt ihr die dependencies ja immer ohne Version an. Eventuell habt ihr dadurch unterschiede? Schon verglichen was installiert wurde?
https://www.npmjs.com/package/dayjs?activeTab=versions
1.11.12 ist ja erst 19 Tage alt.
-
Ich gehe mal davon aus, dass mir bei den regelmäßigen Systemstarts dieser Fehler aufgefallen wäre... Also wenn da mal ein fehlerhaftes dayjs dabei gewesen wäre...
-
@haus-automatisierung
Das ist das Log von @MichaelF
Er bekommt trotzdem die Fehlermeldung das dayjs nicht gefunden wird.javascript.0 2024-08-06 12:44:10.233 info requesting all objects javascript.0 2024-08-06 12:44:10.231 info requesting all states javascript.0 2024-08-06 12:44:05.205 debug Loaded TypeScript definitions for request: ["node_modules/@types/request/package.json","node_modules/@types/request/index.d.ts"] javascript.0 2024-08-06 12:44:05.171 debug Loaded TypeScript definitions for node: ["node_modules/@types/node/package.json","node_modules/@types/node/index.d.ts","node_modules/@types/node/assert.d.ts","node_modules/@types/node/assert/strict.d.ts","node_modules/@types/node/globals.d.ts","node_modules/@types/node/async_hooks.d.ts","node_modules/@types/node/buffer.d.ts","node_modules/@types/node/child_process.d.ts","node_modules/@types/node/cluster.d.ts","node_modules/@types/node/console.d.ts","node_modules/@types/node/constants.d.ts","node_modules/@types/node/crypto.d.ts","node_modules/@types/node/dgram.d.ts","node_modules/@types/node/diagnostics_channel.d.ts","node_modules/@types/node/dns.d.ts","node_modules/@types/node/dns/promises.d.ts","node_modules/@types/node/domain.d.ts","node_modules/@types/node/dom-events.d.ts","node_modules/@types/node/events.d.ts","node_modules/@types/node/fs.d.ts","node_modules/@types/node/fs/promises.d.ts","node_modules/@types/node/http.d.ts","node_modules/@types/node/http2.d.ts","node_modules/@types/node/https.d.ts","node_modules/@types/node/inspector.d.ts","node_modules/@types/node/module.d.ts","node_modules/@types/node/net.d.ts","node_modules/@types/node/os.d.ts","node_modules/@types/node/path.d.ts","node_modules/@types/node/perf_hooks.d.ts","node_modules/@types/node/process.d.ts","node_modules/@types/node/punycode.d.ts","node_modules/@types/node/querystring.d.ts","node_modules/@types/node/readline.d.ts","node_modules/@types/node/readline/promises.d.ts","node_modules/@types/node/repl.d.ts","node_modules/@types/node/sea.d.ts","node_modules/@types/node/stream.d.ts","node_modules/@types/node/stream/promises.d.ts","node_modules/@types/node/stream/consumers.d.ts","node_modules/@types/node/stream/web.d.ts","node_modules/@types/node/string_decoder.d.ts","node_modules/@types/node/test.d.ts","node_modules/@types/node/timers.d.ts","node_modules/@types/node/timers/promises.d.ts","node_modules/@types/node/tls.d.ts","node_modules/@types/node/trace_events.d.ts","node_modules/@types/node/tty.d.ts","node_modules/@types/node/url.d.ts","node_modules/@types/node/util.d.ts","node_modules/@types/node/v8.d.ts","node_modules/@types/node/vm.d.ts","node_modules/@types/node/wasi.d.ts","node_modules/@types/node/worker_threads.d.ts","node_modules/@types/node/zlib.d.ts","node_modules/@types/node/globals.global.d.ts"] javascript.0 2024-08-06 12:44:05.117 debug Installed custom dependency: "dayjs@latest" javascript.0 2024-08-06 12:43:49.595 debug Found custom dependency in config: "dayjs@latest" javascript.0 2024-08-06 12:43:49.557 debug Installed custom dependency: "moment@latest" javascript.0 2024-08-06 12:43:34.083 debug Found custom dependency in config: "moment@latest" javascript.0 2024-08-06 12:43:34.075 debug Installed custom dependency: "moment-parseformat@latest" javascript.0 2024-08-06 12:43:18.791 debug Found custom dependency in config: "moment-parseformat@latest" javascript.0 2024-08-06 12:43:18.741 debug Installed custom dependency: "node-ssh@latest" javascript.0 2024-08-06 12:43:02.887 debug Found custom dependency in config: "node-ssh@latest" javascript.0 2024-08-06 12:43:02.730 debug Installed custom dependency: "simple-ssh@latest" javascript.0 2024-08-06 12:42:46.936 debug Found custom dependency in config: "simple-ssh@latest" javascript.0 2024-08-06 12:42:46.935 debug Found installed libraries: ["moment","moment-parseformat","node-ssh","simple-ssh"] javascript.0 2024-08-06 12:42:46.883 debug config.subscribe (Do not subscribe all states on start): false javascript.0 2024-08-06 12:42:46.840 info starting. Version 8.7.6 in /opt/iobroker/node_modules/iobroker.javascript, node: v20.16.0, js-controller: 6.0.9 javascript.0 2024-08-06 12:42:41.588 debug Plugin sentry Initialize Plugin (enabled=true)
post zum Inhalt des Verzeichnis
Edit: die Daten sind alle da, auch das System ist aktuell. Trotzdem kommt es zu den Meldungen.
Das ist der Code Ausschnitt vom Script
async function Init_dayjs() { try { //Loading dayjs const dayjs = require('dayjs'); const dayjsLanguages: any = ['en','de','nl','da','es','fr','it','ru','nb','nn', 'pl','pt','af','ar','bg','ca','cs','el','et','fa', 'fi','he','hr','hu','hy-am','id','is','lb','lt','ro', 'sk','sl','sv','th','tr','uk','vi','zh-cn','zh-tw'] for (let i=0; i<dayjsLanguages.length;i++) { require('dayjs/locale/'+ dayjsLanguages[i]); } dayjs.locale(getDayjsLocale()); } catch (err: any) { log('error at function init_dayjs: ' + err.message,'warn'); } } Init_dayjs();
-
@tt-tom Ich habe gerade nochmal ein Backup vom 09.06. draufgeworfen. Darin js-Controller 5.0.19 und javascript-adapter 8.5.0. Hier tritt kein dayjs-Fehler auf.
-
das ist interessant, kannst du mal bitte die Pfade kontrollieren, wo die npm-Module installiert sind.
Hast du vom 9.6. dann das Update auf die aktuellen Versionen gemacht?@haus-automatisierung der Post von Rene55, vielleicht ist das noch ein wichtiger Hinweis.
@Armilar was mir jetzt noch einfällt ist der Zusatz mit dem
default
const dayjs = require('dayjs').default;
Matthias muss/soll das noch so geschrieben werden? Wurde eine zeitlang hier im Forum so erwähnt oder ist das mit der aktuellen JavaScript Version nicht mehr nötig?
-
@tt-tom sagte in SONOFF NSPanel mit Lovelace UI:
@Armilar was mir jetzt noch einfällt ist der Zusatz mit dem default
Copy to Clipboardconst dayjs = require('dayjs').default;Wenn default existiert, wird das automatisch zurückgeliefert. Also nein, weglassen.
-
Hallo zusammen.
Ich habe gerade auch mein System auf JS Controller 6.0.9 upgedatet und nun die gleiche Fehlermeldung beim Starten/Compilieren der Scripte.frank@iobroker-SuFra:/$ cd /opt/iobroker/node_modules/dayjs -bash: cd: /opt/iobroker/node_modules/dayjs: No such file or directory
frank@iobroker-SuFra:/$ cd /opt/iobroker/node_modules/@iobroker-javascript.0/dayjs frank@iobroker-SuFra:/opt/iobroker/node_modules/@iobroker-javascript.0/dayjs$ ls -la total 152 drwxrwxr-x+ 5 iobroker iobroker 4096 Aug 7 17:50 . drwxrwxr-x+ 6 iobroker iobroker 4096 Aug 7 17:50 .. -rw-rw-r--+ 1 iobroker iobroker 79810 Aug 7 17:50 CHANGELOG.md -rw-rw-r--+ 1 iobroker iobroker 7160 Aug 7 17:50 dayjs.min.js -rw-rw-r--+ 1 iobroker iobroker 94 Aug 7 17:50 .editorconfig drwxrwxr-x+ 4 iobroker iobroker 4096 Aug 7 17:50 esm -rw-rw-r--+ 1 iobroker iobroker 13872 Aug 7 17:50 index.d.ts -rw-rw-r--+ 1 iobroker iobroker 1072 Aug 7 17:50 LICENSE drwxrwxr-x+ 2 iobroker iobroker 4096 Aug 7 17:50 locale -rw-rw-r--+ 1 iobroker iobroker 5033 Aug 7 17:50 locale.json -rw-rw-r--+ 1 iobroker iobroker 2526 Aug 7 17:50 package.json drwxrwxr-x+ 2 iobroker iobroker 4096 Aug 7 17:50 plugin -rw-rw-r--+ 1 iobroker iobroker 7411 Aug 7 17:50 README.md
Gruß Frank
-
iob diag:
Skript v.2024-05-22 *** BASE SYSTEM *** Static hostname: iobroker-SuFra Icon name: computer-container Chassis: container Virtualization: lxc Operating System: Ubuntu 22.04.4 LTS Kernel: Linux 6.8.8-4-pve Architecture: x86-64 model name : 11th Gen Intel(R) Core(TM) i5-1135G7 @ 2.40GHz Docker : false Virtualization : lxc Kernel : x86_64 Userland : 64 bit Systemuptime and Load: 18:11:20 up 5:15, 2 users, load average: 0.15, 0.41, 0.47 CPU threads: 4 *** Time and Time Zones *** Local time: Wed 2024-08-07 18:11:20 CEST Universal time: Wed 2024-08-07 16:11:20 UTC RTC time: n/a Time zone: Europe/Berlin (CEST, +0200) System clock synchronized: yes NTP service: inactive RTC in local TZ: no *** Users and Groups *** User that called 'iob diag': frank HOME=/home/frank GROUPS=frank sudo iobroker User that is running 'js-controller': iobroker HOME=/home/iobroker GROUPS=iobroker tty dialout audio video *** Display-Server-Setup *** Display-Server: false Desktop: Terminal: Boot Target: multi-user.target *** MEMORY *** total used free shared buff/cache available Mem: 8.2G 1.5G 6.4G 0.0K 347M 6.7G Swap: 4.1G 0B 4.1G Total: 12G 1.5G 10G Active iob-Instances: 20 8192 M total memory 1475 M used memory 1621 M active memory 120 M inactive memory 6368 M free memory 0 M buffer memory 347 M swap cache 4096 M total swap 0 M used swap 4096 M free swap *** top - Table Of Processes *** top - 18:11:20 up 5:15, 2 users, load average: 0.15, 0.41, 0.47 Tasks: 47 total, 1 running, 46 sleeping, 0 stopped, 0 zombie %Cpu(s): 0.0 us, 0.0 sy, 0.0 ni,100.0 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st MiB Mem : 8192.0 total, 6368.2 free, 1475.8 used, 347.9 buff/cache MiB Swap: 4096.0 total, 4096.0 free, 0.0 used. 6716.0 avail Mem *** FAILED SERVICES *** UNIT LOAD ACTIVE SUB DESCRIPTION * run-rpc_pipefs.mount loaded failed failed RPC Pipe File System 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 /dev/rbd3 ext4 20G 12G 7.4G 61% / none tmpfs 492K 4.0K 488K 1% /dev efivarfs efivarfs 192K 110K 78K 59% /sys/firmware/efi/efivars tmpfs tmpfs 16G 0 16G 0% /dev/shm tmpfs tmpfs 6.3G 116K 6.3G 1% /run tmpfs tmpfs 5.0M 0 5.0M 0% /run/lock tmpfs tmpfs 1.0M 0 1.0M 0% /run/credentials/systemd-sysusers.service Messages concerning ext4 filesystem in dmesg: dmesg: read kernel buffer failed: Operation not permitted Show mounted filesystems: TARGET SOURCE FSTYPE OPTIONS / /dev/rbd3 ext4 rw,relatime,stripe=16 |-/run tmpfs tmpfs rw,nosuid,nodev,size=6503388k,nr_inodes=819200,mode=755,uid=100000,gid=100000,inode64 | |-/run/lock tmpfs tmpfs rw,nosuid,nodev,noexec,relatime,size=5120k,uid=100000,gid=100000,inode64 | `-/run/credentials/systemd-sysusers.service tmpfs tmpfs ro,nosuid,nodev,noexec,relatime,size=1024k,nr_inodes=1024,mode=700,uid=100000,gid=100000,inode64 |-/dev none tmpfs rw,relatime,size=492k,mode=755,uid=100000,gid=100000,inode64 | |-/dev/shm tmpfs tmpfs rw,nosuid,nodev,uid=100000,gid=100000,inode64 | |-/dev/mqueue mqueue mqueue rw,relatime | |-/dev/full udev[/full] devtmpfs rw,nosuid,relatime,size=16224644k,nr_inodes=4056161,mode=755,inode64 | |-/dev/null udev[/null] devtmpfs rw,nosuid,relatime,size=16224644k,nr_inodes=4056161,mode=755,inode64 | |-/dev/random udev[/random] devtmpfs rw,nosuid,relatime,size=16224644k,nr_inodes=4056161,mode=755,inode64 | |-/dev/tty udev[/tty] devtmpfs rw,nosuid,relatime,size=16224644k,nr_inodes=4056161,mode=755,inode64 | |-/dev/urandom udev[/urandom] devtmpfs rw,nosuid,relatime,size=16224644k,nr_inodes=4056161,mode=755,inode64 | |-/dev/zero udev[/zero] devtmpfs rw,nosuid,relatime,size=16224644k,nr_inodes=4056161,mode=755,inode64 | |-/dev/pts devpts devpts rw,nosuid,noexec,relatime,gid=100005,mode=620,ptmxmode=666,max=1026 | |-/dev/ptmx devpts[/ptmx] devpts rw,nosuid,noexec,relatime,gid=100005,mode=620,ptmxmode=666,max=1026 | |-/dev/console devpts[/0] devpts rw,nosuid,noexec,relatime,gid=100005,mode=620,ptmxmode=666,max=1026 | |-/dev/tty1 devpts[/1] devpts rw,nosuid,noexec,relatime,gid=100005,mode=620,ptmxmode=666,max=1026 | `-/dev/tty2 devpts[/2] devpts rw,nosuid,noexec,relatime,gid=100005,mode=620,ptmxmode=666,max=1026 |-/proc proc proc rw,nosuid,nodev,noexec,relatime | |-/proc/sys proc[/sys] proc ro,relatime | | |-/proc/sys/net proc[/sys/net] proc rw,nosuid,nodev,noexec,relatime | | |-/proc/sys/fs/binfmt_misc binfmt_misc binfmt_misc rw,nosuid,nodev,noexec,relatime | | `-/proc/sys/kernel/random/boot_id none[/.lxc-boot-id] tmpfs ro,nosuid,nodev,noexec,relatime,size=492k,mode=755,uid=100000,gid=100000,inode64 | |-/proc/sysrq-trigger proc[/sysrq-trigger] proc ro,relatime | |-/proc/cpuinfo lxcfs[/proc/cpuinfo] fuse.lxcfs rw,nosuid,nodev,relatime,user_id=0,group_id=0,allow_other | |-/proc/diskstats lxcfs[/proc/diskstats] fuse.lxcfs rw,nosuid,nodev,relatime,user_id=0,group_id=0,allow_other | |-/proc/loadavg lxcfs[/proc/loadavg] fuse.lxcfs rw,nosuid,nodev,relatime,user_id=0,group_id=0,allow_other | |-/proc/meminfo lxcfs[/proc/meminfo] fuse.lxcfs rw,nosuid,nodev,relatime,user_id=0,group_id=0,allow_other | |-/proc/slabinfo lxcfs[/proc/slabinfo] fuse.lxcfs rw,nosuid,nodev,relatime,user_id=0,group_id=0,allow_other | |-/proc/stat lxcfs[/proc/stat] fuse.lxcfs rw,nosuid,nodev,relatime,user_id=0,group_id=0,allow_other | |-/proc/swaps lxcfs[/proc/swaps] fuse.lxcfs rw,nosuid,nodev,relatime,user_id=0,group_id=0,allow_other | `-/proc/uptime lxcfs[/proc/uptime] fuse.lxcfs rw,nosuid,nodev,relatime,user_id=0,group_id=0,allow_other `-/sys sysfs sysfs ro,nosuid,nodev,noexec,relatime |-/sys/fs/fuse/connections fusectl fusectl rw,nosuid,nodev,noexec,relatime |-/sys/devices/virtual/net sysfs[/devices/virtual/net] sysfs rw,nosuid,nodev,noexec,relatime |-/sys/kernel/debug debugfs debugfs rw,nosuid,nodev,noexec,relatime |-/sys/kernel/security securityfs securityfs rw,nosuid,nodev,noexec,relatime |-/sys/fs/pstore pstore pstore rw,nosuid,nodev,noexec,relatime |-/sys/firmware/efi/efivars efivarfs efivarfs rw,nosuid,nodev,noexec,relatime |-/sys/fs/cgroup none cgroup2 rw,nosuid,nodev,noexec,relatime `-/sys/devices/system/cpu lxcfs[/sys/devices/system/cpu] fuse.lxcfs rw,nosuid,nodev,relatime,user_id=0,group_id=0,allow_other Files in neuralgic directories: /var: 999M /var/ 491M /var/log 488M /var/log/journal 337M /var/log/journal/7ec90df983fc41e487e36202c16059a2 320M /var/lib Hint: You are currently not seeing messages from other users and the system. Users in groups 'adm', 'systemd-journal' can see all messages. Pass -q to turn off this notice. Archived and active journals take up 24.5M in the file system. /opt/iobroker/backups: 139M /opt/iobroker/backups/ 4.0K /opt/iobroker/backups/redistmp /opt/iobroker/iobroker-data: 716M /opt/iobroker/iobroker-data/ 424M /opt/iobroker/iobroker-data/files 198M /opt/iobroker/iobroker-data/backup-objects 89M /opt/iobroker/iobroker-data/files/echarts.admin 67M /opt/iobroker/iobroker-data/files/javascript.admin The five largest files in iobroker-data are: 45M /opt/iobroker/iobroker-data/objects.jsonl 35M /opt/iobroker/iobroker-data/files/devices.admin/static/js/main.24f2bb56.js.map 33M /opt/iobroker/iobroker-data/files/iot.admin/static/js/main.1797d034.js.map 24M /opt/iobroker/iobroker-data/files/echarts/static/js/main.2b7495c2.js.map 24M /opt/iobroker/iobroker-data/files/echarts.admin/chart/static/js/main.2b7495c2.js.map USB-Devices by-id: USB-Sticks - Avoid direct links to /dev/tty* in your adapter setups, please always prefer the links 'by-id': No Devices found 'by-id' HINT: Your zigbee.0 COM-Port is NOT matching 'by-id'. Please check your setting: tcp *** NodeJS-Installation *** /usr/bin/nodejs v20.16.0 /usr/bin/node v20.16.0 /usr/bin/npm 10.8.1 /usr/bin/npx 10.8.1 /usr/bin/corepack 0.28.2 nodejs: Installed: 20.16.0-1nodesource1 Candidate: 20.16.0-1nodesource1 Version table: *** 20.16.0-1nodesource1 1001 500 https://deb.nodesource.com/node_20.x nodistro/main amd64 Packages 100 /var/lib/dpkg/status 20.15.1-1nodesource1 1001 500 https://deb.nodesource.com/node_20.x nodistro/main amd64 Packages 20.15.0-1nodesource1 1001 500 https://deb.nodesource.com/node_20.x nodistro/main amd64 Packages 20.14.0-1nodesource1 1001 500 https://deb.nodesource.com/node_20.x nodistro/main amd64 Packages 20.13.1-1nodesource1 1001 500 https://deb.nodesource.com/node_20.x nodistro/main amd64 Packages 20.13.0-1nodesource1 1001 500 https://deb.nodesource.com/node_20.x nodistro/main amd64 Packages 20.12.2-1nodesource1 1001 500 https://deb.nodesource.com/node_20.x nodistro/main amd64 Packages 20.12.1-1nodesource1 1001 500 https://deb.nodesource.com/node_20.x nodistro/main amd64 Packages 20.12.0-1nodesource1 1001 500 https://deb.nodesource.com/node_20.x nodistro/main amd64 Packages 20.11.1-1nodesource1 1001 500 https://deb.nodesource.com/node_20.x nodistro/main amd64 Packages 20.11.0-1nodesource1 1001 500 https://deb.nodesource.com/node_20.x nodistro/main amd64 Packages 20.10.0-1nodesource1 1001 500 https://deb.nodesource.com/node_20.x nodistro/main amd64 Packages 20.9.0-1nodesource1 1001 500 https://deb.nodesource.com/node_20.x nodistro/main amd64 Packages 20.8.1-1nodesource1 1001 500 https://deb.nodesource.com/node_20.x nodistro/main amd64 Packages 20.8.0-1nodesource1 1001 500 https://deb.nodesource.com/node_20.x nodistro/main amd64 Packages 20.7.0-1nodesource1 1001 500 https://deb.nodesource.com/node_20.x nodistro/main amd64 Packages 20.6.1-1nodesource1 1001 500 https://deb.nodesource.com/node_20.x nodistro/main amd64 Packages 20.6.0-1nodesource1 1001 500 https://deb.nodesource.com/node_20.x nodistro/main amd64 Packages 20.5.1-1nodesource1 1001 500 https://deb.nodesource.com/node_20.x nodistro/main amd64 Packages 20.5.0-1nodesource1 1001 500 https://deb.nodesource.com/node_20.x nodistro/main amd64 Packages 20.4.0-1nodesource1 1001 500 https://deb.nodesource.com/node_20.x nodistro/main amd64 Packages 20.3.1-1nodesource1 1001 500 https://deb.nodesource.com/node_20.x nodistro/main amd64 Packages 20.3.0-1nodesource1 1001 500 https://deb.nodesource.com/node_20.x nodistro/main amd64 Packages 20.2.0-1nodesource1 1001 500 https://deb.nodesource.com/node_20.x nodistro/main amd64 Packages 20.1.0-1nodesource1 1001 500 https://deb.nodesource.com/node_20.x nodistro/main amd64 Packages 20.0.0-1nodesource1 1001 500 https://deb.nodesource.com/node_20.x nodistro/main amd64 Packages 12.22.9~dfsg-1ubuntu3.6 500 500 http://archive.ubuntu.com/ubuntu jammy-updates/universe amd64 Packages 500 http://archive.ubuntu.com/ubuntu jammy-security/universe amd64 Packages 12.22.9~dfsg-1ubuntu3 500 500 http://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 running on this host. At least one iobroker host is running. Objects type: redis States type: redis Core adapters versions js-controller: 6.0.9 admin: 7.0.22 javascript: 8.7.6 nodejs modules from github: 0 Adapter State + system.adapter.accuweather.0 : accuweather : iobroker-SuFra - enabled + system.adapter.admin.0 : admin : iobroker-SuFra - enabled, port: 8081, bind: 0.0.0.0, run as: admin system.adapter.admin.1 : admin : iobroker-SuFra - disabled, port: 8083, bind: 0.0.0.0 (SSL), run as: admin + system.adapter.alexa2.0 : alexa2 : iobroker-SuFra - enabled system.adapter.alias-manager.0 : alias-manager : iobroker-SuFra - enabled + system.adapter.daikin-cloud.0 : daikin-cloud : iobroker-SuFra - enabled system.adapter.daswetter.0 : daswetter : iobroker-SuFra - enabled system.adapter.devices.0 : devices : iobroker-SuFra - enabled + system.adapter.discovery.0 : discovery : iobroker-SuFra - enabled system.adapter.echarts.0 : echarts : iobroker-SuFra - disabled system.adapter.flot.0 : flot : iobroker-SuFra - enabled + system.adapter.heatingcontrol.0 : heatingcontrol : iobroker-SuFra - enabled + system.adapter.iot.0 : iot : iobroker-SuFra - enabled + system.adapter.javascript.0 : javascript : iobroker-SuFra - enabled + system.adapter.modbus.0 : modbus : iobroker-SuFra - enabled + system.adapter.mqtt.0 : mqtt : iobroker-SuFra - enabled, port: 1884, bind: 0.0.0.0 system.adapter.proxmox.0 : proxmox : iobroker-SuFra - disabled, port: 8006 system.adapter.proxmox.1 : proxmox : iobroker-SuFra - disabled, port: 8006 system.adapter.puppeteer.0 : puppeteer : iobroker-SuFra - disabled + system.adapter.shelly.0 : shelly : iobroker-SuFra - enabled, port: 1882, bind: 0.0.0.0 + system.adapter.sonoff.0 : sonoff : iobroker-SuFra - enabled, port: 1883, bind: 0.0.0.0 + system.adapter.sql.0 : sql : iobroker-SuFra - enabled, port: 3306 + system.adapter.sql.1 : sql : iobroker-SuFra - enabled, port: 3306 + system.adapter.sql.2 : sql : iobroker-SuFra - enabled, port: 3306 + system.adapter.statistics.0 : statistics : iobroker-SuFra - enabled + system.adapter.tahoma.0 : tahoma : iobroker-SuFra - enabled system.adapter.tr-064.0 : tr-064 : iobroker-SuFra - disabled system.adapter.vis.0 : vis : iobroker-SuFra - enabled + system.adapter.web.0 : web : iobroker-SuFra - enabled, port: 8082, bind: 0.0.0.0, run as: admin + system.adapter.zigbee.0 : zigbee : iobroker-SuFra - enabled, port: tcp://10.10.20.111:6638 + instance is alive Enabled adapters with bindings + system.adapter.admin.0 : admin : iobroker-SuFra - enabled, port: 8081, bind: 0.0.0.0, run as: admin + system.adapter.mqtt.0 : mqtt : iobroker-SuFra - enabled, port: 1884, bind: 0.0.0.0 + system.adapter.shelly.0 : shelly : iobroker-SuFra - enabled, port: 1882, bind: 0.0.0.0 + system.adapter.sonoff.0 : sonoff : iobroker-SuFra - enabled, port: 1883, bind: 0.0.0.0 + system.adapter.sql.0 : sql : iobroker-SuFra - enabled, port: 3306 + system.adapter.sql.1 : sql : iobroker-SuFra - enabled, port: 3306 + system.adapter.sql.2 : sql : iobroker-SuFra - enabled, port: 3306 + system.adapter.web.0 : web : iobroker-SuFra - enabled, port: 8082, bind: 0.0.0.0, run as: admin + system.adapter.zigbee.0 : zigbee : iobroker-SuFra - enabled, port: tcp://10.10.20.111:6638 ioBroker-Repositories ┌─────────┬──────────┬─────────────────────────────────────────────────────────┬──────────────┐ │ (index) │ name │ url │ auto upgrade │ ├─────────┼──────────┼─────────────────────────────────────────────────────────┼──────────────┤ │ 0 │ 'stable' │ 'http://download.iobroker.net/sources-dist.json' │ false │ │ 1 │ 'beta' │ 'http://download.iobroker.net/sources-dist-latest.json' │ false │ └─────────┴──────────┴─────────────────────────────────────────────────────────┴──────────────┘ Active repo(s): stable Upgrade policy: none Installed ioBroker-Instances Used repository: stable Adapter "accuweather" : 1.5.0 , installed 1.5.0 Adapter "admin" : 7.0.22 , installed 7.0.22 Adapter "alexa2" : 3.26.5 , installed 3.26.5 Adapter "alias-manager": 1.2.6 , installed 1.2.6 Adapter "chromecast" : 3.4.0 , installed 3.4.0 Adapter "daikin-cloud" : 0.4.8 , installed 0.4.8 Adapter "daswetter" : 3.1.15 , installed 3.1.15 Adapter "devices" : 1.1.5 , installed 1.1.5 Adapter "discovery" : 4.5.0 , installed 4.5.0 Adapter "echarts" : 1.7.2 , installed 1.7.2 Adapter "flot" : 1.12.0 , installed 1.12.0 Adapter "heatingcontrol": 2.12.8 , installed 2.12.8 Adapter "iot" : 3.3.0 , installed 3.3.0 Adapter "javascript" : 8.7.6 , installed 8.7.6 Controller "js-controller": 6.0.9 , installed 6.0.9 Adapter "modbus" : 6.2.3 , installed 6.2.3 Adapter "mqtt" : 5.2.0 , installed 5.2.0 Adapter "proxmox" : 2.3.0 , installed 2.3.0 Adapter "puppeteer" : 0.3.0 , installed 0.3.0 Adapter "shelly" : 7.0.0 , installed 7.0.0 Adapter "simple-api" : 2.8.0 , installed 2.8.0 Adapter "socketio" : 6.7.1 , installed 6.7.0 [Updatable] Adapter "sonoff" : 3.1.0 , installed 3.1.0 Adapter "sql" : 3.0.1 , installed 3.0.1 Adapter "statistics" : 2.4.0 , installed 2.4.0 Adapter "tahoma" : 0.10.4 , installed 0.10.4 Adapter "tr-064" : 4.3.0 , installed 4.3.0 Adapter "vis" : 1.5.6 , installed 1.5.6 Adapter "web" : 6.2.5 , installed 6.2.5 Adapter "ws" : 2.6.2 , installed 2.6.1 [Updatable] Adapter "zigbee" : 1.10.3 , installed 1.10.3 Objects and States Please stand by - This may take a while Objects: 11193 States: 9228 *** OS-Repositories and Updates *** Hit:1 http://archive.ubuntu.com/ubuntu jammy InRelease Hit:2 http://archive.ubuntu.com/ubuntu jammy-updates InRelease Hit:3 http://archive.ubuntu.com/ubuntu jammy-security InRelease Hit:4 https://deb.nodesource.com/node_20.x nodistro InRelease Hit:5 https://repo.zabbix.com/zabbix/6.4/ubuntu jammy InRelease 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 127.0.0.53:53 0.0.0.0:* LISTEN 106 8828040 100/systemd-resolve tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN 0 8826131 1/init tcp 0 0 0.0.0.0:1882 0.0.0.0:* LISTEN 1001 8832002 533/io.shelly.0 tcp 0 0 0.0.0.0:1883 0.0.0.0:* LISTEN 1001 8829055 503/io.sonoff.0 tcp 0 0 0.0.0.0:1884 0.0.0.0:* LISTEN 1001 8824769 488/io.mqtt.0 tcp 0 0 0.0.0.0:1885 0.0.0.0:* LISTEN 1001 8824770 488/io.mqtt.0 tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN 0 8828322 416/master tcp6 0 0 :::10050 :::* LISTEN 110 8827415 116/zabbix_agent2 tcp6 0 0 :::22 :::* LISTEN 0 8828000 1/init tcp6 0 0 :::111 :::* LISTEN 0 8826133 1/init tcp6 0 0 ::1:25 :::* LISTEN 0 8828323 416/master tcp6 0 0 :::8082 :::* LISTEN 1001 8831226 652/io.web.0 tcp6 0 0 :::8081 :::* LISTEN 1001 8824491 173/io.admin.0 udp 0 0 127.0.0.53:53 0.0.0.0:* 106 8828039 100/systemd-resolve udp 0 0 0.0.0.0:111 0.0.0.0:* 0 8826132 1/init udp6 0 0 :::111 :::* 0 8826134 1/init *** Log File - Last 25 Lines *** 2024-08-07 18:02:59.701 - info: javascript.0 (1795) script.js.NSPanel.Panel_2_Büro: registered 30 subscriptions, 0 schedules, 0 messages, 0 logs and 0 file subscriptions 2024-08-07 18:02:59.704 - info: javascript.0 (1795) script.js.NSPanel.Panel_2_Büro: No Updates for NSPanel available 2024-08-07 18:02:59.748 - info: javascript.0 (1795) script.js.NSPanel.Panel_2_Büro: Desired TFT Firmware: 53 / v4.4.0 2024-08-07 18:02:59.748 - info: javascript.0 (1795) script.js.NSPanel.Panel_2_Büro: Installed TFT Firmware: 53 / v4.4.0 2024-08-07 18:02:59.768 - info: javascript.0 (1795) script.js.NSPanel.Panel_2_Büro: Debug mode disabled 2024-08-07 18:03:00.206 - info: javascript.0 (1795) script.js.NSPanel.Panel_2_Büro: Desired TFT Firmware: 53 / v4.4.0 2024-08-07 18:03:00.207 - info: javascript.0 (1795) script.js.NSPanel.Panel_2_Büro: Installed TFT Firmware: 53 / v4.4.0 2024-08-07 18:03:00.492 - info: javascript.0 (1795) script.js.NSPanel.Panel_2_Büro: Desired TFT Firmware: 53 / v4.4.0 2024-08-07 18:03:00.492 - info: javascript.0 (1795) script.js.NSPanel.Panel_2_Büro: Installed TFT Firmware: 53 / v4.4.0 2024-08-07 18:03:01.382 - info: javascript.0 (1795) script.js.NSPanel.Panel_2_Büro: Start MQTT-Port-Check ------------------------------------- 2024-08-07 18:03:01.382 - info: javascript.0 (1795) script.js.NSPanel.Panel_2_Büro: -- admin.0 - 8081 2024-08-07 18:03:01.382 - info: javascript.0 (1795) script.js.NSPanel.Panel_2_Büro: -- mqtt.0 - 1884 2024-08-07 18:03:01.382 - info: javascript.0 (1795) script.js.NSPanel.Panel_2_Büro: -- shelly.0 - 1882 2024-08-07 18:03:01.382 - info: javascript.0 (1795) script.js.NSPanel.Panel_2_Büro: -- sonoff.0 - 1883 2024-08-07 18:03:01.382 - info: javascript.0 (1795) script.js.NSPanel.Panel_2_Büro: -- sql.0 - 3306 2024-08-07 18:03:01.382 - info: javascript.0 (1795) script.js.NSPanel.Panel_2_Büro: -- sql.1 - 3306 2024-08-07 18:03:01.382 - info: javascript.0 (1795) script.js.NSPanel.Panel_2_Büro: -- sql.2 - 3306 2024-08-07 18:03:01.382 - info: javascript.0 (1795) script.js.NSPanel.Panel_2_Büro: -- web.0 - 8082 2024-08-07 18:03:01.382 - info: javascript.0 (1795) script.js.NSPanel.Panel_2_Büro: -- zigbee.0 - tcp 2024-08-07 18:03:01.383 - info: javascript.0 (1795) script.js.NSPanel.Panel_2_Büro: - MQTT-Port-Check OK: Instance of Adapter: mqtt.0 is running on Port:1884 2024-08-07 18:03:01.383 - info: javascript.0 (1795) script.js.NSPanel.Panel_2_Büro: End MQTT-Port-Check --------------------------------------- 2024-08-07 18:03:07.443 - info: sonoff.0 (503) Client [Shelly-Wz-Decke] connected with secret 1723046587442_9493 2024-08-07 18:04:50.965 - info: admin.0 (173) ==> Connected system.user.admin from ::ffff:10.10.20.229 2024-08-07 18:11:39.077 - info: admin.0 (173) <== Disconnect system.user.admin from ::ffff:10.10.20.229 admin 2024-08-07 18:11:40.923 - info: admin.0 (173) ==> Connected system.user.admin from ::ffff:10.10.20.229
v.2024-05-22 Static hostname: iobroker-SuFra Icon name: computer-container Chassis: container Virtualization: lxc Operating System: Ubuntu 22.04.4 LTS Kernel: Linux 6.8.8-4-pve Architecture: x86-64 Installation: lxc Kernel: x86_64 Userland: 64 bit Timezone: Europe/Berlin (CEST, +0200) User-ID: 1000 Display-Server: false Boot Target: multi-user.target Pending OS-Updates: 0 Pending iob updates: 2 Nodejs-Installation: /usr/bin/nodejs v20.16.0 /usr/bin/node v20.16.0 /usr/bin/npm 10.8.1 /usr/bin/npx 10.8.1 /usr/bin/corepack 0.28.2 Recommended versions are nodejs 20.16.0 and npm 10.8.1 Your nodejs installation is correct MEMORY: total used free shared buff/cache available Mem: 8.2G 1.6G 5.9G 0.0K 636M 6.6G Swap: 4.1G 0B 4.1G Total: 12G 1.6G 10G Active iob-Instances: 20 Upgrade policy: none ioBroker Core: js-controller 6.0.9 admin 7.0.22 ioBroker Status: iobroker is running on this host. At least one iobroker host is running. Objects type: redis States type: redis Status admin and web instance: + system.adapter.admin.0 : admin : iobroker-SuFra - enabled, port: 8081, bind: 0.0.0.0, run as: admin system.adapter.admin.1 : admin : iobroker-SuFra - disabled, port: 8083, bind: 0.0.0.0 (SSL), run as: admin + system.adapter.web.0 : web : iobroker-SuFra - enabled, port: 8082, bind: 0.0.0.0, run as: admin Objects: 11193 States: 9228 Size of iob-Database: 45M /opt/iobroker/iobroker-data/objects.jsonl 15M /opt/iobroker/iobroker-data/objects.json.migrated 15M /opt/iobroker/iobroker-data/objects.json.bak.migrated 0 /opt/iobroker/iobroker-data/objects.json.broken 17M /opt/iobroker/iobroker-data/states.jsonl 2.0M /opt/iobroker/iobroker-data/states.json.migrated 2.0M /opt/iobroker/iobroker-data/states.json.bak.migrated 0 /opt/iobroker/iobroker-data/states.json.broken
-
@tt-tom Sorry für die späte Antwort. Ich habe in meiner Installation die Module dayjs, moment und moment-parseformat hier
/opt/iobroker/node_modules/iobroker.javascript/node_modules/
gefunden.
Ich hab hier noch nicht weiter upgedatet. Womit sollte ich anfangen? -
die Module dayjs, moment und moment-parseformat hier
/opt/iobroker/node_modules/iobroker.javascript/node_modules/
gefunden
das ist sehr interessant, denn die sollten eigentlich in:
/opt/iobroker/node_modules/@iobroker-javascript.0/dayjs ... etc.
liegen.
-
@rene55 sagte in SONOFF NSPanel mit Lovelace UI:
Ich hab hier noch nicht weiter upgedatet. Womit sollte ich anfangen?
Wenn das ein altes Backup ist, bringe erstmal das System auf den neuesten Stand
sudo apt-get update sudo apt-get full-upgrade sudo reboot
dann
iob stop iob update iob upgrade self iob upgrade iob fix iob start
falls nodeJS noch 18 ist, sollte es jetzt mit nochmaligem:
sudo apt-get update sudo apt-get full-upgrade sudo reboot
aktualisiert werden...
Falls das OS ein Debian Buster sein sollte, dann gibt es außer einer Neuinstallation mit anschließenden Backup-Einstellungen keine andere Wahl...
-
@armilar Ich habe gerade nochmals gesucht. In dieser Richtung hab eich nur
Ich habe auf dem System kein '@iobroker-javascript' -
@armilar Wie gesagt: ich habe extra ein 'uralt' Backup rausgesucht. Ich wollte jetzt eigentlich Schritt für Schritt updaten um den Fehler -möglicherweise- einzugrenzen. Wenn ich das so mache, wird der Fehler wahrscheinlich wieder da sein. Oder?
-
das Verzeichnis sollte sich nach der beschriebenen Update-Variante aber dann finden lassen.
Da wir nicht wissen, warum sich das so unterschiedlich darstellt, können wir auch nicht sagen, ob das Problem danach gelöst ist oder nicht... Lässt sich ja bei uns nicht reproduzieren...
-
@armilar OK. Dann arbeite ich mal eben die Updates durch.
-
@armilar So. Updates sind komplett durch. Habe jetzt das aktuellste Beta-System. Und der Fehler ist auch wieder da. Und nu??
-
- Jetzt poste mal ein iob diag
- Stelle sicher, dass dayjs auch in der Javascript Instanz eingetragen ist
- Überprüfe den Verzeichnispfad nochmal
-
@armilar Ich bin mir nicht sicher, ob wir hier das gleiche Ziel verfolgen. Diese Übung sollte nur dazu dienen, den Fehler einzugrenzen. Das von dir angegebene Verzeichnis existiert jetzt.
Und auch die Ausgabe von Diag:```
======================= SUMMARY ======================= v.2024-05-22 Static hostname: iobroker-pmx Icon name: computer-container Chassis: container ☐ Virtualization: lxc Operating System: Debian GNU/Linux 12 (bookworm) Kernel: Linux 6.2.16-3-pve Architecture: x86-64 Installation: lxc Kernel: x86_64 Userland: 64 bit Timezone: Europe/Berlin (CEST, +0200) User-ID: 1000 Display-Server: false Boot Target: graphical.target Pending OS-Updates: 0 Pending iob updates: 0 Nodejs-Installation: /usr/bin/nodejs v20.16.0 /usr/bin/node v20.16.0 /usr/bin/npm 10.8.1 /usr/bin/npx 10.8.1 /usr/bin/corepack 0.28.2 Recommended versions are nodejs 20.16.0 and npm 10.8.1 Your nodejs installation is correct MEMORY: total used free shared buff/cache available Mem: 2.1G 1.5G 230M 98K 432M 663M Swap: 536M 45K 536M Total: 2.7G 1.5G 767M Active iob-Instances: 11 Upgrade policy: none ioBroker Core: js-controller 6.0.10 admin 7.0.23 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-pmx - enabled, port: 8081, bind: 192.168.69.109, run as: admin system.adapter.web.0 : web : iobroker-pmx - disabled, port: 8082, bind: 0.0.0.0, run as: admin Objects: 51100 States: 38730 Size of iob-Database: 43M /opt/iobroker/iobroker-data/objects.jsonl 11M /opt/iobroker/iobroker-data/states.jsonl =================== END OF SUMMARY ====================
-
ist denn auch dayjs im Verzeichnis?
-
@armilar Ja. Alle in der Instanz eingetragenen Module sind in dem Ordner drin.