-
Notifications
You must be signed in to change notification settings - Fork 117
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
Comments
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 ;) |
Why importation? I think you should clone your current instance (Redmine+Gitolite) on your new server then:
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 |
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" :
This takes longer than rsync by the way :] I hope this can help ! |
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.... |
this can be changed
this can be changed too :) |
Hi there! Can I close this issue? |
@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 ?) |
Weird... actually you can and you must do like this.
With the latest version of Redmine Git Hosting you can but it's not advised. See here : #546 |
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...)...
The text was updated successfully, but these errors were encountered: