Erreur 406 on a HG or Git clone - 4.27.1 on Redhat 9

Hello The Community

I have a fresh installation, all are functional on the webui (including repo creation, browse, add files ect …)
but we have an error 406 when we try to clone a repository with git or mercurial:
fatal: unable to access ‘https…’ : The requested URL returned error: 406
or with debug:
sending capabilities command
abort: HTTP Error 406: Not Acceptable

On the log from rhodecode we have no error, the operation appear stopped at the [GNCRN]… cmd=capabilities" usr:- “-” "mercurial/proto-1.0 (Mercurial 6.3.2

The configuration are
Rhodecode 4.27.1
Redhat 9.4
Apache in proxy (2.4.57)

Also I have a same installation on CentOS 8.5 with Apache 2.4.37, and it works

I don’t see where is the problem, is it possible we have an incompatibilities with Apache 2.4.57 or Redhat 9 …

Thank you for your help

Hi,

we think this is related to not able to detect ssl calls via having apache as a front proxy.

Please try setting force_https variable to true in rhodecode.ini file.

Restart RhodeCode then it might help your issue

Hi

Thank for your response, I tested with this option and I have the same result
Always the 406 error

Ok, then please try to disable option in the UI

Admin → Settings → VCS → Require SSL for vcs operations

This probably is not working fine with Apache in front of RhodeCode

1 Like

Great, it works, with disabled the “… SSL for vcs operation” option
Thanks

1 Like