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

archzfs.db URL is not being created correctly #49

Closed
n8henrie opened this issue Apr 12, 2021 · 0 comments · Fixed by #50
Closed

archzfs.db URL is not being created correctly #49

n8henrie opened this issue Apr 12, 2021 · 0 comments · Fixed by #50

Comments

@n8henrie
Copy link
Contributor

Thank you for adding custom repos in #41! I thought it was working properly, but I think I was wrong -- I kept seeing 404s reported when I updated my databases, and ls /var/cache/flexo/pkg/archzfs/os/x86_64/ shows all zero-length files.

$ yay
[sudo] password for me: 
:: Synchronizing package databases...
 core is up to date
 extra is up to date
 community                                                                                                           5.5 MiB   638 KiB/s 00:09 [########################################################################################] 100%
error: failed retrieving file 'archzfs.db' from myserver:7878 : The requested URL returned error: 404

I think my config is identical to the example in the readme and the example in /etc/flexo/flexo.toml:

On client:

[archzfs]
Server = http://myserver:7878/custom_repo/archzfs/$repo/os/$arch

On server:

[[custom_repo]]
    name = "archzfs"
    url = "https://archzfs.com"

When I added an extra line for some debug output I could see it is requesting
https://archzfs.com/archzfs/os/x86_64/archzfs.db, but the actual URL is https://archzfs.com/archzfs/x86_64/archzfs.db (no os).

Looking more closely, I just now noticed that it looks like the URI is properly shown (without os) in the readme, but incorrect in the comments in flexo.toml. PR incoming.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant