metachris / RPIO

RPIO is a GPIO toolbox for the Raspberry Pi.
https://pypi.python.org/pypi/RPIO
GNU Lesser General Public License v3.0
331 stars 147 forks source link

System hangs during reboot with RPIO python script running in docker #109

Open Yakov-Chernogor opened 6 years ago

Yakov-Chernogor commented 6 years ago

Hello, I've made docker image with python script that using RPIO PWM to control servo. I'm starting container with following command:

docker run --d --device /dev/mem --privileged surveillance surveillance-bot

Container is starting and my script working as well. But when I trigger reboot system it hangs during reboot with message "reached target shutdown" or "stopped target local file systems (pre)". Another containers without --privileged flag does not prevent system from rebooting. Please help

DEvil0000 commented 6 years ago

I don't get what this has to do with RPIO. This sounds more like a issue with your system, docker or the os stuff in the docker image.Guessing based on the message you get it couls be related to upstart or systemd. Also note that your OS might use some DMA channels for its stuff. Not all the channels should be used if you have e.g. a UI installed - try other channels. Please give more details on the problem and how this is a RPIO issue. exact pi version syslog installed software a lot more info and details Von meinem Samsung Gerät gesendet.

-------- Ursprüngliche Nachricht -------- Von: Naozumi2k notifications@github.com Datum: 15.04.2018 19:14 (GMT+01:00) An: metachris/RPIO RPIO@noreply.github.com Cc: Subscribed subscribed@noreply.github.com Betreff: [metachris/RPIO] System hangs during reboot with RPIO python script running in docker (#109)

Hello, I've made docker image with python script that using RPIO PWM to control servo.

I'm starting container with following command:

docker run --d --device /dev/mem --privileged surveillance surveillance-bot

Container is starting and my script working as well.

But when I trigger reboot system it hangs during reboot with message "reached target shutdown" or "stopped target local file systems (pre)".

Another containers without --privileged flag does not prevent system from rebooting.

Please help

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/metachris/RPIO","title":"metachris/RPIO","subtitle":"GitHub repository","main_image_url":"https://cloud.githubusercontent.com/assets/143418/17495839/a5054eac-5d88-11e6-95fc-7290892c7bb5.png","avatar_image_url":"https://cloud.githubusercontent.com/assets/143418/15842166/7c72db34-2c0b-11e6-9aed-b52498112777.png","action":{"name":"Open in GitHub","url":"https://github.com/metachris/RPIO"}},"updates":{"snippets":[{"icon":"DESCRIPTION","message":"System hangs during reboot with RPIO python script running in docker (#109)"}],"action":{"name":"View Issue","url":"https://github.com/metachris/RPIO/issues/109"}}}