could not resolve host:panamax.internal
ugenehan opened this issue · 6 comments
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)
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.
And importantly; the changes are committed if you edited the fle manually.
@wcampbell0x2a what do you mean with "commited"? I just edited them in the mounted folder without restarting the container (using it via docker)
git committed. The config.json in crates-io-index must be committed.
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 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.