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

could not resolve host:panamax.internal #114

Open
ugenehan opened this issue Aug 14, 2023 · 6 comments
Open

could not resolve host:panamax.internal #114

ugenehan opened this issue Aug 14, 2023 · 6 comments

Comments

@ugenehan
Copy link

ugenehan commented Aug 14, 2023

I didn't change base_url,after it reported errors like "could not resolve host:panamax.internal",I changed base_url,and rewrite config.json,but it does not resolved.
#84 (comment)

@FibreFoX
Copy link

Have you edited the /mirror/crates.io-index/config.json and /mirror/mirror.toml? I had the same problems, and did not use the "rewrite" command. After editing both files, it worked for me.

@wcampbell0x2a
Copy link
Member

And importantly; the changes are committed if you edited the fle manually.

@FibreFoX
Copy link

@wcampbell0x2a what do you mean with "commited"? I just edited them in the mounted folder without restarting the container (using it via docker)

@wcampbell0x2a
Copy link
Member

git committed. The config.json in crates-io-index must be committed.

@FibreFoX
Copy link

I did not have to commit anything, just editing was enough.

mkdir -p /mirror
docker run --rm -it -v "/mirror:/mirror" panamaxrs/panamax init /mirror
docker run --rm -it -v "/mirror:/mirror" panamaxrs/panamax sync /mirror
docker run --rm -it -d -v "/mirror:/mirror" -p 0.0.0.0:8080:8080 panamaxrs/panamax serve /mirror
# here I had the problems
# edited the mirror.toml first
vi /mirror/mirror.toml
# did not yet work
# edited the config.json second
vi /mirror/crates.io-index/config.json
# then it worked

Even tho /mirror/crates.io-index/ is a git repository, it does not have to be commited to take effect.

@wcampbell0x2a
Copy link
Member

I did not have to commit anything, just editing was enough.

mkdir -p /mirror
docker run --rm -it -v "/mirror:/mirror" panamaxrs/panamax init /mirror
docker run --rm -it -v "/mirror:/mirror" panamaxrs/panamax sync /mirror
docker run --rm -it -d -v "/mirror:/mirror" -p 0.0.0.0:8080:8080 panamaxrs/panamax serve /mirror
# here I had the problems
# edited the mirror.toml first
vi /mirror/mirror.toml
# did not yet work
# edited the config.json second
vi /mirror/crates.io-index/config.json
# then it worked

Even tho /mirror/crates.io-index/ is a git repository, it does not have to be commited to take effect.

I see, with sparse-registry this must have changed.

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

No branches or pull requests

3 participants