Unable to remove project - SSL error: wrong version number

Hi,

i’m pretty new on Gitlab and i’m facing a problem on our gitlab after migrating it from HTTP to HTTPS.

When i marked a project to be removed, i’ve got this message in logs but no more info…

This project was scheduled for deletion, but failed with the following message: SSL_connect returned=1 errno=0 state=error: wrong version number

Everything works except that point. We are using a signed wildcard certificate from thawte CA (installed with full chained as describe in documentation)

Any idea ? Didn’t find help on google about a similar issue or a way to debug correctly.

Thanks for helping

$gitlab-rake gitlab:env:info

System information
System:
Current User:   git
Using RVM:      no
Ruby Version:   2.6.6p146
Gem Version:    2.7.10
Bundler Version:1.17.3
Rake Version:   12.3.3
Redis Version:  5.0.9
Git Version:    2.28.0
Sidekiq Version:5.2.9
Go Version:     unknown

GitLab information
Version:        13.3.6
Revision:       15c2c8c66db
Directory:      /opt/gitlab/embedded/service/gitlab-rails
DB Adapter:     PostgreSQL
DB Version:     11.7
URL:            https://gitgpmh.havre-port.net
HTTP Clone URL: https://gitgpmh.havre-port.net/some-group/some-project.git
SSH Clone URL:  git@gitgpmh.havre-port.net:some-group/some-project.git
Using LDAP:     yes
Using Omniauth: yes
Omniauth Providers: 

GitLab Shell
Version:        13.6.0
Repository storage paths:
- default:      /donnees/git-data/repositories
GitLab Shell path:              /opt/gitlab/embedded/service/gitlab-shell
Git:            /opt/gitlab/embedded/bin/git

nobody has an idea ?

up please

Hi,

from a quick glance, SSL_connect returned=1 errno=0 state=error: wrong version number typically means that you made a request with TLS (https) towards an http only endpoint.

Probably the project was marked for deletion before you migrated to https, and still thinks that it needs delete asynchronously via http instead of https.

I would recommend to carefully investigate on the rails console, and remove the pending projects “manually”: https://docs.gitlab.com/ee/administration/troubleshooting/gitlab_rails_cheat_sheet.html#find--remove-projects-that-are-pending-deletion

Cheers,
Michael

Hi,

thanks for your answer.

Probably the project was marked for deletion before you migrated to https, and still thinks that it needs delete asynchronously via http instead of https.

No i have created this project and another one for testing after migrating to https.

I’m wondering who is the http endpoint. I’ve the gitlab server and 2 gitlab runner with docker engine.

I’ll try the rail console and looking for your documentation.

Thanks
Cyril