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.

    pm2 logs mm error

    Scheduled Pinned Locked Moved Troubleshooting
    5 Posts 2 Posters 2.2k 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.
    • michael24hM Offline
      michael24h
      last edited by

      Hi all,

      I have an issue with the MM-PIR Sensor. I get alltime this error in pm2 log
      I have the original from @paviro or the modification,
      and I installed Pir-Sensor @cowboysdude

      0|mm | > magicmirror@2.1.2 start /home/pi/MagicMirror
      0|mm | > sh run-start.sh
      0|mm | Starting MagicMirror: v2.1.2
      0|mm | Loading config …
      0|mm | Loading module helpers …
      0|mm | Initializing new module helper …
      0|mm | Module helper loaded: MMM-Remote-Control
      0|mm | Initializing new module helper …
      0|mm | Module helper loaded: DailyXKCD
      0|mm | No helper found for module: alert.
      0|mm | Initializing new module helper …
      0|mm | Module helper loaded: updatenotification
      0|mm | No helper found for module: clock.
      0|mm | No helper found for module: calendar_monthly.
      0|mm | No helper found for module: currentweather.
      0|mm | Initializing new module helper …
      0|mm | Module helper loaded: MMM-WunderGround
      0|mm | No helper found for module: weatherforecast.
      0|mm | Initializing new module helper …
      0|mm | Module helper loaded: MMM-SystemStats
      0|mm | Initializing new module helper …
      0|mm | Module helper loaded: MMM-AlexaPi
      0|mm | No helper found for module: MMM-AlarmClock.
      0|mm | No helper found for module: helloworld.
      0|mm | Initializing new module helper …
      0|mm | Module helper loaded: newsfeed
      0|mm | No helper found for module: MMM-SimpleLogo.
      0|mm | No helper found for module: MMM-Globe.
      0|mm | Initializing new module helper …
      0|mm | Module helper loaded: MMM-Traffic
      0|mm | No helper found for module: MMM-iFrameReload.
      0|mm | Initializing new module helper …
      0|mm | Module helper loaded: MMM-IMDBComingSoon
      0|mm | Initializing new module helper …
      0|mm | Module helper loaded: MMM-PIR-Sensor
      0|mm | All module helpers loaded.
      0|mm | Starting server on port 8080 …
      0|mm | Server started …
      0|mm | Connecting socket for: MMM-Remote-Control
      0|mm | Starting node helper for: MMM-Remote-Control
      0|mm | Connecting socket for: DailyXKCD
      0|mm | Starting node helper: DailyXKCD
      0|mm | Connecting socket for: updatenotification
      0|mm | Connecting socket for: MMM-WunderGround
      0|mm | MMM-WunderGround helper started …
      0|mm | Connecting socket for: MMM-SystemStats
      0|mm | Connecting socket for: MMM-AlexaPi
      0|mm | Starting node helper for: MMM-AlexaPi
      0|mm | Connecting socket for: newsfeed
      0|mm | Starting module: newsfeed
      0|mm | Connecting socket for: MMM-Traffic
      0|mm | MMM-Traffic helper started …
      0|mm | Connecting socket for: MMM-IMDBComingSoon
      0|mm | Starting module helper: MMM-IMDBComingSoon
      0|mm | Connecting socket for: MMM-PIR-Sensor
      0|mm | Sockets connected & modules started …
      0|mm | (node:2320) DeprecationWarning: sys is deprecated. Use util instead.
      0|mm | Launching application.
      0|mm | ERROR! Could not find main module js file.
      0|mm | Notification: GET_COMIC Payload: [object Object]
      0|mm | GET_WUNDERGROUND
      0|mm | Create new news fetcher for url: https://www.nasa.gov/rss/dyn/solar_system.rss - Interval: 300000
      0|mm | Create new news fetcher for url: http://feeds.reuters.com/reuters/scienceNews - Interval: 300000
      0|mm | Create new news fetcher for url: http://www.nytimes.com/services/xml/rss/nyt/HomePage.xml - Interval: 300000
      0|mm | Create new news fetcher for url: http://feeds.bbci.co.uk/news/rss.xml?edition=uk - Interval: 300000

      Can anybody help me?

      Regards Michael

      1 Reply Last reply Reply Quote 0
      • cowboysdudeC Offline
        cowboysdude Module Developer
        last edited by

        The only thing I can tell you is if you installed the one I had it has nothing to do with MagicMirror so you won’t get an error from that…

        Looks like your error right there:

        0|mm | (node:2320) DeprecationWarning: sys is deprecated. Use util instead.
        0|mm | Launching application.
        0|mm | ERROR! Could not find main module js file.
        

        I would remove the PIR sensor module and test again…

        1 Reply Last reply Reply Quote 0
        • michael24hM Offline
          michael24h
          last edited by

          will do, thanks

          1 Reply Last reply Reply Quote 1
          • michael24hM Offline
            michael24h
            last edited by

            after removing modules, and reboot

            0|mm | (node:1893) DeprecationWarning: sys is deprecated. Use util instead.
            0|mm | Launching application.
            0|mm | ERROR! Could not find main module js file.
            0|mm | Notification: GET_COMIC Payload: [object Object]
            0|mm | GET_WUNDERGROUND

            1 Reply Last reply Reply Quote 0
            • cowboysdudeC Offline
              cowboysdude Module Developer
              last edited by

              @michael24h said in pm2 logs mm error:

              0|mm | ERROR! Could not find main module js file.

              Check this:

              https://github.com/MichMich/MagicMirror/issues/735

              1 Reply Last reply Reply Quote 0
              • 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