NEWS
[geloest] npm Cache kann nicht geleert werden
-
Moin zusammen,
per ncdu ist mir aufgefallen, dass der Ordner /home/iobroker/.npm/_cacache immer größer wird und nicht geleert werden kann.
--- /home/iobroker/.npm ------------------------------------------------------------------------------------------------------- /.. . 2.7 GiB [##################] /_cacache 12.9 MiB [ ] /_libvips 944.0 KiB [ ] /_npx 404.0 KiB [ ] /_prebuilds 172.0 KiB [ ] /_logs e 4.0 KiB [ ] /_locks 4.0 KiB [ ] anonymous-cli-metrics.json 0.0 B [ ] _update-notifier-last-checked
Ein
npm cache clean --force
bringt hier keine Änderung.
iob diag:
Skript v.2024-08-12 *** BASE SYSTEM *** 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 OS is similar to: 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: 08:38:54 up 27 days, 21:11, 2 users, load average: 0.10, 0.18, 0.17 CPU threads: 4 *** Time and Time Zones *** Local time: Wed 2024-10-16 08:38:55 CEST Universal time: Wed 2024-10-16 06:38:55 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': michael HOME=/home/michael GROUPS=michael tty dialout sudo iobroker User that is running 'js-controller': iobroker HOME=/home/iobroker GROUPS=iobroker tty dialout audio video plugdev redis *** Display-Server-Setup *** Display-Server: false Desktop: Terminal: Boot Target: multi-user.target *** MEMORY *** total used free shared buff/cache available Mem: 8.6G 2.5G 2.5G 184K 3.5G 6.0G Swap: 4.3G 24K 4.3G Total: 12G 2.5G 6.8G Active iob-Instances: 19 8192 M total memory 2428 M used memory 2055 M active memory 3201 M inactive memory 2395 M free memory 0 M buffer memory 3367 M swap cache 4096 M total swap 0 M used swap 4095 M free swap *** top - Table Of Processes *** top - 08:38:55 up 27 days, 21:11, 2 users, load average: 0.10, 0.18, 0.17 Tasks: 57 total, 1 running, 56 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, 2394.2 free, 2430.1 used, 3367.9 buff/cache MiB Swap: 4096.0 total, 4096.0 free, 0.0 used. 5761.9 avail Mem *** FAILED SERVICES *** UNIT LOAD ACTIVE SUB DESCRIPTION * run-rpc_pipefs.mount loaded failed failed RPC Pipe File System * sys-kernel-config.mount loaded failed failed Kernel Configuration File System * certbot.service loaded failed failed Certbot * systemd-networkd-wait-online.service loaded failed failed Wait for Network to be Configured 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. 4 loaded units listed. *** FILESYSTEM *** Filesystem Type Size Used Avail Use% Mounted on /dev/mapper/pve-vm--100--disk--1 ext4 15G 10G 4.0G 72% / none tmpfs 492K 4.0K 488K 1% /dev /dev/mapper/pve-root ext4 96G 58G 34G 63% /dev/ttyACM0 udev devtmpfs 32G 0 32G 0% /dev/tty tmpfs tmpfs 32G 0 32G 0% /dev/shm tmpfs tmpfs 13G 120K 13G 1% /run tmpfs tmpfs 5.0M 0 5.0M 0% /run/lock Messages concerning ext4 filesystem in dmesg: dmesg: read kernel buffer failed: Operation not permitted Show mounted filesystems: TARGET SOURCE FSTYPE OPTIONS / /dev/mapper/pve-vm--100--disk--1 ext4 rw,relatime,stripe=16 `-/dev/ttyACM0 /dev/mapper/pve-root[/var/lib/lxc/100/devices/ttyACM0] ext4 rw,relatime,errors=remount-ro Files in neuralgic directories: /var: 636M /var/ 528M /var/lib 275M /var/lib/redis 143M /var/lib/apt/lists 143M /var/lib/apt 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 8.0M in the file system. /opt/iobroker/backups: 1.3G /opt/iobroker/backups/ /opt/iobroker/iobroker-data: 74M /opt/iobroker/iobroker-data/ 73M /opt/iobroker/iobroker-data/node-red 72M /opt/iobroker/iobroker-data/node-red/node_modules 9.8M /opt/iobroker/iobroker-data/node-red/node_modules/node-red-node-email 9.7M /opt/iobroker/iobroker-data/node-red/node_modules/node-red-node-email/node_modules The five largest files in iobroker-data are: 2.0M /opt/iobroker/iobroker-data/node-red/node_modules/node-red-dashboard/dist/js/app.min.js 620K /opt/iobroker/iobroker-data/node-red/node_modules/moment/min/moment-with-locales.js 616K /opt/iobroker/iobroker-data/node-red/node_modules/node-red-dashboard/dist/css/app.min.css 552K /opt/iobroker/iobroker-data/backitup/backitup.0.log 544K /opt/iobroker/iobroker-data/node-red/node_modules/node-red-node-email/node_modules/imap/deps/encoding/encoding-indexes.js USB-Devices by-id: USB-Sticks - Avoid direct links to /dev/tty* in your adapter setups, please always prefer the links 'by-id': /dev/serial/by-id/usb-dresden_elektronik_ingenieurtechnik_GmbH_ConBee_II_DE2432650-if00 *** 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 nodejs: Installed: 20.18.0-1nodesource1 Candidate: 20.18.0-1nodesource1 Version table: *** 20.18.0-1nodesource1 1001 500 https://deb.nodesource.com/node_20.x nodistro/main amd64 Packages 100 /var/lib/dpkg/status 20.17.0-1nodesource1 1001 500 https://deb.nodesource.com/node_20.x nodistro/main amd64 Packages 20.16.0-1nodesource1 1001 500 https://deb.nodesource.com/node_20.x nodistro/main amd64 Packages 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 18.19.0+dfsg-6~deb12u2 500 500 http://deb.debian.org/debian bookworm/main amd64 Packages 18.19.0+dfsg-6~deb12u1 500 500 http://security.debian.org/debian-security bookworm-security/main 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.11 admin: 7.1.5 javascript: 8.8.3 nodejs modules from github: 1 +-- iobroker.bmw@2.8.0 (git+ssh://git@github.com/TA2k/ioBroker.bmw.git#a490aabba5709c560626c225ee3a66d4bb97049f) Adapter State + system.adapter.accuweather.0 : accuweather : iobroker - enabled + system.adapter.admin.0 : admin : iobroker - enabled, port: 8081, bind: 0.0.0.0, run as: admin + system.adapter.backitup.0 : backitup : iobroker - enabled + system.adapter.bmw.0 : bmw : iobroker - enabled system.adapter.ical.0 : ical : iobroker - enabled + system.adapter.influxdb.0 : influxdb : iobroker - enabled, port: 8086 + system.adapter.javascript.0 : javascript : iobroker - enabled + system.adapter.lovelace.0 : lovelace : iobroker - enabled, port: 8091, bind: 0.0.0.0, run as: admin + system.adapter.mqtt.0 : mqtt : iobroker - enabled, port: 1883, bind: 10.0.1.11 + system.adapter.mqtt.1 : mqtt : iobroker - enabled, port: 1883, bind: 0.0.0.0 + system.adapter.node-red.0 : node-red : iobroker - enabled, port: 1880, bind: 0.0.0.0 + system.adapter.nut.0 : nut : iobroker - enabled + system.adapter.proxmox.0 : proxmox : iobroker - enabled, port: 8006 + system.adapter.pushover.0 : pushover : iobroker - enabled + system.adapter.simple-api.0 : simple-api : iobroker - enabled, port: 8087, bind: 0.0.0.0, run as: admin + system.adapter.tibberlink.0 : tibberlink : iobroker - enabled + system.adapter.web.0 : web : iobroker - enabled, port: 8082, bind: 0.0.0.0, run as: admin + system.adapter.yahka.0 : yahka : iobroker - enabled + system.adapter.zigbee2mqtt.0 : zigbee2mqtt : iobroker - enabled + instance is alive Enabled adapters with bindings + system.adapter.admin.0 : admin : iobroker - enabled, port: 8081, bind: 0.0.0.0, run as: admin + system.adapter.influxdb.0 : influxdb : iobroker - enabled, port: 8086 + system.adapter.lovelace.0 : lovelace : iobroker - enabled, port: 8091, bind: 0.0.0.0, run as: admin + system.adapter.mqtt.0 : mqtt : iobroker - enabled, port: 1883, bind: 10.0.1.11 + system.adapter.mqtt.1 : mqtt : iobroker - enabled, port: 1883, bind: 0.0.0.0 + system.adapter.node-red.0 : node-red : iobroker - enabled, port: 1880, bind: 0.0.0.0 + system.adapter.proxmox.0 : proxmox : iobroker - enabled, port: 8006 + system.adapter.simple-api.0 : simple-api : iobroker - enabled, port: 8087, 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 ioBroker-Repositories ┌─────────┬────────────────────┬─────────────────────────────────────────────────────────┬──────────────┐ │ (index) │ name │ url │ auto upgrade │ ├─────────┼────────────────────┼─────────────────────────────────────────────────────────┼──────────────┤ │ 0 │ 'Stable (default)' │ 'http://download.iobroker.net/sources-dist.json' │ false │ │ 1 │ 'Beta (latest)' │ 'http://download.iobroker.net/sources-dist-latest.json' │ false │ └─────────┴────────────────────┴─────────────────────────────────────────────────────────┴──────────────┘ Active repo(s): Stable (default) Upgrade policy: none Installed ioBroker-Instances Used repository: Stable (default) Cannot download repository hash file from "http://download.iobroker.net/sources-dist-hash.json": Adapter "accuweather" : 1.5.0 , installed 1.5.0 Adapter "admin" : 7.1.5 , installed 7.1.5 Adapter "backitup" : 3.0.25 , installed 3.0.25 Adapter "ical" : 1.15.0 , installed 1.15.0 Adapter "influxdb" : 4.0.2 , installed 4.0.2 Adapter "javascript" : 8.8.3 , installed 8.8.3 Controller "js-controller": 6.0.11 , installed 6.0.11 Adapter "lovelace" : 4.1.10 , installed 4.1.10 Adapter "mqtt" : 6.1.2 , installed 6.1.2 Adapter "node-red" : 5.2.1 , installed 5.2.1 Adapter "nut" : 1.6.0 , installed 1.6.0 Adapter "proxmox" : 2.3.0 , installed 2.3.0 Adapter "pushover" : 4.1.0 , installed 4.1.0 Adapter "simple-api" : 2.8.0 , installed 2.8.0 Adapter "socketio" : 6.7.1 , installed 6.7.1 Adapter "tibberlink" : 3.4.10 , installed 3.4.10 Adapter "web" : 6.2.5 , installed 6.2.5 Adapter "ws" : 2.6.2 , installed 2.6.2 Adapter "yahka" : 1.0.3 , installed 1.0.3 Adapter "zigbee2mqtt" : 2.13.10 , installed 2.13.10 Objects and States Please stand by - This may take a while Objects: 4202 States: 4244 *** OS-Repositories and Updates *** Hit:1 http://deb.debian.org/debian bookworm InRelease Hit:2 http://security.debian.org/debian-security bookworm-security InRelease Hit:3 http://deb.debian.org/debian bookworm-updates InRelease Hit:4 https://deb.nodesource.com/node_20.x nodistro 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.1:42871 0.0.0.0:* LISTEN 1000 85894076 38917/io.yahka.0 tcp 0 0 10.0.1.11:8080 0.0.0.0:* LISTEN 1001 85895517 39153/node tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 0 39521 830/nginx: master p tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN 0 34219 1/init tcp 0 0 0.0.0.0:443 0.0.0.0:* LISTEN 0 39523 830/nginx: master p tcp 0 0 127.0.0.1:45901 0.0.0.0:* LISTEN 1000 85894080 38917/io.yahka.0 tcp 0 0 0.0.0.0:1880 0.0.0.0:* LISTEN 1000 85891832 38728/node-red tcp 0 0 0.0.0.0:1883 0.0.0.0:* LISTEN 1000 85891909 38796/io.zigbee2mqt tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN 0 35794 826/master tcp 0 0 127.0.0.1:39439 0.0.0.0:* LISTEN 1000 85894084 38917/io.yahka.0 tcp 0 0 127.0.0.1:6379 0.0.0.0:* LISTEN 107 24496 152/redis-server 12 tcp6 0 0 ::1:6379 :::* LISTEN 107 24497 152/redis-server 12 tcp6 0 0 :::39251 :::* LISTEN 1000 85896241 38917/io.yahka.0 tcp6 0 0 :::40551 :::* LISTEN 1000 85896243 38917/io.yahka.0 tcp6 0 0 :::8081 :::* LISTEN 1000 85893568 38611/io.admin.0 tcp6 0 0 :::8082 :::* LISTEN 1000 85896216 38902/io.web.0 tcp6 0 0 :::8087 :::* LISTEN 1000 85895323 38962/io.simple-api tcp6 0 0 :::8091 :::* LISTEN 1000 85899279 38932/io.lovelace.0 tcp6 0 0 :::80 :::* LISTEN 0 39522 830/nginx: master p tcp6 0 0 :::111 :::* LISTEN 0 34221 1/init tcp6 0 0 :::22 :::* LISTEN 0 24429 1/init tcp6 0 0 ::1:25 :::* LISTEN 0 35795 826/master tcp6 0 0 :::45057 :::* LISTEN 1000 85896245 38917/io.yahka.0 udp 0 0 10.0.1.11:54336 0.0.0.0:* 1000 85891864 38728/node-red udp 0 0 0.0.0.0:111 0.0.0.0:* 0 34220 1/init udp 0 0 0.0.0.0:36864 0.0.0.0:* 110 24475 98/avahi-daemon: ru udp 0 0 0.0.0.0:5353 0.0.0.0:* 110 24473 98/avahi-daemon: ru udp6 0 0 :::111 :::* 0 34222 1/init udp6 0 0 :::5353 :::* 110 24474 98/avahi-daemon: ru udp6 0 0 :::43447 :::* 110 24476 98/avahi-daemon: ru *** Log File - Last 25 Lines ***
@Thomas-Braun Ist dir so etwas schon einmal untergekommen?
Lieben Dank vorab!
-
@lessthanmore sagte in npm Cache kann nicht geleert werden:
npm cache clean --force
dann machs richtig
sudo -H -u iobroker npm cache clean --force
die pakete liegen unnter User iobroker
-
@arteck Vielen Dank!
-
@lessthanmore sagte in [geloest] npm Cache kann nicht geleert werden:
Ist dir so etwas schon einmal untergekommen?
Nein, ich verwende gleich den passenden User.
-
@thomas-braun root?
-
@lessthanmore @arteck hatte dir folgendes geschrieben:
sudo -H -u iobroker npm cache clean --force
sudo
wechselt den Benutzer,
-H
wechselt/nutzt in das Home-Verzeichnis des Benutzers
-u
gibt an zu welchen Benutzer denn gewechselt werden soll
iobroker
=> wir haben einen Gewinner!
npm ...
der Befehl der ausgeführt werden soll samt Parameter und OptionenEdit: ok, dem Smiley habe ich jetzt erst bewusst gesehen, sorry für die Belehrung. Vielleicht kann der nächste was damit anfangen