Comments (6)
Aliyun OSS has been added as a yml file source , please refer here:https://github.com/OpenCSGs/csghub?tab=readme-ov-file#%E5%BF%AB%E9%80%9F%E4%BD%BF%E7%94%A8
from csghub.
国内从github上拉去文件,这种情况会偶尔发生,有的是因为
raw.githubusercontent.com
这个域名被污染,通过显式在/etc/hosts
指定这个域名的地址来解决。可以尝试使用如下两种方法:指定IP
到 https://site.ip138.com/ 查询出
raw.githubusercontent.com
的IP地址,然后配置在主机的/etc/hosts
里设置dns地址
为主机设置
8.8.8.8
作为dns地址我测试了5、6个不同的虚拟机,出现了同样的情况,解决方法是:在主机的
/etc/resolv.conf
中增加nameserver 8.8.8.8
,再此curl就可以了,如下:直接curl失败:
root@m3:~# curl -L https://raw.githubusercontent.com/OpenCSGs/csghub/main/all-in-one-CN.yml -o all-in-one-CN.yml % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- 0:00:27 --:--:-- 0^C root@m3:~# root@m3:~# root@m3:~# wget https://raw.githubusercontent.com/OpenCSGs/csghub/main/all-in-one-CN.yml --2024-01-14 13:39:42-- https://raw.githubusercontent.com/OpenCSGs/csghub/main/all-in-one-CN.yml Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 182.43.124.6 Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|182.43.124.6|:443... ^C
增加
nameserver 8.8.8.8
dns解析:root@m3:~# cat /etc/resolv.conf # Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8) # DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN # 127.0.0.53 is the systemd-resolved stub resolver. # run "systemd-resolve --status" to see details about the actual nameservers. nameserver 8.8.8.8 nameserver 127.0.0.53 options timeout:2 attempts:3 rotate single-request-reopen
再次执行curl命令成功:
root@m3:~# curl -L https://raw.githubusercontent.com/OpenCSGs/csghub/main/all-in-one-CN.yml -o all-in-one-CN.yml % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 5585 100 5585 0 0 2651 0 0:00:02 0:00:02 --:--:-- 2651
how about add a alternative file address (such as aliyun s3 public file url) for Chinese user?
from csghub.
Docker image mirror and docker-compose file mirror have been added for Chinese users and checked.
Issue closed for now.
from csghub.
I just followed the below steps:
快速使用
可使用如下命令快速部署一个CSBHub实例到指定环境。
export SERVER_DOMAIN=[IP Address]
curl -L https://raw.githubusercontent.com/OpenCSGs/csghub/main/all-in-one.yml -o all-in-one.yml
docker compose -f all-in-one.yml up -d
国内用户可选择使用阿里容器镜像服务的部署脚本,加快服务启动,命令如下:
export SERVER_DOMAIN=[IP Address]
curl -L https://raw.githubusercontent.com/OpenCSGs/csghub/main/all-in-one-CN.yml -o all-in-one-CN.yml
docker compose -f all-in-one-CN.yml up -d
部署完毕后,就可以在浏览器上通过http://[IP Address]访问到新部署的CSGHub实例。(初始化管理员账号:admin001/admin001)
详细使用方法可参看使用文档
注意:
SERVER_DOMAIN 为目标主机的IP地址或者域名,请不要使用127.0.0.1或者localhost
当前仅仅支持x86_64架构系统。
使用该all-in-one脚本启动过的实例无法有效持久化用户数据。服务启动后,使用docker compose up命令重新加载服务会出现错误,此时可以选择使用docker compose down -v命令彻底清除实例再重新启动,或者使用完整版一键部署脚本进行服务部署。
from csghub.
国内从github上拉去文件,这种情况会偶尔发生,有的是因为raw.githubusercontent.com
这个域名被污染,通过显式在/etc/hosts
指定这个域名的地址来解决。可以尝试使用如下两种方法:
指定IP
到 https://site.ip138.com/ 查询出raw.githubusercontent.com
的IP地址,然后配置在主机的/etc/hosts
里
设置dns地址
为主机设置8.8.8.8
作为dns地址
我测试了5、6个不同的虚拟机,出现了同样的情况,解决方法是:在主机的/etc/resolv.conf
中增加 nameserver 8.8.8.8
,再此curl就可以了,如下:
直接curl失败:
root@m3:~# curl -L https://raw.githubusercontent.com/OpenCSGs/csghub/main/all-in-one-CN.yml -o all-in-one-CN.yml
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- 0:00:27 --:--:-- 0^C
root@m3:~#
root@m3:~#
root@m3:~# wget https://raw.githubusercontent.com/OpenCSGs/csghub/main/all-in-one-CN.yml
--2024-01-14 13:39:42-- https://raw.githubusercontent.com/OpenCSGs/csghub/main/all-in-one-CN.yml
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 182.43.124.6
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|182.43.124.6|:443... ^C
增加nameserver 8.8.8.8
dns解析:
root@m3:~# cat /etc/resolv.conf
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
# DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
# 127.0.0.53 is the systemd-resolved stub resolver.
# run "systemd-resolve --status" to see details about the actual nameservers.
nameserver 8.8.8.8
nameserver 127.0.0.53
options timeout:2 attempts:3 rotate single-request-reopen
再次执行curl命令成功:
root@m3:~# curl -L https://raw.githubusercontent.com/OpenCSGs/csghub/main/all-in-one-CN.yml -o all-in-one-CN.yml
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 5585 100 5585 0 0 2651 0 0:00:02 0:00:02 --:--:-- 2651
from csghub.
Better to have some mirrors in China
from csghub.
Related Issues (17)
- Need a functional video for this project HOT 2
- docker 无法查看opencsg-nginx-1组件的日志 HOT 2
- 创建模型和数据集的时候,会有报错,但是会刷掉,然后创建成功 HOT 3
- 在腾讯云 ubuntu 系统中使用 docker compose 拉起项目,git server 不断重启 HOT 3
- 不支持中文文件夹? HOT 3
- CSGHub是否支持Xinference大模型下载 HOT 12
- 可以不用docker 部署么? HOT 2
- 您好,请问份开源版本与企业版本吗? HOT 1
- git clone 下载模型时无法看到下载进度 HOT 2
- 记录快速安装时遇到的一些问题,方便大家交流
- 使用过程中创建组织必须上传输logo,上传无效无法创建组织 HOT 3
- 离线无网络环境部署问题 HOT 2
- 启动CSGHUB,页面提示加载模型数据报错 HOT 3
- 上传文件时遇到的一系列bug HOT 1
- 传神社区Space上传部署失败 HOT 2
- 安装后无法启动,原因是portal服务在报错 HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from csghub.