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.

    Nothing showing but app is running

    Scheduled Pinned Locked Moved Troubleshooting
    16 Posts 6 Posters 9.1k Views 6 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.
    • F Offline
      fiskaren
      last edited by

      And I have of couse done the autostart part of the installation. Here is the code for that, if that could be intresting:

      pi@raspberrypi:~ $ pm2 startup
      [PM2] Init System found: systemd
      [PM2] You have to run this command as root. Execute the following command:
      sudo env PATH=$PATH:/usr/bin /usr/lib/node_modules/pm2/bin/pm2 startup systemd -u pi --hp /home/pi
      pi@raspberrypi:~ $ sudo env PATH=$PATH:/usr/bin /usr/lib/node_modules/pm2/bin/pm2 startup systemd -u pi --hp /home/pi
      [PM2] Init System found: systemd
      Platform systemd
      Template
      [Unit]
      Description=PM2 process manager
      Documentation=https://pm2.keymetrics.io/
      After=network.target
      
      [Service]
      Type=forking
      User=pi
      LimitNOFILE=infinity
      LimitNPROC=infinity
      LimitCORE=infinity
      TimeoutStartSec=8
      Environment=PATH=/usr/bin:/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin
      Environment=PM2_HOME=/home/pi/.pm2
      PIDFile=/home/pi/.pm2/pm2.pid
      
      ExecStart=/usr/lib/node_modules/pm2/bin/pm2 resurrect
      ExecReload=/usr/lib/node_modules/pm2/bin/pm2 reload all
      ExecStop=/usr/lib/node_modules/pm2/bin/pm2 kill
      
      [Install]
      WantedBy=multi-user.target
      
      Target path
      /etc/systemd/system/pm2-pi.service
      Command list
      [ 'chmod +x /etc/systemd/system/pm2-pi.service',
        'systemctl enable pm2-pi',
        'systemctl start pm2-pi',
        'systemctl daemon-reload',
        'systemctl status pm2-pi' ]
      [PM2] Writing init configuration in /etc/systemd/system/pm2-pi.service
      [PM2] Making script booting at startup...
      >>> Executing chmod +x /etc/systemd/system/pm2-pi.service
      [DONE]
      >>> Executing systemctl enable pm2-pi
      [DONE]
      >>> Executing systemctl start pm2-pi
      [DONE]
      >>> Executing systemctl daemon-reload
      [DONE]
      >>> Executing systemctl status pm2-pi
      ● pm2-pi.service - PM2 process manager
         Loaded: loaded (/etc/systemd/system/pm2-pi.service; enabled)
         Active: active (running) since Wed 2017-03-08 12:21:50 UTC; 176ms ago
           Docs: https://pm2.keymetrics.io/
       Main PID: 1011 (PM2 v2.4.2: God)
         CGroup: /system.slice/pm2-pi.service
                 ‣ 1011 PM2 v2.4.2: God Daemon (/home/pi/.pm2)
      
      Mar 08 12:21:50 raspberrypi pm2[1239]: [PM2] Resurrecting
      Mar 08 12:21:50 raspberrypi pm2[1239]: [PM2] Restoring processes located in /home/pi/.pm2/dump.pm2
      Mar 08 12:21:50 raspberrypi pm2[1239]: ┌──────────┬────┬──────┬──────┬────────┬─────────┬────────┬─────┬──────────┬──────────┐
      Mar 08 12:21:50 raspberrypi pm2[1239]: │ App name │ id │ mode │ pid  │ status │ restart │ uptime │ cpu │ mem      │ watching │
      Mar 08 12:21:50 raspberrypi pm2[1239]: ├──────────┼────┼──────┼──────┼────────┼─────────┼────────┼─────┼──────────┼──────────┤
      Mar 08 12:21:50 raspberrypi pm2[1239]: │ mm       │ 0  │ fork │ 1021 │ online │ 0       │ 7m     │ 0%  │ 2.3 MB   │ disabled │
      Mar 08 12:21:50 raspberrypi pm2[1239]: └──────────┴────┴──────┴──────┴────────┴─────────┴────────┴─────┴──────────┴──────────┘
      Mar 08 12:21:50 raspberrypi pm2[1239]: Use `pm2 show ` to get more details about an app
      Mar 08 12:21:50 raspberrypi systemd[1]: Started PM2 process manager.
      [DONE]
      +---------------------------------------+
      [PM2] Freeze a process list on reboot via:
      $ pm2 save
      
      [PM2] Remove init script via:
      $ pm2 unstartup systemd
      
      
      1 Reply Last reply Reply Quote 0
      • M Offline
        mortenbirkelund
        last edited by

        Have you saved the current state of the PM2?

        Run

        pm2 start mm.sh
        pm2 save
        sudo reboot
        
        F 1 Reply Last reply Reply Quote 0
        • F Offline
          fiskaren @mortenbirkelund
          last edited by

          @mortenbirkelund Actually I have. Still doesn’t work. The only way I made it finally work was to add “@pm2 start mm.sh” in "/home/pi/.config/lxsession/LXDE/autostart "

          I guess that is a OK solution?

          M 1 Reply Last reply Reply Quote 0
          • M Offline
            mortenbirkelund @fiskaren
            last edited by

            @fiskaren Then i dont know what could be wrong. Perhaps someone else will see this post and can point you in the right direction.
            Your solution will start MM each time the computer is started, where pm2 will only start MM, if it was running when the reboot was initiated. But if it works for you.

            1 Reply Last reply Reply Quote 0
            • D Offline
              dikkedimi
              last edited by

              updated today and now I have a similar issue. App is running but the screen is black. Ran apt-get update & apt-get upgrade in the hopes it would fix itself, but nope :)

              pi@jarvis:~ $ pm2 log
              [TAILING] Tailing last 15 lines for [all] processes (change the value with --lines option)
              /home/pi/.pm2/pm2.log last 15 lines:
              PM2        | 2017-04-02 18:19:27: PM2 PID file         : /home/pi/.pm2/pm2.pid
              PM2        | 2017-04-02 18:19:27: RPC socket file      : /home/pi/.pm2/rpc.sock
              PM2        | 2017-04-02 18:19:27: BUS socket file      : /home/pi/.pm2/pub.sock
              PM2        | 2017-04-02 18:19:27: Application log path : /home/pi/.pm2/logs
              PM2        | 2017-04-02 18:19:27: Process dump file    : /home/pi/.pm2/dump.pm2
              PM2        | 2017-04-02 18:19:27: Concurrent actions   : 2
              PM2        | 2017-04-02 18:19:27: SIGTERM timeout      : 1600
              PM2        | 2017-04-02 18:19:27: ===============================================================================
              PM2        | 2017-04-02 18:19:27: Starting execution sequence in -fork mode- for app name:mm id:0
              PM2        | 2017-04-02 18:19:27: App name:mm id:0 online
              PM2        | 2017-04-02 18:21:20: Stopping app:mm id:0
              PM2        | 2017-04-02 18:21:20: App [mm] with id [0] and pid [1474], exited with code [0] via signal [SIGINT]
              PM2        | 2017-04-02 18:21:20: pid=1474 msg=process killed
              PM2        | 2017-04-02 18:26:49: Starting execution sequence in -fork mode- for app name:mm id:0
              PM2        | 2017-04-02 18:26:49: App name:mm id:0 online
              
              /home/pi/.pm2/logs/mm-error-0.log last 15 lines:
              0|mm       | 
              0|mm       | 
              0|mm       | error: cannot open .git/FETCH_HEAD: Permission denied
              0|mm       | 
              0|mm       | 
              0|mm       | [29012:0402/175739.310033:FATAL:bus.cc(1197)] D-Bus connection was disconnected. Aborting.
              0|mm       | #0 0x0000011cf88c 
              0|mm       | #1 0x0000011bbc1a 
              0|mm       | #2 0x000001e9a6b6 
              0|mm       | 
              0|mm       | [1665:0402/181857.627309:FATAL:bus.cc(1197)] D-Bus connection was disconnected. Aborting.
              0|mm       | #0 0x0000011cf88c 
              0|mm       | #1 0x0000011bbc1a 
              0|mm       | #2 0x000001e9a6b6 
              0|mm       | 
              
              /home/pi/.pm2/logs/mm-out-0.log last 15 lines:
              0|mm       | Initializing new module helper ...
              0|mm       | Module helper loaded: calendar
              0|mm       | No helper found for module: currentweather.
              0|mm       | No helper found for module: airquality.
              0|mm       | No helper found for module: weatherforecast.
              0|mm       | No helper found for module: MMM-Hue.
              0|mm       | All module helpers loaded.
              0|mm       | Starting server on port 8666 ... 
              0|mm       | Starting server op port 8666 ... 
              0|mm       | Server started ...
              0|mm       | Connecting socket for: updatenotification
              0|mm       | Connecting socket for: calendar
              0|mm       | Starting node helper for: calendar
              0|mm       | Sockets connected & modules started ...
              0|mm       | Launching application.
              
              [STREAMING] Now streaming realtime logs for [all] processes
              
              pi@jarvis:~ $ tail -f /home/pi/.pm2/logs/mm-error-0.log
              [29012:0402/175739.310033:FATAL:bus.cc(1197)] D-Bus connection was disconnected. Aborting.
              #0 0x0000011cf88c 
              #1 0x0000011bbc1a 
              #2 0x000001e9a6b6 
              
              [1665:0402/181857.627309:FATAL:bus.cc(1197)] D-Bus connection was disconnected. Aborting.
              #0 0x0000011cf88c 
              #1 0x0000011bbc1a 
              #2 0x000001e9a6b6 
              
              D 1 Reply Last reply Reply Quote 0
              • D Offline
                d3r @dikkedimi
                last edited by

                @dikkedimi said in Nothing showing but app is running:

                updated today and now I have a similar issue. App is running but the screen is black. Ran apt-get update & apt-get upgrade in the hopes it would fix itself, but nope :)

                pi@jarvis:~ $ pm2 log
                [TAILING] Tailing last 15 lines for [all] processes (change the value with --lines option)
                /home/pi/.pm2/pm2.log last 15 lines:
                PM2        | 2017-04-02 18:19:27: PM2 PID file         : /home/pi/.pm2/pm2.pid
                PM2        | 2017-04-02 18:19:27: RPC socket file      : /home/pi/.pm2/rpc.sock
                PM2        | 2017-04-02 18:19:27: BUS socket file      : /home/pi/.pm2/pub.sock
                PM2        | 2017-04-02 18:19:27: Application log path : /home/pi/.pm2/logs
                PM2        | 2017-04-02 18:19:27: Process dump file    : /home/pi/.pm2/dump.pm2
                PM2        | 2017-04-02 18:19:27: Concurrent actions   : 2
                PM2        | 2017-04-02 18:19:27: SIGTERM timeout      : 1600
                PM2        | 2017-04-02 18:19:27: ===============================================================================
                PM2        | 2017-04-02 18:19:27: Starting execution sequence in -fork mode- for app name:mm id:0
                PM2        | 2017-04-02 18:19:27: App name:mm id:0 online
                PM2        | 2017-04-02 18:21:20: Stopping app:mm id:0
                PM2        | 2017-04-02 18:21:20: App [mm] with id [0] and pid [1474], exited with code [0] via signal [SIGINT]
                PM2        | 2017-04-02 18:21:20: pid=1474 msg=process killed
                PM2        | 2017-04-02 18:26:49: Starting execution sequence in -fork mode- for app name:mm id:0
                PM2        | 2017-04-02 18:26:49: App name:mm id:0 online
                
                /home/pi/.pm2/logs/mm-error-0.log last 15 lines:
                0|mm       | 
                0|mm       | 
                0|mm       | error: cannot open .git/FETCH_HEAD: Permission denied
                0|mm       | 
                0|mm       | 
                0|mm       | [29012:0402/175739.310033:FATAL:bus.cc(1197)] D-Bus connection was disconnected. Aborting.
                0|mm       | #0 0x0000011cf88c 
                0|mm       | #1 0x0000011bbc1a 
                0|mm       | #2 0x000001e9a6b6 
                0|mm       | 
                0|mm       | [1665:0402/181857.627309:FATAL:bus.cc(1197)] D-Bus connection was disconnected. Aborting.
                0|mm       | #0 0x0000011cf88c 
                0|mm       | #1 0x0000011bbc1a 
                0|mm       | #2 0x000001e9a6b6 
                0|mm       | 
                
                /home/pi/.pm2/logs/mm-out-0.log last 15 lines:
                0|mm       | Initializing new module helper ...
                0|mm       | Module helper loaded: calendar
                0|mm       | No helper found for module: currentweather.
                0|mm       | No helper found for module: airquality.
                0|mm       | No helper found for module: weatherforecast.
                0|mm       | No helper found for module: MMM-Hue.
                0|mm       | All module helpers loaded.
                0|mm       | Starting server on port 8666 ... 
                0|mm       | Starting server op port 8666 ... 
                0|mm       | Server started ...
                0|mm       | Connecting socket for: updatenotification
                0|mm       | Connecting socket for: calendar
                0|mm       | Starting node helper for: calendar
                0|mm       | Sockets connected & modules started ...
                0|mm       | Launching application.
                
                [STREAMING] Now streaming realtime logs for [all] processes
                
                pi@jarvis:~ $ tail -f /home/pi/.pm2/logs/mm-error-0.log
                [29012:0402/175739.310033:FATAL:bus.cc(1197)] D-Bus connection was disconnected. Aborting.
                #0 0x0000011cf88c 
                #1 0x0000011bbc1a 
                #2 0x000001e9a6b6 
                
                [1665:0402/181857.627309:FATAL:bus.cc(1197)] D-Bus connection was disconnected. Aborting.
                #0 0x0000011cf88c 
                #1 0x0000011bbc1a 
                #2 0x000001e9a6b6 
                

                I have the same problem as you. I run the server on a pi zero and the the display is on a pi3 on the same network. It loads fine without any erros on the pi zero but when I go to the website I only get a black screen.

                F 1 Reply Last reply Reply Quote 0
                • F Offline
                  Fix Not Found @d3r
                  last edited by Fix Not Found

                  @d3r @fiskaren having this issue for a school project right now. Did you two ever have any sucess fixing it?

                  D Mykle1M F 3 Replies Last reply Reply Quote 0
                  • D Offline
                    d3r @Fix Not Found
                    last edited by

                    @Fix-Not-Found I’ve got everything on a pi3 now not sure how I fixed this back then.

                    1 Reply Last reply Reply Quote 0
                    • Mykle1M Offline
                      Mykle1 Project Sponsor Module Developer @Fix Not Found
                      last edited by

                      @Fix-Not-Found said in Nothing showing but app is running:

                      having this issue for a school project right now. Did you two ever have any sucess fixing it?

                      Are there any errors being reported in your terminal or dev console? If so, post them here

                      Create a working config
                      How to add modules

                      1 Reply Last reply Reply Quote 0
                      • F Offline
                        fiskaren @Fix Not Found
                        last edited by

                        @Fix-Not-Found I did not. But after formating and reinstalling it worked just fine. No idea what the problem was!

                        Mykle1M F 2 Replies Last reply Reply Quote 0
                        • 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