MagicMirror² v2.13.0 is available! For more information about this release, check out this topic.

gui not autologging in and pm2 is not starting automatically



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


  • Project Sponsor

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


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


Log in to reply