• 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.

gui not autologging in and pm2 is not starting automatically

Scheduled Pinned Locked Moved Unsolved Troubleshooting
3 Posts 2 Posters 1.6k Views 1 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
    mdissel
    last edited by Dec 17, 2018, 8:44 PM

    I’ve followed the out-of-the-box installation guide, and after a SD card failure restored the backup to a fresh sd-card.
    I’ve reconfigured pm2 to autostart mm, but it seems that pm2 is not starting automatically…
    Other strange thing is that the GUI is not auto-logging in and when manually typing in the password i get “cannot currently show the desktop”…

    so something is wrong with my configuration, manually mm is working fine (using npm start)

    B 1 Reply Last reply Dec 17, 2018, 9:04 PM Reply Quote 0
    • B Offline
      bhepler Module Developer @mdissel
      last edited by Dec 17, 2018, 9:04 PM

      @mdissel - When you installed pm2, did you run the command that it spit out for you? Try running this command: pm2 startup. It will give you a command that you will have to copy & paste and run with the sudo command. Something like this: sudo su -c "env PATH=$PATH:/home/unitech/.nvm/versions/node/v4.3/bin pm2 startup.

      Anyhow, copy & paste that command and see if that solves your problem.

      As for “cannot currently show the desktop”, I’m assuming that you’re working directly on the pi itself and not SSH from another computer. A couple things to check:

      1. You’re running Raspian Stretch, with desktop (not lite).
      2. You ran the system updates as soon as you got the pi connected to the internet (sudo apt-get update && sudo apt-get upgrade -y)
      3. You’re still using the pi user and not some other user account.
      M 1 Reply Last reply Dec 18, 2018, 8:08 AM Reply Quote 0
      • M Offline
        mdissel @bhepler
        last edited by Dec 18, 2018, 8:08 AM

        Thanks for your help! I think if I could solve the not autologging in into the GUI my problem is fixed.
        I’ve started raspi-config and selected auto-login desktop, but after reboot the login form is shown. and when manually typing in the password i get “cannot currently show the desktop”. No password change has occured (the password is accepted in ssh)

        @bhepler said in gui not autologging in and pm2 is not starting automatically:

        @mdissel - When you installed pm2, did you run the command that it spit out for you? Try running this command: pm2 startup. It will give you a command that you will have to copy & paste and run with the sudo command. Something like this: sudo su -c "env PATH=$PATH:/home/unitech/.nvm/versions/node/v4.3/bin pm2 startup.

        Yes, I did.

        Anyhow, copy & paste that command and see if that solves your problem.

        As for “cannot currently show the desktop”, I’m assuming that you’re working directly on the pi itself and not SSH from another computer. A couple things to check:

        1. You’re running Raspian Stretch, with desktop (not lite).

        Yes… it worked at some time,

        1. You ran the system updates as soon as you got the pi connected to the internet (sudo apt-get update && sudo apt-get upgrade -y)

        Yes. I did

        1. You’re still using the pi user and not some other user account.

        It did work with the pi user.

        Thanks again!

        1 Reply Last reply Reply Quote 0
        • 1 / 1
        1 / 1
        • First post
          1/3
          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