MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.

    update-script.sh hangs after "saving custom.css"

    Scheduled Pinned Locked Moved Solved Troubleshooting
    14 Posts 2 Posters 2.1k Views 3 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • X Offline
      xIExodusIx
      last edited by sdetweil

      Hello, I’m not really new to MagicMirror, trying to install and get it to run since MM 2.16.

      Now after a break time I tried again to get it run like I wish it. It runs but some of the Modules I like to have won’t run or runs not as aspected. So does the update-script.sh. It hangs after “saving custom.css”.

      bash -c “$(curl -sL https://raw.githubusercontent.com/sdetweil/MagicMirror_scripts/master/upgrade-script.sh)”
      update log will be in /home/pi/MagicMirror/installers/upgrade.log

      doing test run = true, NO updates will be applied!

      Check current Node installation …
      Node currently installed. Checking version number.
      Minimum Node version: v20.9.0
      Installed Node version: v20.9.0
      No Node.js upgrade necessary.
      Check current NPM installation …
      NPM currently installed. Checking version number.
      Minimum npm version: V10.1.0
      Installed npm version: V10.8.3
      No npm upgrade necessary.

      saving custom.css

      It dosen’t matter haw long I wait for that the script will continue, it won’t continue. I have to kill it by pressing “CTRL C”.
      Same behavior when I add “apply” or “force” to the script.

      I run MagicMirrror on a Raspbery Pi 4B with 8 GB Ram using latest Rasberry OS “Bookworm 64Bit”.

      Could someone please help?

      Thanks

      S 1 Reply Last reply Reply Quote 1
      • S Offline
        sdetweil @sdetweil
        last edited by

        bug in my script, fixed.

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        1 Reply Last reply Reply Quote 0
        • S Offline
          sdetweil @xIExodusIx
          last edited by sdetweil

          @xIExodusIx can you post the upgrade.log

          ~/MagicMirror/installers/upgrade.log

          or open an issue on the script repo and attach the log there.
          i am the script author

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          S X 2 Replies Last reply Reply Quote 0
          • S Offline
            sdetweil @sdetweil
            last edited by

            @xIExodusIx can you do the same script where it has -c

            add -x

            basch -c -x …

            rest of command

            you will get a lot of stuff to the screen. i need to see that last few lines above where it stops

            screen print or copy the lines

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            X 1 Reply Last reply Reply Quote 0
            • X Offline
              xIExodusIx @sdetweil
              last edited by

              @sdetweil Hi,

              I try to send the upgrade log.
              ![upgrade.log.jpg](Input file contains unsupported image format)

              If you recieved it, simply delete “.jpg”

              Otherwise I don’t know how to uploade it.

              S 1 Reply Last reply Reply Quote 0
              • S Offline
                sdetweil @xIExodusIx
                last edited by

                @xIExodusIx here you can only attach pictures.
                you could paste the text into a post, but probably better to attach to an issue on the github repo for the scripts

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                X 1 Reply Last reply Reply Quote 0
                • X Offline
                  xIExodusIx @sdetweil
                  last edited by

                  @sdetweil
                  Hi, I’ll give it a try.

                  1 Reply Last reply Reply Quote 0
                  • X Offline
                    xIExodusIx @sdetweil
                    last edited by

                    @sdetweil

                    I Can’t login to GitHub, they sends me confirmation codes to an old inexisting eMail-Address that never arrives. I wrote to the GitHub support, but they dosn’t answer until today.

                    I copy the lines. See below

                    • false

                    • SAVEIFS=’
                      ’

                    • IFS=’
                      ’

                    • echo

                    • tee -a /home/pi/MagicMirror/installers/upgrade.log

                    • ‘[’ -f git_active_lock ‘]’

                    • ‘[’ 0 == 1 ‘]’

                    • cd /home/pi/MagicMirror

                    • cd css

                    • ‘[’ -f custom.css ‘]’

                    • echo ‘saving custom.css’

                    • tee -a /home/pi/MagicMirror/installers/upgrade.log
                      saving custom.css

                    • cp -p custom.css save_custom.css

                    • cd -
                      ++ alias git

                    • save_alias=
                      ++ git branch
                      ++ cut -d ’ ’ -f2
                      ++ grep ‘*’

                    • current_branch=master

                    • ‘[’ master ‘!=’ master ‘]’

                    • remote_user=MagicMirrorOrg
                      ++ LC_ALL=C
                      ++ git remote -v
                      ++ grep -m1 .com/M
                      ++ awk ‘{print $1}’

                    • remote=origin

                    • ‘[’ origin == upstream ‘]’
                      ++ grep -m1 origin
                      ++ git remote -v
                      ++ awk -F/ ‘{print $4}’

                    • ‘[’ MagicMirrorOrg == MichMich ‘]’

                    • ‘[’ origin. ‘!=’ . ‘]’

                    • echo remote name = origin
                      ++ grep -m1 version
                      ++ awk ‘-F"’ ‘{print $4}’
                      ++ awk -F- ‘{print $1}’

                    S 1 Reply Last reply Reply Quote 0
                    • S Offline
                      sdetweil @xIExodusIx
                      last edited by

                      @xIExodusIx well, that makes no sense.

                      there are at least 8 more easy commands after that one.
                      the last one just wrote to the log

                      is your disk space almost full?

                      do
                      df -k

                      Sam

                      How to add modules

                      learning how to use browser developers window for css changes

                      X 4 Replies Last reply Reply Quote 0
                      • X Offline
                        xIExodusIx @sdetweil
                        last edited by

                        @sdetweil
                        I’m now able again to login to GitHub. now I can send you the update.log if you still need it.

                        1 Reply Last reply Reply Quote 0
                        • X Offline
                          xIExodusIx @sdetweil
                          last edited by

                          @sdetweil

                          No, the Pi starts from an USB-Stick with 64GB and it is freshly installed ther must be enough space left.

                          1 Reply Last reply Reply Quote 0
                          • X Offline
                            xIExodusIx @sdetweil
                            last edited by

                            @sdetweil

                            df -k shows:

                            Filesystem 1K-blocks Used Available Use% Mounted on
                            udev 1667704 0 1667704 0% /dev
                            tmpfs 388200 1444 386756 1% /run
                            /dev/sda2 61387080 7699368 50549572 14% /
                            tmpfs 1940984 34100 1906884 2% /dev/shm
                            tmpfs 5120 16 5104 1% /run/lock
                            /dev/sda1 522230 77064 445166 15% /boot/firmware
                            tmpfs 388196 40 388156 1% /run/user/1000

                            1 Reply Last reply Reply Quote 0
                            • X Offline
                              xIExodusIx @sdetweil
                              last edited by

                              @sdetweil

                              I send you the upgrade.log in GitHuB.

                              I hope this will help.

                              S 1 Reply Last reply Reply Quote 0
                              • S Offline
                                sdetweil @xIExodusIx
                                last edited by

                                @xIExodusIx thanks i replied there.

                                i do not know yet. i am away from my system the rest of the day. i would not try anything else, just let MagicMirror run.

                                if you have the update message . you can disable the updatenotification module in config .js

                                add
                                disabled:true,

                                after the module: line

                                Sam

                                How to add modules

                                learning how to use browser developers window for css changes

                                S 1 Reply Last reply Reply Quote 0
                                • S Offline
                                  sdetweil @sdetweil
                                  last edited by

                                  bug in my script, fixed.

                                  Sam

                                  How to add modules

                                  learning how to use browser developers window for css changes

                                  1 Reply Last reply Reply Quote 0
                                  • S sdetweil has marked this topic as solved on

                                  Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                                  Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                                  With your input, this post could be even better 💗

                                  Register Login
                                  • 1 / 1
                                  • First post
                                    Last post
                                  Enjoying MagicMirror? Please consider a donation!
                                  MagicMirror created by Michael Teeuw.
                                  Forum managed by Sam, technical setup by Karsten.
                                  This forum is using NodeBB as its core | Contributors
                                  Contact | Privacy Policy