Closed TheToddLuci0 closed 1 year ago
Interesting. Thanks for the detailed logs.
Do you see Error: CLI update index failed
or CLI update AVR failed
earlier in the logs perhaps?
Perhaps the command timed out. How is your internet speed?
This command will fix the problem: /home/pi/.webthings/addons/Candle-manager-addon/arduino-cli/linux-armv7/arduino-cli core install arduino:avr
In theory a reboot might also fix the issue.
That command did resolve the issue, thanks.
More debug info if you're interested. I've got gigabit internet, so that shouldn't be a limiting factor.
I did find the following:
pi@gateway:~/.webthings/log $ grep -R "CLI update index failed" -C 10
run-app.log.2021-03-09-2021-03-09 22:29:24.973 INFO : Candle-manager-addon: * Serving Flask app "pkg.candle_adapter" (lazy loading)
run-app.log.2021-03-09-2021-03-09 22:29:24.975 INFO : Candle-manager-addon: * Environment: production
run-app.log.2021-03-09-2021-03-09 22:29:24.976 INFO : Candle-manager-addon: WARNING: This is a development server. Do not use it in a production deployment.
run-app.log.2021-03-09-2021-03-09 22:29:24.978 INFO : Candle-manager-addon: Use a production WSGI server instead.
run-app.log.2021-03-09-2021-03-09 22:29:24.979 INFO : Candle-manager-addon: * Debug mode: off
run-app.log.2021-03-09-2021-03-09 22:29:24.981 ERROR : Candle-manager-addon: * Running on http://0.0.0.0:8686/ (Press CTRL+C to quit)
run-app.log.2021-03-09-2021-03-09 22:29:29.817 INFO : Candle-manager-addon: Scanning source file directory
run-app.log.2021-03-09-2021-03-09 22:29:29.841 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
run-app.log.2021-03-09-2021-03-09 22:29:29.843 INFO : Candle-manager-addon:
run-app.log.2021-03-09-2021-03-09 22:29:29.845 INFO : Candle-manager-addon: Command failed
run-app.log.2021-03-09:2021-03-09 22:29:29.846 INFO : Candle-manager-addon: Error: CLI update index failed
run-app.log.2021-03-09-2021-03-09 22:29:29.848 INFO : Candle-manager-addon: - PROBLEMATIC ARDUINO UPDATE COMMAND WAS: /home/pi/.webthings/addons/Candle-manager-addon/arduino-cli/linux-armv7/arduino-cli core update-index
run-app.log.2021-03-09-2021-03-09 22:29:29.850 INFO : Candle-manager-addon: Warning: could not check for updates for the Arduino CLI (no internet connection?)
run-app.log.2021-03-09-2021-03-09 22:29:29.852 INFO : Candle-manager-addon: Looking for already installed libraries
run-app.log.2021-03-09-2021-03-09 22:29:29.854 INFO : Candle-manager-addon: check_installed_arduino_libraries command = /home/pi/.webthings/addons/Candle-manager-addon/arduino-cli/linux-armv7/arduino-cli lib list --all --format=json
run-app.log.2021-03-09-2021-03-09 22:29:29.856 INFO : Candle-manager-addon: Failed to check libraries: Expecting value: line 1 column 1 (char 0)
run-app.log.2021-03-09-2021-03-09 22:29:29.858 INFO : Candle-manager-addon: Downloading Arduino library: Grove - Barometer Sensor BME280
run-app.log.2021-03-09-2021-03-09 22:29:29.860 INFO : Candle-manager-addon: library install command: /home/pi/.webthings/addons/Candle-manager-addon/arduino-cli/linux-armv7/arduino-cli lib install "Grove - Barometer Sensor BME280"
run-app.log.2021-03-09-2021-03-09 22:29:29.869 INFO : Candle-manager-addon: Downloading Arduino library: SSD1306Ascii
run-app.log.2021-03-09-2021-03-09 22:29:29.872 INFO : Candle-manager-addon: library install command: /home/pi/.webthings/addons/Candle-manager-addon/arduino-cli/linux-armv7/arduino-cli lib install "SSD1306Ascii"
run-app.log.2021-03-09-2021-03-09 22:29:29.882 INFO : Candle-manager-addon: Downloading Arduino library: DallasTemperature
Thanks. I've created a fix. Will be available within a day.
When attempting initial setup, compilation fails when attempting to configure the
Candle_receiver
. WebThings logs show the followingRunning the commands directly in the shell yields the following
Pi 3B Arduino RF-Nano Gateway installed direct from Mozilla today.