NEWS

Node-red Fehler beim Update auf 0.2.1


  • Hallo Bluefox,

    gestern Abend, bzw. heute Nacht habe ich noch fix das Update auf 0.2.0 machen wollen und bin dabei leider auf ein paar Fehler gestoßen.

    1. das Update von 0.1.9 auf 0.2.0 ging direkt mit einem Code 28 auf die Bretter. Das hat sich dann in der Folge so ausgewirkt, dass die ursprünglich installierte Instanz in der Adapter Übersicht nicht mehr aufgeführt wurde. Und das, obwohl in der Instanzübersicht selbst node-red noch zu sehen war. Man konnte es aber nicht mehr starten.

    2. heute morgen dann habe ich gesehen, dass Du ein update auf 0.2.1 veröffentlich hast. Ich habe dann über Instanzen den node-red Adapter deinstalliert und dann auf der Kommandozeile eine Neuinstallation über den tarball angestossen.

    Im Log finden sich jetzt folgende Fehler:

    ! host-appserver 2015-05-17 11:18:40 error instance system.adapter.node-red.0 terminated with code 6 (uncaught exception)
    ! Error: 2015-05-17 11:18:40 error at Socket.onpacket (C:\opt\iobroker\node_modules\iobroker.js-controller\node_modules\socket.io-client\lib\socket.js:220:12)
    ! Error: 2015-05-17 11:18:40 error at Socket.onack (C:\opt\iobroker\node_modules\iobroker.js-controller\node_modules\socket.io-client\lib\socket.js:295:6)
    ! Error: 2015-05-17 11:18:40 error at Socket. (C:\opt\iobroker\node_modules\iobroker.js-controller\lib\adapter.js:245:29)
    ! Error: 2015-05-17 11:18:40 error at initAdapter (C:\opt\iobroker\node_modules\iobroker.js-controller\lib\adapter.js:2015:14)
    ! Error: 2015-05-17 11:18:40 error at Adapter.EventEmitter.emit (events.js:92:17)
    ! Error: 2015-05-17 11:18:40 error at Adapter.path (C:\opt\iobroker\node_modules\iobroker.node-red\main.js:32:5)
    ! Error: 2015-05-17 11:18:40 error at installLibraries (C:\opt\iobroker\node_modules\iobroker.node-red\main.js:74:23)
    ! Error: 2015-05-17 11:18:40 error at main (C:\opt\iobroker\node_modules\iobroker.node-red\main.js:310:5)
    ! Error: 2015-05-17 11:18:40 error at syncPublic (C:\opt\iobroker\node_modules\iobroker.node-red\main.js:251:12)
    ! Error: 2015-05-17 11:18:40 error at Object.fs.mkdirSync (fs.js:642:18)
    ! Error: 2015-05-17 11:18:40 error ENOENT, no such file or directory 'C:\opt\iobroker\node_modules\iobroker.node-red\node_modules\node-red\public'
    ! uncaught 2015-05-17 11:18:40 error exception: ENOENT, no such file or directory 'C:\opt\iobroker\node_modules\iobroker.node-red\node_modules\node-red\public'
    ! node-red-0 2015-05-17 11:18:40 info starting. Version 0.2.1 in C:/opt/iobroker/node_modules/iobroker.node-red
    ! host-appserver 2015-05-17 11:18:39 info instance system.adapter.node-red.0 started with pid 2768
    ! host-appserver 2015-05-17 11:18:09 info Restart adapter system.adapter.node-red.0 because enabled
    Ich probiers mal weiter, versuche auch im Log noch den Fehler zum Update von heute nacht zu finden. WOllte das aber loswerden, bevor jemand in die selbe Falle tappt.

    Gruß

    Bernhard


  • cd /opt/iobroker

    npm install iobroker.node-red


  • Hallo Bluefox,

    jetzt ist es wieder passiert. Aber eins nach dem Anderen.

    Natürlich hattest Du recht, das Befehlszeilenkommando war falsch. Nachdem ich das wie von Dir geschrieben eingegeben habe hat die Installation tatsächlich funktioniert und ich war auf 0.2.1.

    Als ich eben das neueste Update gesehen habe und im Admin Interface das Update auf 0.2.2 ausgelöst habe, ist das selbe wie heute nacht passiert.

    ! $ ./iobroker upgrade node-red
    ! npm install iobroker.node-red –production --prefix "C:/opt/iobroker" (System call)
    ! npm
    ! http GET https://registry.npmjs.org/iobroker.node-red
    ! npm
    ! http
    ! 200 https://registry.npmjs.org/iobroker.node-red
    ! npm
    ! http GET https://registry.npmjs.org/iobroker.nod ... -0.2.2.tgz
    ! npm
    ! http 200 https://registry.npmjs.org/iobroker.nod ... -0.2.2.tgz
    ! npm
    ! ERR!
    ! error rolling back
    ! Error: EPERM, unlink 'C:\opt\iobroker\node_modules\iobroker.node-red\node_modules\node-red\node_modules\serialport\build\serialport\v1.4.10\Release\node-v11-win32-ia32\serialport.node'
    ! npm
    ! ERR!
    ! error rolling back
    ! iobroker.node-red@0.2.2 { [Error: EPERM, unlink 'C:\opt\iobroker\node_modules\iobroker.node-red\node_modules\node-red\node_modules\serialport\build\serialport\v1.4.10\Release\node-v11-win32-ia32\serialport.node']
    ! npm
    ! ERR!
    ! error rolling back
    ! errno: 50,npm
    ! ERR!
    ! error rolling back
    ! code: 'EPERM',
    ! npm
    ! ERR!
    ! error rolling back
    ! path: 'C:\opt\iobroker\node_modules\iobroker.node-red\node_modules\node-red\node_modules\serialport\build\serialport\v1.4.10\Release\node-v11-win32-ia32\serialport.node' }
    ! npm ERR! Error: EPERM, unlink 'C:\opt\iobroker\node_modules\iobroker.node-red\node_modules\node-red\node_modules\serialport\build\serialport\v1.4.10\Release\node-v11-win32-ia32\serialport.node'npm ERR!
    ! { [Error: EPERM, unlink 'C:\opt\iobroker\node_modules\iobroker.node-red\node_modules\node-red\node_modules\serialport\build\serialport\v1.4.10\Release\node-v11-win32-ia32\serialport.node']npm ERR! errno: 50,
    ! npm
    ! ERR! code: 'EPERM',npm ERR!
    ! path: 'C:\opt\iobroker\node_modules\iobroker.node-red\node_modules\node-red\node_modules\serialport\build\serialport\v1.4.10\Release\node-v11-win32-ia32\serialport.node' }npm ERR!
    ! npm
    ! ERR! Please try running this command again as root/Administrator.
    ! npm ERR! System Windows_NT 6.2.9200
    ! npm ERR! command "C:\Program Files\nodejs\\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "install" "iobroker.node-red" "–production" "--prefix" "C:/opt/iobroker"npm ERR! cwd C:\opt
    ! npm ERR! node -v v0.10.22
    ! npm ERR! npm -v 1.3.14
    ! npm ERR! path C:\opt\iobroker\node_modules\iobroker.node-red\node_modules\node-red\node_modules\serialport\build\serialport\v1.4.10\Release\node-v11-win32-ia32\serialport.node
    ! npm ERR! code EPERM
    ! npm ERR! errno 50
    ! npm ERR! stack Error: EPERM, unlink 'C:\opt\iobroker\node_modules\iobroker.node-red\node_modules\node-red\node_modules\serialport\build\serialport\v1.4.10\Release\node-v11-win32-ia32\serialport.node'
    ! npm
    ! Cannot install iobroker.node-red: 50
    ! ERROR: process exited with code 25

    Und ich kann das irgendwie gar nicht interpretieren.

    Irgendeine Idee ?

    Gruß

    Bernhard

    PS: hier auch das dazu passende npm-debug.log

    ! 0 info it worked if it ends with ok
    ! 1 verbose cli [ 'C:\Program Files\nodejs\\node.exe',
    ! 1 verbose cli 'C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js',
    ! 1 verbose cli 'install',
    ! 1 verbose cli 'iobroker.node-red',
    ! 1 verbose cli '–production',
    ! 1 verbose cli '--prefix',
    ! 1 verbose cli 'C:/opt/iobroker' ]
    ! 2 info using npm@1.3.14
    ! 3 info using node@v0.10.22
    ! 4 verbose node symlink C:\Program Files\nodejs\node.exe
    ! 5 verbose cache add [ 'iobroker.node-red', null ]
    ! 6 verbose cache add name=undefined spec="iobroker.node-red" args=["iobroker.node-red",null]
    ! 7 verbose parsed url { protocol: null,
    ! 7 verbose parsed url slashes: null,
    ! 7 verbose parsed url auth: null,
    ! 7 verbose parsed url host: null,
    ! 7 verbose parsed url port: null,
    ! 7 verbose parsed url hostname: null,
    ! 7 verbose parsed url hash: null,
    ! 7 verbose parsed url search: null,
    ! 7 verbose parsed url query: null,
    ! 7 verbose parsed url pathname: 'iobroker.node-red',
    ! 7 verbose parsed url path: 'iobroker.node-red',
    ! 7 verbose parsed url href: 'iobroker.node-red' }
    ! 8 silly lockFile fb2bb5b2-iobroker-node-red iobroker.node-red
    ! 9 verbose lock iobroker.node-red C:\Users\root\AppData\Roaming\npm-cache\fb2bb5b2-iobroker-node-red.lock
    ! 10 silly lockFile fb2bb5b2-iobroker-node-red iobroker.node-red
    ! 11 silly lockFile fb2bb5b2-iobroker-node-red iobroker.node-red
    ! 12 verbose addNamed [ 'iobroker.node-red', '' ]
    ! 13 verbose addNamed [ null, '' ]
    ! 14 silly lockFile 78faa805-iobroker-node-red iobroker.node-red@
    ! 15 verbose lock iobroker.node-red@ C:\Users\root\AppData\Roaming\npm-cache\78faa805-iobroker-node-red.lock
    ! 16 silly addNameRange { name: 'iobroker.node-red', range: '
    ', hasData: false }
    ! 17 verbose url raw iobroker.node-red
    ! 18 verbose url resolving [ 'https://registry.npmjs.org/', './iobroker.node-red' ]
    ! 19 verbose url resolved https://registry.npmjs.org/iobroker.node-red
    ! 20 info trying registry request attempt 1 at 20:00:40
    ! 21 verbose etag "7BALZHMX15PO3KCEJVJCHPT7K"
    ! 22 http GET https://registry.npmjs.org/iobroker.node-red
    ! 23 http 200 https://registry.npmjs.org/iobroker.node-red
    ! 24 silly registry.get cb [ 200,
    ! 24 silly registry.get { server: 'CouchDB/1.5.0 (Erlang OTP/R16B03)',
    ! 24 silly registry.get etag: '"D8WQI5ADP7KV94HZXJ1KVG999"',
    ! 24 silly registry.get 'content-type': 'application/json',
    ! 24 silly registry.get 'cache-control': 'max-age=60',
    ! 24 silly registry.get 'content-length': '24181',
    ! 24 silly registry.get 'accept-ranges': 'bytes',
    ! 24 silly registry.get date: 'Sun, 17 May 2015 18:00:33 GMT',
    ! 24 silly registry.get via: '1.1 varnish',
    ! 24 silly registry.get age: '39',
    ! 24 silly registry.get connection: 'keep-alive',
    ! 24 silly registry.get 'x-served-by': 'cache-fra1228-FRA',
    ! 24 silly registry.get 'x-cache': 'HIT',
    ! 24 silly registry.get 'x-cache-hits': '1',
    ! 24 silly registry.get 'x-timer': 'S1431885633.888469,VS0,VE0',
    ! 24 silly registry.get vary: 'Accept' } ]
    ! 25 silly addNameRange number 2 { name: 'iobroker.node-red', range: '', hasData: true }
    ! 26 silly addNameRange versions [ 'iobroker.node-red',
    ! 26 silly addNameRange [ '0.1.0',
    ! 26 silly addNameRange '0.1.1',
    ! 26 silly addNameRange '0.1.2',
    ! 26 silly addNameRange '0.1.3',
    ! 26 silly addNameRange '0.1.4',
    ! 26 silly addNameRange '0.1.5',
    ! 26 silly addNameRange '0.1.6',
    ! 26 silly addNameRange '0.1.7',
    ! 26 silly addNameRange '0.1.8',
    ! 26 silly addNameRange '0.1.9',
    ! 26 silly addNameRange '0.2.0',
    ! 26 silly addNameRange '0.2.1',
    ! 26 silly addNameRange '0.2.2' ] ]
    ! 27 verbose addNamed [ 'iobroker.node-red', '0.2.2' ]
    ! 28 verbose addNamed [ '0.2.2', '0.2.2' ]
    ! 29 silly lockFile 5a644077-iobroker-node-red-0-2-2 iobroker.node-red@0.2.2
    ! 30 verbose lock iobroker.node-red@0.2.2 C:\Users\root\AppData\Roaming\npm-cache\5a644077-iobroker-node-red-0-2-2.lock
    ! 31 silly lockFile 5b62ee9c–red-iobroker-node-red-0-2-2-tgz https://registry.npmjs.org/iobroker.nod ... -0.2.2.tgz
    ! 32 verbose lock https://registry.npmjs.org/iobroker.nod ... -0.2.2.tgz C:\Users\root\AppData\Roaming\npm-cache\5b62ee9c--red-iobroker-node-red-0-2-2-tgz.lock
    ! 33 verbose addRemoteTarball [ 'https://registry.npmjs.org/iobroker.nod ... -0.2.2.tgz',
    ! 33 verbose addRemoteTarball 'f96d40931ed180dbf3df832521ec2492456143f8' ]
    ! 34 info retry fetch attempt 1 at 20:00:40
    ! 35 verbose fetch to= C:\Users\root\AppData\Local\Temp\npm-3608-_FZhC3xP\1431885640970-0.8205891996622086\tmp.tgz
    ! 36 http GET https://registry.npmjs.org/iobroker.nod ... -0.2.2.tgz
    ! 37 http 200 https://registry.npmjs.org/iobroker.nod ... -0.2.2.tgz
    ! 38 verbose tar unpack C:\Users\root\AppData\Local\Temp\npm-3608-_FZhC3xP\1431885640970-0.8205891996622086\tmp.tgz
    ! 39 silly lockFile 033f117d-40970-0-8205891996622086-package tar://C:\Users\root\AppData\Local\Temp\npm-3608-_FZhC3xP\1431885640970-0.8205891996622086\package
    ! 40 verbose lock tar://C:\Users\root\AppData\Local\Temp\npm-3608-_FZhC3xP\1431885640970-0.8205891996622086\package C:\Users\root\AppData\Roaming\npm-cache\033f117d-40970-0-8205891996622086-package.lock
    ! 41 silly lockFile 333a2436-40970-0-8205891996622086-tmp-tgz tar://C:\Users\root\AppData\Local\Temp\npm-3608-_FZhC3xP\1431885640970-0.8205891996622086\tmp.tgz
    ! 42 verbose lock tar://C:\Users\root\AppData\Local\Temp\npm-3608-_FZhC3xP\1431885640970-0.8205891996622086\tmp.tgz C:\Users\root\AppData\Roaming\npm-cache\333a2436-40970-0-8205891996622086-tmp-tgz.lock
    ! 43 silly gunzTarPerm modes [ '755', '644' ]
    ! 44 silly gunzTarPerm extractEntry package.json
    ! 45 silly gunzTarPerm modified mode [ 'package.json', 438, 420 ]
    ! 46 silly gunzTarPerm extractEntry .npmignore
    ! 47 silly gunzTarPerm modified mode [ '.npmignore', 438, 420 ]
    ! 48 silly gunzTarPerm extractEntry README.md
    ! 49 silly gunzTarPerm modified mode [ 'README.md', 438, 420 ]
    ! 50 silly gunzTarPerm extractEntry LICENSE
    ! 51 silly gunzTarPerm modified mode [ 'LICENSE', 438, 420 ]
    ! 52 silly gunzTarPerm extractEntry main.js
    ! 53 silly gunzTarPerm modified mode [ 'main.js', 438, 420 ]
    ! 54 silly gunzTarPerm extractEntry settings.js
    ! 55 silly gunzTarPerm modified mode [ 'settings.js', 438, 420 ]
    ! 56 silly gunzTarPerm extractEntry io-package.json
    ! 57 silly gunzTarPerm modified mode [ 'io-package.json', 438, 420 ]
    ! 58 silly gunzTarPerm extractEntry nodes/ioBroker.js
    ! 59 silly gunzTarPerm modified mode [ 'nodes/ioBroker.js', 438, 420 ]
    ! 60 silly gunzTarPerm extractEntry nodes/icons/iobroker.png
    ! 61 silly gunzTarPerm modified mode [ 'nodes/icons/iobroker.png', 438, 420 ]
    ! 62 silly gunzTarPerm extractEntry nodes/ioBroker.html
    ! 63 silly gunzTarPerm modified mode [ 'nodes/ioBroker.html', 438, 420 ]
    ! 64 silly gunzTarPerm extractEntry admin/index.html
    ! 65 silly gunzTarPerm modified mode [ 'admin/index.html', 438, 420 ]
    ! 66 silly gunzTarPerm extractEntry admin/node-red.png
    ! 67 silly gunzTarPerm modified mode [ 'admin/node-red.png', 438, 420 ]
    ! 68 silly gunzTarPerm extractEntry public/icons.gif
    ! 69 silly gunzTarPerm modified mode [ 'public/icons.gif', 438, 420 ]
    ! 70 silly gunzTarPerm extractEntry public/schedule/LICENSE.txt
    ! 71 silly gunzTarPerm modified mode [ 'public/schedule/LICENSE.txt', 438, 420 ]
    ! 72 silly gunzTarPerm extractEntry public/schedule/index.html
    ! 73 silly gunzTarPerm modified mode [ 'public/schedule/index.html', 438, 420 ]
    ! 74 silly gunzTarPerm extractEntry public/schedule/style.css
    ! 75 silly gunzTarPerm modified mode [ 'public/schedule/style.css', 438, 420 ]
    ! 76 silly gunzTarPerm extractEntry lib/utils.js
    ! 77 silly gunzTarPerm modified mode [ 'lib/utils.js', 438, 420 ]
    ! 78 silly lockFile 033f117d-40970-0-8205891996622086-package tar://C:\Users\root\AppData\Local\Temp\npm-3608-_FZhC3xP\1431885640970-0.8205891996622086\package
    ! 79 silly lockFile 033f117d-40970-0-8205891996622086-package tar://C:\Users\root\AppData\Local\Temp\npm-3608-_FZhC3xP\1431885640970-0.8205891996622086\package
    ! 80 silly lockFile 333a2436-40970-0-8205891996622086-tmp-tgz tar://C:\Users\root\AppData\Local\Temp\npm-3608-_FZhC3xP\1431885640970-0.8205891996622086\tmp.tgz
    ! 81 silly lockFile 333a2436-40970-0-8205891996622086-tmp-tgz tar://C:\Users\root\AppData\Local\Temp\npm-3608-_FZhC3xP\1431885640970-0.8205891996622086\tmp.tgz
    ! 82 verbose tar pack [ 'C:\Users\root\AppData\Roaming\npm-cache\iobroker.node-red\0.2.2\package.tgz',
    ! 82 verbose tar pack 'C:\Users\root\AppData\Local\Temp\npm-3608-_FZhC3xP\1431885640970-0.8205891996622086\package' ]
    ! 83 verbose tarball C:\Users\root\AppData\Roaming\npm-cache\iobroker.node-red\0.2.2\package.tgz
    ! 84 verbose folder C:\Users\root\AppData\Local\Temp\npm-3608-_FZhC3xP\1431885640970-0.8205891996622086\package
    ! 85 silly lockFile 033f117d-40970-0-8205891996622086-package tar://C:\Users\root\AppData\Local\Temp\npm-3608-_FZhC3xP\1431885640970-0.8205891996622086\package
    ! 86 verbose lock tar://C:\Users\root\AppData\Local\Temp\npm-3608-_FZhC3xP\1431885640970-0.8205891996622086\package C:\Users\root\AppData\Roaming\npm-cache\033f117d-40970-0-8205891996622086-package.lock
    ! 87 silly lockFile 2ba3e80a-roker-node-red-0-2-2-package-tgz tar://C:\Users\root\AppData\Roaming\npm-cache\iobroker.node-red\0.2.2\package.tgz
    ! 88 verbose lock tar://C:\Users\root\AppData\Roaming\npm-cache\iobroker.node-red\0.2.2\package.tgz C:\Users\root\AppData\Roaming\npm-cache\2ba3e80a-roker-node-red-0-2-2-package-tgz.lock
    ! 89 silly lockFile 033f117d-40970-0-8205891996622086-package tar://C:\Users\root\AppData\Local\Temp\npm-3608-_FZhC3xP\1431885640970-0.8205891996622086\package
    ! 90 silly lockFile 033f117d-40970-0-8205891996622086-package tar://C:\Users\root\AppData\Local\Temp\npm-3608-_FZhC3xP\1431885640970-0.8205891996622086\package
    ! 91 silly lockFile 2ba3e80a-roker-node-red-0-2-2-package-tgz tar://C:\Users\root\AppData\Roaming\npm-cache\iobroker.node-red\0.2.2\package.tgz
    ! 92 silly lockFile 2ba3e80a-roker-node-red-0-2-2-package-tgz tar://C:\Users\root\AppData\Roaming\npm-cache\iobroker.node-red\0.2.2\package.tgz
    ! 93 silly lockFile f07f40e9–iobroker-node-red-0-2-2-package C:\Users\root\AppData\Roaming\npm-cache\iobroker.node-red\0.2.2\package
    ! 94 verbose lock C:\Users\root\AppData\Roaming\npm-cache\iobroker.node-red\0.2.2\package C:\Users\root\AppData\Roaming\npm-cache\f07f40e9--iobroker-node-red-0-2-2-package.lock
    ! 95 silly lockFile f07f40e9--iobroker-node-red-0-2-2-package C:\Users\root\AppData\Roaming\npm-cache\iobroker.node-red\0.2.2\package
    ! 96 silly lockFile f07f40e9--iobroker-node-red-0-2-2-package C:\Users\root\AppData\Roaming\npm-cache\iobroker.node-red\0.2.2\package
    ! 97 verbose tar unpack C:\Users\root\AppData\Roaming\npm-cache\iobroker.node-red\0.2.2\package.tgz
    ! 98 silly lockFile 2267214d--iobroker-node-red-0-2-2-package tar://C:\Users\root\AppData\Roaming\npm-cache\iobroker.node-red\0.2.2\package
    ! 99 verbose lock tar://C:\Users\root\AppData\Roaming\npm-cache\iobroker.node-red\0.2.2\package C:\Users\root\AppData\Roaming\npm-cache\2267214d--iobroker-node-red-0-2-2-package.lock
    ! 100 silly lockFile 2ba3e80a-roker-node-red-0-2-2-package-tgz tar://C:\Users\root\AppData\Roaming\npm-cache\iobroker.node-red\0.2.2\package.tgz
    ! 101 verbose lock tar://C:\Users\root\AppData\Roaming\npm-cache\iobroker.node-red\0.2.2\package.tgz C:\Users\root\AppData\Roaming\npm-cache\2ba3e80a-roker-node-red-0-2-2-package-tgz.lock
    ! 102 silly gunzTarPerm modes [ '755', '644' ]
    ! 103 silly gunzTarPerm extractEntry package.json
    ! 104 silly gunzTarPerm modified mode [ 'package.json', 438, 420 ]
    ! 105 silly gunzTarPerm extractEntry .npmignore
    ! 106 silly gunzTarPerm modified mode [ '.npmignore', 438, 420 ]
    ! 107 silly gunzTarPerm extractEntry README.md
    ! 108 silly gunzTarPerm modified mode [ 'README.md', 438, 420 ]
    ! 109 silly gunzTarPerm extractEntry LICENSE
    ! 110 silly gunzTarPerm modified mode [ 'LICENSE', 438, 420 ]
    ! 111 silly gunzTarPerm extractEntry settings.js
    ! 112 silly gunzTarPerm modified mode [ 'settings.js', 438, 420 ]
    ! 113 silly gunzTarPerm extractEntry main.js
    ! 114 silly gunzTarPerm modified mode [ 'main.js', 438, 420 ]
    ! 115 silly gunzTarPerm extractEntry admin/index.html
    ! 116 silly gunzTarPerm modified mode [ 'admin/index.html', 438, 420 ]
    ! 117 silly gunzTarPerm extractEntry admin/node-red.png
    ! 118 silly gunzTarPerm modified mode [ 'admin/node-red.png', 438, 420 ]
    ! 119 silly gunzTarPerm extractEntry nodes/ioBroker.js
    ! 120 silly gunzTarPerm modified mode [ 'nodes/ioBroker.js', 438, 420 ]
    ! 121 silly gunzTarPerm extractEntry nodes/icons/iobroker.png
    ! 122 silly gunzTarPerm modified mode [ 'nodes/icons/iobroker.png', 438, 420 ]
    ! 123 silly gunzTarPerm extractEntry nodes/ioBroker.html
    ! 124 silly gunzTarPerm modified mode [ 'nodes/ioBroker.html', 438, 420 ]
    ! 125 silly gunzTarPerm extractEntry lib/utils.js
    ! 126 silly gunzTarPerm modified mode [ 'lib/utils.js', 438, 420 ]
    ! 127 silly gunzTarPerm extractEntry public/icons.gif
    ! 128 silly gunzTarPerm modified mode [ 'public/icons.gif', 438, 420 ]
    ! 129 silly gunzTarPerm extractEntry public/schedule/index.html
    ! 130 silly gunzTarPerm modified mode [ 'public/schedule/index.html', 438, 420 ]
    ! 131 silly gunzTarPerm extractEntry public/schedule/LICENSE.txt
    ! 132 silly gunzTarPerm modified mode [ 'public/schedule/LICENSE.txt', 438, 420 ]
    ! 133 silly gunzTarPerm extractEntry public/schedule/style.css
    ! 134 silly gunzTarPerm modified mode [ 'public/schedule/style.css', 438, 420 ]
    ! 135 silly gunzTarPerm extractEntry io-package.json
    ! 136 silly gunzTarPerm modified mode [ 'io-package.json', 438, 420 ]
    ! 137 silly lockFile 2267214d–iobroker-node-red-0-2-2-package tar://C:\Users\root\AppData\Roaming\npm-cache\iobroker.node-red\0.2.2\package
    ! 138 silly lockFile 2267214d--iobroker-node-red-0-2-2-package tar://C:\Users\root\AppData\Roaming\npm-cache\iobroker.node-red\0.2.2\package
    ! 139 silly lockFile 2ba3e80a-roker-node-red-0-2-2-package-tgz tar://C:\Users\root\AppData\Roaming\npm-cache\iobroker.node-red\0.2.2\package.tgz
    ! 140 silly lockFile 2ba3e80a-roker-node-red-0-2-2-package-tgz tar://C:\Users\root\AppData\Roaming\npm-cache\iobroker.node-red\0.2.2\package.tgz
    ! 141 verbose chmod C:\Users\root\AppData\Roaming\npm-cache\iobroker.node-red\0.2.2\package.tgz 644
    ! 142 silly chown skipping for windows C:\Users\root\AppData\Roaming\npm-cache\iobroker.node-red\0.2.2\package.tgz
    ! 143 silly lockFile 5b62ee9c--red-iobroker-node-red-0-2-2-tgz https://registry.npmjs.org/iobroker.nod ... -0.2.2.tgz
    ! 144 silly lockFile 5b62ee9c--red-iobroker-node-red-0-2-2-tgz https://registry.npmjs.org/iobroker.nod ... -0.2.2.tgz
    ! 145 silly lockFile 5a644077-iobroker-node-red-0-2-2 iobroker.node-red@0.2.2
    ! 146 silly lockFile 5a644077-iobroker-node-red-0-2-2 iobroker.node-red@0.2.2
    ! 147 silly lockFile 78faa805-iobroker-node-red iobroker.node-red@
    ! 148 silly lockFile 78faa805-iobroker-node-red iobroker.node-red@
    ! 149 silly resolved [ { name: 'iobroker.node-red',
    ! 149 silly resolved description: 'This adapter uses node-red as a service of ioBroker. No additional node-red instance required.',
    ! 149 silly resolved version: '0.2.2',
    ! 149 silly resolved author: { name: 'bluefox', email: 'bluefox@ccu.io' },
    ! 149 silly resolved contributors: [ [Object] ],
    ! 149 silly resolved homepage: 'https://github.com/ioBroker/ioBroker.node-red',
    ! 149 silly resolved license: 'Apache 2.0',
    ! 149 silly resolved keywords: [ 'ioBroker', 'node-red', 'home automation' ],
    ! 149 silly resolved repository:
    ! 149 silly resolved { type: 'git',
    ! 149 silly resolved url: 'https://github.com/ioBroker/ioBroker.node-red' },
    ! 149 silly resolved optionalDependencies:
    ! 149 silly resolved { js2xmlparser: '
    ',
    ! 149 silly resolved 'fs.notify': '',
    ! 149 silly resolved feedparser: '
    ',
    ! 149 silly resolved mongodb: '' },
    ! 149 silly resolved dependencies:
    ! 149 silly resolved { 'node-red': '~0.10.4',
    ! 149 silly resolved 'fs.notify': '
    ',
    ! 149 silly resolved js2xmlparser: '',
    ! 149 silly resolved feedparser: '
    ',
    ! 149 silly resolved mongodb: '*' },
    ! 149 silly resolved devDependencies:
    ! 149 silly resolved { grunt: '~0.4.4',
    ! 149 silly resolved 'grunt-replace': '~0.7.6',
    ! 149 silly resolved 'grunt-contrib-jshint': '~0.10.0',
    ! 149 silly resolved 'grunt-jscs': '~0.6.1',
    ! 149 silly resolved 'grunt-http': '~1.4.1',
    ! 149 silly resolved 'grunt-contrib-clean': '~0.5.0',
    ! 149 silly resolved 'grunt-contrib-compress': '~0.8.0',
    ! 149 silly resolved 'grunt-contrib-copy': '~0.5.0',
    ! 149 silly resolved 'grunt-exec': '~0.4.5' },
    ! 149 silly resolved bugs: { url: 'https://github.com/ioBroker/ioBroker.node-red/issues' },
    ! 149 silly resolved main: 'main.js',
    ! 149 silly resolved scripts: { test: 'echo "Error: no test specified" && exit 1' },
    ! 149 silly resolved readmeFilename: 'README.md',
    ! 149 silly resolved readme: '\nioBroker node-red Adapter\n==============\n\n# Starts node-red instance and communicates with it.\n\nThis adapter uses the node-red server from [https://github.com/node-red/node-red\n\nNote>.\n\nLicensed under the Apache License, Version 2.0 (the ,http://www.apache.org/licenses/LICENSE-2.0\n\nUnless](https://github.com/node-red/node-red\n\nNote>.\n\nLicensed under the Apache License, Version 2.0 (the ,http://www.apache.org/licenses/LICENSE-2.0\n\nUnless) required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an "AS IS" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n',
    ! 149 silly resolved _id: 'iobroker.node-red@0.2.2',
    ! 149 silly resolved dist: { shasum: '23e2ca65d33d836e1c0e27730fd5257bec0845a0' },
    ! 149 silly resolved _from: 'iobroker.node-red@',
    ! 149 silly resolved _resolved: 'https://registry.npmjs.org/iobroker.nod … -0.2.2.tgz' } ]
    ! 150 info install iobroker.node-red@0.2.2 into C:\opt\iobroker
    ! 151 info installOne iobroker.node-red@0.2.2
    ! 152 info C:\opt\iobroker\node_modules\iobroker.node-red unbuild
    ! 153 info preuninstall iobroker.node-red@0.2.1
    ! 154 info uninstall iobroker.node-red@0.2.1
    ! 155 verbose true,C:\opt\iobroker\node_modules,C:\opt\iobroker\node_modules unbuild iobroker.node-red@0.2.1
    ! 156 info postuninstall iobroker.node-red@0.2.1
    ! 157 info C:\opt\iobroker\node_modules\iobroker.node-red unbuild
    ! 158 error error rolling back Error: EPERM, unlink 'C:\opt\iobroker\node_modules\iobroker.node-red\node_modules\node-red\node_modules\serialport\build\serialport\v1.4.10\Release\node-v11-win32-ia32\serialport.node'
    ! 158 error error rolling back iobroker.node-red@0.2.2 { [Error: EPERM, unlink 'C:\opt\iobroker\node_modules\iobroker.node-red\node_modules\node-red\node_modules\serialport\build\serialport\v1.4.10\Release\node-v11-win32-ia32\serialport.node']
    ! 158 error error rolling back errno: 50,
    ! 158 error error rolling back code: 'EPERM',
    ! 158 error error rolling back path: 'C:\opt\iobroker\node_modules\iobroker.node-red\node_modules\node-red\node_modules\serialport\build\serialport\v1.4.10\Release\node-v11-win32-ia32\serialport.node' }
    ! 159 error Error: EPERM, unlink 'C:\opt\iobroker\node_modules\iobroker.node-red\node_modules\node-red\node_modules\serialport\build\serialport\v1.4.10\Release\node-v11-win32-ia32\serialport.node'
    ! 159 error { [Error: EPERM, unlink 'C:\opt\iobroker\node_modules\iobroker.node-red\node_modules\node-red\node_modules\serialport\build\serialport\v1.4.10\Release\node-v11-win32-ia32\serialport.node']
    ! 159 error errno: 50,
    ! 159 error code: 'EPERM',
    ! 159 error path: 'C:\opt\iobroker\node_modules\iobroker.node-red\node_modules\node-red\node_modules\serialport\build\serialport\v1.4.10\Release\node-v11-win32-ia32\serialport.node' }
    ! 160 error Please try running this command again as root/Administrator.
    ! 161 error System Windows_NT 6.2.9200
    ! 162 error command "C:\Program Files\nodejs\\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "install" "iobroker.node-red" "–production" "--prefix" "C:/opt/iobroker"
    ! 163 error cwd C:\opt
    ! 164 error node -v v0.10.22
    ! 165 error npm -v 1.3.14
    ! 166 error path C:\opt\iobroker\node_modules\iobroker.node-red\node_modules\node-red\node_modules\serialport\build\serialport\v1.4.10\Release\node-v11-win32-ia32\serialport.node
    ! 167 error code EPERM
    ! 168 error errno 50
    ! 169 error stack Error: EPERM, unlink 'C:\opt\iobroker\node_modules\iobroker.node-red\node_modules\node-red\node_modules\serialport\build\serialport\v1.4.10\Release\node-v11-win32-ia32\serialport.node'
    ! 170 verbose exit [ 50, true ]


  • @Heinzelmaennchen:

    Hallo Bluefox,

    jetzt ist es wieder passiert. Aber eins nach dem Anderen.

    Natürlich hattest Du recht, das Befehlszeilenkommando war falsch. Nachdem ich das wie von Dir geschrieben eingegeben habe hat die Installation tatsächlich funktioniert und ich war auf 0.2.1.

    Als ich eben das neueste Update gesehen habe und im Admin Interface das Update auf 0.2.2 ausgelöst habe, ist das selbe wie heute nacht passiert.

    ! $ ./iobroker upgrade node-red
    ! npm install iobroker.node-red –production --prefix "C:/opt/iobroker" (System call)
    ! npm
    ! http GET https://registry.npmjs.org/iobroker.node-red
    ! npm
    ! http
    ! 200 https://registry.npmjs.org/iobroker.node-red
    ! npm
    ! http GET https://registry.npmjs.org/iobroker.nod ... -0.2.2.tgz
    ! npm
    ! http 200 https://registry.npmjs.org/iobroker.nod ... -0.2.2.tgz
    ! npm
    ! ERR!
    ! error rolling back
    ! Error: EPERM, unlink 'C:\opt\iobroker\node_modules\iobroker.node-red\node_modules\node-red\node_modules\serialport\build\serialport\v1.4.10\Release\node-v11-win32-ia32\serialport.node'
    ! npm
    ! ERR!
    ! error rolling back
    ! iobroker.node-red@0.2.2 { [Error: EPERM, unlink 'C:\opt\iobroker\node_modules\iobroker.node-red\node_modules\node-red\node_modules\serialport\build\serialport\v1.4.10\Release\node-v11-win32-ia32\serialport.node']
    ! npm
    ! ERR!
    ! error rolling back
    ! errno: 50,npm
    ! ERR!
    ! error rolling back
    ! code: 'EPERM',
    ! npm
    ! ERR!
    ! error rolling back
    ! path: 'C:\opt\iobroker\node_modules\iobroker.node-red\node_modules\node-red\node_modules\serialport\build\serialport\v1.4.10\Release\node-v11-win32-ia32\serialport.node' }
    ! npm ERR! Error: EPERM, unlink 'C:\opt\iobroker\node_modules\iobroker.node-red\node_modules\node-red\node_modules\serialport\build\serialport\v1.4.10\Release\node-v11-win32-ia32\serialport.node'npm ERR!
    ! { [Error: EPERM, unlink 'C:\opt\iobroker\node_modules\iobroker.node-red\node_modules\node-red\node_modules\serialport\build\serialport\v1.4.10\Release\node-v11-win32-ia32\serialport.node']npm ERR! errno: 50,
    ! npm
    ! ERR! code: 'EPERM',npm ERR!
    ! path: 'C:\opt\iobroker\node_modules\iobroker.node-red\node_modules\node-red\node_modules\serialport\build\serialport\v1.4.10\Release\node-v11-win32-ia32\serialport.node' }npm ERR!
    ! npm
    ! ERR! Please try running this command again as root/Administrator.
    ! npm ERR! System Windows_NT 6.2.9200
    ! npm ERR! command "C:\Program Files\nodejs\\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "install" "iobroker.node-red" "–production" "--prefix" "C:/opt/iobroker"npm ERR! cwd C:\opt
    ! npm ERR! node -v v0.10.22
    ! npm ERR! npm -v 1.3.14
    ! npm ERR! path C:\opt\iobroker\node_modules\iobroker.node-red\node_modules\node-red\node_modules\serialport\build\serialport\v1.4.10\Release\node-v11-win32-ia32\serialport.node
    ! npm ERR! code EPERM
    ! npm ERR! errno 50
    ! npm ERR! stack Error: EPERM, unlink 'C:\opt\iobroker\node_modules\iobroker.node-red\node_modules\node-red\node_modules\serialport\build\serialport\v1.4.10\Release\node-v11-win32-ia32\serialport.node'
    ! npm
    ! Cannot install iobroker.node-red: 50
    ! ERROR: process exited with code 25

    Und ich kann das irgendwie gar nicht interpretieren.

    Irgendeine Idee ?

    Gruß

    Bernhard `
    Ich vermute, dass die Datei …\node-v11-win32-ia32\serialport.node vom ioBroker benutzt war, und konnte nicht gelöscht werden.

    Das kann man momentan umgehen in den man node-red erst stoppt und dann updated.

    Ich werde für node-red dann Flag eingeben "stopBeforeUpdate" und es so abfangen.

Suggested Topics

1.5k
Online

38.3k
Users

43.8k
Topics

611.8k
Posts