Bee-Mar / mmpm

MagicMirror Package Manager
MIT License
203 stars 29 forks source link

BUG: 502 Bad Gateway nginx/1.18.0 after migrating to 4.x.x #160

Closed andersidahl closed 10 months ago

andersidahl commented 10 months ago

Followed the Migrating to MMPM‐4.x.x guide without issues, but now my raspberrypi.local:7890 is returning 502 Bad Gateway nginx/1.18.0.

MMPM was working fine before the upgrade on version 3.x.x. Already tried a couple of reboots of the PI.

Any steps to troubleshoot this?

Bee-Mar commented 10 months ago

@andersidahl this seems like the nginx service is still running. The 4.x.x version of MMPM doesn't use NGINX.

Try running:

sudo systemctl disable --now nginx

You may need to reboot as well just to make sure it's a clean start for the UI. Also, checkout the UI installation portion of the Wiki.

andersidahl commented 10 months ago

Thanks, it did change the error but now it shows from Chrome: error: ERR_CONNECTION_REFUSED Reboot done inbetween and also tried to reinstall.

Bee-Mar commented 10 months ago

Is the UI up and running? You should see it with "pm2 list"

If not, see the directions on how to make sure pm2 restarts the processes you've enabled after reboots in the wiki discussing installation of the UI

andersidahl commented 10 months ago

image MM is working as usual.

MMPM does not respond in SSH either: image

Bee-Mar commented 10 months ago

Do you have the latest version (4.0.4) of MMPM? That bug should be resolved

Bee-Mar commented 10 months ago

I'd recommend a clean reinstall.

python3 -m pip install --force-reinstall --no-cache-dir --upgrade mmpm

andersidahl commented 10 months ago

That and running the 'mmpm ui install -y' seems to have solved it. The UI is now responding. I see it has gotten a face lift, so will dig into that and check everything else!

Much appreciated for the switft replies and the awsome work you are doing!

Bee-Mar commented 10 months ago

Thanks! If you encounter any bugs, don't hesitate to post them

Bee-Mar commented 10 months ago

Also, if this particular issue is solved, I'll close the issue

andersidahl commented 10 months ago

Yes!

To add for anyone else experiencing this, I also had install the new module with "mmpm install MMM-mmpm" and then add that to the MagicMirror config file.

andersidahl commented 10 months ago

WebUI doesn't start/work after rebooting the PI, but re-running the mmpm ui install -y solves that. Not sure if a bug or if I have to add it to launch somewhere?