com.diozero.util.RuntimeIOException

Error setting direction for GPIO 0


Solutions on the web1

Solution icon of github
Error setting direction for GPIO 0

Stack trace

  • com.diozero.util.RuntimeIOException: Error setting direction for GPIO 0 at com.diozero.internal.provider.sysfs.SysFsDeviceFactory.export(SysFsDeviceFactory.java:192) at com.diozero.internal.provider.sysfs.SysFsDeviceFactory.createDigitalOutputPin(SysFsDeviceFactory.java:120) at com.diozero.internal.spi.BaseNativeDeviceFactory.provisionDigitalOutputPin(BaseNativeDeviceFactory.java:160) at com.diozero.api.DigitalOutputDevice.<init>(DigitalOutputDevice.java:92) at com.diozero.api.DigitalOutputDevice.<init>(DigitalOutputDevice.java:73) at com.diozero.api.DigitalOutputDevice.<init>(DigitalOutputDevice.java:58) at com.diozero.LED.<init>(LED.java:67) at com.Test.Main.main(Main.java:35) Caused by: java.io.IOException: Unknown error 517 at java.io.FileOutputStream.writeBytes(Native Method) at java.io.FileOutputStream.write(FileOutputStream.java:326) at sun.nio.cs.StreamEncoder.writeBytes(StreamEncoder.java:221) at sun.nio.cs.StreamEncoder.implClose(StreamEncoder.java:316) at sun.nio.cs.StreamEncoder.close(StreamEncoder.java:149) at java.io.OutputStreamWriter.close(OutputStreamWriter.java:233) at com.diozero.internal.provider.sysfs.SysFsDeviceFactory.export(SysFsDeviceFactory.java:190)

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

8 times, 1 month ago
Once, 2 months ago
Once, 3 months ago
Once, 4 months ago
Samebug visitor profile picture
Unknown user
Once, 4 months ago
35 more bugmates