Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. Alle Updates schlagen fehl...

    NEWS

    • Neuer Blog: Fotos und Eindrücke aus Solingen

    • ioBroker@Smart Living Forum Solingen, 14.06. - Agenda added

    • ioBroker goes Matter ... Matter Adapter in Stable

    Alle Updates schlagen fehl...

    This topic has been deleted. Only users with topic management privileges can see it.
    • S
      spaceduck last edited by spaceduck

      Hallo zusammen,

      hab seit einiger Zeit das Thema das ich keinen einzigen Adapter mehr updaten kann. Hier mal ein Beispiel aus der Shell für vis-map. Die Meldungen sind bei jedem Adapter identisch. Beim Update über die WebGUI wirft er noch zusätzlich einen "ERROR: process exited with code 25"

      NPM: 10.2.4
      nodejs: v18.19.1

      Hat da Irgendjemand eine Idee?

      Would you like to upgrade vis-map from @1.0.5 to @1.1.0 now? [(y)es, (n)o]: y
      Update vis-map from @1.0.5 to @1.1.0
      NPM version: 10.2.4
      Installing iobroker.vis-map@1.1.0... (System call)
      npm ERR! code EJSONPARSE
      npm ERR! path /volume1/opt/iobroker/package.json
      npm ERR! JSON.parse Unexpected token "r" (0x72) in JSON at position 1965 while parsing near "...roker.ws\":\"2.5.10\"}}roker.vis-metro\": \"1..."
      npm ERR! JSON.parse Failed to parse JSON data.
      npm ERR! JSON.parse Note: package.json must be actual JSON, not just JavaScript.
      
      npm ERR! A complete log of this run can be found in: /home/iobroker/.npm/_logs/2024-03-23T06_52_19_383Z-debug-0.log
      host.Attila-2 Cannot install iobroker.vis-map@1.1.0: 1
      
      0 verbose cli /usr/bin/node /usr/bin/npm
      1 info using npm@10.2.4
      2 info using node@v18.19.1
      3 timing npm:load:whichnode Completed in 1ms
      4 timing config:load:defaults Completed in 2ms
      5 timing config:load:file:/usr/lib/node_modules/npm/npmrc Completed in 1ms
      6 timing config:load:builtin Completed in 1ms
      7 timing config:load:cli Completed in 6ms
      8 timing config:load:env Completed in 0ms
      9 timing config:load:file:/volume1/opt/iobroker/.npmrc Completed in 15ms
      10 timing config:load:project Completed in 20ms
      11 timing config:load:file:/home/iobroker/.npmrc Completed in 0ms
      12 timing config:load:user Completed in 0ms
      13 timing config:load:file:/usr/etc/npmrc Completed in 0ms
      14 timing config:load:global Completed in 0ms
      15 timing config:load:setEnvs Completed in 2ms
      16 timing config:load Completed in 32ms
      17 timing npm:load:configload Completed in 32ms
      18 timing config:load:flatten Completed in 3ms
      19 timing npm:load:mkdirpcache Completed in 1ms
      20 timing npm:load:mkdirplogs Completed in 0ms
      21 verbose title npm install iobroker.vis-map@1.1.0
      22 verbose argv "install" "--save-exact" "--loglevel" "error" "iobroker.vis-map@1.1.0"
      23 timing npm:load:setTitle Completed in 1ms
      24 timing npm:load:display Completed in 1ms
      25 verbose logfile logs-max:10 dir:/home/iobroker/.npm/_logs/2024-03-23T06_52_19_383Z-
      26 verbose logfile /home/iobroker/.npm/_logs/2024-03-23T06_52_19_383Z-debug-0.log
      27 timing npm:load:logFile Completed in 10ms
      28 timing npm:load:timers Completed in 0ms
      29 timing npm:load:configScope Completed in 0ms
      30 timing npm:load Completed in 67ms
      31 timing arborist:ctor Completed in 1ms
      32 silly logfile start cleaning logs, removing 100 files
      33 timing idealTree Completed in 132ms
      34 timing command:install Completed in 137ms
      35 verbose stack JSONParseError: Unexpected token "r" (0x72) in JSON at position 1965 while parsing near "...roker.ws\":\"2.5.10\"}}roker.vis-metro\": \"1..."
      35 verbose stack     at /usr/lib/node_modules/npm/node_modules/read-package-json-fast/lib/index.js:7:61
      35 verbose stack     at async #initTree (/usr/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/build-ideal-tree.js:280:21)
      35 verbose stack     at async Arborist.buildIdealTree (/usr/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/build-ideal-tree.js:193:7)
      35 verbose stack     at async Promise.all (index 1)
      35 verbose stack     at async Arborist.reify (/usr/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/reify.js:159:5)
      35 verbose stack     at async Install.exec (/usr/lib/node_modules/npm/lib/commands/install.js:152:5)
      35 verbose stack     at async module.exports (/usr/lib/node_modules/npm/lib/cli-entry.js:61:5)
      36 verbose cwd /volume1/opt/iobroker
      37 verbose Linux 5.15.0-101-generic
      38 verbose node v18.19.1
      39 verbose npm  v10.2.4
      40 error code EJSONPARSE
      41 error path /volume1/opt/iobroker/package.json
      42 error JSON.parse Unexpected token "r" (0x72) in JSON at position 1965 while parsing near "...roker.ws\":\"2.5.10\"}}roker.vis-metro\": \"1..."
      43 error JSON.parse Failed to parse JSON data.
      43 error JSON.parse Note: package.json must be actual JSON, not just JavaScript.
      44 verbose exit 1
      45 timing npm Completed in 2257ms
      46 verbose unfinished npm timer reify 1711176741496
      47 verbose unfinished npm timer reify:loadTrees 1711176741498
      48 verbose unfinished npm timer idealTree:init 1711176741499
      49 verbose code 1
      50 error A complete log of this run can be found in: /home/iobroker/.npm/_logs/2024-03-23T06_52_19_383Z-debug-0.log
      
      DJMarc75 1 Reply Last reply Reply Quote 0
      • DJMarc75
        DJMarc75 @spaceduck last edited by

        @spaceduck

        iob stop
        iob fix
        iob start
        
        warten !
        

        dann Updates testen 🙂

        S 1 Reply Last reply Reply Quote 1
        • S
          spaceduck @DJMarc75 last edited by

          @djmarc75
          iobroker fix hab ich schon versucht, bringt leider nix.

          Meister Mopper 1 Reply Last reply Reply Quote 0
          • Meister Mopper
            Meister Mopper @spaceduck last edited by

            @spaceduck sagte in Alle Updates schlagen fehl...:

            @djmarc75
            iobroker fix hab ich schon versucht, bringt leider nix.

            Na dann schieb mal bitte ein iob diag hinterher und stell das komplette Ergebnis in </> Codetags hier rein.

            1 Reply Last reply Reply Quote 0
            • S
              spaceduck last edited by

              @meister-mopper

              das kannte ich noch gar nicht, diag meldet was mit nodejs
              Vermutlich der Pfad... /usr/local/bin/npx

              ======================= SUMMARY =======================
              			v.2023-10-10
              
              
               Static hostname: Attila-2
                     Icon name: computer-desktop
                       Chassis: desktop
              Operating System: Ubuntu 22.04.4 LTS
                        Kernel: Linux 5.15.0-101-generic
                  Architecture: x86-64
               Hardware Vendor: HP
                Hardware Model: ProLiant MicroServer Gen8
              
              Installation: 		native
              Kernel: 		x86_64
              Userland: 		amd64
              Timezone: 		Europe/Berlin (CET, +0100)
              User-ID: 		1005
              X-Server: 		false
              Boot Target: 		graphical.target
              
              Pending OS-Updates: 	0
              Pending iob updates: 	12
              
              Nodejs-Installation: 	/usr/bin/nodejs 	v18.19.1
              			/usr/bin/node 		v18.19.1
              			/usr/bin/npm 		10.2.4
              			/usr/local/bin/npx 		8.6.0
              			/usr/bin/corepack 	0.22.0
              
              Recommended versions are nodejs 18.19.1 and npm 10.2.4
              *** nodejs is NOT correctly installed ***
              Wrong installation path detected. This needs to be fixed.
              
              Please check
              https://forum.iobroker.net/topic/35090/howto-nodejs-installation-und-upgrades-unter-debian
              for more information on how to fix these errors.
              
              MEMORY: 
                             total        used        free      shared  buff/cache   available
              Mem:             15G        8.9G        209M         50M        6.8G        6.6G
              Swap:           4.1G        2.2G        1.9G
              Total:           19G         11G        2.1G
              
              Active iob-Instances: 	29
              Active repo(s): Beta (latest)
              
              ioBroker Core: 		js-controller 		5.0.19
              			admin 			6.14.1
              
              ioBroker Status: 	iobroker is running on this host.
              
              
              Objects type: jsonl
              States  type: jsonl
              
              Status admin and web instance:
              + system.adapter.admin.0                  : admin                 : Attila-2                                 -  enabled, port: 8081, bind: 192.168.178.88, run as: admin
              + system.adapter.web.0                    : web                   : Attila-2                                 -  enabled, port: 8082, bind: 192.168.178.88, run as: admin
              
              Objects: 		44649
              States: 		44729
              
              Size of iob-Database:
              
              45M	/opt/iobroker/iobroker-data/objects.jsonl
              58M	/opt/iobroker/iobroker-data/states.jsonl
              
              
              
              =================== END OF SUMMARY ====================
              
              Thomas Braun 1 Reply Last reply Reply Quote 0
              • Thomas Braun
                Thomas Braun Most Active @spaceduck last edited by

                @spaceduck sagte in Alle Updates schlagen fehl...:

                Boot Target: graphical.target

                Stell das auf multi-user.target:

                sudo systemctl set-default multi-user.target
                

                Dann fix nodejs:

                iob stop
                iob fix
                iob nodejs-update
                
                S 1 Reply Last reply Reply Quote 0
                • S
                  spaceduck @Thomas Braun last edited by

                  @thomas-braun

                  Erl. hat aber leider nix gebracht.
                  Egal welchen Adapter ich updaten möchte, er wirft immer die identische Fehlermeldung:

                  ERR! JSON.parse Unexpected token "r" (0x72) in JSON at position 1965 while parsing near "...roker.ws\":\"2.5.10\"}}roker.vis-metro\": \"1..."npm ERR! JSON.parse Failed to parse JSON data.npm ERR! JSON.parse Note: package.json must be actual JSON, not just JavaScript.npm ERR!
                  
                  • Selbst wenn ich den Metro Adapter lösche kommt diese Meldung,
                  • Diese Meldung ist mir nicht klar, welche Datei meckert er an? "parsing near" ist nicht gerade präzise, die Pfade sind nicht eindeutig. Ich hab alle Dateien angeschaut die in Frage kommen, finde da keinen Fehler drin.
                  mcm1957 1 Reply Last reply Reply Quote 0
                  • mcm1957
                    mcm1957 @spaceduck last edited by mcm1957

                    @spaceduck
                    JSON.parse Note: package.json must be actual JSON, not just JavaScript

                    Die Datei package.json ist nicht parsebar.
                    Auf Grund der vorhergehenden Zeile tippe ich auf /opt/iobroker/pacakge.json. Check diese Mal auf einwandfreie Syntax. Siehst so aus als würde da am Ende noch was von metro stehen was danicht hingeört.

                    ABER sicher die Datei jedenfalls bevor du was änderst.

                    S 1 Reply Last reply Reply Quote 1
                    • S
                      spaceduck @mcm1957 last edited by

                      @mcm57
                      Dein Tipp war goldrichtig, die Datei package.json war vermurkst - ich hab es korrigiert und jetzt funktioniert es!
                      Danke!!!

                      1 Reply Last reply Reply Quote 0
                      • First post
                        Last post

                      Support us

                      ioBroker
                      Community Adapters
                      Donate
                      FAQ Cloud / IOT
                      HowTo: Node.js-Update
                      HowTo: Backup/Restore
                      Downloads
                      BLOG

                      932
                      Online

                      31.9k
                      Users

                      80.1k
                      Topics

                      1.3m
                      Posts

                      5
                      9
                      547
                      Loading More Posts
                      • Oldest to Newest
                      • Newest to Oldest
                      • Most Votes
                      Reply
                      • Reply as topic
                      Log in to reply
                      Community
                      Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
                      The ioBroker Community 2014-2023
                      logo