Random ssh failure with Internal API error

Hi everyone,

We have some issues when cloning project with ssh (works fine with https).
Sometimes it works, sometimes we get an Access denied.

In the gitlab-shell.log we can see :

{“command”:"*uploadpack.Command",“correlation_id”:“xxxxx”,“env”:{“GitProtocolVersion”:"",“IsSSHConnection”:true,“OriginalCommand”:“git-upload-pack ‘xxxxxx.git’”,“RemoteAddr”:"xxxxxxx},“level”:“info”,“msg”:“gitlab-shell: main: executing command”,“time”:“2022-03-02T13:34:02Z”}
{“correlation_id”:“xxxx”,“duration_ms”:596,“error”:“The project you were looking for could not be found or you don’t have permission to view it.”,“level”:“error”,“method”:“POST”,“msg”:“Internal API error”,“status”:404,“time”:“2022-03-02T13:34:03Z”,“url”:“http://unix/api/v4/internal/allowed”}

Not sure if it is related but we see in gitlab-rails/exceptions_json.log this error :
“exception.message”:"URL ‘/info/refs?service=git-upload-pack’ is blocked: Only allowed schemes are "

I can’t find anything to solve the problem…
Any ideas?

Self-managed Gitlab CE - 14.7.2
Ubuntu 20.04

Thanks