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

新部署系统,判题机出现问题,一直处于编译中 #1070

Open
Jimengyy opened this issue Feb 4, 2025 · 6 comments
Open

新部署系统,判题机出现问题,一直处于编译中 #1070

Jimengyy opened this issue Feb 4, 2025 · 6 comments

Comments

@Jimengyy
Copy link

Jimengyy commented Feb 4, 2025

腾讯云服务器 2核2G
系统 Ubuntu22.04

安装步骤如下:
将/etc/apt/sources.list 文件中内容替换

`deb https://mirrors.aliyun.com/ubuntu/ jammy main restricted universe multiverse
deb-src https://mirrors.aliyun.com/ubuntu/ jammy main restricted universe multiverse

deb https://mirrors.aliyun.com/ubuntu/ jammy-security main restricted universe multiverse
deb-src https://mirrors.aliyun.com/ubuntu/ jammy-security main restricted universe multiverse

deb https://mirrors.aliyun.com/ubuntu/ jammy-updates main restricted universe multiverse
deb-src https://mirrors.aliyun.com/ubuntu/ jammy-updates main restricted universe multiverse

deb https://mirrors.aliyun.com/ubuntu/ jammy-proposed main restricted universe multiverse

deb-src https://mirrors.aliyun.com/ubuntu/ jammy-proposed main restricted universe multiverse

deb https://mirrors.aliyun.com/ubuntu/ jammy-backports main restricted universe multiverse
deb-src https://mirrors.aliyun.com/ubuntu/ jammy-backports main restricted universe multiverse
`
之后执行如下命令
wget http://dl.hustoj.com/install.sh
sudo bash install.sh
安装完成后
其他功能可以正常使用就是判题不行

Image

@zhblue
Copy link
Owner

zhblue commented Feb 5, 2025

sudo su
cd  /home/judge/src/install
bash docker.sh

等待结果

@Jimengyy
Copy link
Author

Jimengyy commented Feb 5, 2025

Image
张老师您好,按照上述方法重试后还是无法判题

Image

@zhblue
Copy link
Owner

zhblue commented Feb 5, 2025

先修复docker镜像源,然后运行:

sudo su
cd  /home/judge/src/install
docker build -t hustoj . 

@zhblue
Copy link
Owner

zhblue commented Feb 5, 2025

@Jimengyy
Copy link
Author

Jimengyy commented Feb 5, 2025

成功解决,就是docker源的问题,非常感谢!

@zhblue
Copy link
Owner

zhblue commented Feb 19, 2025

有些用户的docker可能是snap装的,用ps aux | grep docker 可以观察到实际的配置文件daemon.json的位置,去编辑它增加国内可用镜像,systemctl restart docker 重启docker,或者pkill -9 docker 强制杀死docker进程让systemd自动重新拉起docker进程。然后跑docker.sh 可以重建镜像了。

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

2 participants