• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
MagicMirror Forum
  • Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.

ELIFECYCLE error after fresh install

Scheduled Pinned Locked Moved Solved Troubleshooting
elifecycle
17 Posts 4 Posters 6.1k Views 3 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.
  • M Offline
    MrKnight230
    last edited by Apr 14, 2019, 7:31 AM

    Hi,

    I encountered a problem that was already mentioned in this post:
    https://forum.magicmirror.builders/topic/7183/mm-not-loading-on-startup-or-manually
    But because this thread is unsolved and the last answer is more than 11 Months old I would like to try asking again for answers in this thread.

    I am currently setting my RasPi 3 B up from start.
    I downloaded the newest Raspbian with Desktop, installed and updated it and ran the one-line-command provided on the homepage.
    While installing I got 29 “vulnerabilities” which I solved with this “npm audit” and the recommended commands (somehow it threw these vulnerabilities stuff two times and as far as i understand the audit command only solved the vulnerabilities mentioned the second time).
    But now when trying to start the MagicMirror it tells me, there is an ELIFECYCLE error, probably not a problem with npm (see command prompt output).

    pi@raspberrypi:~/MagicMirror $ DISPLAY=:0 npm start
    
    > magicmirror@2.7.1 start /home/pi/MagicMirror
    > sh run-start.sh
    
    run-start.sh: 1: run-start.sh: ����������������������������������������������������������������������������������������������������������������������������������������������: not found
    npm ERR! file sh
    npm ERR! code ELIFECYCLE
    npm ERR! errno ENOENT
    npm ERR! syscall spawn
    npm ERR! magicmirror@2.7.1 start: `sh run-start.sh`
    npm ERR! spawn ENOENT
    npm ERR! 
    npm ERR! Failed at the magicmirror@2.7.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/pi/.npm/_logs/2019-04-14T07_20_07_609Z-debug.log
    

    As you might notice there is a log created, but somehow the files in this directory change every few seconds so I didn’t manage to attach it. If you could tell me how to get the log I’ll be happy to upload it in this thread!

    I already tried running “DISPLAY:=0 npm start” and “npm start” all with the same result. Furthermore I also tried “npm rebuild” without success.

    I am very thankful for every answer and appreciate your effort!

    Kind regards,

    MrKnight230

    S 1 Reply Last reply Apr 14, 2019, 11:23 AM Reply Quote 0
    • M Offline
      MrKnight230
      last edited by May 6, 2019, 3:36 PM

      Hi guys, I just wanted to say thank you to @bhepler and @sdetweil for trying to help me with this problem.

      In the end I just used a very old backup at first and updated it, which worked fine at first and yesterday I tried setting my RPi up from scratch again and it worked perfectly!

      I’m sorry for anybody who encounters the same error and tries finding answers here, sadly there doesn’t seem to be a perfect solution for this.

      MrKnight230

      1 Reply Last reply Reply Quote 0
      • Z Offline
        Zwirbel
        last edited by Apr 14, 2019, 7:53 AM

        I have the same error from a previously working MagicMirror after rebooting it. I did not change any code, just rebooted the RPi.

        S 1 Reply Last reply Apr 14, 2019, 11:24 AM Reply Quote 0
        • S Offline
          sdetweil @MrKnight230
          last edited by Apr 14, 2019, 11:23 AM

          @MrKnight230 can u show the output of npm -v

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          M 1 Reply Last reply Apr 14, 2019, 11:49 AM Reply Quote 0
          • S Offline
            sdetweil @Zwirbel
            last edited by Apr 14, 2019, 11:24 AM

            @Zwirbel if you go the MagicMirror folder and do a pm2 stop, then npm start what happens?

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            1 Reply Last reply Reply Quote 0
            • M Offline
              MrKnight230 @sdetweil
              last edited by Apr 14, 2019, 11:49 AM

              @sdetweil The Version is 6.4.1

              S 1 Reply Last reply Apr 14, 2019, 11:52 AM Reply Quote 0
              • S Offline
                sdetweil @MrKnight230
                last edited by Apr 14, 2019, 11:52 AM

                @MrKnight230 thx… are u doing this over vnc? also the MM has to be running in graphical mode, unless u are running server only… (DISPLAY 0 will not exist if in VNC or text mode)

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                M 1 Reply Last reply Apr 14, 2019, 11:58 AM Reply Quote 0
                • M Offline
                  MrKnight230 @sdetweil
                  last edited by Apr 14, 2019, 11:58 AM

                  @sdetweil
                  The RasPi is connected via HDMI to a Display and I’m using VNC to configure it. I had a previous install where everything worked with pm2 and manually using the command “npm start”.

                  S 1 Reply Last reply Apr 14, 2019, 12:12 PM Reply Quote 0
                  • S Offline
                    sdetweil @MrKnight230
                    last edited by sdetweil Apr 14, 2019, 12:13 PM Apr 14, 2019, 12:12 PM

                    @MrKnight230 sorry, do not know… there were lots of code changes by modules MM uses and have no control over.

                    I cannot recreate this over ssh…

                    my npm is version 6.9.0

                    you might try

                    npm install -g npm
                    

                    Sam

                    How to add modules

                    learning how to use browser developers window for css changes

                    M 1 Reply Last reply Apr 14, 2019, 1:01 PM Reply Quote 1
                    • M Offline
                      MrKnight230 @sdetweil
                      last edited by Apr 14, 2019, 1:01 PM

                      @sdetweil Thanks for the suggestion, it successfully installed version 6.9.0 but sadly didn’t solve or even change anything about the problem.

                      S 1 Reply Last reply Apr 14, 2019, 1:03 PM Reply Quote 0
                      • S Offline
                        sdetweil @MrKnight230
                        last edited by Apr 14, 2019, 1:03 PM

                        @MrKnight230 ok, i can only think that the vnc start is not working now…

                        Sam

                        How to add modules

                        learning how to use browser developers window for css changes

                        M 1 Reply Last reply Apr 14, 2019, 1:09 PM Reply Quote 0
                        • 1
                        • 2
                        • 1 / 2
                        • First post
                          Last post
                        Enjoying MagicMirror? Please consider a donation!
                        MagicMirror created by Michael Teeuw.
                        Forum managed by Sam, technical setup by Karsten.
                        This forum is using NodeBB as its core | Contributors
                        Contact | Privacy Policy