Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Error/Bug
    4. Javascript: Scripte verschwinden bei Neustart

    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

    Javascript: Scripte verschwinden bei Neustart

    This topic has been deleted. Only users with topic management privileges can see it.
    • crunchip
      crunchip Forum Testing Most Active @TyrionWarMage last edited by

      @tyrionwarmage sagte in Javascript: Scripte verschwinden bei Neustart:

      Das Problem tritt nicht bei einem iob stop/start oder einem Instanzen Neustart auf

      und wann tritt es dann auf?

      T 1 Reply Last reply Reply Quote 0
      • Homoran
        Homoran Global Moderator Administrators @TyrionWarMage last edited by

        @tyrionwarmage sagte in Javascript: Scripte verschwinden bei Neustart:

        bei jedem System Neustart

        Reboot?

        1 Reply Last reply Reply Quote 0
        • Glasfaser
          Glasfaser @TyrionWarMage last edited by

          @tyrionwarmage sagte in Javascript: Scripte verschwinden bei Neustart:

          Hat jemand vielleicht eine Idee, an was das liegen könnte?

          Erstmal nicht ... ohne weitere Info´s von dir !

          Zeigen mal ...

          Ein/ und Ausgabe davon in Code-Tags </> hier einstellen

          cd /opt/iobroker
          npm ls | grep -E 'github.com|ERR'  
           
          sudo ln -s /usr/bin/node /usr/bin/nodejs
          
          uname -m && type -P nodejs node npm && nodejs -v && node -v && npm -v && whoami && pwd && sudo apt update &> /dev/null && sudo apt update && apt policy nodejs
          
          iobroker update -i
          
          1 Reply Last reply Reply Quote 0
          • T
            TyrionWarMage Developer @crunchip last edited by

            @crunchip @Homoran Genau, bei einem reboot (warm - shutdown/turn on again habe ich bisher nicht gestest)
            @Glasfaser Ist alles up to date, jarvis und zigbee sind github auf grund von bugfixes, die ich brauchte:

            x86_64
            /usr/bin/nodejs
            /usr/local/bin/node
            /usr/local/bin/npm
            v12.22.9
            v16.18.0
            8.19.2
            mediapc
            /opt/iobroker
            Hit:1 http://archive.ubuntu.com/ubuntu jammy InRelease
            Hit:2 http://de.archive.ubuntu.com/ubuntu jammy InRelease
            Hit:3 http://security.ubuntu.com/ubuntu jammy-security InRelease
            Hit:4 http://de.archive.ubuntu.com/ubuntu jammy-updates InRelease
            Hit:5 http://de.archive.ubuntu.com/ubuntu jammy-backports InRelease
            Hit:6 https://download.onlyoffice.com/repo/debian squeeze InRelease
            Hit:7 https://ppa.launchpadcontent.net/jcfp/ppa/ubuntu jammy InRelease
            Hit:8 https://dl.google.com/linux/chrome/deb stable InRelease
            Hit:9 https://packages.matrix.org/debian jammy InRelease
            Hit:10 https://www.collaboraoffice.com/repos/CollaboraOnline/CODE-ubuntu2204 ./ InRelease
            Hit:11 https://ppa.launchpadcontent.net/linux-schools/samba-latest/ubuntu jammy InRelease
            Hit:12 https://ppa.launchpadcontent.net/ondrej/nginx/ubuntu jammy InRelease
            Hit:13 https://repo.jellyfin.org/ubuntu jammy InRelease
            Hit:14 https://ppa.launchpadcontent.net/ondrej/php/ubuntu jammy InRelease
            Ign:15 https://download.webmin.com/download/repository sarge InRelease
            Hit:16 https://download.webmin.com/download/repository sarge Release
            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: 12.22.9~dfsg-1ubuntu3
              Candidate: 12.22.9~dfsg-1ubuntu3
              Version table:
             *** 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
                    100 /var/lib/dpkg/status
            
            Used repository: stable
            Adapter    "admin"        : 6.2.23   , installed 6.2.23
            Adapter    "backitup"     : 2.4.12   , installed 2.4.12
            Adapter    "denon"        : 1.13.4   , installed 1.13.4
            Adapter    "ecovacs-deebot": 1.4.4   , installed 1.4.4
            Adapter    "history"      : 2.2.0    , installed 2.2.0
            Adapter    "hm-rega"      : 3.0.40   , installed 3.0.40
            Adapter    "hm-rpc"       : 1.15.12  , installed 1.15.12
            Adapter    "icons-material-png": 0.1.0, installed 0.1.0
            Adapter    "icons-ultimate-png": 1.0.1, installed 1.0.1
            Adapter    "info"         : 1.9.19   , installed 1.9.19
            Adapter    "jarvis"       : 3.0.15   , installed 3.1.0-alpha.47
            Adapter    "javascript"   : 6.0.3    , installed 6.0.3
            Controller "js-controller": 4.0.23   , installed 4.0.23
            Adapter    "kodi"         : 2.0.8    , installed 2.0.8
            Adapter    "lgtv11"       : 1.0.5    , installed 1.0.5
            Adapter    "linkeddevices": 1.5.5    , installed 1.5.5
            Adapter    "mqtt"         : 4.0.7    , installed 4.0.7
            Adapter    "mqtt-client"  : 1.6.3    , installed 1.6.3
            Adapter    "node-red"     : 4.0.0    , installed 4.0.0
            Adapter    "ping"         : 1.5.3    , installed 1.5.3
            Adapter    "rickshaw"     : 1.0.0    , installed 1.0.0
            Adapter    "scenes"       : 2.3.9    , installed 2.3.9
            Adapter    "simple-api"   : 2.7.0    , installed 2.7.0
            Adapter    "socketio"     : 4.2.0    , installed 4.2.0
            Adapter    "web"          : 4.3.0    , installed 4.3.0
            Adapter    "ws"           : 1.3.0    , installed 1.3.0
            Adapter    "zigbee"       : 1.7.5    , installed 1.7.6
            
            Homoran Thomas Braun Glasfaser 3 Replies Last reply Reply Quote 0
            • Homoran
              Homoran Global Moderator Administrators @TyrionWarMage last edited by

              @tyrionwarmage sagte in Javascript: Scripte verschwinden bei Neustart:

              Ist alles up to date, j

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

              T 1 Reply Last reply Reply Quote 0
              • Thomas Braun
                Thomas Braun Most Active @TyrionWarMage last edited by

                @tyrionwarmage

                Da sind auch sonst noch Quellen drin, die zumindest äußerst fragwürdig sind.

                Homoran 1 Reply Last reply Reply Quote 0
                • Glasfaser
                  Glasfaser @TyrionWarMage last edited by

                  @tyrionwarmage sagte in Javascript: Scripte verschwinden bei Neustart:

                  @Glasfaser Ist alles up to date,

                  Naja . 🤔 ..

                  Die Antwort dazu ... wurde schon von den anderen geschrieben .

                  Wäre dann die Frage , wie schaft man soetwas .... !?

                  1 Reply Last reply Reply Quote 0
                  • Homoran
                    Homoran Global Moderator Administrators @Thomas Braun last edited by

                    @thomas-braun sagte in Javascript: Scripte verschwinden bei Neustart:

                    @tyrionwarmage

                    Da sind auch sonst noch Quellen drin, die zumindest äußerst fragwürdig sind.

                    und dann noch für squeeze. wo bleibt der Schliemann

                    Glasfaser 1 Reply Last reply Reply Quote 1
                    • Glasfaser
                      Glasfaser @Homoran last edited by

                      @homoran

                      Ach ... das sind die Top-Hits aus Formel Eins .

                      Hit 1 bis Hit 16

                      😳 😂

                      Thomas Braun 1 Reply Last reply Reply Quote 2
                      • Thomas Braun
                        Thomas Braun Most Active @Glasfaser last edited by

                        Wobei die Repos wohl in der Tat diese alten Releasenames tragen. Ist vermutlich seit intialem Release nie angepasst worden. Ganz schlechter Stil.

                        Die Zusammenstellung ist und bleibt aber fragwürdig, imho.

                        Von der krummen nodejs-Installation ganz abgesehen.

                        1 Reply Last reply Reply Quote 0
                        • T
                          TyrionWarMage Developer @Homoran last edited by

                          @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 😄
                          @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

                          Homoran Thomas Braun Glasfaser 3 Replies Last reply Reply Quote 0
                          • Homoran
                            Homoran Global Moderator Administrators @TyrionWarMage last edited by Homoran

                            @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

                            1 Reply Last reply Reply Quote 0
                            • Thomas Braun
                              Thomas Braun Most Active @TyrionWarMage last edited by 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 1 Reply Last reply Reply Quote 0
                              • Glasfaser
                                Glasfaser @TyrionWarMage last edited by

                                @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

                                1 Reply Last reply Reply Quote 0
                                • T
                                  TyrionWarMage Developer @Thomas Braun last edited by

                                  @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

                                  Glasfaser Homoran 2 Replies Last reply Reply Quote 0
                                  • Glasfaser
                                    Glasfaser @TyrionWarMage last edited by Glasfaser

                                    @tyrionwarmage

                                    iobroker upload all
                                    iobroker stop
                                    iobroker fix
                                    sudo reboot
                                    

                                    ACHTUNG EDIT !!

                                    T 1 Reply Last reply Reply Quote 0
                                    • Homoran
                                      Homoran Global Moderator Administrators @TyrionWarMage last edited by

                                      @tyrionwarmage sagte in Javascript: Scripte verschwinden bei Neustart:

                                      Keine Änderung bzgl. des Problems

                                      wo hast du dein Spiegelverzeichnis?

                                      1 Reply Last reply Reply Quote 1
                                      • T
                                        TyrionWarMage Developer @Glasfaser last edited by

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

                                        Leider weiterhin kein Erfolg 😞

                                        Glasfaser Homoran 2 Replies Last reply Reply Quote 0
                                        • Glasfaser
                                          Glasfaser @TyrionWarMage last edited by

                                          @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 !'});
                                           
                                                          }
                                           
                                                      }); 
                                                  });     
                                           
                                          
                                          
                                          1 Reply Last reply Reply Quote 0
                                          • Homoran
                                            Homoran Global Moderator Administrators @TyrionWarMage last edited by

                                            @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 1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            805
                                            Online

                                            31.8k
                                            Users

                                            80.0k
                                            Topics

                                            1.3m
                                            Posts

                                            5
                                            22
                                            948
                                            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