createcandle / Candle-manager-addon

An add-on for the Candle Controller / WebThings Gateway. It allows you to upload code to Arduino's with the click of a button.
MIT License
5 stars 5 forks source link

Downloading required libraries failed #32

Closed Lacitis36 closed 3 years ago

Lacitis36 commented 3 years ago

"Downloading required libraries failed" at step 4 of receiver install. All previous steps without any issue. Skipped the creation of .webthing.io domain. Used last version of Mozilla Gateway (1.0 downloaded from webthings.io) Config:

Tried with RPi on ethernet / RPi on Wifi. Same result.

Any help, please?

Lacitis36 commented 3 years ago

Saw that my case was very similar to closed issue 29. Still the problem persists and I do not have the depth of knowledge of Shaav.

Lacitis36 commented 3 years ago

Here is what looks like the pbm:

2021-02-26 11:03:12.428 INFO   : Candle-manager-addon: Checking for missing libraries, and installing if required.
2021-02-26 11:03:12.430 INFO   : Candle-manager-addon: Downloading Arduino library: MySensors
2021-02-26 11:03:12.432 INFO   : Candle-manager-addon: library install command: /home/pi/.webthings/addons/Candle-manager-addon/arduino-cli/linux-armv7/arduino-cli lib install "MySensors"
2021-02-26 11:03:12.439 INFO   : Candle-manager-addon: Run command error: /bin/sh: 1: /home/pi/.webthings/addons/Candle-manager-addon/arduino-cli/linux-armv7/arduino-cli: Permission denied
2021-02-26 11:03:12.440 INFO   : Candle-manager-addon: 
2021-02-26 11:03:12.443 INFO   : Candle-manager-addon: Command failed
2021-02-26 11:03:12.446 ERROR  : Candle-manager-addon: 192.168.0.11 - - [26/Feb/2021 11:03:12] "GET /check_libraries/4 HTTP/1.1" 200 -

Every time I connect the Nano, the install fails with the above.

createcandle commented 3 years ago

Ah, it seems there is a permission problem. I'll fix it.

You could run this command in the Seashell addon to temporarily fix it.

sudo chmod +x /home/pi/.webthings/addons/Candle-manager-addon/arduino-cli/linux-armv7/arduino-cli

I'll make sure the next version of the Candle Manager does that automatically as it starts up.

Lacitis36 commented 3 years ago

It worked like a charm. Great work and thank you.