drdoctr / doctr

A tool for automatically deploying docs from Travis CI to GitHub pages.
https://drdoctr.github.io
MIT License
107 stars 30 forks source link

fetch command is failing with denied publickey #362

Closed moorepants closed 4 years ago

moorepants commented 4 years ago

I started getting this error on one of my past working deployments:

Successfully installed doctr-1.8.0

Running doctr deploy, version 1.8.0

Setting git attributes

git config --global user.name 'Doctr (Travis CI)'

git config --global user.email drdoctr@users.noreply.github.com

Adding doctr remote

ssh-add /home/travis/.ssh/github_deploy_key

Identity added: /home/travis/.ssh/github_deploy_key (/home/travis/.ssh/github_deploy_key)

git remote add doctr_remote git@github.com:moorepants/resonance.git

Fetching doctr remote

git fetch doctr_remote

Warning: Permanently added the RSA host key for IP address '140.82.114.4' to the list of known hosts.

Permission denied (publickey).

fatal: Could not read from remote repository.

Please make sure you have the correct access rights

and the repository exists.

git checkout ff9f46701a8ca0a198b7dcf87e9deb0ba1f42048

HEAD is now at ff9f467 Merge pull request #197 from moorepants/collections

git stash pop

No stash entries found.

ERROR: The doctr command '/home/travis/miniconda3/envs/resonance-dev/bin/doctr deploy --built-docs=deploy/ .' failed: SystemExit('\x1b[31mgit fetch doctr_remote failed: 128\x1b[0m')

git fetch doctr_remote failed: 128

From: https://travis-ci.org/moorepants/resonance/jobs/631248946?utm_medium=notification&utm_source=github_status

I even tried the prior doctr version (1.7.4) and had the same error. I haven't deployed this project in a year, until yesterday.

moorepants commented 4 years ago

I'm trying this now: https://awolski.com/sudden-permission-denied-publickey-error-in-travis/

moorepants commented 4 years ago

Flipping the travis on/off switch for the repo did not seem to work.

moorepants commented 4 years ago

My repo (resonance) does not have a doctr deploy key. I'm not sure why it would have disappeared over the last year. I guess I need to just run doctr configure again.

moorepants commented 4 years ago

Ok, after a doctr configure everything works again. I wasn't able to figure out why it stopped working over the past year of inactivity.