-
-
Notifications
You must be signed in to change notification settings - Fork 403
connection refused when updating index #2158
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
Comments
This looks like a network configuration problem:
Arduino CLI cannot resolve the name |
Hi, I'm having the same issue; tried the Nightly version, v0.32.2, and v0.31.0.
I'm also able to manually download that file ( |
Do you have an error similar to the following?
if yes, could you paste the output of:
and
|
@cmaglie thanks for responding.
Yes, precisely.
|
The fact that
this is basically the same error happening in the Arduino CLI. At this point, I think that
? |
Also knowing the Linux distribution may help to find if there are open bugs. |
Thank you for the explanation! I have a fresh Arch Linux installation so
Is that the problem? I am not facing network issues anywhere else - am able to browse normally, etc. - so I wasn't suspecting network configuration issues on my end. |
Actually, I don't know if this is a configuration problem or an issue in the CLI. In the CLI we are using the golang standard I found this doc: https://wiki.archlinux.org/title/NetworkManager#/etc/resolv.conf Also on my Ubuntu
Maybe doing the same would fix your issue. I don't know, just trying to figure out the best workaround... |
Ok, so after some searching, reading, and learning, I think I know what my issue is. I'm trying to run the arduino cli on Android through Termux, which has many differences from regular Linux (such as no etc/resolv.conf and using different c libraries instead of gcc). Now I don't need to compile, I was just trying to use arduino-cli to set up arduino-language-server for neovim (surprisingly neovim is quite nice to use on Android, other than lsp installation and setup being harder than usual) since I wanted to be able to contribute to my team's arduino sketches while on the move at college. Yeah, ik, dumb to run this on android, whatever. For anyone in the same boat, platformio works a little better for Android since it uses regular .cpp files, and you can set up clangd or whatever else like normal (only get a mild issue of no thread api but again you shouldn't need to compile from an android device, like how are you going to push code to the board your USB ports are a challenge to access through termux). Anyway, sorry for the trouble. I'm a noob to Linux, and figured throwing myself in the deep end on Termux might learn me something. Hope yall have a nice day. |
@cmaglie symlinking |
Thanks for the feedback! |
Describe the problem
When running
arduino-cli core update-index
Downloading index: library_index.tar.bz2 Get "https://downloads.arduino.cc/libraries/library_index.tar.bz2": dial tcp: lookup downloads.arduino.cc on [::1]:53: read udp [::1]:54136->[::1]:53: read: connection refused Error updating indexes: Error downloading index 'https://downloads.arduino.cc/libraries/library_index.tar.bz2': Get "https://downloads.arduino.cc/libraries/library_index.tar.bz2": dial tcp: lookup downloads.arduino.cc on [::1]:53: read udp [::1]:54136->[::1]:53: read: connection refused
To reproduce
installed linux arm64 binary from arduino.github.io's installation instructions, moved it to /bin and executed. seems to work fine otherwise. ran arduino-cli config init as well.
Expected behavior
i expect it to update the board index
Arduino CLI version
arduino-cli Version: 0.32.2 Commit: 2661f5d Date: 2023-04-12T09:41:53Z
Operating system
Linux
Operating system version
linux aarch64 5.4.147-qgki-25884040-abT733XXU2CWC5
Additional context
No response
Issue checklist
The text was updated successfully, but these errors were encountered: