Projects onedev server Issues #961
#961  docker安装有如下报错
Closed
lanjianqing opened 1 month ago

image.png

[root@localhost /]# docker run --tty --rm -v /var/run/docker.sock:/var/run/docker.sock -v $(pwd)/onedev:/opt/onedev -p 6610:6610 -p 6611:6611 1dev/server
INFO - Launching application from '/app'...
INFO - Starting server...
INFO - Populating /opt/onedev...
ERROR - Error populating /opt/onedev
java.io.IOException: Destination '/opt/onedev' cannot be written to
at org.apache.commons.io.FileUtils.doCopyDirectory(FileUtils.java:1261)
at org.apache.commons.io.FileUtils.copyDirectory(FileUtils.java:677)
at org.apache.commons.io.FileUtils.copyDirectory(FileUtils.java:553)
at org.apache.commons.io.FileUtils.copyDirectory(FileUtils.java:519)
at io.onedev.server.maintenance.Upgrade.start(Upgrade.java:415)
at io.onedev.server.OneDev.start(OneDev.java:113)
at io.onedev.commons.loader.DefaultPluginManager.start(DefaultPluginManager.java:44)
at io.onedev.commons.loader.AppLoader.start(AppLoader.java:73)
at io.onedev.commons.bootstrap.Bootstrap.main(Bootstrap.java:189)

lanjianqing changed fields 1 month ago
Name Previous Value Current Value
Type
Bug
Build Failure
Failed Build
empty
4443
Robin Shen commented 1 month ago

我这边在 Ubuntu 上可以正常运行,请问你的环境有什么特殊的地方吗?

lanjianqing commented 1 month ago

我实在centos上直接跑的

image_2.png

lanjianqing commented 1 month ago

image_3.png

Robin Shen commented 1 month ago

我在阿里云上起了一台新的centos7,按官方教程安装了docker,然后运行你的命令,一切正常。感觉某种原因导致你 mount 上去的目录无法写。

lanjianqing commented 1 month ago

好的,我再分析分析!我用的是oracle VM创建的虚拟机

lanjianqing changed state to 'Closed' 1 month ago
Previous Value Current Value
Open
Closed
lanjianqing commented 1 month ago

重启系统就好了!非常感谢Robin

issue 1 of 1
Type
Build Failure
Priority
Normal
Assignee
Failed Build
Issue Votes (0)
Watchers (3)
Reference
issue onedev/server#961
Please wait...
Page is in error, reload to recover