Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
andersidahl opened this issue Jan 6, 2024 · 11 comments
Closed

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

andersidahl opened this issue Jan 6, 2024 · 11 comments

Comments

@andersidahl
Copy link

andersidahl commented Jan 6, 2024

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
Copy link
Owner

Bee-Mar commented Jan 6, 2024

@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
Copy link
Author

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
Copy link
Owner

Bee-Mar commented Jan 6, 2024

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
Copy link
Author

image
MM is working as usual.

MMPM does not respond in SSH either:
image

@Bee-Mar
Copy link
Owner

Bee-Mar commented Jan 6, 2024

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

@Bee-Mar
Copy link
Owner

Bee-Mar commented Jan 6, 2024

I'd recommend a clean reinstall.

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

@andersidahl
Copy link
Author

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
Copy link
Owner

Bee-Mar commented Jan 6, 2024

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

@Bee-Mar
Copy link
Owner

Bee-Mar commented Jan 6, 2024

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

@andersidahl
Copy link
Author

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
Copy link
Author

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?

@Bee-Mar Bee-Mar closed this as completed Jan 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants