Skip to content

Is it possible to use redmine_git_hosting with git/gitolite installed on a different server ? #278

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

Closed
VoidAndAny opened this issue Sep 24, 2014 · 8 comments
Assignees
Labels

Comments

@VoidAndAny
Copy link

First thanks for your job, previous redmine gitolite I use were not so well done and maintained...

As I write on the subject is it possible to use redmine_git_hosting with git/gitolite installed on a different server ?

Server 1 : redmine + redmine_git_hosting
Server 2 : git + gitolite

Second question is github issues are the right place to ask question ?
I try to migrate from an old installation of redmine/gitolite to redmine_git_hosting I will probably have a lot of problem (importation of previous git repo, user access and right, gitolite.conf, user public keys...)...

@n-rodriguez
Copy link
Contributor

As I write on the subject is it possible to use redmine_git_hosting with git/gitolite installed on a different server ?

Server 1 : redmine + redmine_git_hosting
Server 2 : git + gitolite

Nope. They must be on the same server as Redmine needs to access to repository files (through sudo) to display them within the interface. On the top of that, think about the latency you could have when you browse your repository ;)

@n-rodriguez n-rodriguez self-assigned this Sep 24, 2014
@n-rodriguez
Copy link
Contributor

I try to migrate from an old installation of redmine/gitolite to redmine_git_hosting I will probably have a lot of problem (importation of previous git repo, user access and right, gitolite.conf, user public keys...)...

importation of previous git repo

Why importation? I think you should clone your current instance (Redmine+Gitolite) on your new server then:

  • update Redmine (code + database)
  • update the plugin (code + database)

and at the end, if you really need, update Gitolite. But do this on a separate machine to not break your current instance.

Also to do the clone use rsync ;)

@raphaelkong
Copy link

Hi, I've been strugeling this redmine migration from 1.2 to 2.5; after many hours of works, here is how I achieved it :

1/ Be sure to use a user called "git" for gitolite config in the plugin setup (I had some strange behaviour with other name ...)

2/ Some data in the repositories tables (field extra_info) may make the mess the history and revision, in redmine. I've updated this field for all repo to '' once the database has been migrated. I can depend of the version of redmine you are trying to migrate ...

3/ Public key name for repo acces have change ; I had to clear them for all my user, and re-add them. Same here, from 1.2 to 2.5 redmine, the name have changed.

4/ Regarding git repo, once the database has been setup in new redmine, and one the plugin has been configured, I called in the rescue pane, the project resync : this way, everything is ready in gitolite to mirror your repo. You can avoid this if you want to rsync your repo from the old one to the new one as Nicolas wrote.

What Ive done is the "git way" :

  • clone bare the repo (git --bare url:reponame.git)
  • change origin (git remote rm origin and git remote add origin newurl:repo.git)
  • push mirror to the new repo (git push --mirror origin)

This takes longer than rsync by the way :]

I hope this can help !

@VoidAndAny
Copy link
Author

Thanks for your answer.

For the moment I have Redmine 2.3.2 (migration to 2.5.2 will be easy) and this plugin : https://github.com/pibako/redmine-gitolite

This plugin seem to allow distant server but I don't try it (and it's not my priority, I prefer a plugin regularly updated).

Because of this change of plugin I had to install the new one redmine_git_hosting and try to import all my previous settings (keys, repo, gitolite.conf)...

For example my actual plugin have a gitolite_public_keys table but the new one have 2 more columns (easy problem), my gitolite run with a user named gitolite, redmine_git_hosting seems to prefix all user with redmine in gitolite.conf....

@n-rodriguez
Copy link
Contributor

my gitolite run with a user named gitolite

this can be changed

redmine_git_hosting seems to prefix all user with redmine in gitolite.conf

this can be changed too :)

@n-rodriguez
Copy link
Contributor

Hi there!

Can I close this issue?

@sheltonash
Copy link

@n-rodriguez Before I go completely crazy with my understanding. I get that we cannot have redmine and all our local repositories on the same server (due to your latency concerns previously mentioned) but should I be able to administer a remote gitolite installation (or else why can I specify a hostname and port for the gitolite installation ?)

@n-rodriguez
Copy link
Contributor

I get that we cannot have redmine and all our local repositories on the same server

Weird... actually you can and you must do like this.

should I be able to administer a remote gitolite installation (or else why can I specify a hostname and port for the gitolite installation ?

With the latest version of Redmine Git Hosting you can but it's not advised. See here : #546

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants