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 10.3k 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 ok, you are running the desktop graphical version of the OS, right? you must , browser draws in graphics mode.

      the number next to uptim ein the pm2 status is the restart count…

      so, pm2 stop all
      pm2 flush
      pm2 start 0

      wait 15 seconds

      then pm2 logs --lines=100

      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

        @michelw mm installs and runs on other aarch64 systems… , ubuntu 64 on arm, Jetson Nano and Raspi with the 64bit beta OS…

        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 michelw

          @sdetweil said in OrangePi Zero 2 installation issues:

          @michelw ok, you are running the desktop graphical version of the OS, right? you must , browser draws in graphics mode.

          Dang, that might be the issue…
          I’ve installed this image now: https://redirect.armbian.com/orangepizero2/Buster_legacy then. That one should have desktop. https://www.armbian.com/orange-pi-zero-2/

          Ran your script again, but now it has issues with the missing chromium browser…

          touch: cannot touch '/etc/chromium-browser/customizations/01-disable-update-check': No such file or directory
          tee: /etc/chromium-browser/customizations/01-disable-update-check: No such file or directory
          
          install starting  - Fri Dec 10 21:09:23 CET 2021
          installing on aarch64 processor system
          the os is Distributor ID: Debian Description: Debian GNU/Linux 10 (buster) Release: 10 Codename: buster
          Installing helper tools ...
          Reading package lists...
          Building dependency tree...
          Reading state information...
          build-essential is already the newest version (12.6).
          curl is already the newest version (7.64.0-4+deb10u2).
          git is already the newest version (1:2.20.1-2+deb10u3).
          pv is already the newest version (1.6.6-1).
          unzip is already the newest version (6.0-23+deb10u2).
          wget is already the newest version (1.20.1-1.1).
          0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
          Updating packages ...
          Hit:1 http://security.debian.org buster/updates InRelease Hit:2 http://deb.debian.org/debian buster InRelease Hit:3 http://deb.debian.org/debian buster-updates InRelease Hit:4 http://deb.debian.org/debian buster-backports InRelease Hit:5 http://armbian.12z.eu/apt buster InRelease Reading package lists...
          apt-get update  completed ok
          apt-get upgrade  started
          apt upgrade result =rc=0 Reading package lists...
          Building dependency tree...
          Reading state information...
          Calculating upgrade...
          0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
          Check current Node installation ...
          Node.js is not installed.
          Installing Node.js ...
          Node release info = ## Installing the NodeSource Node.js 14.x repo... ## Populating apt-get cache... + apt-get update Hit:1 http://deb.debian.org/debian buster InRelease Hit:2 http://deb.debian.org/debian buster-updates InRelease Hit:3 http://security.debian.org buster/updates InRelease Hit:4 http://deb.debian.org/debian buster-backports InRelease Hit:5 http://armbian.12z.eu/apt buster InRelease Reading package lists... ## Confirming "buster" is supported... + curl -sLf -o /dev/null 'https://deb.nodesource.com/node_14.x/dists/buster/Release' ## Adding the NodeSource signing key to your keyring... + curl -s https://deb.nodesource.com/gpgkey/nodesource.gpg.key | gpg --dearmor | tee /usr/share/keyrings/nodesource.gpg >/dev/null ## Creating apt sources list file for the NodeSource Node.js 14.x repo... + echo 'deb [signed-by=/usr/share/keyrings/nodesource.gpg] https://deb.nodesource.com/node_14.x buster main' > /etc/apt/sources.list.d/nodesource.list + echo 'deb-src [signed-by=/usr/share/keyrings/nodesource.gpg] https://deb.nodesource.com/node_14.x buster main' >> /etc/apt/sources.list.d/nodesource.list ## Running `apt-get update` for you... + apt-get update Hit:1 http://security.debian.org buster/updates InRelease Hit:2 http://deb.debian.org/debian buster InRelease Hit:3 http://deb.debian.org/debian buster-updates InRelease Hit:4 http://deb.debian.org/debian buster-backports InRelease Get:5 https://deb.nodesource.com/node_14.x buster InRelease [4,584 B] Hit:6 http://xogium.performanceservers.nl/apt buster InRelease Get:7 https://deb.nodesource.com/node_14.x buster/main armhf Packages [779 B] Get:8 https://deb.nodesource.com/node_14.x buster/main arm64 Packages [770 B] Fetched 6,133 B in 3s (1,867 B/s) Reading package lists... ## Run `sudo apt-get install -y nodejs` to install Node.js 14.x and npm ## You may also need development tools to build native addons: sudo apt-get install gcc g++ make ## To install the Yarn package manager, run: curl -sL https://dl.yarnpkg.com/debian/pubkey.gpg | gpg --dearmor | sudo tee /usr/share/keyrings/yarnkey.gpg >/dev/null echo "deb [signed-by=/usr/share/keyrings/yarnkey.gpg] https://dl.yarnpkg.com/debian stable main" | sudo tee /etc/apt/sources.list.d/yarn.list sudo apt-get update && sudo apt-get install yarn
          v14.18.2
          Node.js installation Done! version=v14.18.2
          Check current NPM installation ...
          NPM currently installed. Checking version number.
          Minimum npm version: V6.0.0
          Installed npm version: V6.14.15
          No npm upgrade necessary.
          Cloning MagicMirror ...
          Cloning MagicMirror Done!
          Installing dependencies ...
          > electron@13.6.3 postinstall /home/michel/MagicMirror/node_modules/electron > node install.js > magicmirror@2.17.1 install /home/michel/MagicMirror > echo "Installing vendor files ... " && cd vendor && npm install --loglevel=error Installing vendor files ... > @fortawesome/fontawesome-free@5.15.4 postinstall /home/michel/MagicMirror/vendor/node_modules/@fortawesome/fontawesome-free > node attribution.js Font Awesome Free 5.15.4 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) added 9 packages from 17 contributors and audited 9 packages in 10.954s found 0 vulnerabilities > magicmirror@2.17.1 postinstall /home/michel/MagicMirror > npm run install-fonts && echo "MagicMirror installation finished successfully! " > magicmirror@2.17.1 install-fonts /home/michel/MagicMirror > echo "Installing fonts ... " && cd fonts && npm install --loglevel=error Installing fonts ... added 1 package from 1 contributor and audited 1 package in 2.736s found 0 vulnerabilities MagicMirror installation finished successfully! added 292 packages from 243 contributors and audited 923 packages in 174.077s 19 packages are looking for funding run `npm fund` for details found 0 vulnerabilities
          Dependencies installation Done!
          fixing sandbox permissions
          setting up initial config.js
          Check plymouth installation ...
          plymouth is not installed.
          install and setup pm2
          pm2 not installed, installing
          pm2 install result npm WARN deprecated uuid@3.4.0: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details. /usr/bin/pm2 -> /usr/lib/node_modules/pm2/bin/pm2 /usr/bin/pm2-docker -> /usr/lib/node_modules/pm2/bin/pm2-docker /usr/bin/pm2-dev -> /usr/lib/node_modules/pm2/bin/pm2-dev /usr/bin/pm2-runtime -> /usr/lib/node_modules/pm2/bin/pm2-runtime npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@~2.3.2 (node_modules/pm2/node_modules/chokidar/node_modules/fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.3.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"arm64"}) + pm2@5.1.2 added 180 packages from 200 contributors in 48.379s
          get the pm2 platform specific startup command
          startup command = sudo env PATH=$PATH:/usr/bin:/bin /usr/lib/node_modules/pm2/bin/pm2 startup systemd -u michel --hp /home/michel
          
                                  -------------
          
          __/\\\\\\\\\\\\\____/\\\\____________/\\\\____/\\\\\\\\\_____
           _\/\\\/////////\\\_\/\\\\\\________/\\\\\\__/\\\///////\\\___
            _\/\\\_______\/\\\_\/\\\//\\\____/\\\//\\\_\///______\//\\\__
             _\/\\\\\\\\\\\\\/__\/\\\\///\\\/\\\/_\/\\\___________/\\\/___
              _\/\\\/////////____\/\\\__\///\\\/___\/\\\________/\\\//_____
               _\/\\\_____________\/\\\____\///_____\/\\\_____/\\\//________
                _\/\\\_____________\/\\\_____________\/\\\___/\\\/___________
                 _\/\\\_____________\/\\\_____________\/\\\__/\\\\\\\\\\\\\\\_
                  _\///______________\///______________\///__\///////////////__
          
          
                                    Runtime Edition
          
                  PM2 is a Production Process Manager for Node.js applications
                               with a built-in Load Balancer.
          
                          Start and Daemonize any application:
                          $ pm2 start app.js
          
                          Load Balance 4 instances of api.js:
                          $ pm2 start api.js -i 4
          
                          Monitor in production:
                          $ pm2 monitor
          
                          Make pm2 auto-boot at server restart:
                          $ pm2 startup
          
                          To go further checkout:
                          http://pm2.io/
          
          
                                  -------------
          
          [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=michel
          LimitNOFILE=infinity
          LimitNPROC=infinity
          LimitCORE=infinity
          Environment=PATH=$PATH:/usr/bin:/bin:/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin
          Environment=PM2_HOME=/home/michel/.pm2
          PIDFile=/home/michel/.pm2/pm2.pid
          Restart=on-failure
          
          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-michel.service
          Command list
          [ 'systemctl enable pm2-michel' ]
          [PM2] Writing init configuration in /etc/systemd/system/pm2-michel.service
          [PM2] Making script booting at startup...
          [PM2] [-] Executing: systemctl enable pm2-michel...
          [PM2] [v] Command successfully executed.
          +---------------------------------------+
          [PM2] Freeze a process list on reboot via:
          $ pm2 save
          
          [PM2] Remove init script via:
          $ pm2 unstartup systemd
          pm2 startup command done
          configure the pm2 config file for MagicMirror
          the user is not pi
          change mm.sh
          save copy of mm.sh
          change relative home path to hard coded path
          change pm2_MagicMirror.json
          now using this config file pm2_MagicMirror_new.json
          start MagicMirror via pm2 now
          save MagicMirror pm2 config now
          stop MagicMirror via pm2 now
          We're ready! Run pm2 start MagicMirror from the ~/MagicMirror directory to start your MagicMirror.
          install completed - Fri Dec 10 21:15:14 CET 2021
          
          

          I really need this to run on the orange pi zero 2 as I have no other option available. :(

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

            @michelw that chrome issue is nothing. try to disable the click to update, if u have no mouse! duh.

            but won’t affect you

            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

              @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
                        • 1
                        • 2
                        • 3
                        • 4
                        • 5
                        • 2 / 5
                        • 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