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] [fetcher] downloads ocassionally fail #9

Closed
0cwa opened this issue Aug 21, 2024 · 4 comments
Closed

[BUG] [fetcher] downloads ocassionally fail #9

0cwa opened this issue Aug 21, 2024 · 4 comments
Assignees
Labels
bug Something isn't working

Comments

@0cwa
Copy link

0cwa commented Aug 21, 2024

Fresh working directory, and fresh source. It works if I add afsr to my path, same with avbroot and same thing with custota-tool.

All the binaries are in .tmp/tools/[name of binary]/[binary]

Fedora 40 x64

[*] Unpacking filesystem: /tmp/tmp96s37blm/system/raw.img
Traceback (most recent call last):
  File "/home/x/PixeneOS/.tmp/tools/my-avbroot-setup/patch.py", line 1009, in <module>
    main()
  File "/home/x/PixeneOS/.tmp/tools/my-avbroot-setup/patch.py", line 1000, in main
    run(args, Path(temp_dir))
  File "/home/x/PixeneOS/.tmp/tools/my-avbroot-setup/patch.py", line 890, in run
    unpack_fs(system_raw, system_dir)
  File "/home/x/PixeneOS/.tmp/tools/my-avbroot-setup/patch.py", line 161, in unpack_fs
    subprocess.check_call([
  File "/usr/lib64/python3.12/subprocess.py", line 408, in check_call
    retcode = call(*popenargs, **kwargs)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.12/subprocess.py", line 389, in call
    with Popen(*popenargs, **kwargs) as p:
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.12/subprocess.py", line 1026, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "/usr/lib64/python3.12/subprocess.py", line 1955, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'afsr'
@0cwa 0cwa changed the title Asfr not in path Afsr, etc not Found Aug 21, 2024
@pixincreate
Copy link
Owner

Please share download logs which is above in the beginning.

I would suggest you to try downloading again as I myself found some intermittent issues while the download happens that results some modules fail to download.

@0cwa 0cwa closed this as completed Aug 21, 2024
@pixincreate
Copy link
Owner

Did downloading again solved the issue?

@pixincreate pixincreate self-assigned this Aug 21, 2024
@pixincreate pixincreate added the bug Something isn't working label Aug 21, 2024
@pixincreate pixincreate changed the title Afsr, etc not Found [BUG] [fetcher] downloads ocassionally fail Aug 21, 2024
@pixincreate
Copy link
Owner

Possible implementation

Add retries to download the file again if it failed previously.

@pixincreate pixincreate reopened this Aug 21, 2024
@0cwa
Copy link
Author

0cwa commented Aug 21, 2024

Yes it did

pixincreate added a commit that referenced this issue Aug 29, 2024
should address #8 and #9
pixincreate added a commit that referenced this issue Aug 29, 2024
should resolve #8 and #9
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

2 participants