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

anaconda 404故障 #49

Closed
busbyjrj opened this issue Apr 19, 2019 · 8 comments
Closed

anaconda 404故障 #49

busbyjrj opened this issue Apr 19, 2019 · 8 comments
Labels
bug Something isn't working

Comments

@busbyjrj
Copy link

类别:Bug反馈

anaconda源,所有的官方help内容,直接复制均为404,例如:
pkgs/free: conda config --add channels https://mirrors.sjtug.sjtu.edu.cn/anaconda/pkgs/free
直接访问、anaconda更新时,均会跳转到https://mirrors.sjtug.sjtu.edu.cn/pkgs/free/,该链接会返回404,须在软件库的名称后添加“/”才能正常访问。
但,即使添加了“/”,在anaconda中使用,仍然会默认回到不带有“/”的域名,返回404故障。

@skyzh
Copy link
Member

skyzh commented Apr 19, 2019

今天中午在添加 packagist 镜像的时候似乎出了一点意外。正在处理中。

@htfy96 htfy96 added the bug Something isn't working label Apr 19, 2019
@skyzh
Copy link
Member

skyzh commented Apr 19, 2019

另外由于 #47,我们在后面几周可能限制 anaconda 源的访问(

@htfy96
Copy link
Contributor

htfy96 commented Apr 19, 2019

caddyserver/caddy#2555

@busbyjrj
Copy link
Author

我也是因为tuna的原因才找到了隔壁的源,虽然不是很了解最近发生了什么情况,但希望能够继续使用你们的镜像,祝你们顺利

@skyzh
Copy link
Member

skyzh commented Apr 19, 2019

「直接访问跳转到根目录」是预期行为,应该只会对直接浏览的人产生影响。

这边测试下来 conda 是可以下载包的,建议你清理一下 conda 的缓存。

image

@skyzh
Copy link
Member

skyzh commented Apr 19, 2019

404 可以附一下 log。

@busbyjrj
Copy link
Author

raise UnavailableInvalidChannel(Channel(dirname(url)), status_code)
conda.exceptions.UnavailableInvalidChannel: The channel is not accessible or is invalid.
  channel name: anaconda/pkgs/msys2
  channel url: https://mirrors.sjtug.sjtu.edu.cn/anaconda/pkgs/msys2
  error code: 404
default_python: None
ssl_verify: True
channels:
  - https://mirrors.sjtug.sjtu.edu.cn/anaconda/pkgs/msys2
  - https://mirrors.sjtug.sjtu.edu.cn/anaconda/pkgs/mro
  - https://mirrors.sjtug.sjtu.edu.cn/anaconda/pkgs/main
  - https://mirrors.sjtug.sjtu.edu.cn/anaconda/pkgs/free
  - defaults
show_channel_urls: True

我清除conda缓存后仍然是404的问题。

@skyzh
Copy link
Member

skyzh commented Apr 20, 2019

已复现。看起来 Caddy 发了 301 进行了重定向,的确是 Caddy 的问题……

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

3 participants