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.

    Error while starting Magic Mirror

    Scheduled Pinned Locked Moved Development
    29 Posts 2 Posters 8.0k 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.
    • 1 Offline
      1BlauNitrox
      last edited by

      Hey guys,
      I am not able to start my Magic Mirror with the command pm2 start MagicMirror.

      There is always this error:

      [21.01.2022 14:17.17.199] [ERROR] Whoops! There was an uncaught exception...
      [21.01.2022 14:17.17.201] [ERROR] TypeError: Cannot read properties of undefined (reading 'on')
          at Object.<anonymous> (/home/pi/MagicMirror/js/electron.js:104:5)
          at Module._compile (node:internal/modules/cjs/loader:1101:14)
          at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)
          at Module.load (node:internal/modules/cjs/loader:981:32)
          at Function.Module._load (node:internal/modules/cjs/loader:822:12)
          at Object.<anonymous> (/usr/lib/node_modules/pm2/lib/ProcessContainerFork.js:33:23)
          at Module._compile (node:internal/modules/cjs/loader:1101:14)
          at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)
          at Module.load (node:internal/modules/cjs/loader:981:32)
          at Function.Module._load (node:internal/modules/cjs/loader:822:12)
      

      I have only installed Spotify and calender_monthly module. Yesterday everythink works fine, now nothing works without changing anything

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

        @1blaunitrox that looks like a bad position for a module

        module:
        position: ???

        see the list here
        https://docs.magicmirror.builders/modules/configuration.html

        Sam

        How to add modules

        learning how to use browser developers window for css changes

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

          @sdetweil

          This is my config:

          modules: [
          		{
          			module: "alert",
          		},
          		{
          			module: "updatenotification",
          			position: "top_bar"
          		},
          		{
          			module: "clock",
          			position: "top_left"
          		},
          		{
          			module: "calendar_monthly",
          			position: "top_left",
          			config: {
          
          			}
          		},
          		{
          			module: "weather",
          			position: "top_right",
          			config: {
          				weatherProvider: "openweathermap",
          				type: "current",
          				location: "mycity",
          				locationID: "cityID", //ID from http://bulk.openweathermap.org/sample/city.list.json.gz; unzip the gz file and find your city
          				apiKey: "mykey"
          			}
          		},
          		{
          			module: "weather",
          			position: "top_right",
          			header: "Wettervorhersage",
          			config: {
          				weatherProvider: "openweathermap",
          				type: "forecast",
          				location: "mycity",
          				locationID: "cityID", //ID from http://bulk.openweathermap.org/sample/city.list.json.gz; unzip the gz file and find your city
          				apiKey: "mykey"
          			}
          		},
          		{
                      		 module: "MMM-NowPlayingOnSpotify",
           			 position: "bottom_left",
          			 config: {
             				 clientID: "myid",
              				 clientSecret: "myid",
              				 accessToken: "mytoken",
              				 refreshToken: "mytoken"
           			 }
          		},
          	]
          
          S 1 Reply Last reply Reply Quote 0
          • S Offline
            sdetweil @1BlauNitrox
            last edited by

            @1blaunitrox I don’t see a calendar_monthly module

            Sam

            How to add modules

            learning how to use browser developers window for css changes

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

              @sdetweil What do you mean?

              https://github.com/KirAsh4/calendar_monthly/

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

                @1blaunitrox thx… I used your module list and dont see any issues…

                you did npm install in both new module folders, right?

                Sam

                How to add modules

                learning how to use browser developers window for css changes

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

                  @sdetweil no, it worked without

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

                    @1blaunitrox both modules provide a package.json file, which means u must
                    npm install
                    in their folders

                    Sam

                    How to add modules

                    learning how to use browser developers window for css changes

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

                      @1blaunitrox my mistake. I did it

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

                        @1blaunitrox did u update MM?? git pull?

                        did you npm install after?

                        Sam

                        How to add modules

                        learning how to use browser developers window for css changes

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

                          @sdetweil what do you mean “update”. Is there a new update?

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

                            @1blaunitrox just trying to see what changed

                            every 3 months MM releases a new version… 2.18 now… (January 1)

                            Sam

                            How to add modules

                            learning how to use browser developers window for css changes

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

                              @sdetweil I can try to update. Where should I execute the command “git pull”?

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

                                @1blaunitrox use my script

                                see
                                https://github.com/sdetweil/MagicMirror_scripts

                                Sam

                                How to add modules

                                learning how to use browser developers window for css changes

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

                                  @sdetweil I can execute the command from any location?

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

                                    @1blaunitrox which command?

                                    from my scripts? yes, they figure it out

                                    Sam

                                    How to add modules

                                    learning how to use browser developers window for css changes

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

                                      @sdetweil I executed bash -c "$(curl -sL https://raw.githubusercontent.com/sdetweil/MagicMirror_scripts/master/upgrade-script.sh)" but the Error is the same

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

                                        @1blaunitrox notice that upgrade is a TWO part process…

                                        part 1, no parameter, does a TEST to checkout if there are any issues

                                        then

                                        part 2, with apply at the end will DO the upgrade…

                                        looks like you only did part 1

                                        Sam

                                        How to add modules

                                        learning how to use browser developers window for css changes

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

                                          @sdetweil Error.PNG

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

                                            @1blaunitrox ok, so on latest… when did u do that?

                                            Sam

                                            How to add modules

                                            learning how to use browser developers window for css changes

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