Tutorial: Redmine with Git and Gitosis on Ubuntu 11.04
by Felix Schulze • April 23, 2011 • Linux, Server, Tutorials, Web • 67 Comments
This is a tutorial for installing redmine on Ubuntu 11.04 with Git integration, managed by Gitosis and a redmine gitosis plugin.
It’s based on my last tutorial about installing redmine ob Ubuntu 8.04: http://www.x2on.de/2010/10/30/tutorial-redmine-with-svn-git-and-gitosis-on-ubuntu-8-04/
1. Install redmine
Get recent version from github (currently 1.1.3)
apt-get install git-core mkdir /var/www cd /var/www git clone git://github.com/edavis10/redmine.git cd redmine git checkout -b 1.1.3 1.1.3
Install packages
apt-get install ruby ruby1.9.1-dev libgemplugin-ruby libgemplugin-ruby1.8 mysql-server apache2-mpm-prefork wget libruby-extras libruby1.8-extras rake apache2-prefork-dev libapache-dbi-perl libapache2-mod-perl2 libdigest-sha1-perl libmysqlclient15-dev build-essential libcurl4-openssl-dev cron
If you like to use Gant-Charts:
apt-get install librmagick-ruby1.8
Create database
mysql -u root -p
CREATE DATABASE redmine CHARACTER SET utf8; CREATE USER 'redmine'@'localhost' IDENTIFIED BY 'my_password'; GRANT ALL privileges ON redmine.* TO 'redmine'@'localhost';
Configure Database Settings
cp redmine/config/database.yml.example redmine/config/database.yml
nano redmine/config/database.yml
production: adapter: mysql database: redmine host: localhost username: redmine password: my_password encoding: utf8
Install Rubygem (Ubuntu 11.04 has an older version)
wget http://production.cf.rubygems.org/rubygems/rubygems-1.7.2.tgz tar xvfz rubygems-1.7.2.tgz cd rubygems-1.7.2 mv /usr/bin/gem /usr/bin/gem-ubuntu ruby setup.rb ln -s /usr/bin/gem1.8 /usr/bin/gem
Install Rails + Rack
gem install rails -v=2.3.11 gem install rack -v=1.1.0 gem install mysql gem install -v=0.4.2 i18n
Configure redmine
cd /var/www/redmine chown -R www-data:www-data files log tmp public/plugin_assets chmod -R 755 files log tmp public/plugin_assets chmod -R 777 public/plugin_assets rake generate_session_store RAILS_ENV=production rake db:migrate RAILS_ENV=production rake redmine:load_default_data
Test redmine
ruby script/server webrick -e production
Now you can check http://my_domain.com:3000 if everything works
2. Apache Integration
Install passenger (Modify version numbers if needed)
gem install passenger passenger-install-apache2-module echo "LoadModule passenger_module /usr/lib/ruby/gems/1.8/gems/passenger-3.0.7/ext/apache2/mod_passenger.so" > /etc/apache2/mods-available/passenger.load ln -s /etc/apache2/mods-available/passenger.load /etc/apache2/mods-enabled/passenger.load
nano /etc/apache2/mods-available/passenger.conf
PassengerRoot /usr/lib/ruby/gems/1.8/gems/passenger-3.0.7 PassengerRuby /usr/bin/ruby1.8
Alternative: You can install passenger with ubuntu:
apt-get install libapache2-mod-passenger
Configure Apache
nano /etc/apache2/sites-available/my_domain
<VirtualHost *:80> ServerName my_domain.com DocumentRoot /var/www/redmine/public PassengerDefaultUser www-data RailsEnv production RailsBaseURI /redmine SetEnv X_DEBIAN_SITEID "default" <Directory /var/www/redmine/public> Order allow,deny Allow from all </Directory> </VirtualHost>
nano /etc/apache2/apache2.conf
Add this at the end of the file:
Include /etc/apache2/mods-available/passenger.conf
Activate your site
ln -s /etc/apache2/sites-available/my_domain /etc/apache2/sites-enabled/my_domain
Remove default entry
rm /etc/apache2/sites-enabled/000-default
Restart Apache and it should work
/etc/init.d/apache2 restart
3. Git integration
Install needed packages:
gem install inifile apt-get install libnet-ssh-ruby1.8 python-setuptools gem install lockfile net-ssh apt-get install gitosis git-daemon-run acl
Activate acl for your partition:
nano /etc/fstab
... UUID=xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx / ext4 acl,errors=remount-ro 0 1 ...
Reboot your machine:
reboot
Configure gitosis:
sudo -H -u gitosis ssh-keygen -t dsa
No Password, default file.
sudo -u gitosis cat ~gitosis/.ssh/id_dsa.pub | sudo -H -u gitosis gitosis-init sudo sed -i.orig 's:/var/cache:/srv/gitosis:g' /etc/sv/git-daemon/run sudo sv restart git-daemon
Install gitosis plugin for redmine:
setfacl -m user:www-data:r-x,mask:r-x ~gitosis/.ssh setfacl -m user:www-data:r--,mask:r-- ~gitosis/.ssh/id_dsa
cd /var/www/redmine script/plugin install git://github.com/xdissent/redmine_gitosis.git sudo -u www-data X_DEBIAN_SITEID=default RAILS_ENV=production rake db:migrate:plugins /etc/init.d/apache2 restart
Open your Browser, got to my_domain and login. Go to Administration – Plugins – Configure Redmine Gitosis plugin.
Change localhost to my_domain.
Change xdissent.com to my_domain.
Have fun!
Source:
http://brantinteractive.com/2007/02/16/getting-the-mysql-gem-installed-on-ubuntu/
http://www.redmine.org/wiki/1/RedmineInstall
http://wiki.ousli.org/index.php/Redmine_in_Ubuntu_Jaunty_9.04
http://www.redmine.org/wiki/1/HowTo_Install_Redmine_in_Ubuntu
http://www.redmine.org/wiki/redmine/Repositories_access_control_with_apache_mod_dav_svn_and_mod_perl
http://xdissent.com/2010/05/04/github-clone-with-redmine/
http://dev.remarkablewit.com/redmine/projects/dev-server/wiki
https://github.com/xdissent/redmine_gitosis
http://www.redmine.org/issues/2525
http://wiki.ubuntuusers.de/acl
Thank you for this great tutorial. I tested it with the new Ubuntu and it works like a charm.
Redmine with this Git integration is very cool
Thanks, that i was looking for
Nice tutorial, a few more comments would’t be bad.
Quick question. I got everything setup and running but gitosis asks for password when i’m trying to push or clone anything. Any ideeas?
Look at /var/log/apache2/error.log and see if there is a hint for your issue.
Hehe,
yea, there were some errors.
Can’t figure out what’s causing them tough.
Could not create directory ‘/var/www/.ssh’.
Failed to add the host to the list of known hosts (/var/www/.ssh/known_hosts).
Could not create directory ‘/var/www/.ssh’.
Failed to add the host to the list of known hosts (/var/www/.ssh/known_hosts).
To gitosis@172.16.88.141:gitosis-admin.git
7da1e1d..6d16e4b master -> master
fatal: Not a git repository: ‘/srv/gitosis/repositories/test2.git/’
fatal: Not a git repository: ‘/srv/gitosis/repositories/test2.git/’
Could not create directory ‘/var/www/.ssh’.
Failed to add the host to the list of known hosts (/var/www/.ssh/known_hosts).
Could not create directory ‘/var/www/.ssh’.
Failed to add the host to the list of known hosts (/var/www/.ssh/known_hosts).
Could not create directory ‘/var/www/.ssh’.
Failed to add the host to the list of known hosts (/var/www/.ssh/known_hosts).
To gitosis@172.16.88.141:gitosis-admin.git
6d16e4b..f4b3cdc master -> master
Does /var/www/.ssh exist and is it writable by the right people?
This is where ssh saves the keys so it knows who you are (so you don’t have the login).
Is it even looking in the right place?
I found it a little wird that the .ssh are saved in /var/www. Is this the proper path they should be stored in?
Nvm, delete last 2 comments pls.
So how did you fixed it ???
Should it store the key somewhere else what is the way to get this workiing ..
Please tell what you have found to fix it up ..
Thanks..
Jerry
Thanks for the tutorial!
I had problems while:
$ gem install mysql
Building native extensions. This could take a while…
ERROR: Error installing mysql:
ERROR: Failed to build gem native extension.
/usr/bin/ruby1.8 extconf.rb
extconf.rb:10:in `require’: no such file to load — mkmf (LoadError)
from extconf.rb:10
The fix was to install the ruby-dev package:
$ apt-get install ruby1.8-dev
See also this post: http://www.searchmarked.com/ubuntu/how-to-get-past-the-require-no-such-file-to-load-mkmf-loaderror-when-installing-the-mysql-gem.php
LG
Georg
Thank’s for the tutorial,
I had a problem, when i tried to run the command: gem install rails -v=2.3.11 it gives the following error: ERROR: While executing gem … (Zlib::DataError)
incorrect header check
Thank’s in advance.
Nuno
Sounds like you haven’t installed zlib: apt-get install zlib1g zlib1g-dev
I,
It says that that i have the most recent version off zlib1g and zlib1g-dev.
The most strange thing about this error is it gives the same error on windows and ubuntu.
Thank’s, best regards.
Nuno
Did you install the custom gem version as descriped above?
yes, i follow all the steps described above. And i don’t get any error until i run the command: gem install rails -v=2.3.11
I try the gem command help to see if there is a way to bypass the header check, but i didn’t see anything to do that.
Try wget http://production.s3.rubygems.org/gems/rails-2.3.11.gem
and then gem install rails-2.3.11.gem
Returns the same error.
This is making me crazy…
Thank you for your patience.
Best regard’s
You can also try
gem update –system
Nice tutorial!
However, I keep getting a fatal error when configuring redmine:
root@git-server:/var/www/redmine# rake generate_session_store
(in /var/www/redmine)
Missing the Rails 2.3.5 gem. Please `gem install -v=2.3.5 rails`, update your RAILS_GEM_VERSION setting in config/environment.rb for the Rails version you do have installed, or comment out RAILS_GEM_VERSION to use the latest version installed.
Since the error ask to install 2.3.5, I do just that:
root@git-server:/var/www/redmine# gem install -v=2.3.5 rails
After 2.3.5 is installed, I try again and get the next error:
root@git-server:/var/www/redmine# rake generate_session_store
(in /var/www/redmine)
rake aborted!
uninitialized constant ActiveSupport::Dependencies::Mutex
/var/www/redmine/Rakefile:10
(See full trace by running task with –trace)
My operating system is a clean and freshly installed Ubuntu 11.04 i386 server.
All suggestions are welcome since I don’t have any experience with ruby, rails,…
Try to checkout the latest redmine version from trunk: git checkout master
Thanks! Your suggestion worked perfectly
Thanks for your nicely done step-by-step recipe!
I encountered the same issue with 2.3.5 rails, but chose to use the later version instead, so I modified config/environment.rb as follows:
RAILS_GEM_VERSION = ’2.3.11′ unless defined? RAILS_GEM_VERSION
2.3.11 seems to be the latest version at this time.
I hope this helps!
Best Regards,
Dan
Pingback: Redmine on Debian Squeeze » Philipp Klaus's Computing Blog
Hi nice installation guide but I’m stuck at step where I have to run ‘rake generate_session_store’. I’m getting an error with the following message:
rake/rdoctask is deprecated. Use rdoc/task instead (in RDoc 2.4.2+)
WARNING: ‘task :t, arg, :needs => [deps]‘ is deprecated. Please use ‘task :t, [args] => [deps]‘ instead.
at /var/www/redmine/lib/tasks/email.rake:170
What can I do to resolve this problem. Here my ruby version and gem list:
ruby -v
ruby 1.8.7 (2010-01-10 patchlevel 249) [x86_64-linux]
*** LOCAL GEMS ***
actionmailer (2.3.11, 2.3.5)
actionpack (2.3.11, 2.3.5)
activerecord (2.3.11, 2.3.5)
activeresource (2.3.11, 2.3.5)
activesupport (2.3.11, 2.3.5)
i18n (0.4.2)
mysql (2.8.1)
rack (1.1.2, 1.1.0, 1.0.1)
rails (2.3.11)
rake (0.9.0)
That isn’t a error! Only a warning that redmine uses functions which are not supported in future ruby/rails versions…
You can ignore these warnings!
Ah ok, I see. Thanks for the fast reply.
Just wanted to say thanks for taking the time to document this. I have everything working on Ubuntu 11.04 (clean install) except the redmine plugin. I cannot create repositories linked to my redmine projects.
I get the following apache2 errors:
Warning: Identity file /srv/gitosis/.ssh/id_rsa not accessible: No such file or directory.
Permission denied, please try again.
Permission denied, please try again.
Permission denied (publickey,password).
fatal: The remote end hung up unexpectedly
if i try to initialize directy: sudo -H -u gitosis gitosis-init < /srv/gitosis/.ssh/id_rsa.pub
i get permission denied.
It also seems like the www-data user cannot access the .ssh folder, but acl should be setup correctly. i also added www-data to the gitosis group, but no dice.
Any help would be greatly appreciated!
HI, thanks for this tutorial.
However, I think it is a bad idea to install ruby as root – you might easily fuckup your system, especially if you are mixing ubuntu ruby packages and gem installed packages! I think it would be much better to install gems as user – this way it will still be possible to run multiple rails apps that depend on different rails versions. What you think about this?
Hi,
Thanks a lot for the tutorial.
When I tried to create a repository with GIT SCM, I do not get any errors when I push the create button but when I checked the repository page for the project, I get an error,
“Repository does not exist. Create one using the instructions below.”
After checking DB, I see redmine created a record in “repositories” table.
I checked “/srv/gitosis/repositories/” but I do not see any repositories there except for “gitosis-admin.git”,
I tried to chmod 0777 the repositories folder but it still does not create the repo.
I checked the logs but there are no errors for creating a repository.
What do you think about this? Should I be the one creating the repository manually for every project with Git SCM of I have not done something to make it work?
Hope you can help…
Cheers
Jon,
The bare repository won’t be there (in /srv/gitosis/repositories or on the ‘repository’ tab of the project) until you’ve done the first push after setting your remote URL. If you’re moving an existing repository to Redmine, I’d also recommend not only running:
git push origin master
but also:
git push origin –all
and:
git push –tags
if you’ve got branches and tags that you need to be shared.
You probably want to leave the repository permissions as-is, as they are bare and of interest only to the gitosis user, for all intents and purposes.
Thanks for the reply.
Can you check this one.
$ git push origin master
Proxy could not open connnection to redmine.local: Unknown Host
ssh_exchange_identification: Connection closed by remote host
fatal: The remote end hung up unexpectedly
then when I try to do it with sudo,
$ sudo git push origin master
[sudo] password for user:
gitosis@redmine.local‘s password:
How can I proceed? I have submitted my ssh keys already, tried dsa, and rsa but both does not work.
The host ‘redmine.local’ looks like a typical OS X machine host name. I’m not sure that Apache sees things the same way as normal LAN connections (e.g. ssh user@host.local), but I suppose it depends on your configuration.
I can tell you that if you’ve left the roles and permissions set to the defaults, you’ll need to be at least a developer to have push rights. That is to say: even admin rights will not grant you push rights to a project’s repository, and you will get the fatal error where the remote hangs up.
With the test project I just whipped up, I cannot induce the ‘ssh_exchange_identification’ error, however. That said, you’ve got some proxy information in that error message, whereas the server I interact with is currently only accessible on the local network and thus not subject to proxies.
if you have a user account on the machine in question, you can add your client machine’s public key to the authorized_keys file and try plain ol’ ssh connections to make sure that’s sorted out first. If normal ssh access isn’t achievable for whatever reason, then git actions over ssh certainly won’t work. Let me know if you need any help with getting that going.
Kind of an aside:
I’d strongly recommend disabling password authentication in your sshd configuration if you haven’t done so already, especially if the server is exposed to the www (but it’s a good habit even when it’s strictly a LAN server). The gitosis user’s password should really never be requested for any access. The auth logs on a web-facing server will generally show that the ssh port is being constantly pummeled.
Im having the exact same problem as John Daily, anybody can give us a solution?
Thanks much for these instructions. For the most part, I have had complete success.
One thing to note is that the official stance from the Redmine site re: gems is that the 1.2 (stable) version is not compatible with gems 1.7.0 and up. I didn’t notice any issues with 1.7.2 until I added more plugins. Unfortunately, I’ve forgotten which plugin was giving me issues (might have been better Gantt charts). In any case, I’ve downgraded gems to 1.6.2 and haven’t had any issues (probably) with the gitosis plugin integration. Fortunately, it’s easy enough to change the gem version with
gem update –system
for the latest, or e.g.
gem update –system 1.6.2
or of course you can just download an archive and run the setup.rb.
The one thing that I cannot seem to get working correctly is the post-update hook that should be executing ‘git update-server-info’ for the git-daemon HTTP public read-only versions of the repositories. As far as I can tell, that script never runs. I can definitely run the appropriate command manually inside the bare repositories in /srv/gitosis/repositories, but the info is stale as soon as another push is made to the remote.
The error when attempting:
git clone http://redmine-server/git/some-repository.git
is:
fatal: http://redmine-server/git/some-repository.git/info/refs not found: did you run git update-server-info on the server?
The gitosis user owns all of the repository directories. Inside /svr/gitosis/repositories/gitosis-admin.git/hooks is ‘post-update’, which is a symlink to /usr/share/pyshared/gitosis/templates/admin/hooks/post-update, and these are executable by all. This post-update hook has the correct command (‘git update-server-info’).
This particular Redmine instance is home to a (seemingly ever-growing) number of projects, any of which may have an associated repository, so I’d prefer not to resort to updating the info with a cron job if there’s a simple solution.
Legend!
Needed to do a few tweaks but after days of trying and failing this tutorial got me through it.
Pingback: 一些 Redmine 安装资料 « 我读
I’m lost with this command:
script/plugin install git://github.com/xdissent/redmine_gitosis.git
I tried several variants, like:
sudo install git://github.com/xdissent/redmine_gitosis.git script/plugin
or
sudo install https://github.com/xdissent/redmine_gitosis.git script/plugin
and a few other variants.
What is the trick?
I always receive messages like:
> cannot stat `git://github.com/xdissent/redmine_gitosis.git’: No such file or directory
What is going wrong?
It sounds like you don’t have git installed run:
sudo apt-get install git-core
and then try the command again.
Good Luck!
Thank you Ben for the tip!
But git-core is installed:
> git-core is already the newest version.
> 0 upgraded, 0 newly installed, 0 to remove and 11 not upgraded.
I hope you have another suggestion.
Regards,
Stefan
At the begin there is a strange command for a beginner:
> apt-get install apt-get install ruby ruby1.9.1-dev libgemplugin-ruby libgemplugin-ruby1.8 mysql-server apache2-mpm-prefork wget libruby-extras libruby1.8-extras rake apache2-prefork-dev libapache-dbi-perl libapache2-mod-perl2 libdigest-sha1-perl libmysqlclient15-dev build-essential libcurl4-openssl-dev cron
Could it be that there is a typo?
I receive the following error message:
> E: Unable to locate package apt-get
> E: Unable to locate package install
It is strange to me to put two times the command “apt-get install apt-get install”
in one line. If it is a typo you can delete this entry.
Regards, Stefan
Thanks for this hint. I corrected the typo…
Great Tutorial, but the RailsBaseURI /redmine doesnt actually seem to be working.
Has anyone got the my_host.com/redmine passenger sub-uri to work with these instructions?
Pingback: Installation de Redmine + git avec nginx | Blog de Yohann Lepage
Pingback: Install Redmine on Ubuntu11.04 « The Edge of Reason
I found the database.yml in the folder “/usr/share/redmine/public/config”
is this the folder you expect it to be?
And where should I copy the modified “database.yml”,
should it be:
“/var/www/redmine/config/database.yml”?
What is the proper directory to perform the following command:
> wget http://production.cf.rubygems.org/rubygems/rubygems-1.7.2.tgz
Is it “/var/www/redmine” ? I performed the “wget” and “tar”-command
in my home directory. Which directory do you suggest for the job?
Now I went to the redmine directory to set the proper access rights:
> cd /var/www/redmine
But if I give the command:
> chown -R www-data:www-data files log tmp public/plugin_assets
I receive the following error message:
> chown: cannot access `public/plugin_assets’: No such file or directory
And here is the content of my redmine directory:
> ls
> app db extra lib public README.rdoc test vendor
> config doc files log Rakefile script tmp
Have I missed a step?
The command:
> ruby script/server webrick -e production
does not complete, I receive some error messages:
> ActiveRecord::StatementInvalid (Mysql::Error: Table ‘redmine.settings’ doesn’t exist: SHOW FIELDS FROM `settings`):
> …
> Rendering /usr/share/redmine/public/public/500.html (500 Internal Server Error)
The echo command failed, one reason is the fact that the version number has changed from
“3.0.7″ to “3.0.8″, therefore I changed the command to:
> sudo echo “LoadModule passenger_module /usr/lib/ruby/gems/1.8/gems/passenger-3.0.8/ext/apache2/mod_passenger.so” > /etc/apache2/mods-available/passenger.load
But this was not sufficient, I received the error message:
> bash: /etc/apache2/mods-available/passenger.load: Permission denied
For now it is enough. I hope my feedback is helpful.
Regards, Stefan
by chance I found one problem, I tried the following command:
> rake -v
and received the information:
> Run `rake gems:install` to install the missing gems.
> Errors running test:units, test:functionals, and test:integration!
The command was not working in the first run, I had to add the lines:
> development:
> adapter: mysql
> database: redmine_development
> host: localhost
> username: root
> password: mypassword
> encoding: utf8
in the file “database.yml”.
I removed this entry from the “database.yml.example”, because it was
not clear to me that this entry is needed.
Now I was able to set the access rights and to perform the next steps,
and I’m able to open: “http://127.0.0.1:3000″
Restart Apache failed:
I was not able to restart teh apache server, the error message is:
> Syntax error on line 10 of /etc/apache2/sites-enabled/my_domain:
> order not allowed here
> Action ‘configtest’ failed.
I found in the net the recommendation to edit “httpd.conf”, hence,
I opened the file:
> sudo nano /etc/apache2/httpd.conf
and added:
#
# Each directory to which Apache has access can be configured with respect
# to which services and features are allowed and/or disabled in that
# directory (and its subdirectories).
#
# First, we configure the “default” to be a very restrictive set of
# features.
#
Options FollowSymLinks
AllowOverride FileInfo
Order deny,allow
Deny from all
# —
But this is not sufficient, what else is necessary?
Ok, I found the problem, if you paste text with HTML specific letters like “”
these letters are not visible, in the example above two lines are not visible.
I add quotes to protect the special letters, I hope it works (here is no preview button).
“”
Options FollowSymLinks
AllowOverride FileInfo
Order deny,allow
Deny from all
”
”
Felix could you edit the example of “my_domain” in a way that I can see the missing lines? Regards, Stefan
Ok, I was not successful, next try:
<VirtualHost *:80>
[...]
<Directory “/usr/share/redmine/public”>
Options FollowSymLinks
AllowOverride FileInfo
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
There was an error in the syntax highlighting above, i fixed this…
Hi Stefan I am having the same errors as you, did you finally sort them out? because I have do every thing you did but my site my_domain.com is not running when I try it in the browser.
Hi,
I got a problem running this command
setfacl -m user:www-data:r-x,mask:r-x ~gitosis/.ssh
when trying to integrate GIT with redmine. The error that came out was
setfacl: /srv/gitosis/.ssh: Operation not supported
I have no idea what to do with this error. Hope you guys can help. Thanks!
I am having the same issue.
Fikri, Were you able to get this resolved?
Pingback: Getting Work Done with Linux | Jupiter Broadcasting
I have tried this tutorial a couple times and have had various things not work. I would greatly appreciate a little push in the right direction.
Currently I’ve got almost everything working – I’m stuck on getting a password prompt when trying to push a new repository. A complete log of my installation steps and more information can be found here:
https://github.com/rocket-rentals/redmine-gitosis/issues/15
I’m experiencing the same thing. I can find lots of forums and posts and questions on the internet about getting password prompt when trying to push a new repository, and no solution. Following this helpful guide doesn’t help. and it looks like the culprit is that this plugin (gitosis redmine plugin) isn’t actually doing anything to control the ssh keys added in the web interface (at least not in any way that gitosis cares about at all).
Does anyone have a solution? A hack to the plugin to make it start working?
Pingback: Installing Redmine and gitosis on a Debian root-server with MySQL » mhk's blog
Pingback: Install redmine with MySQL in Ubuntu 11.04 « Blog about cooking, technology and something else
Hi, nice post, but I have had a lot of problems installing Rails + Rack. My adventures installing it without github are explained here:
http://myotragusbalearicus.wordpress.com/2011/09/05/install-redmine-with-mysql-in-ubuntu-11-04/
kind regards
I have my site in a server that i don’t have access to the port 3000 so I cannot test the mydomain.com:3000
but the server runs:
> Booting WEBrick
=> Rails 2.3.11 application starting on http://0.0.0.0:3000
NOTE: SourceIndex.new(hash) is deprecated; From /usr/lib/ruby/gems/1.8/gems/rails-2.3.11/lib/rails/vendor_gem_source_index.rb:100:in `new’.
=> Call with -d to detach
=> Ctrl-C to shutdown server
[2011-09-08 16:30:39] INFO WEBrick 1.3.1
[2011-09-08 16:30:39] INFO ruby 1.8.7 (2010-08-16) [i686-linux]
[2011-09-08 16:30:40] INFO WEBrick::HTTPServer#start: pid=27072 port=3000
Can I terminate the server?
after i try the apache configs my site just give me a 500 error:
Internal error
An error occurred on the page you were trying to access.
If you continue to experience problems please contact your Redmine administrator for assistance.
If you are the Redmine administrator, check your log files for details about the error.
the log is empty…
Ok I’ve managed to configure it but i cannot do any push to the server always says:
Permission denied (publickey).
fatal: The remote end hung up unexpectedly
my keys are not being added to the permited keys using the redmine… how can i see what is wrong?
i would like some help here please
Thanks for the tutorial, but is it possible to use gitolite instead, since gitosis isn’t supported anymore?
Dear all,
I’ve followed the steps. It seems everything is ok until I want to clone a repository. It prompts me for a password.
First question, git client user has to create a dsa or rsa keypair?
When I upload a key to my profile, where is it get copied?
Regards,
Virgilio
Dear everyone,
I would like to change port to run Redmine; let’s say port :8000 rather than port :80.
Please guide me to do that change. I appreciate it.
Thank you so much for sharing this!
It is really helpful.
Great tutorial.
However, I can get the site working with webrick but not via Apache?
Can anyone point me in the correct direction of what I am doing wrong? I have done everything to the book.
Cheers
Nigel
Hi
you should change
cd /var/www/redmine
script/plugin install git://github.com/xdissent/redmine_gitosis.git
by
cd /usr/share/redmine
script/plugin install git://github.com/xdissent/redmine_gitosis.git