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

MM on Pi Zero fails after being off for a few days

Scheduled Pinned Locked Moved Unsolved Troubleshooting
27 Posts 2 Posters 6.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 Offline
    sdetweil @kellogg76
    last edited by Mar 29, 2020, 1:02 PM

    @kellogg76 ok, do

    pm2 status

    it seems there is something already running

    Sam

    How to add modules

    learning how to use browser developers window for css changes

    1 Reply Last reply Reply Quote 0
    • K Offline
      kellogg76
      last edited by Mar 29, 2020, 1:03 PM

      Everything was stopped.

      $ pm2 status
      ┌────┬────────────────────┬──────────┬──────┬──────────┬──────────┬──────────┐
      │ id │ name               │ mode     │ ↺    │ status   │ cpu      │ memory   │
      ├────┼────────────────────┼──────────┼──────┼──────────┼──────────┼──────────┤
      │ 0  │ mmstart            │ fork     │ 1780 │ stopped  │ 0%       │ 0b       │
      └────┴────────────────────┴──────────┴──────┴──────────┴──────────┴──────────┘
      
      S 1 Reply Last reply Mar 29, 2020, 1:04 PM Reply Quote 0
      • S Offline
        sdetweil @kellogg76
        last edited by Mar 29, 2020, 1:04 PM

        @kellogg76 pm2 info 0

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        K 1 Reply Last reply Mar 29, 2020, 1:05 PM Reply Quote 0
        • K Offline
          kellogg76 @sdetweil
          last edited by Mar 29, 2020, 1:05 PM

          @sdetweil

          Describing process with id 0 - name mmstart
          ┌───────────────────┬──────────────────────────────────────┐
          │ status            │ stopped                              │
          │ name              │ mmstart                              │
          │ version           │ N/A                                  │
          │ restarts          │ 1780                                 │
          │ uptime            │ 0                                    │
          │ script path       │ /home/pi/mmstart.sh                  │
          │ script args       │ N/A                                  │
          │ error log path    │ /home/pi/.pm2/logs/mmstart-error.log │
          │ out log path      │ /home/pi/.pm2/logs/mmstart-out.log   │
          │ pid path          │ /home/pi/.pm2/pids/mmstart-0.pid     │
          │ interpreter       │ bash                                 │
          │ interpreter args  │ N/A                                  │
          │ script id         │ 0                                    │
          │ exec cwd          │ /home/pi                             │
          │ exec mode         │ fork_mode                            │
          │ node.js version   │ N/A                                  │
          │ node env          │ N/A                                  │
          │ watch & reload    │ ✘                                    │
          │ unstable restarts │ 0                                    │
          │ created at        │ 2020-03-28T19:51:14.338Z             │
          └───────────────────┴──────────────────────────────────────┘
          Divergent env variables from local env
          ┌────────────────┬──────────────────────────────────────┐
          │ SSH_CONNECTION │ 192.168.1.148 54823 192.168.1.166 22 │
          │ XDG_SESSION_ID │ c2                                   │
          │ SSH_CLIENT     │ 192.168.1.148 54823 22               │
          │ SSH_TTY        │ /dev/pts/1                           │
          └────────────────┴──────────────────────────────────────┘
          
          Add your own code metrics: http://bit.ly/code-metrics
          Use `pm2 logs mmstart [--lines 1000]` to display logs
          Use `pm2 env 0` to display environment variables
          Use `pm2 monit` to monitor CPU and Memory usage mmstart
          
          S 1 Reply Last reply Mar 29, 2020, 1:07 PM Reply Quote 0
          • S Offline
            sdetweil @kellogg76
            last edited by Mar 29, 2020, 1:07 PM

            @kellogg76 said in MM on Pi Zero fails after being off for a few days:

            /home/pi/mmstart.sh

            can u show that file

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            K 1 Reply Last reply Mar 29, 2020, 1:08 PM Reply Quote 0
            • K Offline
              kellogg76 @sdetweil
              last edited by Mar 29, 2020, 1:08 PM

              @sdetweil

              #!/bin/bash
              cd ~/MagicMirror
              node serveronly &
              sleep 30
              xinit /home/pi/chromium_start.sh
              
              S 1 Reply Last reply Mar 29, 2020, 1:09 PM Reply Quote 0
              • S Offline
                sdetweil @kellogg76
                last edited by Mar 29, 2020, 1:09 PM

                @kellogg76 said in MM on Pi Zero fails after being off for a few days:

                xinit /home/pi/chromium_start.sh

                and that one?

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                K 1 Reply Last reply Mar 29, 2020, 1:10 PM Reply Quote 0
                • K Offline
                  kellogg76 @sdetweil
                  last edited by Mar 29, 2020, 1:10 PM

                  @sdetweil

                  #!/bin/sh
                  unclutter &
                  xset -dpms # disable DPMS (Energy Star) features.
                  xset s off # disable screen saver
                  xset s noblank # don’t blank the video device
                  matchbox-window-manager &
                  chromium-browser -–incognito --start-fullscreen -–kiosk http://localhost:8080/
                  
                  S 1 Reply Last reply Mar 29, 2020, 1:18 PM Reply Quote 0
                  • S Offline
                    sdetweil @kellogg76
                    last edited by Mar 29, 2020, 1:18 PM

                    @kellogg76 weird…

                    and if you do pm2 start 0 it works ok?

                    Sam

                    How to add modules

                    learning how to use browser developers window for css changes

                    K 1 Reply Last reply Mar 29, 2020, 1:21 PM Reply Quote 0
                    • K Offline
                      kellogg76 @sdetweil
                      last edited by Mar 29, 2020, 1:21 PM

                      @sdetweil it works in as much as I can see the magic mirror on another computer when I point to the correct IP, but the pi itself does not display anything at all, it sits at a terminal prompt or if I reboot and let it try to start on its own it’ll switch from prompt to black screen with mouse pointer as if it’s trying to start, then it loops back to a prompt and cycles between the two states.

                      1 Reply Last reply Reply Quote 0
                      • 1
                      • 2
                      • 3
                      • 1 / 3
                      1 / 3
                      • First post
                        10/27
                        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