MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord

    UNSOLVED gui not autologging in and pm2 is not starting automatically

    Troubleshooting
    2
    3
    1454
    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
      mdissel last edited by

      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)

      bhepler 1 Reply Last reply Reply Quote 0
      • bhepler
        bhepler Module Developer @mdissel last edited by

        @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 Reply Quote 0
        • M
          mdissel @bhepler last edited by

          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
          • First post
            Last post
          Enjoying MagicMirror? Please consider a donation!
          MagicMirror created by Michael Teeuw.
          Forum managed by Paul-Vincent Roll and Rodrigo Ramírez Norambuena.
          This forum is using NodeBB as its core | Contributors
          Contact | Privacy Policy