• 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.

Need Help with magicmirror

Scheduled Pinned Locked Moved Solved Troubleshooting
15 Posts 2 Posters 2.1k Views 2 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.
  • S Online
    sdetweil @WM1600
    last edited by sdetweil Apr 28, 2024, 8:04 PM Apr 28, 2024, 6:09 PM

    @WM1600 what is the output of the pm2 logs command? I need to see

    Sam

    How to add modules

    learning how to use browser developers window for css changes

    W 1 Reply Last reply Apr 28, 2024, 7:51 PM Reply Quote 0
    • W Offline
      WM1600 @sdetweil
      last edited by Apr 28, 2024, 7:51 PM

      @sdetweil

      the terminal looks like this

      will@raspberrypi:~ $ pm2 logs --lines=50
      will@raspberrypi:~ $

      I do not see it doing anything.

      [pm2.jpg](Input file contains unsupported image format)
      I tried to upload the PM2.log but it says I can only upload picture files.

      so I changed pm2.log to pm2.jpg. dont know it that will work.

      S 1 Reply Last reply Apr 28, 2024, 8:05 PM Reply Quote 0
      • S Online
        sdetweil @WM1600
        last edited by Apr 28, 2024, 8:05 PM

        @WM1600

        ok, let’s do.

        pm2 status to see what apps it is managing

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        W 1 Reply Last reply Apr 28, 2024, 8:24 PM Reply Quote 0
        • W Offline
          WM1600 @sdetweil
          last edited by Apr 28, 2024, 8:24 PM

          @sdetweil

          when I type in pm2 status

          I dont see anything

          this is the terminal copied:

          will@raspberrypi:~ $ pm2 status
          will@raspberrypi:~ $

          S 1 Reply Last reply Apr 28, 2024, 8:30 PM Reply Quote 0
          • S Online
            sdetweil @WM1600
            last edited by Apr 28, 2024, 8:30 PM

            @WM1600 hmmm weird

            run the fixuppm2 script from here
            https://github.com/sdetweil/MagicMirror_scripts

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            W 1 Reply Last reply Apr 29, 2024, 12:46 AM Reply Quote 0
            • W Offline
              WM1600 @sdetweil
              last edited by Apr 29, 2024, 12:46 AM

              @sdetweil

              I ran the following in terminal

              will@raspberrypi:~ $ bash -c “$(curl -sL https://raw.githubusercontent.com/sdetweil/MagicMirror_scripts/master/fixuppm2.sh)”
              the log will be saved in /home/will/MagicMirror/installers/pm2_setup.log
              /usr/local/bin/node: 1: Syntax error: “)” unexpected
              /usr/local/bin/node: 1: Syntax error: “)” unexpected
              will@raspberrypi:~ $

              I have seen “Syntax error: “)” unexpected” before but that is the first time I have seen it twice

              here is the log file:

              pm2 setup starting - Sun Apr 28 11:19:37 EDT 2024
              using parameter bash
              system is Linux raspberrypi 6.6.28+rpt-rpi-v8 #1 SMP PREEMPT Debian 1:6.6.28-1+rpt1 (2024-04-22) aarch64 GNU/Linux
              the os is Distributor ID: Debian Description: Debian GNU/Linux 12 (bookworm) Release: 12 Codename: bookworm
              node version v20.12.1
              force installing latest npm version via npm
              npm version 10.5.2
              pm2 installed
              pm2 installed, but does not work, uninstalling
              pm2 not installed, installing
              get the pm2 platform specific startup command
              startup command =
              pm2 startup command done
              configure the pm2 config file for MagicMirror
              the user is not pi
              change pm2_MagicMirror.json
              now using this config file pm2_MagicMirror_new.json
              start MagicMirror via pm2 now
              save MagicMirror pm2 config now
              pm2 setup completed - Sun Apr 28 11:19:39 EDT 2024
              pm2 setup starting - Sun Apr 28 20:25:03 EDT 2024
              using parameter bash
              system is Linux raspberrypi 6.6.28+rpt-rpi-v8 #1 SMP PREEMPT Debian 1:6.6.28-1+rpt1 (2024-04-22) aarch64 GNU/Linux
              the os is Distributor ID: Debian Description: Debian GNU/Linux 12 (bookworm) Release: 12 Codename: bookworm
              node version v20.12.1
              force installing latest npm version via npm
              npm version 10.5.2
              pm2 installed
              pm2 installed, but does not work, uninstalling
              pm2 not installed, installing
              get the pm2 platform specific startup command
              startup command =
              pm2 startup command done
              configure the pm2 config file for MagicMirror
              the user is not pi
              change pm2_MagicMirror.json
              now using this config file pm2_MagicMirror_new.json
              start MagicMirror via pm2 now
              save MagicMirror pm2 config now
              pm2 setup completed - Sun Apr 28 20:25:05 EDT 2024

              it is saying the user is not pi, but this is on a rasberry pi

              S 1 Reply Last reply Apr 29, 2024, 12:55 AM Reply Quote 0
              • S Online
                sdetweil @WM1600
                last edited by Apr 29, 2024, 12:55 AM

                @WM1600 yes, your username is will, not pi

                can you do

                uname -a
                file $(which bash)
                

                I think you have a hybrid system
                64 bit kernel
                32 bit runtime

                and you have the wrong (64 bit) node installed

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                W 1 Reply Last reply Apr 29, 2024, 1:17 AM Reply Quote 0
                • W Offline
                  WM1600 @sdetweil
                  last edited by Apr 29, 2024, 1:17 AM

                  @sdetweil

                  will@raspberrypi:~ $ uname -a
                  Linux raspberrypi 6.6.28+rpt-rpi-v8 #1 SMP PREEMPT Debian 1:6.6.28-1+rpt1 (2024-04-22) aarch64 GNU/Linux
                  will@raspberrypi:~ $ file $(which bash)
                  /usr/bin/bash: ELF 64-bit LSB pie executable, ARM aarch64, version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux-aarch64.so.1, BuildID[sha1]=198ac6b0cc01bf774c5746a36a6fd31dead9bda5, for GNU/Linux 3.7.0, stripped
                  will@raspberrypi:~ $

                  S 1 Reply Last reply Apr 29, 2024, 2:22 AM Reply Quote 0
                  • S Online
                    sdetweil @WM1600
                    last edited by sdetweil Apr 29, 2024, 2:24 AM Apr 29, 2024, 2:22 AM

                    @WM1600 ok then…

                    hm… trying to figure out the best way to fix this

                    the bad node install is hard to get out of.

                    I think redoing the sd card is the cleanest

                    use my backup script to save the MagicMirror setup.
                    https://github.com/sdetweil/MagicMirror-backup-restore

                    it’s three files plus any addon files made by modules, like the token file for photos
                    one little directory.

                    if you use github then it can save all that to a private repo u build on github.

                    otherwise copy the folder off somewhere you can get it back

                    make the new sd card,
                    boot, don’t update during bootup
                    install MagicMirror using my install script
                    https://github.com/sdetweil/MagicMirror_scripts
                    which will update node/npm too

                    then restore your MagicMirror setup

                    Sam

                    How to add modules

                    learning how to use browser developers window for css changes

                    1 Reply Last reply Reply Quote 0
                    • W Offline
                      WM1600
                      last edited by May 8, 2024, 11:42 PM

                      Sam,

                      wanted to get back with you and let you know that the re-install worked.

                      Thank you very much for the help, I could not have done it with out you!

                      Will

                      1 Reply Last reply Reply Quote 0
                      • S sdetweil has marked this topic as solved on May 9, 2024, 1:56 AM
                      • 1
                      • 2
                      • 1 / 2
                      • 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