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

GPIOs not working in Version 1.2.0 #22

Closed
daum1988 opened this issue May 10, 2020 · 12 comments
Closed

GPIOs not working in Version 1.2.0 #22

daum1988 opened this issue May 10, 2020 · 12 comments

Comments

@daum1988
Copy link

I updated to 1.2.0, after that the GPIOs of my Raspberry Pi are no longer working.
I can't set outputs and Input States don't change.

@Apollon77
Copy link
Member

What does log say? Do you also updated nodejs?

@daum1988
Copy link
Author

nodejs is on Version 12.16.3
The log says (4626) GPIO is not initialized!

@Apollon77
Copy link
Member

Did you updated nodejs? Which js-Controller you have running?

@daum1988
Copy link
Author

Yes I did update nodejs from 10.20 to 12.16.3.
The JS-Controller is on Version 3.0.20

@Apollon77
Copy link
Member

Try „iobroker rebuild rpi2 --install“. Works then?

@daum1988
Copy link
Author

No that did't help.
I also tried to completely uninstall rpi2 and reinstall it and that didn't help.

@Apollon77
Copy link
Member

ok, open a shell, go to the iobroker dir

cd node_modules/iobroker.rpi2
npm install --production

Please post outpu here

@daum1988
Copy link
Author

pi@pool:/opt/iobroker/node_modules/iobroker.rpi2 $ npm install --production audited 472 packages in 5.179s found 2 vulnerabilities (1 low, 1 moderate) run npm audit fixto fix them, ornpm audit` for details
pi@pool:/opt/iobroker/node_modules/iobroker.rpi2 $ npm audit fix
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.13 (node_modules/glob-watcher/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.13: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"arm"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.1.3 (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.1.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"arm"})

added 455 packages from 619 contributors in 14.958s

18 packages are looking for funding
run npm fund for details

fixed 0 of 2 vulnerabilities in 472 scanned packages
2 vulnerabilities required manual review and could not be updated`

@daum1988
Copy link
Author

Thats the output

@Apollon77
Copy link
Member

In fact I did not said you should use "audit fix" but ok lucky seems not to have broken things.

And it still does noch work?

Ok then the hard way.

There should be (start in iobroker dir) a node_modules/rpi-gpio/ and/or node_modules/iobroker.rpi2/node_modules/rpi-gpio check and run "npm rebuild" there

@daum1988
Copy link
Author

I didn't have the time to test if the last step fixed my problem.
Just tested it and it seems to be working like normal again after the "npm install --production"

@daum1988
Copy link
Author

Thanks for your help

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants