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

一键部署出现“禁止”错误,无法拉取代码 #323

Open
andrejvasilj opened this issue Jan 14, 2025 · 1 comment
Open

一键部署出现“禁止”错误,无法拉取代码 #323

andrejvasilj opened this issue Jan 14, 2025 · 1 comment

Comments

@andrejvasilj
Copy link

描述

我在尝试使用一键部署脚本部署 WeBASE 时遇到问题。该脚本尝试从提供的 URL 中提取所需的组件(例如,WeBASE-Web、WeBASE-Front 等)。但是,对于 v1.5.5 和 v3.1.1 版本的 WeBASE,当脚本尝试下载组件的 .zip 文件时,我收到 403 Forbidden 错误。
重现步骤

克隆 webbase-deploy 存储库。
使用以下命令运行部署脚本:

python3 deploy.py installAll

该脚本尝试使用 wget 或类似命令提取所需的组件:

Example URL: https://osp-1257653870.cos.ap-guangzhou.myqcloud.com/WeBASE/releases/download/v3.1.0/webase-web.zip

该脚本失败并出现以下错误:

HTTP request sent, awaiting response... 403 Forbidden
ERROR 403: Forbidden.

预期行为

部署脚本应成功下载所有组件所需的 .zip 文件并继续安装。
实际行为

由于服务器发出 403 Forbidden 响应,脚本在下载步骤期间失败。
相关日志

以下是失败部署的相关日志片段:

============== Installing WeBASE-Web ==============
wget https://osp-1257653870.cos.ap-guangzhou.myqcloud.com/WeBASE/releases/download/v3.1.0/webase-web.zip
--2025-01-08 11:27:13-- https://osp-1257653870.cos.ap-guangzhou.myqcloud.com/WeBASE/releases/download/v3.1.0/webase-web.zip
Resolving osp-1257653870.cos.ap-guangzhou.myqcloud.com (osp-1257653870.cos.ap-guangzhou.myqcloud.com)... 159.75.57.35, 159.75.57.69
Connecting to osp-1257653870.cos.ap-guangzhou.myqcloud.com (osp-1257653870.cos.ap-guangzhou.myqcloud.com)|159.75.57.35|:443... connected.
HTTP request sent, awaiting response... 403 Forbidden
2025-01-08 11:27:15 ERROR 403: Forbidden.

故障排除尝试

已验证网络没有限制(例如防火墙、代理)。
尝试直接在浏览器中访问下载 URL,但也失败并显示 403 Forbidden 响应。
检查了部署脚本,用于下载的 URL 似乎硬编码在脚本中。
尝试用 GitHub 直接链接(例如 GitHub 发布 .zip)替换 URL,这在手动测试时有效。

环境

操作系统:Ubuntu 20.04 LTS
蟒蛇:3.8.10
WeBASE 版本:v1.5.5 和 v3.1.1
@andrejvasilj
Copy link
Author

check finished sucessfully.
============== envrionment available ==============

============== starting deploy ==============

============== Installing FISCO-BCOS ==============
wget https://osp-1257653870.cos.ap-guangzhou.myqcloud.com/FISCO-BCOS/FISCO-BCOS/releases/v3.5.0/build_chain.sh && chmod u+x build_chain.sh
--2025-01-14 19:17:01-- https://osp-1257653870.cos.ap-guangzhou.myqcloud.com/FISCO-BCOS/FISCO-BCOS/releases/v3.5.0/build_chain.sh
Resolving osp-1257653870.cos.ap-guangzhou.myqcloud.com (osp-1257653870.cos.ap-guangzhou.myqcloud.com)... 159.75.57.69, 159.75.57.35
Connecting to osp-1257653870.cos.ap-guangzhou.myqcloud.com (osp-1257653870.cos.ap-guangzhou.myqcloud.com)|159.75.57.69|:443... connected.
HTTP request sent, awaiting response... 403 Forbidden
2025-01-14 19:17:03 ERROR 403: Forbidden.

======= build_chain.sh download fail. please check! =======
root@adminiostali:~/webase/WeBASE-3.1.1/deploy#

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

1 participant