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.

    OrangePi Zero 2 installation issues

    Scheduled Pinned Locked Moved Unsolved Troubleshooting
    41 Posts 2 Posters 11.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.
    • S Offline
      sdetweil @michelw
      last edited by

      @michelw show the pm2 logs --lines=50 output

      should have been ok…

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      1 Reply Last reply Reply Quote 0
      • M Offline
        michelw
        last edited by

        @sdetweil said in OrangePi Zero 2 installation issues:

        pm2 logs --lines=50 output

        michel@magicmirror:~/MagicMirror$ pm2 logs --lines=50
        [TAILING] Tailing last 50 lines for [all] processes (change the value with --lines option)
        /home/michel/.pm2/pm2.log last 50 lines:
        PM2        | 2021-12-10T21:25:51: PM2 log: Stopping app:MagicMirror id:0
        PM2        | 2021-12-10T21:25:51: PM2 log: App [MagicMirror:0] exited with code [0] via signal [SIGINT]
        PM2        | 2021-12-10T21:25:51: PM2 log: pid=19681 msg=process killed
        PM2        | 2021-12-10T21:25:51: PM2 log: App [MagicMirror:0] starting in -fork mode-
        PM2        | 2021-12-10T21:25:51: PM2 log: App [MagicMirror:0] online
        PM2        | 2021-12-10T21:25:56: PM2 log: App [MagicMirror:0] exited with code [1] via signal [SIGINT]
        PM2        | 2021-12-10T21:25:56: PM2 log: App [MagicMirror:0] starting in -fork mode-
        PM2        | 2021-12-10T21:25:56: PM2 log: App [MagicMirror:0] online
        PM2        | 2021-12-10T21:26:00: PM2 log: App [MagicMirror:0] exited with code [1] via signal [SIGINT]
        PM2        | 2021-12-10T21:26:00: PM2 log: App [MagicMirror:0] starting in -fork mode-
        PM2        | 2021-12-10T21:26:00: PM2 log: App [MagicMirror:0] online
        PM2        | 2021-12-10T21:26:05: PM2 log: App [MagicMirror:0] exited with code [1] via signal [SIGINT]
        PM2        | 2021-12-10T21:26:05: PM2 log: App [MagicMirror:0] starting in -fork mode-
        PM2        | 2021-12-10T21:26:05: PM2 log: App [MagicMirror:0] online
        PM2        | 2021-12-10T21:26:09: PM2 log: App [MagicMirror:0] exited with code [1] via signal [SIGINT]
        PM2        | 2021-12-10T21:26:09: PM2 log: App [MagicMirror:0] starting in -fork mode-
        PM2        | 2021-12-10T21:26:09: PM2 log: App [MagicMirror:0] online
        PM2        | 2021-12-10T21:26:14: PM2 log: App [MagicMirror:0] exited with code [1] via signal [SIGINT]
        PM2        | 2021-12-10T21:26:14: PM2 log: App [MagicMirror:0] starting in -fork mode-
        PM2        | 2021-12-10T21:26:14: PM2 log: App [MagicMirror:0] online
        PM2        | 2021-12-10T21:26:18: PM2 log: App [MagicMirror:0] exited with code [1] via signal [SIGINT]
        PM2        | 2021-12-10T21:26:18: PM2 log: App [MagicMirror:0] starting in -fork mode-
        PM2        | 2021-12-10T21:26:18: PM2 log: App [MagicMirror:0] online
        PM2        | 2021-12-10T21:26:23: PM2 log: App [MagicMirror:0] exited with code [1] via signal [SIGINT]
        PM2        | 2021-12-10T21:26:23: PM2 log: App [MagicMirror:0] starting in -fork mode-
        PM2        | 2021-12-10T21:26:23: PM2 log: App [MagicMirror:0] online
        PM2        | 2021-12-10T21:26:27: PM2 log: App [MagicMirror:0] exited with code [1] via signal [SIGINT]
        PM2        | 2021-12-10T21:26:27: PM2 log: App [MagicMirror:0] starting in -fork mode-
        PM2        | 2021-12-10T21:26:27: PM2 log: App [MagicMirror:0] online
        PM2        | 2021-12-10T21:26:32: PM2 log: App [MagicMirror:0] exited with code [1] via signal [SIGINT]
        PM2        | 2021-12-10T21:26:32: PM2 log: App [MagicMirror:0] starting in -fork mode-
        PM2        | 2021-12-10T21:26:32: PM2 log: App [MagicMirror:0] online
        PM2        | 2021-12-10T21:26:36: PM2 log: App [MagicMirror:0] exited with code [1] via signal [SIGINT]
        PM2        | 2021-12-10T21:26:36: PM2 log: App [MagicMirror:0] starting in -fork mode-
        PM2        | 2021-12-10T21:26:36: PM2 log: App [MagicMirror:0] online
        PM2        | 2021-12-10T21:26:41: PM2 log: App [MagicMirror:0] exited with code [1] via signal [SIGINT]
        PM2        | 2021-12-10T21:26:41: PM2 log: App [MagicMirror:0] starting in -fork mode-
        PM2        | 2021-12-10T21:26:41: PM2 log: App [MagicMirror:0] online
        PM2        | 2021-12-10T21:26:46: PM2 log: App [MagicMirror:0] exited with code [1] via signal [SIGINT]
        PM2        | 2021-12-10T21:26:46: PM2 log: App [MagicMirror:0] starting in -fork mode-
        PM2        | 2021-12-10T21:26:46: PM2 log: App [MagicMirror:0] online
        PM2        | 2021-12-10T21:26:50: PM2 log: App [MagicMirror:0] exited with code [1] via signal [SIGINT]
        PM2        | 2021-12-10T21:26:50: PM2 log: App [MagicMirror:0] starting in -fork mode-
        PM2        | 2021-12-10T21:26:50: PM2 log: App [MagicMirror:0] online
        PM2        | 2021-12-10T21:26:55: PM2 log: App [MagicMirror:0] exited with code [1] via signal [SIGINT]
        PM2        | 2021-12-10T21:26:55: PM2 log: App [MagicMirror:0] starting in -fork mode-
        PM2        | 2021-12-10T21:26:55: PM2 log: App [MagicMirror:0] online
        PM2        | 2021-12-10T21:26:59: PM2 log: App [MagicMirror:0] exited with code [1] via signal [SIGINT]
        PM2        | 2021-12-10T21:26:59: PM2 log: App [MagicMirror:0] starting in -fork mode-
        PM2        | 2021-12-10T21:26:59: PM2 log: App [MagicMirror:0] online
        
        /home/michel/.pm2/logs/MagicMirror-error.log last 50 lines:
        0|MagicMir | npm ERR! A complete log of this run can be found in:
        0|MagicMir | npm ERR!     /home/michel/.npm/_logs/2021-12-10T20_26_41_486Z-debug.log
        0|MagicMir | The futex facility returned an unexpected error code.
        0|MagicMir | /home/michel/MagicMirror/node_modules/electron/dist/electron exited with signal SIGABRT
        0|MagicMir | npm ERR! code ELIFECYCLE
        0|MagicMir | npm ERR! errno 1
        0|MagicMir | npm ERR! magicmirror@2.17.1 start: `DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js`
        0|MagicMir | npm ERR! Exit status 1
        0|MagicMir | npm ERR! 
        0|MagicMir | npm ERR! Failed at the magicmirror@2.17.1 start script.
        0|MagicMir | npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
        0|MagicMir | 
        0|MagicMir | npm ERR! A complete log of this run can be found in:
        0|MagicMir | npm ERR!     /home/michel/.npm/_logs/2021-12-10T20_26_46_011Z-debug.log
        0|MagicMir | The futex facility returned an unexpected error code.
        0|MagicMir | /home/michel/MagicMirror/node_modules/electron/dist/electron exited with signal SIGABRT
        0|MagicMir | npm ERR! code ELIFECYCLE
        0|MagicMir | npm ERR! errno 1
        0|MagicMir | npm ERR! magicmirror@2.17.1 start: `DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js`
        0|MagicMir | npm ERR! Exit status 1
        0|MagicMir | npm ERR! 
        0|MagicMir | npm ERR! Failed at the magicmirror@2.17.1 start script.
        0|MagicMir | npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
        0|MagicMir | 
        0|MagicMir | npm ERR! A complete log of this run can be found in:
        0|MagicMir | npm ERR!     /home/michel/.npm/_logs/2021-12-10T20_26_50_521Z-debug.log
        0|MagicMir | The futex facility returned an unexpected error code.
        0|MagicMir | /home/michel/MagicMirror/node_modules/electron/dist/electron exited with signal SIGABRT
        0|MagicMir | npm ERR! code ELIFECYCLE
        0|MagicMir | npm ERR! errno 1
        0|MagicMir | npm ERR! magicmirror@2.17.1 start: `DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js`
        0|MagicMir | npm ERR! Exit status 1
        0|MagicMir | npm ERR! 
        0|MagicMir | npm ERR! Failed at the magicmirror@2.17.1 start script.
        0|MagicMir | npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
        0|MagicMir | 
        0|MagicMir | npm ERR! A complete log of this run can be found in:
        0|MagicMir | npm ERR!     /home/michel/.npm/_logs/2021-12-10T20_26_54_958Z-debug.log
        0|MagicMir | The futex facility returned an unexpected error code.
        0|MagicMir | /home/michel/MagicMirror/node_modules/electron/dist/electron exited with signal SIGABRT
        0|MagicMir | npm ERR! code ELIFECYCLE
        0|MagicMir | npm ERR! errno 1
        0|MagicMir | npm ERR! magicmirror@2.17.1 start: `DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js`
        0|MagicMir | npm ERR! Exit status 1
        0|MagicMir | npm ERR! 
        0|MagicMir | npm ERR! Failed at the magicmirror@2.17.1 start script.
        0|MagicMir | npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
        0|MagicMir | 
        0|MagicMir | npm ERR! A complete log of this run can be found in:
        0|MagicMir | npm ERR!     /home/michel/.npm/_logs/2021-12-10T20_26_59_382Z-debug.log
        
        /home/michel/.pm2/logs/MagicMirror-out.log last 50 lines:
        0|MagicMir | > DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js
        0|MagicMir | 
        0|MagicMir | [10.12.2021 21:26.58.491] [LOG]   Starting MagicMirror: v2.17.1
        0|MagicMir | [10.12.2021 21:26.58.507] [LOG]   Loading config ...
        0|MagicMir | [10.12.2021 21:26.58.521] [LOG]   Loading module helpers ...
        0|MagicMir | [10.12.2021 21:26.58.526] [LOG]   No helper found for module: alert.
        0|MagicMir | [10.12.2021 21:26.58.564] [LOG]   Initializing new module helper ...
        0|MagicMir | [10.12.2021 21:26.58.567] [LOG]   Module helper loaded: updatenotification
        0|MagicMir | [10.12.2021 21:26.58.570] [LOG]   No helper found for module: clock.
        0|MagicMir | [10.12.2021 21:26.58.905] [LOG]   Initializing new module helper ...
        0|MagicMir | [10.12.2021 21:26.58.907] [LOG]   Module helper loaded: calendar
        0|MagicMir | [10.12.2021 21:26.58.910] [LOG]   No helper found for module: compliments.
        0|MagicMir | [10.12.2021 21:26.58.912] [LOG]   No helper found for module: weather.
        0|MagicMir | [10.12.2021 21:26.58.960] [LOG]   Initializing new module helper ...
        0|MagicMir | [10.12.2021 21:26.58.962] [LOG]   Module helper loaded: newsfeed
        0|MagicMir | [10.12.2021 21:26.58.963] [LOG]   All module helpers loaded.
        0|MagicMir | [10.12.2021 21:26.59.187] [LOG]   Starting server on port 8080 ... 
        0|MagicMir | [10.12.2021 21:26.59.221] [LOG]   Server started ...
        0|MagicMir | [10.12.2021 21:26.59.224] [LOG]   Connecting socket for: updatenotification
        0|MagicMir | [10.12.2021 21:26.59.227] [LOG]   Connecting socket for: calendar
        0|MagicMir | [10.12.2021 21:26.59.229] [LOG]   Starting node helper for: calendar
        0|MagicMir | [10.12.2021 21:26.59.231] [LOG]   Connecting socket for: newsfeed
        0|MagicMir | [10.12.2021 21:26.59.233] [LOG]   Starting node helper for: newsfeed
        0|MagicMir | [10.12.2021 21:26.59.234] [LOG]   Sockets connected & modules started ...
        0|MagicMir | 
        0|MagicMir | > magicmirror@2.17.1 start /home/michel/MagicMirror
        0|MagicMir | > DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js
        0|MagicMir | 
        0|MagicMir | [10.12.2021 21:27.03.032] [LOG]   Starting MagicMirror: v2.17.1
        0|MagicMir | [10.12.2021 21:27.03.053] [LOG]   Loading config ...
        0|MagicMir | [10.12.2021 21:27.03.070] [LOG]   Loading module helpers ...
        0|MagicMir | [10.12.2021 21:27.03.076] [LOG]   No helper found for module: alert.
        0|MagicMir | [10.12.2021 21:27.03.121] [LOG]   Initializing new module helper ...
        0|MagicMir | [10.12.2021 21:27.03.125] [LOG]   Module helper loaded: updatenotification
        0|MagicMir | [10.12.2021 21:27.03.129] [LOG]   No helper found for module: clock.
        0|MagicMir | [10.12.2021 21:27.03.543] [LOG]   Initializing new module helper ...
        0|MagicMir | [10.12.2021 21:27.03.546] [LOG]   Module helper loaded: calendar
        0|MagicMir | [10.12.2021 21:27.03.549] [LOG]   No helper found for module: compliments.
        0|MagicMir | [10.12.2021 21:27.03.552] [LOG]   No helper found for module: weather.
        0|MagicMir | [10.12.2021 21:27.03.609] [LOG]   Initializing new module helper ...
        0|MagicMir | [10.12.2021 21:27.03.611] [LOG]   Module helper loaded: newsfeed
        0|MagicMir | [10.12.2021 21:27.03.613] [LOG]   All module helpers loaded.
        0|MagicMir | [10.12.2021 21:27.03.893] [LOG]   Starting server on port 8080 ... 
        0|MagicMir | [10.12.2021 21:27.03.939] [LOG]   Server started ...
        0|MagicMir | [10.12.2021 21:27.03.943] [LOG]   Connecting socket for: updatenotification
        0|MagicMir | [10.12.2021 21:27.03.947] [LOG]   Connecting socket for: calendar
        0|MagicMir | [10.12.2021 21:27.03.950] [LOG]   Starting node helper for: calendar
        0|MagicMir | [10.12.2021 21:27.03.953] [LOG]   Connecting socket for: newsfeed
        0|MagicMir | [10.12.2021 21:27.03.955] [LOG]   Starting node helper for: newsfeed
        0|MagicMir | [10.12.2021 21:27.03.958] [LOG]   Sockets connected & modules started ...
        
        0|MagicMirror  | The futex facility returned an unexpected error code.
        0|MagicMirror  | /home/michel/MagicMirror/node_modules/electron/dist/electron exited with signal SIGABRT
        0|MagicMirror  | npm
        0|MagicMirror  |  ERR! code ELIFECYCLE
        0|MagicMirror  | npm ERR! 
        0|MagicMirror  | errno 1
        0|MagicMirror  | npm ERR!
        0|MagicMirror  |  magicmirror@2.17.1 start: `DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js`
        0|MagicMirror  | npm ERR! Exit status 1
        0|MagicMirror  | npm ERR! 
        0|MagicMirror  | npm ERR! Failed at the magicmirror@2.17.1 start script.
        0|MagicMirror  | npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
        0|MagicMirror  | npm ERR! A complete log of this run can be found in:
        0|MagicMirror  | npm ERR!     /home/michel/.npm/_logs/2021-12-10T20_27_04_227Z-debug.log
        PM2            | App [MagicMirror:0] exited with code [1] via signal [SIGINT]
        PM2            | App [MagicMirror:0] starting in -fork mode-
        PM2            | App [MagicMirror:0] online
        0|MagicMirror  | > magicmirror@2.17.1 start /home/michel/MagicMirror
        0|MagicMirror  | > DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js
        0|MagicMirror  | [10.12.2021 21:27.07.756] [LOG]   
        0|MagicMirror  | Starting MagicMirror: v2.17.1
        0|MagicMirror  | [10.12.2021 21:27.07.774] [LOG]   
        0|MagicMirror  | Loading config ...
        0|MagicMirror  | [10.12.2021 21:27.07.790] [LOG]   
        0|MagicMirror  | Loading module helpers ...
        0|MagicMirror  | [10.12.2021 21:27.07.796] [LOG]   
        0|MagicMirror  | No helper found for module: alert.
        0|MagicMirror  | [10.12.2021 21:27.07.835] [LOG]   
        0|MagicMirror  | Initializing new module helper ...
        0|MagicMirror  | [10.12.2021 21:27.07.839] [LOG]   
        0|MagicMirror  | Module helper loaded: updatenotification
        0|MagicMirror  | [10.12.2021 21:27.07.843] [LOG]   No helper found for module: clock.
        0|MagicMirror  | [10.12.2021 21:27.08.182] [LOG]   
        0|MagicMirror  | Initializing new module helper ...
        0|MagicMirror  | [10.12.2021 21:27.08.184] [LOG]   
        0|MagicMirror  | Module helper loaded: calendar
        0|MagicMirror  | [10.12.2021 21:27.08.188] [LOG]   No helper found for module: compliments.
        0|MagicMirror  | [10.12.2021 21:27.08.191] [LOG]   
        0|MagicMirror  | No helper found for module: weather.
        0|MagicMirror  | [10.12.2021 21:27.08.241] [LOG]   
        0|MagicMirror  | Initializing new module helper ...
        0|MagicMirror  | [10.12.2021 21:27.08.243] [LOG]   
        0|MagicMirror  | Module helper loaded: newsfeed
        0|MagicMirror  | [10.12.2021 21:27.08.245] [LOG]   All module helpers loaded.
        0|MagicMirror  | [10.12.2021 21:27.08.471] [LOG]   
        0|MagicMirror  | Starting server on port 8080 ... 
        0|MagicMirror  | [10.12.2021 21:27.08.505] [LOG]   
        0|MagicMirror  | Server started ...
        0|MagicMirror  | [10.12.2021 21:27.08.508] [LOG]   Connecting socket for: updatenotification
        0|MagicMirror  | [10.12.2021 21:27.08.512] [LOG]   
        0|MagicMirror  | Connecting socket for: calendar
        0|MagicMirror  | [10.12.2021 21:27.08.515] [LOG]   Starting node helper for: calendar
        0|MagicMirror  | [10.12.2021 21:27.08.518] [LOG]   Connecting socket for: newsfeed
        0|MagicMirror  | [10.12.2021 21:27.08.520] [LOG]   Starting node helper for: newsfeed
        0|MagicMirror  | [10.12.2021 21:27.08.522] [LOG]   Sockets connected & modules started ...
        0|MagicMirror  | The futex facility returned an unexpected error code.
        0|MagicMirror  | /home/michel/MagicMirror/node_modules/electron/dist/electron exited with signal SIGABRT
        0|MagicMirror  | npm
        0|MagicMirror  |  ERR! code ELIFECYCLE
        0|MagicMirror  | npm ERR! 
        0|MagicMirror  | errno 1
        0|MagicMirror  | npm ERR!
        0|MagicMirror  |  magicmirror@2.17.1 start: `DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js`
        0|MagicMirror  | npm ERR! Exit status 1
        0|MagicMirror  | npm ERR! 
        0|MagicMirror  | npm ERR! Failed at the magicmirror@2.17.1 start script.
        0|MagicMirror  | npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
        0|MagicMirror  | npm ERR! A complete log of this run can be found in:
        0|MagicMirror  | npm ERR!     /home/michel/.npm/_logs/2021-12-10T20_27_08_775Z-debug.log
        PM2            | App [MagicMirror:0] exited with code [1] via signal [SIGINT]
        PM2            | App [MagicMirror:0] starting in -fork mode-
        PM2            | App [MagicMirror:0] online
        0|MagicMirror  | > magicmirror@2.17.1 start /home/michel/MagicMirror
        0|MagicMirror  | > DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js
        
        S 2 Replies Last reply Reply Quote 0
        • S Offline
          sdetweil @michelw
          last edited by

          @michelw do

          pm2 stop all
          export DISPLAY=:0
          cd ~/MagicMirror
          npm start
          

          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 @michelw
            last edited by sdetweil

            @michelw your xwindows might have a different numbering, so use that

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            M 1 Reply Last reply Reply Quote 0
            • M Offline
              michelw @sdetweil
              last edited by michelw

              @sdetweil said in OrangePi Zero 2 installation issues:

              @michelw your xwindows might have a different numbering, so use that

              Not sure what you mean. I am not a linux expert ;)

              michel@magicmirror:~$ pm2 stop all
              [PM2] Applying action stopProcessId on app [all](ids: [ 0 ])
              [PM2] [MagicMirror](0) ✓
              ┌─────┬────────────────┬─────────────┬─────────┬─────────┬──────────┬────────┬──────┬───────────┬──────────┬──────────┬──────────┬──────────┐
              │ id  │ name           │ namespace   │ version │ mode    │ pid      │ uptime │ ↺    │ status    │ cpu      │ mem      │ user     │ watching │
              ├─────┼────────────────┼─────────────┼─────────┼─────────┼──────────┼────────┼──────┼───────────┼──────────┼──────────┼──────────┼──────────┤
              │ 0   │ MagicMirror    │ default     │ 2.17.1  │ fork    │ 0        │ 0      │ 396  │ stopped   │ 0%       │ 0b       │ michel   │ disabled │
              └─────┴────────────────┴─────────────┴─────────┴─────────┴──────────┴────────┴──────┴───────────┴──────────┴──────────┴──────────┴──────────┘
              michel@magicmirror:~$ export DISPLAY=:0
              michel@magicmirror:~$ cd ~/MagicMirror
              michel@magicmirror:~/MagicMirror$ npm start
              
              > magicmirror@2.17.1 start /home/michel/MagicMirror
              > DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js
              
              [10.12.2021 22:32.33.528] [LOG]   Starting MagicMirror: v2.17.1
              [10.12.2021 22:32.33.544] [LOG]   Loading config ...
              [10.12.2021 22:32.33.558] [LOG]   Loading module helpers ...
              [10.12.2021 22:32.33.563] [LOG]   No helper found for module: alert.
              [10.12.2021 22:32.33.600] [LOG]   Initializing new module helper ...
              [10.12.2021 22:32.33.603] [LOG]   Module helper loaded: updatenotification
              [10.12.2021 22:32.33.606] [LOG]   No helper found for module: clock.
              [10.12.2021 22:32.33.953] [LOG]   Initializing new module helper ...
              [10.12.2021 22:32.33.955] [LOG]   Module helper loaded: calendar
              [10.12.2021 22:32.33.958] [LOG]   No helper found for module: compliments.
              [10.12.2021 22:32.33.960] [LOG]   No helper found for module: weather.
              [10.12.2021 22:32.33.997] [LOG]   Initializing new module helper ...
              [10.12.2021 22:32.33.999] [LOG]   Module helper loaded: newsfeed
              [10.12.2021 22:32.34.001] [LOG]   All module helpers loaded.
              [10.12.2021 22:32.34.223] [LOG]   Starting server on port 8080 ... 
              [10.12.2021 22:32.34.255] [LOG]   Server started ...
              [10.12.2021 22:32.34.258] [LOG]   Connecting socket for: updatenotification
              [10.12.2021 22:32.34.260] [LOG]   Connecting socket for: calendar
              [10.12.2021 22:32.34.262] [LOG]   Starting node helper for: calendar
              [10.12.2021 22:32.34.264] [LOG]   Connecting socket for: newsfeed
              [10.12.2021 22:32.34.266] [LOG]   Starting node helper for: newsfeed
              [10.12.2021 22:32.34.268] [LOG]   Sockets connected & modules started ...
              /home/michel/MagicMirror/node_modules/electron/dist/electron exited with signal SIGSEGV
              npm ERR! code ELIFECYCLE
              npm ERR! errno 1
              npm ERR! magicmirror@2.17.1 start: `DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js`
              npm ERR! Exit status 1
              npm ERR! 
              npm ERR! Failed at the magicmirror@2.17.1 start script.
              npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
              
              npm ERR! A complete log of this run can be found in:
              npm ERR!     /home/michel/.npm/_logs/2021-12-10T21_32_34_516Z-debug.log
              michel@magicmirror:~/MagicMirror$ 
              

              Found this somewhere:

              michel@magicmirror:~/MagicMirror$ ps -u $(id -u) -o pid= \
              >     | xargs -I PID -r cat /proc/PID/environ 2> /dev/null \
              >     | tr '\0' '\n' \
              >     | grep ^DISPLAY=: \
              >     | sort -u
              DISPLAY=:0
              michel@magicmirror:~/MagicMirror$ 
              
              S 1 Reply Last reply Reply Quote 0
              • S Offline
                sdetweil @michelw
                last edited by

                @michelw xwindows has logical displays, using numbers for the ‘identifiet’

                :0

                etc…

                some systems use different numbering

                my zorin system uses :10

                electron expects that I’d to be in the DISPLAY environment variable

                so, open a terminal window and do
                env

                show the result

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                M 1 Reply Last reply Reply Quote 0
                • M Offline
                  michelw @sdetweil
                  last edited by michelw

                  @sdetweil said in OrangePi Zero 2 installation issues:

                  env

                  michel@orangepizero2:~$ env
                  SHELL=/bin/bash
                  LANGUAGE=en_US.UTF-8
                  PWD=/home/michel
                  LOGNAME=michel
                  XDG_SESSION_TYPE=tty
                  HOME=/home/michel
                  LANG=en_US.UTF-8
                  LS_COLORS=rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.zst=01;31:*.tzst=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.wim=01;31:*.swm=01;31:*.dwm=01;31:*.esd=01;31:*.jpg=01;35:*.jpeg=01;35:*.mjpg=01;35:*.mjpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36:
                  SSH_CONNECTION=192.168.207.6 61754 192.168.207.243 22
                  XDG_SESSION_CLASS=user
                  TERM=xterm-256color
                  USER=michel
                  SHLVL=1
                  LC_MESSAGES=en_US.UTF-8
                  XDG_SESSION_ID=4
                  LC_CTYPE=UTF-8
                  XDG_RUNTIME_DIR=/run/user/1001
                  SSH_CLIENT=192.168.207.6 61754 22
                  LC_ALL=en_US.UTF-8
                  PATH=/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games
                  MAIL=/var/mail/michel
                  SSH_TTY=/dev/pts/0
                  _=/usr/bin/env
                  michel@orangepizero2:~$ 
                  
                  S 1 Reply Last reply Reply Quote 0
                  • S Offline
                    sdetweil @michelw
                    last edited by

                    @michelw that was a window opened via the desktop right?

                    Sam

                    How to add modules

                    learning how to use browser developers window for css changes

                    M 1 Reply Last reply Reply Quote 0
                    • M Offline
                      michelw @sdetweil
                      last edited by

                      @sdetweil

                      Not sure I understand what you mean. I’m doing all of this using ssh.

                      M 2 Replies Last reply Reply Quote 0
                      • M Offline
                        michelw @michelw
                        last edited by

                        This post is deleted!
                        1 Reply Last reply Reply Quote 0
                        • M Offline
                          michelw @michelw
                          last edited by michelw

                          @michelw said in OrangePi Zero 2 installation issues:

                          @sdetweil

                          Not sure I understand what you mean. I’m doing all of this using ssh.

                          Does this help?

                          michel@orangepizero2:~$ cat /etc/X11/xorg.conf.d/01-orangepi-defaults.conf 
                          Section "Monitor"
                          	Identifier		"Monitor0"
                          	Option			"DPMS" "false"
                          EndSection
                          Section "ServerFlags"
                          	Option			"BlankTime" "0"
                          	Option			"StandbyTime" "0"
                          	Option			"SuspendTime" "0"
                          	Option			"OffTime" "0"
                          EndSection
                          # rotate the screen
                          Section "Device"
                              Identifier "default"
                              Driver "fbdev"
                              Option "Rotate" "CCW"
                          EndSection
                          

                          I just added the rotation part and it rotated the desktop. The identifier seems to be " Monitor0"
                          IMG_5509.JPG

                          S 1 Reply Last reply Reply Quote 0
                          • S Offline
                            sdetweil @michelw
                            last edited by sdetweil

                            @michelw ok, using command line

                            cd ~/MagicMirror
                            export DISPLAY=Monitor0
                            npm start
                            

                            if that works then edit installers/mm.sh and add that export before the npm start

                            then pm2 start should work

                            Sam

                            How to add modules

                            learning how to use browser developers window for css changes

                            M 1 Reply Last reply Reply Quote 0
                            • M Offline
                              michelw @sdetweil
                              last edited by

                              @sdetweil said in OrangePi Zero 2 installation issues:

                              npm start

                              michel@orangepizero2:~/MagicMirror$ export DISPLAY=Monitor0
                              michel@orangepizero2:~/MagicMirror$ npm start
                              
                              > magicmirror@2.17.1 start /home/michel/MagicMirror
                              > DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js
                              
                              [10.12.2021 23:32.41.725] [LOG]   Starting MagicMirror: v2.17.1
                              [10.12.2021 23:32.41.743] [LOG]   Loading config ...
                              [10.12.2021 23:32.41.757] [LOG]   Loading module helpers ...
                              [10.12.2021 23:32.41.762] [LOG]   No helper found for module: alert.
                              [10.12.2021 23:32.41.800] [LOG]   Initializing new module helper ...
                              [10.12.2021 23:32.41.804] [LOG]   Module helper loaded: updatenotification
                              [10.12.2021 23:32.41.807] [LOG]   No helper found for module: clock.
                              [10.12.2021 23:32.42.141] [LOG]   Initializing new module helper ...
                              [10.12.2021 23:32.42.144] [LOG]   Module helper loaded: calendar
                              [10.12.2021 23:32.42.146] [LOG]   No helper found for module: compliments.
                              [10.12.2021 23:32.42.149] [LOG]   No helper found for module: weather.
                              [10.12.2021 23:32.42.196] [LOG]   Initializing new module helper ...
                              [10.12.2021 23:32.42.198] [LOG]   Module helper loaded: newsfeed
                              [10.12.2021 23:32.42.200] [LOG]   All module helpers loaded.
                              [10.12.2021 23:32.42.420] [LOG]   Starting server on port 8080 ... 
                              [10.12.2021 23:32.42.453] [LOG]   Server started ...
                              [10.12.2021 23:32.42.456] [LOG]   Connecting socket for: updatenotification
                              [10.12.2021 23:32.42.459] [LOG]   Connecting socket for: calendar
                              [10.12.2021 23:32.42.461] [LOG]   Starting node helper for: calendar
                              [10.12.2021 23:32.42.463] [LOG]   Connecting socket for: newsfeed
                              [10.12.2021 23:32.42.465] [LOG]   Starting node helper for: newsfeed
                              [10.12.2021 23:32.42.467] [LOG]   Sockets connected & modules started ...
                              The futex facility returned an unexpected error code.
                              /home/michel/MagicMirror/node_modules/electron/dist/electron exited with signal SIGABRT
                              npm ERR! code ELIFECYCLE
                              npm ERR! errno 1
                              npm ERR! magicmirror@2.17.1 start: `DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js`
                              npm ERR! Exit status 1
                              npm ERR! 
                              npm ERR! Failed at the magicmirror@2.17.1 start script.
                              npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
                              
                              npm ERR! A complete log of this run can be found in:
                              npm ERR!     /home/michel/.npm/_logs/2021-12-10T23_32_42_717Z-debug.log
                              michel@orangepizero2:~/MagicMirror$ 
                              
                              
                              S 1 Reply Last reply Reply Quote 0
                              • S Offline
                                sdetweil @michelw
                                last edited by

                                @michelw so, no

                                Sam

                                How to add modules

                                learning how to use browser developers window for css changes

                                S 1 Reply Last reply Reply Quote 0
                                • S Offline
                                  sdetweil @sdetweil
                                  last edited by

                                  @michelw does chromium work?

                                  Sam

                                  How to add modules

                                  learning how to use browser developers window for css changes

                                  S M 2 Replies Last reply Reply Quote 0
                                  • S Offline
                                    sdetweil @sdetweil
                                    last edited by

                                    @michelw armbian on pi
                                    https://9to5linux.com/first-look-at-armbian-linux-on-raspberry-pi-4

                                    Sam

                                    How to add modules

                                    learning how to use browser developers window for css changes

                                    M 2 Replies Last reply Reply Quote 0
                                    • M Offline
                                      michelw @sdetweil
                                      last edited by

                                      @sdetweil

                                      Yes chromium seems to work. I installed vnc server since this SBC is in my mirror and I have now way to attach a mouse.

                                      6ac12b81-4e47-459b-b49e-d7db5645cdef-image.png

                                      1 Reply Last reply Reply Quote 0
                                      • M Offline
                                        michelw @sdetweil
                                        last edited by

                                        @sdetweil

                                        Not sure what you are trying to say by pointing me to the 9to5 article. Is there something relevant in there i missed? :)

                                        S 1 Reply Last reply Reply Quote 0
                                        • M Offline
                                          michelw @sdetweil
                                          last edited by michelw

                                          @sdetweil

                                          I just played around with the DISPLAY parameter and when setting:

                                          michel@orangepizero2:~/MagicMirror$ export DISPLAY=:1
                                          michel@orangepizero2:~/MagicMirror$ npm start
                                          
                                          > magicmirror@2.17.1 start /home/michel/MagicMirror
                                          > DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js
                                          
                                          [11.12.2021 09:15.21.920] [LOG]   Starting MagicMirror: v2.17.1
                                          [11.12.2021 09:15.21.937] [LOG]   Loading config ...
                                          [11.12.2021 09:15.21.952] [LOG]   Loading module helpers ...
                                          [11.12.2021 09:15.21.957] [LOG]   No helper found for module: alert.
                                          [11.12.2021 09:15.21.994] [LOG]   Initializing new module helper ...
                                          [11.12.2021 09:15.21.998] [LOG]   Module helper loaded: updatenotification
                                          [11.12.2021 09:15.22.001] [LOG]   No helper found for module: clock.
                                          [11.12.2021 09:15.22.350] [LOG]   Initializing new module helper ...
                                          [11.12.2021 09:15.22.353] [LOG]   Module helper loaded: calendar
                                          [11.12.2021 09:15.22.355] [LOG]   No helper found for module: compliments.
                                          [11.12.2021 09:15.22.358] [LOG]   No helper found for module: weather.
                                          [11.12.2021 09:15.22.404] [LOG]   Initializing new module helper ...
                                          [11.12.2021 09:15.22.406] [LOG]   Module helper loaded: newsfeed
                                          [11.12.2021 09:15.22.408] [LOG]   All module helpers loaded.
                                          [11.12.2021 09:15.22.633] [LOG]   Starting server on port 8080 ... 
                                          [11.12.2021 09:15.22.669] [LOG]   Server started ...
                                          [11.12.2021 09:15.22.672] [LOG]   Connecting socket for: updatenotification
                                          [11.12.2021 09:15.22.676] [LOG]   Connecting socket for: calendar
                                          [11.12.2021 09:15.22.678] [LOG]   Starting node helper for: calendar
                                          [11.12.2021 09:15.22.680] [LOG]   Connecting socket for: newsfeed
                                          [11.12.2021 09:15.22.683] [LOG]   Starting node helper for: newsfeed
                                          [11.12.2021 09:15.22.685] [LOG]   Sockets connected & modules started ...
                                          [11.12.2021 09:15.23.736] [LOG]   Launching application.
                                          [11.12.2021 09:15.29.501] [LOG]   Create new calendarfetcher for url: http://www.calendarlabs.com/ical-calendar/ics/76/US_Holidays.ics - Interval: 300000
                                          [11.12.2021 09:15.29.593] [LOG]   Create new newsfetcher for url: https://rss.nytimes.com/services/xml/rss/nyt/HomePage.xml - Interval: 300000
                                          [11.12.2021 09:15.29.661] [INFO]  Checking git for module: default
                                          [11.12.2021 09:15.31.393] [INFO]  Calendar-Fetcher: Broadcasting 10 events.
                                          [11.12.2021 09:15.31.553] [INFO]  Newsfeed-Fetcher: Broadcasting 58 items.
                                          
                                          

                                          I get the magic mirror in the VNC session (but not on the monitor)
                                          0f3dacac-c919-4a08-856e-849e5e76708b-image.png

                                          So this seems to be related to the output somehow.

                                          S 1 Reply Last reply Reply Quote 0
                                          • S Offline
                                            sdetweil @michelw
                                            last edited by

                                            @michelw no, but I can try armbian on my pi now

                                            Sam

                                            How to add modules

                                            learning how to use browser developers window for css changes

                                            1 Reply Last reply Reply Quote 0

                                            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                                            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                                            With your input, this post could be even better 💗

                                            Register Login
                                            • 1
                                            • 2
                                            • 3
                                            • 1 / 3
                                            • 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