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

cannot get Raspberry pi 2 to run

Scheduled Pinned Locked Moved Solved Troubleshooting
39 Posts 2 Posters 7.7k 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.
  • T Offline
    theaddies
    last edited by Apr 7, 2023, 10:27 PM

    Super frustrating experience trying to get MagicMirror up and running on a raspberry pi model 2 b. I tried to do the manual installation and got the error:

    curl -sL https://deb.nodesource.com/setup_16.x | sudo -E bash -
    ## Installing the NodeSource Node.js 16.x repo...
    
    ## You appear to be running on ARMv6 hardware. Unfortunately this is not currently supported by the NodeSource Linux distributions. Please use the 'linux-armv6l' binary tarballs available directly from nodejs.or  >
    

    So I went ahead and ran the script below:

    bash -c  "$(curl -sL https://raw.githubusercontent.com/sdetweil/MagicMirror_scripts/master/raspberry.sh)"
    

    Everything seemed to work well and I get the message below.

    [PM2] Saving current process list...
    [PM2] Successfully saved in /home/pi/.pm2/dump.pm2
    Do you want to disable the screen saver? (y/N)?y
    We're ready! Run pm2 start MagicMirror from the ~/MagicMirror directory to start your MagicMirror.
    

    when I type ‘pm2 start MagicMirror’ It says process started successfully, displays the table with id, name, node, etc and then just returns the prompt. Nothing happens. I’m super frustrated. I am going through all this due to a corrupted SD card but I didn’t have this kind of trouble getting it to work originally

    I appreciate any help.

    S 1 Reply Last reply Apr 7, 2023, 10:33 PM Reply Quote 1
    • T Offline
      theaddies @sdetweil
      last edited by Apr 8, 2023, 9:35 PM

      @sdetweil OK So I went ahead and did the whole thing over again for the fourth time with the exact method you outlined. It works. It would be nice to somehow let the next poor sod who wants to waste 2 days of their life of the right way to do this on a pi2.

      S 1 Reply Last reply Apr 8, 2023, 9:39 PM Reply Quote 0
      • S Offline
        sdetweil @theaddies
        last edited by Apr 7, 2023, 10:33 PM

        @theaddies armv6 is slow. could be 3 minutes til mm comes up.

        can you show me the output of
        pm2 logs --lines=50

        the script should have modified package.json start clause to be ./run-start.sh

        no electron is available for armv6 anymore, so I try to launch chromium.

        also send me the ~/install.log
        sane userid at gmail

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        T 2 Replies Last reply Apr 7, 2023, 10:37 PM Reply Quote 0
        • T Offline
          theaddies @sdetweil
          last edited by Apr 7, 2023, 10:37 PM

          @sdetweil It is slow, but I have been working on this for 12 hours so there is ample time for something to have worked.

          pi@raspberrypi:~ $ pm2 logs --lines=50
          [PM2] Spawning PM2 daemon with pm2_home=/home/pi/.pm2
          [PM2] PM2 Successfully daemonized
          [TAILING] Tailing last 50 lines for [all] processes (change the value with --lines option)
          /home/pi/.pm2/pm2.log last 50 lines:
          PM2        | 2023-04-07T18:26:05: PM2 log: App [MagicMirror:0] online
          PM2        | 2023-04-07T18:26:45: PM2 log: App [MagicMirror:0] exited with code [0] via signal [SIGINT]
          PM2        | 2023-04-07T18:26:45: PM2 log: App [MagicMirror:0] starting in -fork mode-
          PM2        | 2023-04-07T18:26:45: PM2 log: App [MagicMirror:0] online
          PM2        | 2023-04-07T18:27:25: PM2 log: App [MagicMirror:0] exited with code [0] via signal [SIGINT]
          PM2        | 2023-04-07T18:27:25: PM2 log: App [MagicMirror:0] starting in -fork mode-
          PM2        | 2023-04-07T18:27:25: PM2 log: App [MagicMirror:0] online
          PM2        | 2023-04-07T18:28:09: PM2 log: App [MagicMirror:0] exited with code [0] via signal [SIGINT]
          PM2        | 2023-04-07T18:28:09: PM2 log: App [MagicMirror:0] starting in -fork mode-
          PM2        | 2023-04-07T18:28:09: PM2 log: App [MagicMirror:0] online
          PM2        | 2023-04-07T18:28:57: PM2 log: App [MagicMirror:0] exited with code [0] via signal [SIGINT]
          PM2        | 2023-04-07T18:28:57: PM2 log: App [MagicMirror:0] starting in -fork mode-
          PM2        | 2023-04-07T18:28:57: PM2 log: App [MagicMirror:0] online
          PM2        | 2023-04-07T18:29:49: PM2 log: App [MagicMirror:0] exited with code [0] via signal [SIGINT]
          PM2        | 2023-04-07T18:29:49: PM2 log: App [MagicMirror:0] starting in -fork mode-
          PM2        | 2023-04-07T18:29:49: PM2 log: App [MagicMirror:0] online
          PM2        | 2023-04-07T18:30:28: PM2 log: App [MagicMirror:0] exited with code [0] via signal [SIGINT]
          PM2        | 2023-04-07T18:30:28: PM2 log: App [MagicMirror:0] starting in -fork mode-
          PM2        | 2023-04-07T18:30:28: PM2 log: App [MagicMirror:0] online
          PM2        | 2023-04-07T18:31:08: PM2 log: App [MagicMirror:0] exited with code [0] via signal [SIGINT]
          PM2        | 2023-04-07T18:31:08: PM2 log: App [MagicMirror:0] starting in -fork mode-
          PM2        | 2023-04-07T18:31:09: PM2 log: App [MagicMirror:0] online
          PM2        | 2023-04-07T18:31:48: PM2 log: App [MagicMirror:0] exited with code [0] via signal [SIGINT]
          PM2        | 2023-04-07T18:31:48: PM2 log: App [MagicMirror:0] starting in -fork mode-
          PM2        | 2023-04-07T18:31:49: PM2 log: App [MagicMirror:0] online
          PM2        | 2023-04-07T18:32:28: PM2 log: App [MagicMirror:0] exited with code [0] via signal [SIGINT]
          PM2        | 2023-04-07T18:32:28: PM2 log: App [MagicMirror:0] starting in -fork mode-
          PM2        | 2023-04-07T18:32:28: PM2 log: App [MagicMirror:0] online
          PM2        | 2023-04-07T18:33:09: PM2 log: pm2 has been killed by signal, dumping process list before exit...
          PM2        | 2023-04-07T18:33:09: PM2 log: Deleting process 0
          PM2        | 2023-04-07T18:33:09: PM2 log: Stopping app:MagicMirror id:0
          PM2        | 2023-04-07T18:33:10: PM2 log: App [MagicMirror:0] exited with code [0] via signal [SIGTERM]
          PM2        | 2023-04-07T18:33:12: PM2 log: pid=10286 msg=process killed
          PM2        | 2023-04-07T18:33:12: PM2 log: Exited peacefully
          PM2        | 2023-04-07T18:36:32: PM2 log: ===============================================================================
          PM2        | 2023-04-07T18:36:33: PM2 log: --- New PM2 Daemon started ----------------------------------------------------
          PM2        | 2023-04-07T18:36:33: PM2 log: Time                 : Fri Apr 07 2023 18:36:33 GMT-0400 (Eastern Daylight Time)
          PM2        | 2023-04-07T18:36:33: PM2 log: PM2 version          : 5.3.0
          PM2        | 2023-04-07T18:36:33: PM2 log: Node.js version      : 16.13.0
          PM2        | 2023-04-07T18:36:33: PM2 log: Current arch         : arm
          PM2        | 2023-04-07T18:36:33: PM2 log: PM2 home             : /home/pi/.pm2
          PM2        | 2023-04-07T18:36:33: PM2 log: PM2 PID file         : /home/pi/.pm2/pm2.pid
          PM2        | 2023-04-07T18:36:33: PM2 log: RPC socket file      : /home/pi/.pm2/rpc.sock
          PM2        | 2023-04-07T18:36:33: PM2 log: BUS socket file      : /home/pi/.pm2/pub.sock
          PM2        | 2023-04-07T18:36:33: PM2 log: Application log path : /home/pi/.pm2/logs
          PM2        | 2023-04-07T18:36:33: PM2 log: Worker Interval      : 30000
          PM2        | 2023-04-07T18:36:33: PM2 log: Process dump file    : /home/pi/.pm2/dump.pm2
          PM2        | 2023-04-07T18:36:33: PM2 log: Concurrent actions   : 2
          PM2        | 2023-04-07T18:36:33: PM2 log: SIGTERM timeout      : 1600
          PM2        | 2023-04-07T18:36:33: PM2 log: ===============================================================================
          
          
          1 Reply Last reply Reply Quote 0
          • T Offline
            theaddies @sdetweil
            last edited by Apr 7, 2023, 10:39 PM

            @sdetweil Log file sent.

            S 1 Reply Last reply Apr 7, 2023, 10:43 PM Reply Quote 1
            • S Offline
              sdetweil @theaddies
              last edited by Apr 7, 2023, 10:43 PM

              @theaddies got the log,let’s try this

              in terminal window, pm2 stop all

              cd ~/MagicMirror
              ./run-start.sh
              

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              T 1 Reply Last reply Apr 7, 2023, 10:52 PM Reply Quote 0
              • T Offline
                theaddies @sdetweil
                last edited by Apr 7, 2023, 10:52 PM

                @sdetweil I get this.

                Ready to go! Please point your browser to: http://localhost:8080
                Starting chromium browser now, have patience, it takes a minute
                ./run-start.sh: line 147:  1281 Illegal instruction     "$b" -noerrdialogs -kiosk -start_maximized --new-window --site-per-process --no-zygote --no-sandbox --disable-infobars --app=http://localhost:$port --ignore-certificate-errors-spki-list --ignore-ssl-errors --ignore-certificate-errors --user-data-dir=$r 2> /dev/null
                
                
                T S 2 Replies Last reply Apr 7, 2023, 10:55 PM Reply Quote 0
                • T Offline
                  theaddies @theaddies
                  last edited by Apr 7, 2023, 10:55 PM

                  @theaddies The way I want to run the mirror is that it automatically opens and displays the mirror at boot. I sometimes see things for serveronly and I am not sure if that is what is being configured. I don’t think that is what I want.

                  S 1 Reply Last reply Apr 7, 2023, 10:57 PM Reply Quote 0
                  • S Offline
                    sdetweil @theaddies
                    last edited by Apr 7, 2023, 10:56 PM

                    @theaddies ok, a little more info

                    type in terminal window

                    which chromium
                    which chromium-browser

                    they should return the file path to one of those

                    whichever gives a path copy paste that in the terminal window

                    and see if it will start

                    I’ve never seen a pi 2, but this all works on pi 0w, also armv6l

                    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 @theaddies
                      last edited by Apr 7, 2023, 10:57 PM

                      @theaddies because there is no electron browser anymore for armv6l

                      I change the setup to serveronly, and then launch chrome browser over the server. you get the same result

                      Sam

                      How to add modules

                      learning how to use browser developers window for css changes

                      T 1 Reply Last reply Apr 7, 2023, 10:58 PM Reply Quote 0
                      • T Offline
                        theaddies @sdetweil
                        last edited by Apr 7, 2023, 10:58 PM

                        @sdetweil

                        /usr/bin/chromium-browser
                        Illegal Instruction
                        
                        S 1 Reply Last reply Apr 7, 2023, 11:00 PM Reply Quote 0
                        • 1
                        • 2
                        • 3
                        • 4
                        • 1 / 4
                        1 / 4
                        • First post
                          2/39
                          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