-
Notifications
You must be signed in to change notification settings - Fork 117
Repository not found when accessed through HTTPS #568
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
URL https://[email protected]/orekit/orekit-main.git (without the "git/" subdirectory) works too! |
Any idea? :( Considering that the url " |
This sounds like a bug... I don't have time to take a look on it for now and for the month coming. |
+1 I just figure out this issue The problem is that I want to increase the |
This one is really annoying, I can not upgrade my plugin without breaking every user clone URLs 😕. |
Any news? :( I just reproduced the issue with an instance of the last released version of Redmine (3.3.0) using the last released version of the plugin (1.2.1): Plugin configuration:
Try: But it works if I empty the "Subdirectory for HTTP access" field:
|
Hello, I'm trying to look at this issue, it may be related to the # Enable SmartHTTP Grack support
mount Grack::Bundle.new({}), at: '/', constraints: lambda { |request| /[-\/\w\.]+\.git\//.match(request.path_info) }, via: [:get, :post] in 0.6.3 it was: # SMART HTTP
match ':repo_path/*git_params', :prefix => GitHostingConf.http_server_subdir, :repo_path => /([^\/]+\/)*?[^\/]+\.git/, :to => 'smart_http#index' in 0.7.10 it was: # SMART HTTP
match ':repo_path/*git_params', :prefix => RedmineGitolite::ConfigRedmine.get_setting(:http_server_subdir),
:repo_path => /([^\/]+\/)*?[^\/]+\.git/,
:to => 'smart_http#index',
:via => [:get, :post] I don't know how to express the Regards. |
According to rails documentation mounting with So I think we should start with: mount Grack::Bundle.new({}),
at: (RedmineGitHosting::Config.http_server_subdir rescue '/'),
constraints: lambda { |request| /[-\/\w\.]+\.git\//.match(request.path_info) },
via: [:get, :post] so Grack will always handle requests at the root path. Unfortunately, this is not sufficient, now I have the following in my logs:
Regards. |
In
I changed debug logging to error in
|
Any idea? |
Replying to myself, I finally found the answer, as git user I need to do
I think the plugin should try to default on several PATHes. |
And to push you need:
|
Now I can clone with #621 and the global git configuration set for user
I see nothing in logs except:
So, redmine return a 404 but even in debug mode According to sudo logs the latest command run is
Do you have any hints? |
I found the push issue, it's due to the way https://github.com/jbox-web/grack (v0.2) works compared to https://github.com/gitlabhq/grack (v2.0.2). The problem comes from Your older version requires:
The new code of So for now I must configure as the following:
|
Many thanks baby-gnu! i owe you a pack! |
About Here And The biggest issue here was the prefix not set in the |
Thanks for the note, for now it's working with
I think the new code will requires
Regards. |
Well, this is weird because I don't need this to make it works... |
#658 [ERROR] Problems while getting SmartHttp params NoMethodError (undefined method chomp' for true:TrueClass): plugins/redmine_git_hosting/lib/grack/auth.rb:44:inauth!' |
I've just updated my installation to a new environment and I've had to execute the following command to make https clone/push working again.
|
I've finally found what happened in my Redmine installation. One of the user uploaded an invalid SSH key that was breaking the gitolite config compilation.
As result of that, the new repositories where created, but without the necessary git configuration values. |
Hi i am having problem cloning repo on termux |
As discussed in #732 (comment), issues related to Redmine < 4.0 or severely outdated issues are being closed to help clean up the issue tracker. If this issue is still relevant to you and you are running Redmine >= 4.0, please open a new issue including all new relevant information. |
Hi,
Summary:
URL displayed by Redmine:
Cloning attempts:
The difference between the second and the third tries is that "**/git/" was replaced by ":**git/"
What's wrong?
Detailed explanation:
I just deployed Redmine 3.2 and Redmine Git Hosting 1.2 plugin in a fresh Debian Jessie 8.3 VM, using Apache 2.4.10, PostgreSQL 9.4.5, Gitolite 3.6.1 and RVM 1.26.11:
I configured SSH and HTTPS access:
In the "Config Test" tab of the plugin configuration interface, all items are green.
I created a project named "orekit" and a repository named "orekit-main". Therefore, the interface offers the following access url:
So, I tried to clone this repository through the two protocols:
SSH attempt with offered url:
/opt/gitolite/.gitolite/logs/gitolite-2016-01.log:
HTTPS attempt with offered url:
/var/log/apache2/forge.example.net.access_ssl.log:
/opt/redmine/current/log/redmine.log:
HTTPS attempt with alternative to offered url ("**/git/" was replaced by ":**git/"):
/var/log/apache2/forge.example.net.access_ssl.log:
/opt/redmine/current/log/redmine.log:
I don't understand that is wrong in the configuration. :(
Thanks in advance for your help!
The text was updated successfully, but these errors were encountered: