lorisleiva/laravel-docker

Permission Error

ianrussel opened this issue · 1 comments

Hello Here, I am stucked in my current set up.Here is the error when stage deploy is run
`In Client.php line 103:

The command "rm -f /opt/baso/portal/backend/mergedportal/.dep/deploy.lock" f
ailed.

Exit Code: -1 (Unknown error)

Host Name: portal-01.network.net

================
Permission denied, please try again.
Received disconnect from 100.xxxx port 22:2: Too many authentication
failures
Disconnected from 100.xxx port 22 `

in my Server I have a user as root and inside config/deploy.php I have this configuration

'hosts' => [ 'portal-01.network.net' => [ 'deploy_path' => '/opt/baso/portal/backend/mergedportal', 'user' => 'root', ], ],

Gitlab.ci

        staging:
           stage: deploy
           script:
              - "which ssh-agent || ( apt-get update -y && apt-get install openssh-client -y )"
              - eval $(ssh-agent -s)
              - echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add - > /dev/null
              - mkdir -p ~/.ssh
              - chmod 700 ~/.ssh
              - ssh-keyscan portal-01.network.net >> ~/.ssh/known_hosts
              - chmod 644 ~/.ssh/known_hosts
              - php artisan deploy portal-01.network.net -s upload
        environment:
           name: staging
           url: portal-01.network.net
        only:
         - master

whoops sorry wrong repository.closing now