Could not read from remote repository. Please make sure you have the correct access rights #2758
-
Never had this before
We normally grab latest code from Github and update server. I tried Host staging.app.com
UserKnownHostsFile /dev/null
IdentityFile ~/.ssh/id_rsa
StrictHostKeyChecking no
ForwardAgent yes in
also all my releases were wiped!
and
@antonmedv What to do? here full import:
- recipe/laravel.php
- contrib/php-fpm.php
- contrib/npm.php
config:
application: 'site-app'
remote_user: forge
deploy_path: '~/{{hostname}}'
repository: '[email protected]:site/site-app.git'
php_fpm_version: '8.0'
keep_releases: '10'
shared_files:
- '.env'
- '.transip_private_key'
- 'storage/app/exact.api.json'
shared_dirs:
- 'bootstrap/cache'
- 'public/uploads'
- 'public/published'
- 'storage/framework/cache'
- 'storage/framework/sessions'
- 'storage/framework/views'
- 'storage/logs'
- 'storage/tls'
- 'storage/app/public'
- 'storage/app/modules'
writable_dirs:
- 'public/uploads'
- 'public/published'
- 'storage/framework/cache/data'
- 'storage/logs'
- 'storage/tls'
- 'storage/app/public'
- 'storage/app/modules'
hosts:
prod:
hostname: 'site.com'
staging:
hostname: 'staging.site.com'
tasks:
deploy:
- deploy:prepare
- deploy:vendors
- artisan:storage:link
- artisan:view:cache
- artisan:config:cache
- artisan:optimize
- artisan:migrate
- artisan:queue:restart
- artisan:horizon:terminate
- deploy:publish
after:
deploy:symlink: php-fpm:reload
deploy:failed: deploy:unlock Could have sworn we used agent forwarding before. Not sure what the issue is now failing all and deleting all releases. Did try git_tty: true
ssh_type: native no dice either and still: Read #2641 but no proper solution there yet. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 13 replies
-
Hi, have you tested your SSH connection with github on your staging server? |
Beta Was this translation helpful? Give feedback.
-
@msplu FYI Production I just now also had the same issue:
So again did something similar. I removed the offending key. Then I did
Once I did that I could deploy again with agent forwarding:
again one release skipped but because I knew what to do I did not do several failed attempts. Do start to wonder if a deploy key is better... |
Beta Was this translation helpful? Give feedback.
Hi, have you tested your SSH connection with github on your staging server?