Yang Gao

Results 34 comments of Yang Gao
trafficstars

可以尝试去掉 `readonly: true` 再尝试,类似 ```yaml - type: bind source: /sys/devices/system target: /sys/devices/system readonly: false ``` 同时,你可能需要添加一个 `/dev/shm` ,类似 ```yaml - type: tmpfs target: /dev/shm data: size=64m,nr_inodes=4k ```

`Address not mapped` 通常是内存限制过小,请增加 `memoryLimit` 再尝试

内存限制过小会在内存申请是就失败,并不会变成已使用内存大小。

尝试把 bind mount 的路径改成 /sys

那尝试下载 release 里面的 `go-judge-shell` 运行并粘贴 ```sh cat > 1.c

在 https://github.com/criyle/go-judge/actions/runs/8565176557 下载或者如果您的 `hydrojudge` 是最新版,可以使用 `hydrojudge terminal` 达到相同的效果

尝试把 `mount.yaml` 的 `hostname` 改一下,类似 ```yaml # container host name hostName: go-judge # container domain name domainName: go-judge ```

最新版加入了容器初始化命令。 请从 [workflow](https://github.com/criyle/go-judge/actions/runs/8704636136) 下载最新的 `go-judge` 并在 `mount.yaml` 最后加上 ```yaml initCmd: ip link set dev lo up ``` 参数并测试去掉 `-net-share` 能否运行

> 此外,我尝试将 UID 和 GID 都改成一个普通用户 UID 和 GID 后,执行 `mpirun` 命令时,依然会弹出使用 root 执行 MPI 命令的警告。而当我尝试去掉启动 go-judge 服务器命令中的 `sudo`,go-judge 又不能够成功启动。请问这是什么原因呢? 需要报错日志 > 运行失败了,还是提示找不到网络接口。 需要报错日志,请检查 `go-judge` 日志有没有一行 `Initialize container with command:...

> 好的。添加了 `initCmd` 之后,日志里似乎并没有这一行: 请确认是从 [workflow](https://github.com/criyle/go-judge/actions/runs/8704636136) 下载的最新版 > 不使用 sudo 启动 go-judge 时的日志如下: 请将 `go-judge` 移动至所有人有权限的目录,例如 `/usr/bin` 或 `/tmp`