Skip to content
  • Home
  • Aktuell
  • Tags
  • 0 Ungelesen 0
  • Kategorien
  • Unreplied
  • Beliebt
  • GitHub
  • Docu
  • Hilfe
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Standard: (Kein Skin)
  • Kein Skin
Einklappen
ioBroker Logo

Community Forum

donate donate
  1. ioBroker Community Home
  2. Deutsch
  3. Error/Bug
  4. Javascript: Scripte verschwinden bei Neustart

NEWS

  • Weihnachtsangebot 2025! 🎄
    BluefoxB
    Bluefox
    23
    1
    1.3k

  • UPDATE 31.10.: Amazon Alexa - ioBroker Skill läuft aus ?
    apollon77A
    apollon77
    48
    3
    9.3k

  • Monatsrückblick – September 2025
    BluefoxB
    Bluefox
    14
    1
    2.5k

Javascript: Scripte verschwinden bei Neustart

Geplant Angeheftet Gesperrt Verschoben Error/Bug
22 Beiträge 5 Kommentatoren 2.1k Aufrufe 4 Watching
  • Älteste zuerst
  • Neuste zuerst
  • Meiste Stimmen
Antworten
  • In einem neuen Thema antworten
Anmelden zum Antworten
Dieses Thema wurde gelöscht. Nur Nutzer mit entsprechenden Rechten können es sehen.
  • HomoranH Homoran

    @tyrionwarmage sagte in Javascript: Scripte verschwinden bei Neustart:

    Ist alles up to date, j

    nicht wirklich!
    node ist falsch, veraltet und doppelt installiert.

    T Offline
    T Offline
    TyrionWarMage
    Developer
    schrieb am zuletzt editiert von
    #12

    @homoran Latest 16.X :) - Habs gefixt (usr bin nodejs ist nen symlink auf die local version):

    x86_64
    /usr/bin/nodejs
    /usr/local/bin/node
    /usr/local/bin/npm
    v18.12.0
    v18.12.0
    8.19.2
    

    @Glasfaser Bekommt man hiermit hin: https://github.com/tj/n :D
    @Thomas-Braun Welche Quellen meinst du? Falls du die samba, nginx und php PPA meinst - Die sind absicht. webmin sarge ist default repo für all deb based OS.

    Ansonsten leider keine Änderung - Hab node version fix -> reboot & script restore -> reboot gemacht

    HomoranH Thomas BraunT GlasfaserG 3 Antworten Letzte Antwort
    0
    • T TyrionWarMage

      @homoran Latest 16.X :) - Habs gefixt (usr bin nodejs ist nen symlink auf die local version):

      x86_64
      /usr/bin/nodejs
      /usr/local/bin/node
      /usr/local/bin/npm
      v18.12.0
      v18.12.0
      8.19.2
      

      @Glasfaser Bekommt man hiermit hin: https://github.com/tj/n :D
      @Thomas-Braun Welche Quellen meinst du? Falls du die samba, nginx und php PPA meinst - Die sind absicht. webmin sarge ist default repo für all deb based OS.

      Ansonsten leider keine Änderung - Hab node version fix -> reboot & script restore -> reboot gemacht

      HomoranH Nicht stören
      HomoranH Nicht stören
      Homoran
      Global Moderator Administrators
      schrieb am zuletzt editiert von Homoran
      #13

      @tyrionwarmage sagte in Javascript: Scripte verschwinden bei Neustart:

      Habs gefixt

      nö, ist immer noch im falschen Verzeichnisse
      und node 18 ist für iobroker noch nicht empfohlen

      kein Support per PN! - Fragen im Forum stellen - es gibt fast nichts, was nicht auch für andere interessant ist.

      Benutzt das Voting rechts unten im Beitrag wenn er euch geholfen hat.

      der Installationsfixer: curl -fsL https://iobroker.net/fix.sh | bash -

      1 Antwort Letzte Antwort
      0
      • T TyrionWarMage

        @homoran Latest 16.X :) - Habs gefixt (usr bin nodejs ist nen symlink auf die local version):

        x86_64
        /usr/bin/nodejs
        /usr/local/bin/node
        /usr/local/bin/npm
        v18.12.0
        v18.12.0
        8.19.2
        

        @Glasfaser Bekommt man hiermit hin: https://github.com/tj/n :D
        @Thomas-Braun Welche Quellen meinst du? Falls du die samba, nginx und php PPA meinst - Die sind absicht. webmin sarge ist default repo für all deb based OS.

        Ansonsten leider keine Änderung - Hab node version fix -> reboot & script restore -> reboot gemacht

        Thomas BraunT Online
        Thomas BraunT Online
        Thomas Braun
        Most Active
        schrieb am zuletzt editiert von Thomas Braun
        #14

        @tyrionwarmage

        Du hast immer noch die nodejs 12.22.9~dfsg (und deren Konsorten) installiert. Die willst du nicht haben.
        Entweder alles über n oder über deinen Paketmanager. Beides zusammen gibt nur Chaos.

        Linux-Werkzeugkasten:
        https://forum.iobroker.net/topic/42952/der-kleine-iobroker-linux-werkzeugkasten
        NodeJS Fixer Skript:
        https://forum.iobroker.net/topic/68035/iob-node-fix-skript
        iob_diag: curl -sLf -o diag.sh https://iobroker.net/diag.sh && bash diag.sh

        T 1 Antwort Letzte Antwort
        0
        • T TyrionWarMage

          @homoran Latest 16.X :) - Habs gefixt (usr bin nodejs ist nen symlink auf die local version):

          x86_64
          /usr/bin/nodejs
          /usr/local/bin/node
          /usr/local/bin/npm
          v18.12.0
          v18.12.0
          8.19.2
          

          @Glasfaser Bekommt man hiermit hin: https://github.com/tj/n :D
          @Thomas-Braun Welche Quellen meinst du? Falls du die samba, nginx und php PPA meinst - Die sind absicht. webmin sarge ist default repo für all deb based OS.

          Ansonsten leider keine Änderung - Hab node version fix -> reboot & script restore -> reboot gemacht

          GlasfaserG Offline
          GlasfaserG Offline
          Glasfaser
          schrieb am zuletzt editiert von
          #15

          @tyrionwarmage sagte in Javascript: Scripte verschwinden bei Neustart:

          @Glasfaser Bekommt man hiermit hin: https://github.com/tj/n

          sehr schlecht ...

          siehe in die Signatur von @Thomas-Braun wie man es richtig macht

          Synology 918+ 16GB - ioBroker in Docker v9 , VISO auf Trekstor Primebook C13 13,3" , Hikvision Domkameras mit Surveillance Station .. CCU RaspberryMatic in Synology VM .. Zigbee CC2538+CC2592 .. Sonoff .. KNX .. Modbus ..

          1 Antwort Letzte Antwort
          0
          • Thomas BraunT Thomas Braun

            @tyrionwarmage

            Du hast immer noch die nodejs 12.22.9~dfsg (und deren Konsorten) installiert. Die willst du nicht haben.
            Entweder alles über n oder über deinen Paketmanager. Beides zusammen gibt nur Chaos.

            T Offline
            T Offline
            TyrionWarMage
            Developer
            schrieb am zuletzt editiert von
            #16

            @thomas-braun n entfernt, alte package version entfernt, neuinstall:

            x86_64
            /usr/bin/nodejs
            /usr/bin/node
            /usr/bin/npm
            v16.18.0
            v16.18.0
            8.19.2
            mediapc
            /opt/iobroker
            Hit:1 http://de.archive.ubuntu.com/ubuntu jammy InRelease
            Get:2 http://de.archive.ubuntu.com/ubuntu jammy-updates InRelease [114 kB]
            Hit:3 https://download.onlyoffice.com/repo/debian squeeze InRelease
            Hit:4 https://deb.nodesource.com/node_16.x jammy InRelease
            Hit:5 https://ppa.launchpadcontent.net/jcfp/ppa/ubuntu jammy InRelease
            Hit:6 https://packages.matrix.org/debian jammy InRelease
            Hit:7 https://dl.google.com/linux/chrome/deb stable InRelease
            Get:8 http://security.ubuntu.com/ubuntu jammy-security InRelease [110 kB]
            Hit:9 http://archive.ubuntu.com/ubuntu jammy InRelease
            Hit:10 https://www.collaboraoffice.com/repos/CollaboraOnline/CODE-ubuntu2204 ./ InRelease
            Get:11 http://de.archive.ubuntu.com/ubuntu jammy-backports InRelease [99,8 kB]
            Hit:12 https://ppa.launchpadcontent.net/linux-schools/samba-latest/ubuntu jammy InRelease
            Hit:13 https://ppa.launchpadcontent.net/ondrej/nginx/ubuntu jammy InRelease
            Hit:14 https://repo.jellyfin.org/ubuntu jammy InRelease
            Hit:15 https://ppa.launchpadcontent.net/ondrej/php/ubuntu jammy InRelease
            Ign:16 https://download.webmin.com/download/repository sarge InRelease
            Hit:17 https://download.webmin.com/download/repository sarge Release
            Fetched 324 kB in 2s (138 kB/s)
            Reading package lists... Done
            Building dependency tree... Done
            Reading state information... Done
            All packages are up to date.
            W: https://www.collaboraoffice.com/repos/CollaboraOnline/CODE-ubuntu2204/./InRelease: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.
            W: https://repo.jellyfin.org/ubuntu/dists/jammy/InRelease: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.
            nodejs:
              Installed: 16.18.0-deb-1nodesource1
              Candidate: 16.18.0-deb-1nodesource1
              Version table:
             *** 16.18.0-deb-1nodesource1 500
                    500 https://deb.nodesource.com/node_16.x jammy/main amd64 Packages
                    100 /var/lib/dpkg/status
                 12.22.9~dfsg-1ubuntu3 500
                    500 http://de.archive.ubuntu.com/ubuntu jammy/universe amd64 Packages
                    500 http://archive.ubuntu.com/ubuntu jammy/universe amd64 Packages
            

            Keine Änderung bzgl. des Problems

            GlasfaserG HomoranH 2 Antworten Letzte Antwort
            0
            • T TyrionWarMage

              @thomas-braun n entfernt, alte package version entfernt, neuinstall:

              x86_64
              /usr/bin/nodejs
              /usr/bin/node
              /usr/bin/npm
              v16.18.0
              v16.18.0
              8.19.2
              mediapc
              /opt/iobroker
              Hit:1 http://de.archive.ubuntu.com/ubuntu jammy InRelease
              Get:2 http://de.archive.ubuntu.com/ubuntu jammy-updates InRelease [114 kB]
              Hit:3 https://download.onlyoffice.com/repo/debian squeeze InRelease
              Hit:4 https://deb.nodesource.com/node_16.x jammy InRelease
              Hit:5 https://ppa.launchpadcontent.net/jcfp/ppa/ubuntu jammy InRelease
              Hit:6 https://packages.matrix.org/debian jammy InRelease
              Hit:7 https://dl.google.com/linux/chrome/deb stable InRelease
              Get:8 http://security.ubuntu.com/ubuntu jammy-security InRelease [110 kB]
              Hit:9 http://archive.ubuntu.com/ubuntu jammy InRelease
              Hit:10 https://www.collaboraoffice.com/repos/CollaboraOnline/CODE-ubuntu2204 ./ InRelease
              Get:11 http://de.archive.ubuntu.com/ubuntu jammy-backports InRelease [99,8 kB]
              Hit:12 https://ppa.launchpadcontent.net/linux-schools/samba-latest/ubuntu jammy InRelease
              Hit:13 https://ppa.launchpadcontent.net/ondrej/nginx/ubuntu jammy InRelease
              Hit:14 https://repo.jellyfin.org/ubuntu jammy InRelease
              Hit:15 https://ppa.launchpadcontent.net/ondrej/php/ubuntu jammy InRelease
              Ign:16 https://download.webmin.com/download/repository sarge InRelease
              Hit:17 https://download.webmin.com/download/repository sarge Release
              Fetched 324 kB in 2s (138 kB/s)
              Reading package lists... Done
              Building dependency tree... Done
              Reading state information... Done
              All packages are up to date.
              W: https://www.collaboraoffice.com/repos/CollaboraOnline/CODE-ubuntu2204/./InRelease: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.
              W: https://repo.jellyfin.org/ubuntu/dists/jammy/InRelease: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.
              nodejs:
                Installed: 16.18.0-deb-1nodesource1
                Candidate: 16.18.0-deb-1nodesource1
                Version table:
               *** 16.18.0-deb-1nodesource1 500
                      500 https://deb.nodesource.com/node_16.x jammy/main amd64 Packages
                      100 /var/lib/dpkg/status
                   12.22.9~dfsg-1ubuntu3 500
                      500 http://de.archive.ubuntu.com/ubuntu jammy/universe amd64 Packages
                      500 http://archive.ubuntu.com/ubuntu jammy/universe amd64 Packages
              

              Keine Änderung bzgl. des Problems

              GlasfaserG Offline
              GlasfaserG Offline
              Glasfaser
              schrieb am zuletzt editiert von Glasfaser
              #17

              @tyrionwarmage

              iobroker upload all
              iobroker stop
              iobroker fix
              sudo reboot
              

              ACHTUNG EDIT !!

              Synology 918+ 16GB - ioBroker in Docker v9 , VISO auf Trekstor Primebook C13 13,3" , Hikvision Domkameras mit Surveillance Station .. CCU RaspberryMatic in Synology VM .. Zigbee CC2538+CC2592 .. Sonoff .. KNX .. Modbus ..

              T 1 Antwort Letzte Antwort
              0
              • T TyrionWarMage

                @thomas-braun n entfernt, alte package version entfernt, neuinstall:

                x86_64
                /usr/bin/nodejs
                /usr/bin/node
                /usr/bin/npm
                v16.18.0
                v16.18.0
                8.19.2
                mediapc
                /opt/iobroker
                Hit:1 http://de.archive.ubuntu.com/ubuntu jammy InRelease
                Get:2 http://de.archive.ubuntu.com/ubuntu jammy-updates InRelease [114 kB]
                Hit:3 https://download.onlyoffice.com/repo/debian squeeze InRelease
                Hit:4 https://deb.nodesource.com/node_16.x jammy InRelease
                Hit:5 https://ppa.launchpadcontent.net/jcfp/ppa/ubuntu jammy InRelease
                Hit:6 https://packages.matrix.org/debian jammy InRelease
                Hit:7 https://dl.google.com/linux/chrome/deb stable InRelease
                Get:8 http://security.ubuntu.com/ubuntu jammy-security InRelease [110 kB]
                Hit:9 http://archive.ubuntu.com/ubuntu jammy InRelease
                Hit:10 https://www.collaboraoffice.com/repos/CollaboraOnline/CODE-ubuntu2204 ./ InRelease
                Get:11 http://de.archive.ubuntu.com/ubuntu jammy-backports InRelease [99,8 kB]
                Hit:12 https://ppa.launchpadcontent.net/linux-schools/samba-latest/ubuntu jammy InRelease
                Hit:13 https://ppa.launchpadcontent.net/ondrej/nginx/ubuntu jammy InRelease
                Hit:14 https://repo.jellyfin.org/ubuntu jammy InRelease
                Hit:15 https://ppa.launchpadcontent.net/ondrej/php/ubuntu jammy InRelease
                Ign:16 https://download.webmin.com/download/repository sarge InRelease
                Hit:17 https://download.webmin.com/download/repository sarge Release
                Fetched 324 kB in 2s (138 kB/s)
                Reading package lists... Done
                Building dependency tree... Done
                Reading state information... Done
                All packages are up to date.
                W: https://www.collaboraoffice.com/repos/CollaboraOnline/CODE-ubuntu2204/./InRelease: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.
                W: https://repo.jellyfin.org/ubuntu/dists/jammy/InRelease: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.
                nodejs:
                  Installed: 16.18.0-deb-1nodesource1
                  Candidate: 16.18.0-deb-1nodesource1
                  Version table:
                 *** 16.18.0-deb-1nodesource1 500
                        500 https://deb.nodesource.com/node_16.x jammy/main amd64 Packages
                        100 /var/lib/dpkg/status
                     12.22.9~dfsg-1ubuntu3 500
                        500 http://de.archive.ubuntu.com/ubuntu jammy/universe amd64 Packages
                        500 http://archive.ubuntu.com/ubuntu jammy/universe amd64 Packages
                

                Keine Änderung bzgl. des Problems

                HomoranH Nicht stören
                HomoranH Nicht stören
                Homoran
                Global Moderator Administrators
                schrieb am zuletzt editiert von
                #18

                @tyrionwarmage sagte in Javascript: Scripte verschwinden bei Neustart:

                Keine Änderung bzgl. des Problems

                wo hast du dein Spiegelverzeichnis?

                kein Support per PN! - Fragen im Forum stellen - es gibt fast nichts, was nicht auch für andere interessant ist.

                Benutzt das Voting rechts unten im Beitrag wenn er euch geholfen hat.

                der Installationsfixer: curl -fsL https://iobroker.net/fix.sh | bash -

                1 Antwort Letzte Antwort
                1
                • GlasfaserG Glasfaser

                  @tyrionwarmage

                  iobroker upload all
                  iobroker stop
                  iobroker fix
                  sudo reboot
                  

                  ACHTUNG EDIT !!

                  T Offline
                  T Offline
                  TyrionWarMage
                  Developer
                  schrieb am zuletzt editiert von
                  #19

                  @glasfaser Done
                  @Homoran 2 externe HDDs mit LVM mirrored volume - Habs mal in ein anderes (frisches) Unterzeichnis geschoben

                  Leider weiterhin kein Erfolg :(

                  GlasfaserG HomoranH 2 Antworten Letzte Antwort
                  0
                  • T TyrionWarMage

                    @glasfaser Done
                    @Homoran 2 externe HDDs mit LVM mirrored volume - Habs mal in ein anderes (frisches) Unterzeichnis geschoben

                    Leider weiterhin kein Erfolg :(

                    GlasfaserG Offline
                    GlasfaserG Offline
                    Glasfaser
                    schrieb am zuletzt editiert von
                    #20

                    @tyrionwarmage

                    Teste ... lege ein JS an .. dann dieses Script .

                    Speichern ... einmal ausführen ... danach kannst du den iobroker neu starten .

                    was ist dann !?

                    var fs = require('fs');
                     
                    var url_snapshot = 'https://upload.wikimedia.org/wikipedia/de/9/90/FirefoxLogo3.5.png';//Bild URL
                     
                    request.get({url: url_snapshot, encoding: 'binary'}, function (err, response, body) {
                     
                            fs.writeFile('/tmp/snap.jpg', body, 'binary', function(err) {
                     
                                if (err) {
                     
                                    console.error(err);
                     
                                     } else {
                     
                                    console.log('Snapshot sent');
                     
                                    sendTo('telegram.0', {text: '/tmp/snap.jpg', caption: 'Es hat geklingelt !'});
                     
                                    }
                     
                                }); 
                            });     
                     
                    
                    

                    Synology 918+ 16GB - ioBroker in Docker v9 , VISO auf Trekstor Primebook C13 13,3" , Hikvision Domkameras mit Surveillance Station .. CCU RaspberryMatic in Synology VM .. Zigbee CC2538+CC2592 .. Sonoff .. KNX .. Modbus ..

                    1 Antwort Letzte Antwort
                    0
                    • T TyrionWarMage

                      @glasfaser Done
                      @Homoran 2 externe HDDs mit LVM mirrored volume - Habs mal in ein anderes (frisches) Unterzeichnis geschoben

                      Leider weiterhin kein Erfolg :(

                      HomoranH Nicht stören
                      HomoranH Nicht stören
                      Homoran
                      Global Moderator Administrators
                      schrieb am zuletzt editiert von
                      #21

                      @tyrionwarmage sagte in Javascript: Scripte verschwinden bei Neustart:

                      2 externe HDDs mit LVM mirrored volume

                      und das ist nach Systemstart schon verfügbar wenn iobroker startet?

                      kein Support per PN! - Fragen im Forum stellen - es gibt fast nichts, was nicht auch für andere interessant ist.

                      Benutzt das Voting rechts unten im Beitrag wenn er euch geholfen hat.

                      der Installationsfixer: curl -fsL https://iobroker.net/fix.sh | bash -

                      T 1 Antwort Letzte Antwort
                      0
                      • HomoranH Homoran

                        @tyrionwarmage sagte in Javascript: Scripte verschwinden bei Neustart:

                        2 externe HDDs mit LVM mirrored volume

                        und das ist nach Systemstart schon verfügbar wenn iobroker startet?

                        T Offline
                        T Offline
                        TyrionWarMage
                        Developer
                        schrieb am zuletzt editiert von
                        #22

                        @homoran LVM natürlich, aber nach einem test hat sich herrausgestellt dass das wohl nicht für das externe mirror volume stimmt. Mit nem mirror pfad auf der SSD klappts. Danke für den Hinweis. Werde als nächste mal schauen wie ich mein service file anpassen muss, damit es auf das mirror volume wartet, aber das ist jetzt erstmal nicht so dringend. Die Backups liegen ja noch auf dem externen mirror volume.

                        An all danke für die Hilfe und die Hinweise zum fixen meiner node installation ;)

                        1 Antwort Letzte Antwort
                        0
                        Antworten
                        • In einem neuen Thema antworten
                        Anmelden zum Antworten
                        • Älteste zuerst
                        • Neuste zuerst
                        • Meiste Stimmen


                        Support us

                        ioBroker
                        Community Adapters
                        Donate

                        706

                        Online

                        32.5k

                        Benutzer

                        81.7k

                        Themen

                        1.3m

                        Beiträge
                        Community
                        Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen | Einwilligungseinstellungen
                        ioBroker Community 2014-2025
                        logo
                        • Anmelden

                        • Du hast noch kein Konto? Registrieren

                        • Anmelden oder registrieren, um zu suchen
                        • Erster Beitrag
                          Letzter Beitrag
                        0
                        • Home
                        • Aktuell
                        • Tags
                        • Ungelesen 0
                        • Kategorien
                        • Unreplied
                        • Beliebt
                        • GitHub
                        • Docu
                        • Hilfe