#1251  Shell executor does not support absolute cache path: /root/.m2/repository
Closed
antonio0831 opened 1 year ago

I was trying to run a build on my git server and it told me "Shell executor does not support absolute cache path: /root/.m2/repository" image.png

I am running this as "root" user, the os is debain Can someone help me plz? Thanks Very Much!

Robin Shen commented 1 year ago

Looks like OneDev failed to detect your docker installation, and used shell executor instead.

antonio0831 commented 1 year ago

Looks like OneDev failed to detect your docker installation, and used shell executor instead.

How should I solve this problem then:thinking:

Robin Shen commented 1 year ago

How are you starting OneDev? Are you able to run docker container as root account?

antonio0831 commented 1 year ago

How are you starting OneDev? Are you able to run docker container as root account?

I am running on bare material using server.sh

Robin Shen commented 1 year ago

Please login as root account and make sure this command works:

docker run --rm hello-world

If yes, start OneDev from same terminal:

bin/server.sh console

And then run your build again to see if it works.

antonio0831 commented 1 year ago

Please login as root account and make sure this command works:

docker run --rm hello-world

If yes, start OneDev from same terminal:

bin/server.sh console

And then run your build again to see if it works.

When I run this command, it tells me

root@VM-4-8-debian:~# docker run --rm hello-world
-bash: docker: command not found
Robin Shen commented 1 year ago

So you will need to install docker so that root account can run this command.

Robin Shen changed state to 'Closed' 1 year ago
Previous Value Current Value
Open
Closed
issue 1 of 1
Type
Question
Priority
Normal
Assignee
Issue Votes (0)
Watchers (4)
Reference
onedev/server#1251
Please wait...
Page is in error, reload to recover