Shell executor does not support absolute cache path: /root/.m2/repository (OD-1251)
antonio0831 opened 3 years 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 3 years ago

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

  • antonio0831 commented 3 years 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 3 years ago

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

  • antonio0831 commented 3 years 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 3 years 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 3 years 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 3 years ago

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

  • Robin Shen changed state to 'Closed' 3 years ago
    Previous Value Current Value
    Open
    Closed
issue 1/1
Type
Question
Priority
Normal
Assignee
Issue Votes (0)
Watchers (4)
Reference
OD-1251
Please wait...
Connection lost or session expired, reload to recover
Page is in error, reload to recover