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.
    • 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
                                • T
                                  TyrionWarMage Developer @Homoran last edited by

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

                                  Support us

                                  ioBroker
                                  Community Adapters
                                  Donate

                                  843
                                  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