Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. ./reinstall.sh bricht ab mit Fehler

    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

    ./reinstall.sh bricht ab mit Fehler

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

      Nach dem Update auf node 8.15.0 habe ich wie vorgegeben ./reinstall.sh gestartet.

      Zuvor war das Umwandeln wegen DOS/Windows-Formatierung laut Doku nötig:

      cd /opt/iobroker
      sudo mv reinstall.sh reinstall.dos
      sudo tr -d '\r' < reinstall.dos > reinstall.sh
      sudo chmod +x reinstall.sh
      

      Dann startet das Script, bricht aber irgendwann mit dieser Fehlermeldung ab:

      ./reinstall.sh: Zeile 34: Dateiende beim Suchen nach `"' erreicht.
      ./reinstall.sh: Zeile 37: Syntax Fehler: Unerwartetes Dateiende.
      

      Was ist da passiert, hat das noch mit der fehlerhaften DOS-Formatierung zu tun?

      1 Reply Last reply Reply Quote 0
      • arteck
        arteck Developer Most Active last edited by

        stell das script mal hier rein

        1 Reply Last reply Reply Quote 0
        • umbm
          umbm last edited by

          Habe mal beide, also auch die wegen Konvertierung angelegte .dos, reingelegt.
          7554_download-2019.1.12_19.32.3.tar.gz

          1 Reply Last reply Reply Quote 0
          • ?
            A Former User last edited by

            Das habe ich bei mir auch.

            Aber das Script läuft bis zum Ende durch.

            Nach dem letzten Adapter kommt dann obige Fehlermeldung.

            Funktionieren tut danach aber alles.

            #!/bin/bash
            iobroker stop
            BASE=$(pwd)
            
            if [ ! -f "$BASE/iobroker" ]
            then
                echo "Script needs to be started in the iobroker base directory (normally /opt/iobroker on linux)"
                exit
            fi
            
            if [ -d ./node_modules ]
            then
                ls -1 ./node_modules | grep iobroker. > reinstall.list.txt
                chmod -R 777 *
                cd node_modules
                rm -R *
                pwd
            
                while read IN
                do
                    npm install $IN --production --save --unsafe-perm --prefix $BASE
                    if [ $? -eq 0 ]
                    then
                        echo "DONE $IN"
                    else
                        echo "FAIL $IN"
                    fi
            
                done < "$BASE/reinstall.list.txt"
                chmod -R 777 *
                rm "$BASE/reinstall.list.txt"
                iobroker upload all
            fi
            
            
            1 Reply Last reply Reply Quote 0
            • Homoran
              Homoran Global Moderator Administrators last edited by

              Als nichtprogrammierer vermute ich dass das ein letzer irrtümlicher schleifendurchlauf ist

              1 Reply Last reply Reply Quote 0
              • ?
                A Former User last edited by

                Interessant dabei ist, das dieses Script bei Zeile 34 aufhört und gar keine Zeile 37 hat…

                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

                880
                Online

                31.9k
                Users

                80.2k
                Topics

                1.3m
                Posts

                4
                6
                580
                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