• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
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 326 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 Oct 1, 2024, 9:43 PM Oct 1, 2024, 12:57 PM

    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 Oct 1, 2024, 1:00 PM Reply Quote 1
    • S Offline
      sdetweil @sdetweil
      last edited by Oct 1, 2024, 5:30 PM

      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 Oct 1, 2024, 1:02 PM Oct 1, 2024, 1:00 PM

        @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 Oct 1, 2024, 1:20 PM Reply Quote 0
        • S Offline
          sdetweil @sdetweil
          last edited by Oct 1, 2024, 1:20 PM

          @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 Oct 1, 2024, 1:24 PM Reply Quote 0
          • X Offline
            xIExodusIx @sdetweil
            last edited by Oct 1, 2024, 1:21 PM

            @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 Oct 1, 2024, 1:22 PM Reply Quote 0
            • S Offline
              sdetweil @xIExodusIx
              last edited by Oct 1, 2024, 1:22 PM

              @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 Oct 1, 2024, 1:29 PM Reply Quote 0
              • X Offline
                xIExodusIx @sdetweil
                last edited by Oct 1, 2024, 1:24 PM

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

                1 Reply Last reply Reply Quote 0
                • X Offline
                  xIExodusIx @sdetweil
                  last edited by Oct 1, 2024, 1:29 PM

                  @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 Oct 1, 2024, 2:22 PM Reply Quote 0
                  • S Offline
                    sdetweil @xIExodusIx
                    last edited by Oct 1, 2024, 2:22 PM

                    @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 Oct 1, 2024, 2:34 PM Reply Quote 0
                    • X Offline
                      xIExodusIx @sdetweil
                      last edited by Oct 1, 2024, 2:34 PM

                      @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 Oct 1, 2024, 2:39 PM

                        @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
                        • 1
                        • 2
                        • 1 / 2
                        1 / 2
                        • First post
                          2/14
                          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