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.

    Issues with pm2 in old mirror

    Scheduled Pinned Locked Moved Unsolved Troubleshooting
    4 Posts 2 Posters 771 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.
    • R Offline
      rmeskill
      last edited by

      Hello all! I’ve an old mirror setup that’s been running stably for about 3 years now, but it stopped working a little while ago. Since I last installed it via the auto-install script and isn’t an option anymore, I thought to start from scratch. I upgraded npm and node to the most current versions, but pm2 is erroring out when trying to launch:

      pi@raspberrypi:~ $ pm2 status
      (node:10537) Warning: Accessing non-existent property 'cat' of module exports inside circular dependency
      (Use `node --trace-warnings ...` to show where the warning was created)
      (node:10537) Warning: Accessing non-existent property 'cd' of module exports inside circular dependency
      (node:10537) Warning: Accessing non-existent property 'chmod' of module exports inside circular dependency
      (node:10537) Warning: Accessing non-existent property 'cp' of module exports inside circular dependency
      

      It looks to me like the node install is broken somehow, but I’ve no idea what might be broken:

      pi@raspberrypi:~ $ node -v
      v16.17.0
      pi@raspberrypi:~ $ npm -v
      8.19.2
      

      Any thoughts?

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

        @rmeskill u probably need to upgrade pm2 as well

        pm2 --help for the syntax, but I think it’s pm2 upgrade

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        1 Reply Last reply Reply Quote 0
        • R Offline
          rmeskill
          last edited by

          @sdetweil said in Issues with pm2 in old mirror:

          pm2 upgrade

          That succeeded but didn’t fix the problem:

          [PM2] Saving current process list...
          [PM2] Stopping PM2...
          [PM2][WARN] No process found
          [PM2] All processes have been stopped and deleted
          [PM2] PM2 stopped
          [PM2] Spawning PM2 daemon with pm2_home=/root/.pm2
          [PM2] Restoring processes located in /root/.pm2/dump.pm2
          >>>>>>>>>> PM2 updated
          ┌──────────┬────┬──────┬─────┬────────┬─────────┬────────┬─────┬─────┬──────┬──────────┐
          │ App name │ id │ mode │ pid │ status │ restart │ uptime │ cpu │ mem │ user │ watching │
          └──────────┴────┴──────┴─────┴────────┴─────────┴────────┴─────┴─────┴──────┴──────────┘
           Use `pm2 show <id|name>` to get more details about an app
          pi@raspberrypi:~/MagicMirror $ pm2 status
          (node:5424) Warning: Accessing non-existent property 'cat' of module exports inside circular dependency
          (Use `node --trace-warnings ...` to show where the warning was created)
          (node:5424) Warning: Accessing non-existent property 'cd' of module exports inside circular dependency
          (node:5424) Warning: Accessing non-existent property 'chmod' of module exports inside circular dependency
          (node:5424) Warning: Accessing non-existent property 'cp' of module exports inside circular dependency
          (node:5424) Warning: Accessing non-existent property 'dirs' of module exports inside circular dependency
          
          S 1 Reply Last reply Reply Quote 0
          • S Offline
            sdetweil @rmeskill
            last edited by

            @rmeskill hm… so, next guess is u uninstall pm2 and reinstall

            I think the command is

            pm2 u startup
            which will return the command to execute

            then to install again u can use my fixuppm2 script
            see
            https://github.com/sdetweil/MagicMirror_scripts

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            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