waydroid_script
waydroid_script copied to clipboard
ConnectionError when downloading zip archive from github.com
this happens when qBittorrent is running with unlimited number of connections
$ sudo waydroid-script -a 11 install libndk
INFO: Downloading libndktranslation.zip now to /home/user/.cache/waydroid-script/downloads/libndktranslation.zip .....
OSError: [Errno 16] Device or resource busy
The above exception was the direct cause of the following exception:
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f1daf3b8290>: Failed to establish a new connection: [Errno 16] Device or resource busy
The above exception was the direct cause of the following exception:
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='github.com', port=443): Max retries exceeded with url: /supremegamers/vendor_google_proprietary_ndk_translation-prebuilt/archive/9324a8914b649b885dad6f2bfd14a67e5d1520bf.zip (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f1daf3b8290>: Failed to establish a new connection: [Errno 16] Device or resource busy'))
Max retries exceeded
maybe it should retry more often
workaround: in qBittorrent, limit the number of connections
workaround: use curl to download the zip file
mkdir -p /home/user/.cache/waydroid-script/downloads
curl -L https://github.com/supremegamers/vendor_google_proprietary_ndk_translation-prebuilt/archive/9324a8914b649b885dad6f2bfd14a67e5d1520bf.zip -o /home/user/.cache/waydroid-script/downloads/libndktranslation.zip
sudo waydroid-script -a 11 install libndk