NEWS

Javascript updaten mit iobroker im Synology Docker



  • Hallo,

    ich komme irgendwie nicht wirklich weiter.

    Ich habe 7 oder 8 Adapter die sich im bei mir nicht updaten lassen. Ich habe das Buanet Image im Docker. Aktuell nutze ich das Image v4.0.1beta ( seit ca 1 Woche -> umgezogen auf V4 bin ich wegen Nodejs. )

    Aber Updates gingen schon länger nicht mehr bei den Scripten auch schon unter der V3 nicht.

    Ich hoffe hier kann mir jemand helfen wie ich vorgehen muss damit ich das System wieder ein mal up to date halte. Erstmal ein paar Infos zum System:

    Platform: linux
    Architecture: x64
    CPUs: 2
    Speed: 2001 MHz
    Model: Intel(R) Celeron(R) CPU J3355 @ 2.00GHz
    RAM: 9.5 GB
    System uptime: 23 T. 16:44:19
    Node.js: v10.17.0
    NPM: 6.11.3
    adapters count: 306
    Uptime: 1 T. 10:51:45

    Der Js Controller ist bei Version 1.4.2

    Hier jetzt mal exemplarisch zwei Adapter die ich seit ewigkeiten nicht upgedated bekomme.

    1. Javascript
    $ ./iobroker upgrade javascript
    Update javascript from @3.6.4 to @4.3.4
    NPM version: 6.11.3
    npm install iobroker.javascript@4.3.4 --production --save --prefix "/opt/iobroker" (System call)
    npm
     WARN deprecated coffee-script@1.12.7: CoffeeScript on NPM has moved to "coffeescript" (no hyphen)
    npm
     
    WARN
     
    enoent
     ENOENT: no such file or directory, open '/opt/iobroker/node_modules/iobroker.discovery/package.json'
    
    npm
     ERR!
     code EEXIST
    npm 
    ERR! path /opt/iobroker/node_modules/.bin/tscnpm ERR! Refusing to delete /opt/iobroker/node_modules/.bin/tsc: is outside /opt/iobroker/node_modules/typescript and not a link
    
    npm ERR! File exists: /opt/iobroker/node_modules/.bin/tscnpm 
    ERR! Move it away, and try again.
    npm ERR! A complete log of this run can be found in:
    npm ERR!
         /opt/iobroker/.npm/_logs/2019-12-18T08_34_52_907Z-debug.log
    Update "system.adapter.javascript.0"
    got /opt/iobroker/node_modules/iobroker.javascript/admin
    upload [70] javascript.admin /opt/iobroker/node_modules/iobroker.javascript/admin/query-builder/query-builder.default.min.css query-builder/query-builder.default.min.css text/css
    upload [60] javascript.admin /opt/iobroker/node_modules/iobroker.javascript/admin/jquery.cron.css jquery.cron.css text/css
    upload [50] javascript.admin /opt/iobroker/node_modules/iobroker.javascript/admin/google-blockly/own/msg/es.js google-blockly/own/msg/es.js application/javascript
    upload [40] javascript.admin /opt/iobroker/node_modules/iobroker.javascript/admin/google-blockly/own/blocks_system.js google-blockly/own/blocks_system.js application/javascript
    upload [30] javascript.admin /opt/iobroker/node_modules/iobroker.javascript/admin/google-blockly/msg/js/fr.js google-blockly/msg/js/fr.js application/javascript
    upload [20] javascript.admin /opt/iobroker/node_modules/iobroker.javascript/admin/google-blockly/media/handclosed.cur google-blockly/media/handclosed.cur application/octet-stream
    upload [19] javascript.admin /opt/iobroker/node_modules/iobroker.javascript/admin/google-blockly/media/disconnect.wav google-blockly/media/disconnect.wav audio/x-wav
    upload [18] javascript.admin /opt/iobroker/node_modules/iobroker.javascript/admin/google-blockly/media/disconnect.ogg google-blockly/media/disconnect.ogg audio/ogg
    upload [17] javascript.admin /opt/iobroker/node_modules/iobroker.javascript/admin/google-blockly/media/disconnect.mp3 google-blockly/media/disconnect.mp3 audio/mpeg
    upload [16] javascript.admin /opt/iobroker/node_modules/iobroker.javascript/admin/google-blockly/media/delete.wav google-blockly/media/delete.wav audio/x-wav
    upload [15] javascript.admin /opt/iobroker/node_modules/iobroker.javascript/admin/google-blockly/media/delete.ogg google-blockly/media/delete.ogg audio/ogg
    upload [14] javascript.admin /opt/iobroker/node_modules/iobroker.javascript/admin/google-blockly/media/delete.mp3 google-blockly/media/delete.mp3 audio/mpeg
    upload [13] javascript.admin /opt/iobroker/node_modules/iobroker.javascript/admin/google-blockly/media/click.wav google-blockly/media/click.wav audio/x-wav
    upload [12] javascript.admin /opt/iobroker/node_modules/iobroker.javascript/admin/google-blockly/media/click.ogg google-blockly/media/click.ogg audio/ogg
    upload [11] javascript.admin /opt/iobroker/node_modules/iobroker.javascript/admin/google-blockly/media/click.mp3 google-blockly/media/click.mp3 audio/mpeg
    upload [10] javascript.admin /opt/iobroker/node_modules/iobroker.javascript/admin/google-blockly/media/1x1.gif google-blockly/media/1x1.gif image/gif
    upload [9] javascript.admin /opt/iobroker/node_modules/iobroker.javascript/admin/google-blockly/javascript_compressed.js google-blockly/javascript_compressed.js application/javascript
    upload [8] javascript.admin /opt/iobroker/node_modules/iobroker.javascript/admin/google-blockly/blocks_compressed.js google-blockly/blocks_compressed.js application/javascript
    upload [7] javascript.admin /opt/iobroker/node_modules/iobroker.javascript/admin/google-blockly/blockly_compressed.js google-blockly/blockly_compressed.js application/javascript
    upload [6] javascript.admin /opt/iobroker/node_modules/iobroker.javascript/admin/google-blockly/LICENSE google-blockly/LICENSE application/octet-stream
    upload [5] javascript.admin /opt/iobroker/node_modules/iobroker.javascript/admin/cron2text.js cron2text.js application/javascript
    upload [4] javascript.admin /opt/iobroker/node_modules/iobroker.javascript/admin/cron/jquery-cron.js cron/jquery-cron.js application/javascript
    upload [3] javascript.admin /opt/iobroker/node_modules/iobroker.javascript/admin/cron/jquery-cron.css cron/jquery-cron.css text/css
    upload [2] javascript.admin /opt/iobroker/node_modules/iobroker.javascript/admin/coffeescript.png coffeescript.png image/png
    upload [1] javascript.admin /opt/iobroker/node_modules/iobroker.javascript/admin/blockly.png blockly.png image/png
    upload [0] javascript.admin /opt/iobroker/node_modules/iobroker.javascript/admin/adminWords.js adminWords.js application/javascript
    Adapter "javascript" updated
    process exited with code 0
    

    und hier einmal der HS-100 Adapter

    $ ./iobroker upgrade hs100
    Update hs100 from @1.0.5 to @1.0.10
    NPM version: 6.11.3
    npm install iobroker.hs100@1.0.10 --production --save --prefix "/opt/iobroker" (System call)
    npm WARN deprecated core-js@2.6.11: core-js@<3 is no longer maintained and not recommended for usage due to the number of issues. Please, upgrade your dependencies to the actual version of core-js@3.
    npm WARN enoent ENOENT: no such file or directory, open '/opt/iobroker/node_modules/iobroker.discovery/package.json'
    
    npm ERR! 
    code EEXIST
    npm ERR! path /opt/iobroker/node_modules/iobroker.hs100/node_modules/.bin/tplink-smarthome-apinpm ERR! Refusing to delete /opt/iobroker/node_modules/iobroker.hs100/node_modules/.bin/tplink-smarthome-api: is outside /opt/iobroker/node_modules/iobroker.hs100/node_modules/tplink-smarthome-api and not a link
    npm ERR! File exists: /opt/iobroker/node_modules/iobroker.hs100/node_modules/.bin/tplink-smarthome-api
    npm ERR! Move it away, and try again.
    
    npm ERR! A complete log of this run can be found in:
    npm ERR!     /opt/iobroker/.npm/_logs/2019-12-18T08_37_17_417Z-debug.log
    
    npm install --production (System call) in "/opt/iobroker/node_modules/iobroker.hs100"
    npm
     WARN
     deprecated gulp-util@3.0.8: gulp-util is deprecated - replace it, following the guidelines at https://medium.com/gulpjs/gulp-util-ca3b1f9f9ac5
    npm
     WARN deprecated minimatch@2.0.10: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
    npm
     WARN deprecated natives@1.1.6: This module relies on Node.js's internals and will break at some point. Do not use it, and update to graceful-fs@4.x.
    npm
     
    WARN
     
    deprecated minimatch@0.2.14: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
    npm
     
    WARN
     deprecated graceful-fs@1.2.3: please upgrade to graceful-fs 4 for compatibility with current and future versions of Node.js
    got /opt/iobroker/node_modules/iobroker.hs100/admin
    upload [3] hs100.admin /opt/iobroker/node_modules/iobroker.hs100/admin/words.js words.js application/javascript
    Adapter "system.adapter.vis.0" restarted.
    upload [2] hs100.admin /opt/iobroker/node_modules/iobroker.hs100/admin/index_m.html index_m.html text/html
    upload [1] hs100.admin /opt/iobroker/node_modules/iobroker.hs100/admin/index.html index.html text/html
    upload [0] hs100.admin /opt/iobroker/node_modules/iobroker.hs100/admin/hs100.png hs100.png image/png
    Adapter "hs100" updated
    process exited with code 0
    

    Naja ich hoffe hier kann mir jemand weiter helfen.

    Vielen Dank schonmal vorab.



  • Hallo zusammen im oben gepsoteten Fehlerlog steht ja noch eine Adresse für ein ausführliches log. Dieses ist hier im Anhamg. 2019-12-18T10_01_37_110Z-debug.log



  • Hi gibts niemanden der evtl einen Tipp hat und mir helfen kann ?

    Vielen Dank



  • @Hohenbostler sagte in Javascript updaten mit iobroker im Synology Docker:

    Hallo,

    ich komme irgendwie nicht wirklich weiter.

    Ich habe 7 oder 8 Adapter die sich im bei mir nicht updaten lassen. Ich habe das Buanet Image im Docker. Aktuell nutze ich das Image v4.0.1beta ( seit ca 1 Woche -> umgezogen auf V4 bin ich wegen Nodejs. )

    Aber Updates gingen schon länger nicht mehr bei den Scripten auch schon unter der V3 nicht.

    Ich hoffe hier kann mir jemand helfen wie ich vorgehen muss damit ich das System wieder ein mal up to date halte. Erstmal ein paar Infos zum System:

    Platform: linux
    Architecture: x64
    CPUs: 2
    Speed: 2001 MHz
    Model: Intel(R) Celeron(R) CPU J3355 @ 2.00GHz
    RAM: 9.5 GB
    System uptime: 23 T. 16:44:19
    Node.js: v10.17.0
    NPM: 6.11.3
    adapters count: 306
    Uptime: 1 T. 10:51:45

    Der Js Controller ist bei Version 1.4.2

    Hier jetzt mal exemplarisch zwei Adapter die ich seit ewigkeiten nicht upgedated bekomme.

    1. Javascript
    $ ./iobroker upgrade javascript
    Update javascript from @3.6.4 to @4.3.4
    NPM version: 6.11.3
    npm install iobroker.javascript@4.3.4 --production --save --prefix "/opt/iobroker" (System call)
    npm
     WARN deprecated coffee-script@1.12.7: CoffeeScript on NPM has moved to "coffeescript" (no hyphen)
    npm
     
    WARN
     
    enoent
     ENOENT: no such file or directory, open '/opt/iobroker/node_modules/iobroker.discovery/package.json'
    
    npm
     ERR!
     code EEXIST
    npm 
    ERR! path /opt/iobroker/node_modules/.bin/tscnpm ERR! Refusing to delete /opt/iobroker/node_modules/.bin/tsc: is outside /opt/iobroker/node_modules/typescript and not a link
    
    npm ERR! File exists: /opt/iobroker/node_modules/.bin/tscnpm 
    ERR! Move it away, and try again.
    npm ERR! A complete log of this run can be found in:
    npm ERR!
         /opt/iobroker/.npm/_logs/2019-12-18T08_34_52_907Z-debug.log
    Update "system.adapter.javascript.0"
    got /opt/iobroker/node_modules/iobroker.javascript/admin
    upload [70] javascript.admin /opt/iobroker/node_modules/iobroker.javascript/admin/query-builder/query-builder.default.min.css query-builder/query-builder.default.min.css text/css
    upload [60] javascript.admin /opt/iobroker/node_modules/iobroker.javascript/admin/jquery.cron.css jquery.cron.css text/css
    upload [50] javascript.admin /opt/iobroker/node_modules/iobroker.javascript/admin/google-blockly/own/msg/es.js google-blockly/own/msg/es.js application/javascript
    upload [40] javascript.admin /opt/iobroker/node_modules/iobroker.javascript/admin/google-blockly/own/blocks_system.js google-blockly/own/blocks_system.js application/javascript
    upload [30] javascript.admin /opt/iobroker/node_modules/iobroker.javascript/admin/google-blockly/msg/js/fr.js google-blockly/msg/js/fr.js application/javascript
    upload [20] javascript.admin /opt/iobroker/node_modules/iobroker.javascript/admin/google-blockly/media/handclosed.cur google-blockly/media/handclosed.cur application/octet-stream
    upload [19] javascript.admin /opt/iobroker/node_modules/iobroker.javascript/admin/google-blockly/media/disconnect.wav google-blockly/media/disconnect.wav audio/x-wav
    upload [18] javascript.admin /opt/iobroker/node_modules/iobroker.javascript/admin/google-blockly/media/disconnect.ogg google-blockly/media/disconnect.ogg audio/ogg
    upload [17] javascript.admin /opt/iobroker/node_modules/iobroker.javascript/admin/google-blockly/media/disconnect.mp3 google-blockly/media/disconnect.mp3 audio/mpeg
    upload [16] javascript.admin /opt/iobroker/node_modules/iobroker.javascript/admin/google-blockly/media/delete.wav google-blockly/media/delete.wav audio/x-wav
    upload [15] javascript.admin /opt/iobroker/node_modules/iobroker.javascript/admin/google-blockly/media/delete.ogg google-blockly/media/delete.ogg audio/ogg
    upload [14] javascript.admin /opt/iobroker/node_modules/iobroker.javascript/admin/google-blockly/media/delete.mp3 google-blockly/media/delete.mp3 audio/mpeg
    upload [13] javascript.admin /opt/iobroker/node_modules/iobroker.javascript/admin/google-blockly/media/click.wav google-blockly/media/click.wav audio/x-wav
    upload [12] javascript.admin /opt/iobroker/node_modules/iobroker.javascript/admin/google-blockly/media/click.ogg google-blockly/media/click.ogg audio/ogg
    upload [11] javascript.admin /opt/iobroker/node_modules/iobroker.javascript/admin/google-blockly/media/click.mp3 google-blockly/media/click.mp3 audio/mpeg
    upload [10] javascript.admin /opt/iobroker/node_modules/iobroker.javascript/admin/google-blockly/media/1x1.gif google-blockly/media/1x1.gif image/gif
    upload [9] javascript.admin /opt/iobroker/node_modules/iobroker.javascript/admin/google-blockly/javascript_compressed.js google-blockly/javascript_compressed.js application/javascript
    upload [8] javascript.admin /opt/iobroker/node_modules/iobroker.javascript/admin/google-blockly/blocks_compressed.js google-blockly/blocks_compressed.js application/javascript
    upload [7] javascript.admin /opt/iobroker/node_modules/iobroker.javascript/admin/google-blockly/blockly_compressed.js google-blockly/blockly_compressed.js application/javascript
    upload [6] javascript.admin /opt/iobroker/node_modules/iobroker.javascript/admin/google-blockly/LICENSE google-blockly/LICENSE application/octet-stream
    upload [5] javascript.admin /opt/iobroker/node_modules/iobroker.javascript/admin/cron2text.js cron2text.js application/javascript
    upload [4] javascript.admin /opt/iobroker/node_modules/iobroker.javascript/admin/cron/jquery-cron.js cron/jquery-cron.js application/javascript
    upload [3] javascript.admin /opt/iobroker/node_modules/iobroker.javascript/admin/cron/jquery-cron.css cron/jquery-cron.css text/css
    upload [2] javascript.admin /opt/iobroker/node_modules/iobroker.javascript/admin/coffeescript.png coffeescript.png image/png
    upload [1] javascript.admin /opt/iobroker/node_modules/iobroker.javascript/admin/blockly.png blockly.png image/png
    upload [0] javascript.admin /opt/iobroker/node_modules/iobroker.javascript/admin/adminWords.js adminWords.js application/javascript
    Adapter "javascript" updated
    process exited with code 0
    

    und hier einmal der HS-100 Adapter

    $ ./iobroker upgrade hs100
    Update hs100 from @1.0.5 to @1.0.10
    NPM version: 6.11.3
    npm install iobroker.hs100@1.0.10 --production --save --prefix "/opt/iobroker" (System call)
    npm WARN deprecated core-js@2.6.11: core-js@<3 is no longer maintained and not recommended for usage due to the number of issues. Please, upgrade your dependencies to the actual version of core-js@3.
    npm WARN enoent ENOENT: no such file or directory, open '/opt/iobroker/node_modules/iobroker.discovery/package.json'
    
    npm ERR! 
    code EEXIST
    npm ERR! path /opt/iobroker/node_modules/iobroker.hs100/node_modules/.bin/tplink-smarthome-apinpm ERR! Refusing to delete /opt/iobroker/node_modules/iobroker.hs100/node_modules/.bin/tplink-smarthome-api: is outside /opt/iobroker/node_modules/iobroker.hs100/node_modules/tplink-smarthome-api and not a link
    npm ERR! File exists: /opt/iobroker/node_modules/iobroker.hs100/node_modules/.bin/tplink-smarthome-api
    npm ERR! Move it away, and try again.
    
    npm ERR! A complete log of this run can be found in:
    npm ERR!     /opt/iobroker/.npm/_logs/2019-12-18T08_37_17_417Z-debug.log
    
    npm install --production (System call) in "/opt/iobroker/node_modules/iobroker.hs100"
    npm
     WARN
     deprecated gulp-util@3.0.8: gulp-util is deprecated - replace it, following the guidelines at https://medium.com/gulpjs/gulp-util-ca3b1f9f9ac5
    npm
     WARN deprecated minimatch@2.0.10: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
    npm
     WARN deprecated natives@1.1.6: This module relies on Node.js's internals and will break at some point. Do not use it, and update to graceful-fs@4.x.
    npm
     
    WARN
     
    deprecated minimatch@0.2.14: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
    npm
     
    WARN
     deprecated graceful-fs@1.2.3: please upgrade to graceful-fs 4 for compatibility with current and future versions of Node.js
    got /opt/iobroker/node_modules/iobroker.hs100/admin
    upload [3] hs100.admin /opt/iobroker/node_modules/iobroker.hs100/admin/words.js words.js application/javascript
    Adapter "system.adapter.vis.0" restarted.
    upload [2] hs100.admin /opt/iobroker/node_modules/iobroker.hs100/admin/index_m.html index_m.html text/html
    upload [1] hs100.admin /opt/iobroker/node_modules/iobroker.hs100/admin/index.html index.html text/html
    upload [0] hs100.admin /opt/iobroker/node_modules/iobroker.hs100/admin/hs100.png hs100.png image/png
    Adapter "hs100" updated
    process exited with code 0
    

    Naja ich hoffe hier kann mir jemand weiter helfen.

    Vielen Dank schonmal vorab.

    Also ich habe es jetzt teilweise selbst gefunden Frage mich aber wieso das Problem besteht. Und zwar beim Javascript Adapter steht unter anderem folgendes.

    ERR! path /opt/iobroker/node_modules/.bin/tscnpm ERR! Refusing to delete /opt/iobroker/node_modules/.bin/tsc: is outside /opt/iobroker/node_modules/typescript and not a link
    

    Und wenn ich jetzt in meinem gemountetem Pfad schaue und unter anderem die Datei lösche ( übrigens wie alle anderen auch 0kb von irgendwann 2018 )
    dann läuft das Update auch durch.

    Aber warum ist das mit den Dateien so ?


  • TeamSpeak Developer Most Active

    @Hohenbostler ich verstehe dein Problem nicht ....



  • @arteck sagte in Javascript updaten mit iobroker im Synology Docker:

    @Hohenbostler ich verstehe dein Problem nicht ...

    Ok evtl macht es Sinn was du nicht verstehst ? Dann kann ich mein Problem gerne versuchen genauer zu erläutern



  • Bin leider kein npm-Experte. Aber für mich sieht das aus als ob die Updates doch durch laufen. Anderenfalls die angemeckerte Datei mal umkopieren oder umbenennen und nochmal versuchen....
    Eventuell hilft auch ein npm rebuild.
    Das schaut nach nem npm-Thema aus. Glaube nicht dass der Container selbst damit etwas zu tun hat.

    MfG,
    André



  • Ja was halt komisch ist bzw eher war das als Ergebnis ja auch immer stand das es durch ist.

    Erst nach dem ich alle Dateien gelöscht habe die moniert wurden beim Update lief es dann aber auch wirklich durch.

    Sehr komisch



Suggested Topics

  • 1
  • 12
  • 17
  • 5
  • 4
  • 3
  • 9
  • 6

1.4k
Online

25.3k
Users

31.4k
Topics

400.1k
Posts