NEWS
UNSOLVED SQL Adapter Update - Fehler
-
Hallo,
habe mein produktivsystem auf die neuesten Adapterversionen im Status stable installiert. unter anderem auch den sql.0 Adapter.Diese wurde komplett deinstalliert, da ich über SUDO IOBROKER UPGRADE alles auf einmal über die Konsole upgedatet hatte.
Ich stellte dann fest, dass noch nichtmal mehr eine Instanz drin war.
Okay installier ich einfach neu und es geht nicht mehr
Hier das Fehlerprotokoll - und nun ?:sudo iobroker add sql NPM version: 6.4.1 npm install iobroker.sql --production --save --prefix "/opt/iobroker" (System call) gyp ERR! clean error gyp ERR! stack Error: EACCES: permission denied, rmdir 'build' gyp ERR! System Linux 4.9.0-8-amd64 gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" gyp ERR! cwd /opt/iobroker/node_modules/authenticate-pam gyp ERR! node -v v8.15.1 gyp ERR! node-gyp -v v3.8.0 gyp ERR! not ok gyp WARN EACCES user "root" does not have permission to access the dev dir "/root/.node-gyp/8.15.1" gyp WARN EACCES attempting to reinstall using temporary dev dir "/opt/iobroker/node_modules/epoll/.node-gyp" gyp WARN install got an error, rolling back install gyp WARN install got an error, rolling back install gyp ERR! configure error gyp ERR! stack Error: EACCES: permission denied, mkdir '/opt/iobroker/node_modules/epoll/.node-gyp' gyp ERR! System Linux 4.9.0-8-amd64 gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" gyp ERR! cwd /opt/iobroker/node_modules/epoll gyp ERR! node -v v8.15.1 gyp ERR! node-gyp -v v3.8.0 gyp ERR! not ok gyp WARN EACCES user "root" does not have permission to access the dev dir "/root/.node-gyp/8.15.1" gyp WARN EACCES attempting to reinstall using temporary dev dir "/opt/iobroker/node_modules/mmmagic/.node-gyp" gyp ERR! build error gyp ERR! stack Error: not found: make gyp ERR! stack at getNotFoundError (/usr/lib/node_modules/npm/node_modules/which/which.js:13:12) gyp ERR! stack at F (/usr/lib/node_modules/npm/node_modules/which/which.js:68:19) gyp ERR! stack at E (/usr/lib/node_modules/npm/node_modules/which/which.js:80:29) gyp ERR! stack at /usr/lib/node_modules/npm/node_modules/which/which.js:89:16 gyp ERR! stack at /usr/lib/node_modules/npm/node_modules/isexe/index.js:42:5 gyp ERR! stack at /usr/lib/node_modules/npm/node_modules/isexe/mode.js:8:5 gyp ERR! stack at FSReqWrap.oncomplete (fs.js:152:21) gyp ERR! System Linux 4.9.0-8-amd64 gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" gyp ERR! cwd /opt/iobroker/node_modules/mmmagic gyp ERR! node -v v8.15.1 gyp ERR! node-gyp -v v3.8.0 gyp ERR! not ok npm WARN optional SKIPPING OPTIONAL DEPENDENCY: xpc-connection@0.1.4 (node_modules/xpc-connection): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for xpc-connection@0.1.4: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"}) npm WARN optional SKIPPING OPTIONAL DEPENDENCY: authenticate-pam@1.0.2 (node_modules/authenticate-pam): npm WARN optional SKIPPING OPTIONAL DEPENDENCY: authenticate-pam@1.0.2 install: `node-gyp rebuild` npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1 npm WARN optional SKIPPING OPTIONAL DEPENDENCY: epoll@0.1.22 (node_modules/epoll): npm WARN optional SKIPPING OPTIONAL DEPENDENCY: epoll@0.1.22 install: `node-gyp rebuild` npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1 npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! mmmagic@0.5.2 install: `node-gyp rebuild` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the mmmagic@0.5.2 install script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above. npm ERR! A complete log of this run can be found in: npm ERR! /root/.npm/_logs/2019-03-16T14_53_19_469Z-debug.log host.ioBdebian create instance sql host.ioBdebian error: reading io-package.json Error: ENOENT: no such file or directory, open 'null/io-package.json'
-
Hast du mal den installiert fixer laufen lassen auf dem System?
Hab heute zufällig gelesen das es mit den rechten und SQL adapter Probleme gab.
-
Okay, den fix installiert und konnte wieder die sql-Instanz installieren.....mhhhh....komisch, dass der komplett deinstalliert war ????
-
leider startet der sql Adapter nun wieder immer neu und dann kommt
sql.0 2019-03-16 16:37:21.784 error Error: ER_CON_COUNT_ERROR: Too many connections
-
So, hab das alte backup wieder eingespielt und BEVOR ich irgendwas gemacht habe, habe ich erst den FIX eingespielt.
Dann NICHT über upgrade einfach alles updaten lassen sondern jeden Adapter einzeln per Console upgedatet.LÄUFT