Looking at this more, I can deploy on another site on the same server pointing to the same repository. The only difference is the branch.
remote: ERROR: Your SSH key has expired.
Of my many forge servers with repositories connected to the same gitlab account, only 1 of them says this when deploying:
remote:
remote: ========================================================================
remote:
remote: ERROR: Your SSH key has expired.
remote:
remote: ========================================================================
remote:
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
The same thing appears when accessing the server with SSH and running git pull
From what I can see on gitlab, none of my keys are expired, but maybe I'm looking in the wrong place. I create new servers and sites regularly, and besides adding my personal ssh key for remote access and setting a webhook for auto-deploy, there is no other step to make deployments work.
How do I debug this? Again none of my other servers have this failure, and this server used to let me deploy fine a few months ago.
Please or to participate in this conversation.