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.

    Getting a bunch of erros and hangups on a new installation

    Scheduled Pinned Locked Moved Troubleshooting
    6 Posts 2 Posters 759 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.
    • N Offline
      nakulbende
      last edited by

      Hey all -

      I had a magicmirror running fine for months and months. I then tried to update to recent version. Everything seemed fine at first, but soon started to hangup a lot. I think switching it on and off consistently because of all the hangups caused the SD card to corrupt.

      So, I reinstalled everythign ona fresh card. Unfortunately, I am again getting hangups. Here are some of the errors in my error logs from pm2 folder: What do these individually mean? Is there any other log I can check to help?

      npm ERR! code ELIFECYCLE
      npm ERR! errno 1
      npm ERR! magicmirror@2.11.0 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.11.0 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/pi/.npm/_logs/2020-04-23T14_56_01_628Z-debug.log
      
      [2020-04-24 14:19:30.936] [ERROR]  Calendar Error. Could not fetch calendar:  https://calendar.google.com/calendar/ical/XXXXXgroup.calendar.google.com/private-XXXXX/basic.ics Error: getaddrinfo EAI_AGAIN calendar.google.com
          at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:60:26) {
        errno: 'EAI_AGAIN',
        code: 'EAI_AGAIN',
        syscall: 'getaddrinfo',
        hostname: 'calendar.google.com'
      }
      
      [2020-04-24 14:04:21.702] [ERROR]  TypeError: Cannot read property 'parent' of undefined
          at Function.exports.update (/home/pi/MagicMirror/modules/MMM-Comics/node_modules/cheerio/lib/parse.js:69:26)
          at module.exports (/home/pi/MagicMirror/modules/MMM-Comics/node_modules/cheerio/lib/parse.js:19:11)
          at Function.exports.load (/home/pi/MagicMirror/modules/MMM-Comics/node_modules/cheerio/lib/static.js:27:14)
          at Request._callback (/home/pi/MagicMirror/modules/MMM-Comics/node_helper.js:171:23)
          at self.callback (/home/pi/MagicMirror/node_modules/request/request.js:185:22)
          at Request.emit (events.js:200:13)
          at Request.onRequestError (/home/pi/MagicMirror/node_modules/request/request.js:881:8)
          at ClientRequest.emit (events.js:200:13)
          at TLSSocket.socketErrorListener (_http_client.js:402:9)
          at TLSSocket.emit (events.js:200:13)
      

      During my last restart, I also got a SD card is still busy error on the raspian splash screen - probably again because of constant restarting.

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

        @nakulbende said in Getting a bunch of erros and hangups on a new installation:

        code: ‘EAI_AGAIN’,

        there was a network problem, probably outside your house… it should recover

        TypeError: Cannot read property ‘parent’ of undefined
        MMM-Comics

        this module had an error getting data, and did not handle the error… it most likely WON’T recover by itself
        why it had trouble I cannot tell

        on the MM shutdown? , I would need to see the pm2 logs, --lines=100 (or more)

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        1 Reply Last reply Reply Quote 0
        • N Offline
          nakulbende
          last edited by

          Hello Sam - I have had a lot fo SD card issues lately. Not sure what is going on. I did manage to get the pi restart, my logs might have some private info - i am trying to lean them, but might have left something.

          Sending them you via DM. Stay safe!

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

            @nakulbende i won’t even see the info… and I will destroy the file once we are done…

            I don’t see a DM

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            1 Reply Last reply Reply Quote 0
            • N Offline
              nakulbende
              last edited by

              Hey @sdetweil - I have the power management on wifi turned off. I am not getting complete crash of pi - to the extent that i have to restart, BUT - I am getting a lot of freezes which automatically resolve in a while.

              In the pm2 logs:

              [2020-05-04 03:03:04.470] [ERROR]  Mon May 04 2020 03:03:00 GMT-0900 (Hawaii-Aleutian Daylight Time) - WatchDog: Heartbeat timeout. Frontend might have crashed. Exit now.
              events.js:177
                    throw er; // Unhandled 'error' event
                    ^
              
              Error [ERR_STREAM_DESTROYED]: Cannot call write after a stream was destroyed
                  at doWrite (_stream_writable.js:413:19)
                  at writeOrBuffer (_stream_writable.js:401:5)
                  at Socket.Writable.write (_stream_writable.js:301:11)
                  at Object.con.<computed> [as error] (/home/pi/MagicMirror/node_modules/console-stamp/main.js:148:46)
                  at process.<anonymous> (/home/pi/MagicMirror/js/app.js:40:10)
                  at process.emit (events.js:205:15)
                  at process._fatalException (internal/process/execution.js:146:25)
              npm ERR! code ELIFECYCLE
              npm ERR! errno 7
              npm ERR! magicmirror@2.11.0 start: `DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js`
              npm ERR! Exit status 7
              npm ERR! 
              npm ERR! Failed at the magicmirror@2.11.0 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/pi/.npm/_logs/2020-05-04T12_17_10_505Z-debug.log
              

              Here is the npm error log

              0 info it worked if it ends with ok
              1 verbose cli [ '/usr/bin/node', '/usr/local/bin/npm', 'start' ]
              2 info using npm@6.14.4
              3 info using node@v10.19.0
              4 verbose run-script [ 'prestart', 'start', 'poststart' ]
              5 info lifecycle magicmirror@2.11.0~prestart: magicmirror@2.11.0
              6 info lifecycle magicmirror@2.11.0~start: magicmirror@2.11.0
              7 verbose lifecycle magicmirror@2.11.0~start: unsafe-perm in lifecycle true
              8 verbose lifecycle magicmirror@2.11.0~start: PATH: /usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/home/pi/MagicMirror/node_modules/.bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/games:/usr/games
              9 verbose lifecycle magicmirror@2.11.0~start: CWD: /home/pi/MagicMirror
              10 silly lifecycle magicmirror@2.11.0~start: Args: [ '-c',
              10 silly lifecycle   'DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js' ]
              11 silly lifecycle magicmirror@2.11.0~start: Returned: code: 1  signal: null
              12 info lifecycle magicmirror@2.11.0~start: Failed to exec start script
              13 verbose stack Error: magicmirror@2.11.0 start: `DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js`
              13 verbose stack Exit status 1
              13 verbose stack     at EventEmitter.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:332:16)
              13 verbose stack     at EventEmitter.emit (events.js:198:13)
              13 verbose stack     at ChildProcess.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14)
              13 verbose stack     at ChildProcess.emit (events.js:198:13)
              13 verbose stack     at maybeClose (internal/child_process.js:982:16)
              13 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5)
              14 verbose pkgid magicmirror@2.11.0
              15 verbose cwd /home/pi/MagicMirror
              16 verbose Linux 4.19.97-v7+
              17 verbose argv "/usr/bin/node" "/usr/local/bin/npm" "start"
              18 verbose node v10.19.0
              19 verbose npm  v6.14.4
              20 error code ELIFECYCLE
              21 error errno 1
              22 error magicmirror@2.11.0 start: `DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js`
              22 error Exit status 1
              23 error Failed at the magicmirror@2.11.0 start script.
              23 error This is probably not a problem with npm. There is likely additional logging output above.
              24 verbose exit [ 1, true ]
              
              S 1 Reply Last reply Reply Quote 0
              • S Offline
                sdetweil @nakulbende
                last edited by

                @nakulbende sorry, no idea…

                I spent a year debugging one system, added watchdog, and when watchdog was installed it restarted the system when i t didn’t need to… but there was a few moments of contact lost between front and back end, always recoverable, but watchdog killed the system… every night 4-5 times…

                never did figure it out…

                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 / 1
                • 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