Menu

#152 Failed to add edge detection permission

New
None
Critical
Patch
2017-05-13
2017-05-10
raperian
No

Hi, I am running mopidy service script with GPIO. I have made "sudo apt-get update && apt-get upgrade". After this my script no longer works.

I am getting error:
ERROR [1032:Thread-1] root: Failed to add edge detection
On line:
GPIO.add_event_detect(self.KEY_PIN, GPIO.RISING, callback=self.onButton)

I susspect that after upgrade I need to add permission for something, any help?

Discussion

  • raperian

    raperian - 2017-05-11

    After update I need to change file:
    /lib/systemd/system/mopidy.service

    I changed user to root
    [Service]
    User=root

    Service running ok. Great hack. Hate premissions. Freeeedom! :D

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.