WLAN-Pi / wlanpi-webui

a web app for the WLAN Pi
BSD 3-Clause "New" or "Revised" License
1 stars 1 forks source link

Running updates on neo2 breaks wlanpi-webui #35

Open mir2323 opened 1 year ago

mir2323 commented 1 year ago

Dear Developer,

I am currently facing an issue with the Gunicorn service while attempting to start the wlanpi-webui application. The error message I receive is as follows:

Aug 05 19:03:13 wlanpi systemd[1]: Starting Gunicorn daemon to serve wlanpi-webui...
Aug 05 19:03:13 wlanpi gunicorn[5048]: Traceback (most recent call last):
Aug 05 19:03:13 wlanpi gunicorn[5048]:   File "/opt/wlanpi-webui/bin/gunicorn", line 5, in <module>
Aug 05 19:03:13 wlanpi gunicorn[5048]:     from gunicorn.app.wsgiapp import run
Aug 05 19:03:13 wlanpi gunicorn[5048]: ModuleNotFoundError: No module named 'gunicorn'
Aug 05 19:03:13 wlanpi systemd[1]: wlanpi-webui.service: Main process exited, code=exited, status=1/FAILURE
Aug 05 19:03:13 wlanpi systemd[1]: wlanpi-webui.service: Failed with result 'exit-code'.
Aug 05 19:03:13 wlanpi systemd[1]: Failed to start Gunicorn daemon to serve wlanpi-webui.

It appears that the Python module 'gunicorn' is not being found when the Gunicorn service is started. I have already attempted to install the 'gunicorn' module, but the issue persists.

Could you please investigate this matter further and provide a solution to help me start the Gunicorn service successfully for the wlanpi-webui application?

Thank you for your prompt attention to this matter. I greatly appreciate your expertise and look forward to your assistance.

Best regards Mirwaiss

joshschmelzle commented 1 year ago

Hi Mirwaiss, which WLAN Pi platform are you on?

mir2323 commented 1 year ago

Hi Josh,

Thank you for your reply. Well, I'm using the NanoPi Neo2 and I have the same issue with the Nanopi Neo. After running the 'sudo apt upgrade' command, everything seems to work, except for the 'wlanpi-webui.service' which isn't functioning.

Best regards Mirwaiss

michal-ambroziak commented 10 months ago

A fresh install of wlanpi-neo2-v2.1.3-231111, then an update of all packages where wlanpi-webui 1.0.0-b3-2 updates to 1.0.2b4 and the problem appears. I tried to downgrade wlanpi-webui, but that didn't solve the problem.

dangelo29 commented 3 months ago

Hi. Is there any update regarding this issue? It's still happening on wlanpi-neo2-v2.1.5-240410, exactly like @mir2323 and @michal-ambroziak mentioned.

joshschmelzle commented 3 months ago

This is a known issue on the NEO2 platform. Unfortunately, I currently don't have the time or capacity to work on this issue. If you're interested in contributing a fix, I would be happy to review a pull request or assist where I can.

ogermer commented 1 month ago

Same problem here. Yes - I bought a NEO from Aliexpress to make my first steps with wlanpi - considering future upgrade to newer hardware. Problem description: Installed wlanpi-neo-v2.1.5-240411.img System boots fine. Can login. Trying to update via web UI - result is error message regarding Gunicorn. Tried sudo apt get update and sudo apt get upgrade Resulting in error message regarding not being able to create a symlink for /etc/nginx/sites-enabled/wlanpi_webui.conf In another attempt the same message appeared for/etc/nginx/sites-enabled/wlanpi_speedtest.conf Tried to sudo rm both files and running sudo apt install wlanpi-webui - but without success. My prime objective is to be able to install updates on the wlanpi without bricking it. Thanks for looking into it.

joshschmelzle commented 1 month ago

@ogermer thanks for letting us know. We'll try to get to the bottom of this so that at least the webui isn't broken, but can't promise feature enhancements.