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

[Bug]: Aria2 IPv6 issues #352

Open
EveKaczmarek opened this issue Oct 22, 2024 · 0 comments
Open

[Bug]: Aria2 IPv6 issues #352

EveKaczmarek opened this issue Oct 22, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@EveKaczmarek
Copy link

Describe the bug.

Hi,

I think I have caught the new bug. Today all Civitai downloads just stopped working and the extension prints "error occured during download" on every attempt. After looking through the FAQ, I traced the problem to aria2 and enabled logging. It just refusing to download anything.

With this in mind, I did a bit of research on the Internet in the hopes of finding something. Apparently, this is a known problem and it's already reported in the aria2 repo aria2/aria2#1549.

For some reason, aria2 decides to use IPv6 even when it's disabled or unreachable, causing this problem.
I see a couple of ways to fix this:

  • Disable IPv6 completely. Add "--disable-ipv6" option to completely mitigate this nonsense.
  • Add Python exception handling to retry the download without IPv6 if aria2 fails.
  • Add an option to the extension settings to disable/enable IPv6. Personally, I think leaving it disabled by default is the safest way.

Thanks.

Steps to reproduce the problem.

  1. Open a model card
  2. Press "Download model"
  3. Notice CivitAI Browser+: Error occured during download line in the terminal

Expected behavior

A model should start downloading

System info

Console logs

10/22 18:51:10 [ERROR] CUID#10 - Download aborted. URI=https://civitai-delivery-worker-prod.5ac0637cfd0766c97916cefa3764fbdf.r2.cloudflarestorage.com/model/336872/fern-s1-ponyxl-lora-nochekaiser.safetensors?X-Amz-Expires=86400&response-content-disposition=attachment%3B%20filename%3D%22fern-s1-ponyxl-lora-nochekaiser.safetensors%22&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=e01358d793ad6966166af8b3064953ad/20241022/us-east-1/s3/aws4_request&X-Amz-Date=20241022T175108Z&X-Amz-SignedHeaders=host&X-Amz-Signature=6c00ce53e59da327b219e2e713635441ebf74ad3ee7601541cf94e18ee44ad6d
Exception: [AbstractCommand.cc:312] errorCode=1 Network problem has occurred. cause:A socket operation was attempted to an unreachable network.

 *** Download Progress Summary as of Tue Oct 22 18:51:10 2024 ***
===============================================================================================================================================================================================================
[#927cc5 0B/0B CN:0 DL:0B]
FILE: XL\Characters\fern-s1-ponyxl-lora-nochekaiser_306921.safetensors
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

[#927cc5 0B/0B CN:0 DL:0B]
10/22 18:51:10 [NOTICE] Download GID#927cc5bd2e870bb5 not complete: \XL\Characters\fern-s1-ponyxl-lora-nochekaiser_306921.safetensors
CivitAI Browser+: Error occured during download of "fern-s1-ponyxl-lora-nochekaiser_306921.safetensors"

Additional information

No response

@EveKaczmarek EveKaczmarek added the bug Something isn't working label Oct 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant