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

Updating packages from FPMS may break FPMS #76

Closed
adriangranados opened this issue Sep 23, 2022 · 7 comments
Closed

Updating packages from FPMS may break FPMS #76

adriangranados opened this issue Sep 23, 2022 · 7 comments
Labels
bug Something isn't working

Comments

@adriangranados
Copy link
Member

If one of the packages being updated is wlanpi-fpms, then updating from FPMS causes the update process to be interrupted when the FPMS service is restarted, breaking the package installation. Running sudo dpkg --configure -a from a terminal should resolve the issue.

@adriangranados adriangranados added the bug Something isn't working label Sep 23, 2022
@jmack778
Copy link

I ran this command provided and restarted FPMS and it still fails, any ideas how to correct this?

@jmack778
Copy link

Here is the log status:

Jan 24 16:23:35 mackeypi-53 fpms[6894]: File "/opt/wlanpi-fpms/lib/python3.9/site-packages/gpiozero/pins/init.py", line 432, in
Jan 24 16:23:35 mackeypi-53 fpms[6894]: lambda self, value: self._set_when_changed(value),
Jan 24 16:23:35 mackeypi-53 fpms[6894]: File "/opt/wlanpi-fpms/lib/python3.9/site-packages/gpiozero/pins/pi.py", line 319, in _set_when_changed
Jan 24 16:23:35 mackeypi-53 fpms[6894]: self._enable_event_detect()
Jan 24 16:23:35 mackeypi-53 fpms[6894]: File "/opt/wlanpi-fpms/lib/python3.9/site-packages/gpiozero/pins/rpigpio.py", line 226, in _enable_event_detect
Jan 24 16:23:35 mackeypi-53 fpms[6894]: GPIO.add_event_detect(
Jan 24 16:23:35 mackeypi-53 fpms[6894]: RuntimeError: Failed to add edge detection
Jan 24 16:23:35 mackeypi-53 systemd[1]: wlanpi-fpms.service: Main process exited, code=exited, status=1/FAILURE
Jan 24 16:23:35 mackeypi-53 systemd[1]: wlanpi-fpms.service: Failed with result 'exit-code'.
Jan 24 16:23:35 mackeypi-53 systemd[1]: wlanpi-fpms.service: Consumed 1.042s CPU time.

@adriangranados
Copy link
Member Author

What's the output of uname -a?

@jmack778
Copy link

Linux mackeypi-53 6.7.1-v8-wlanpi+ #1 SMP PREEMPT Mon Jan 22 17:15:38 UTC 2024 aarch64 GNU/Linux

@adriangranados
Copy link
Member Author

It appears you caught us in the middle of some updates to our packages repo. Please run the following commands to update FPMS (and other wlanpi-related packages that should be updated, too):

sudo apt update
sudo apt upgrade

That should fix it. Otherwise, let us know.

@jmack778
Copy link

It worked, thanks for your help on this. I look forward to your deep dive "Mastering WiFi Explorer Pro" next month at the WLPC in Phoenix. Take care.

@adriangranados
Copy link
Member Author

We've removed the ability to run software updates from FPMS, so this has become a non-issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants