Hi All,
The mirror section doesn't seem to be accepting ssh:// URLs either and
results in a 500 error.
This is the log from /var/log/gitlab/gitlab-rails/production.log
Processing by Projects::MirrorsController#update as HTML Parameters:
{"utf8"=>"✓", "authenticity_token"=>"[FILTERED]",
"project"=>{"mirror"=>"1", "import_url"=>"[FILTERED]",
"mirror_user_id"=>"2", "mirror_trigger_builds"=>"1",
"remote_mirrors_attributes"=>{"0"=>{"enabled"=>"1", "url"=>""}}},
"namespace_id"=>"dev", "project_id"=>"mn_mirror"}Completed 500 Internal
Server Error in 349ms (ActiveRecord: 18.4ms)URI::InvalidURIError (the
scheme ssh does not accept registry part: [email protected]:github (or bad
hostname?)): lib/gitlab/import_url.rb:4:in `initialize'
app/models/project.rb:465:in `new' app/models/project.rb:465:in
`import_url=' app/controllers/projects/mirrors_controller.rb:14:in `update'
lib/gitlab/middleware/go.rb:16:in `call'
lib/gitlab/middleware/readonly_geo.rb:29:in `call'
when using the shorthand (i.e., without the preceding ssh://) it throws a
different error.
Processing by Projects::MirrorsController#update as HTML Parameters:
{"utf8"=>"✓", "authenticity_token"=>"[FILTERED]",
"project"=>{"mirror"=>"1", "import_url"=>"[FILTERED]",
"mirror_user_id"=>"2", "mirror_trigger_builds"=>"1",
"remote_mirrors_attributes"=>{"0"=>{"enabled"=>"1", "url"=>""}}},
"namespace_id"=>"dev", "project_id"=>"mn_mirror"}Completed 500 Internal
Server Error in 153ms (ActiveRecord: 15.8ms)URI::InvalidURIError (bad
URI(is not URI?): [email protected]:github/hub.git):
lib/gitlab/import_url.rb:4:in `initialize' app/models/project.rb:465:in
`new' app/models/project.rb:465:in `import_url='
app/controllers/projects/mirrors_controller.rb:14:in `update'
lib/gitlab/middleware/go.rb:16:in `call'
lib/gitlab/middleware/readonly_geo.rb:29:in `call'
~Shauvik
On Tuesday, May 3, 2016 at 4:52:19 PM UTC-4, Shauvik Roy Choudhary wrote:
>
> Hi,
>
> I've setup gitlab ee to mirror a github repo using the URL:
> https://username:[email protected]/group/project.git
>
> It works right when added but after a while, I am noticing that the
> username:password fields missing from the <gitlab_site>/group/repo/mirror
> page.
> If I re-enter the credentials, it works but after the next time, it
> disappears again.
>
> Is there a way to make it persist my credentials?
>
> ~Shauvik
>
--
You received this message because you are subscribed to the Google Groups
"GitLab" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/gitlabhq/7f3b46fe-8d93-47c8-9a54-1c451ac5a01f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.