This guide is based on the Ubuntu Installation Guide from the Gitorious Wiki, but it is a little outdated, so here’s my updated version.
Sudo make sandwich
Pretty much all of the following commands need to be executed as the superuser, so first of all we make ourselves root (alternatively you could prepend sudo to every command, but that is rather tiresome. I do not recommend to always work as root though, because that way you will incur the wrath of the invisible pink unicorn):
[sudo] password for <username>:
Install packages
When installing all these packages, you will be asked for a MySQL root password, which you should remember, because you will need it later on.
build-essential zlib1g-dev tcl-dev libexpat-dev libxslt1-dev \
libcurl4-openssl-dev postfix apache2 mysql-server mysql-client \
apg geoip-bin libgeoip1 libgeoip-dev sqlite3 libsqlite3-dev \
imagemagick libpcre3 libpcre3-dev zlib1g zlib1g-dev libyaml-dev \
libmysqlclient15-dev apache2-dev libonig-dev ruby-dev rubygems \
libopenssl-ruby libdbd-mysql-ruby libmysql-ruby \
libmagick++-dev zip unzip memcached git-core git-svn git-doc \
git-cvs irb
Install Ruby Gems
Apparently some of the gems required by Gitorious need at least RubyGems v1.4 to work, and Ubuntu 11.04 ships with v1.3.7, so you need to force-update RubyGems (“force” because usually you would update RubyGems through aptitude):
Now we can install all the necessary gems:
gem install --no-ri --no-rdoc -v 1.1.0 daemons && \
gem install -b --no-ri --no-rdoc \
rmagick stompserver passenger bundler
You may ask yourself why there are significantly less Gems here compared to the old guide. This is because bunder installs all those Gems automagically from the data in the Gemfile.lock
Installing the Sphinx Search Server
tar -xzf sphinx-0.9.9.tar.gz && \
cd sphinx-0.9.9 && \
./configure --prefix=/usr && \
make all install
Getting Gitorious
cd /var/www/gitorious && \
git submodule init && \
git submodule update
Easy as pie. Now we just need to put the Gitorious binary on our path:
Configuring services
Gitorious needs a bunch of background services, so we need to copy the supplied startup scripts:
cp git-daemon git-poller git-ultrasphinx stomp /etc/init.d/ && \
cd /etc/init.d/ && \
chmod 755 git-daemon git-poller git-ultrasphinx stomp
and enable them:
update-rc.d git-poller defaults && \
update-rc.d git-ultrasphinx defaults && \
update-rc.d stomp defaults
We need to create an additional symlink, because all the startup scripts have RUBY_HOME set to /opt/ruby-enterprise (alternatively we could just patch the files, but this way it is easier and you can update the scripts if needed):
Configuring Apache
Passenger
First of all, we need to compile the Apache2 passenger module:
The passenger configuration script will tell you exactly what you’ll need to add to your apache configuration. The part you need to copy looks like this:
LoadModule passenger_module <some path>
PassengerRoot <another path>
PassengerRuby <yet another path>
After you restart Apache, you are ready to deploy any number of Ruby on Rails
applications on Apache, without any further Ruby on Rails-specific
configuration!
These three lines need to be inserted into
Enabling necessary modules
a2enmod rewrite && \
a2enmod ssl
Creating the Apache2 sites
- Create /etc/apache2/sites-available/gitorious (see files below)
- Create /etc/apache2/sites-available/gitorious-ssl (see files below)
Now we need to disable the default site, and enable our freshly created Gitorious sites:
a2dissite default-ssl && \
a2ensite gitorious && \
a2ensite gitorious-ssl
Creating a MySQL user for gitorious
Enter password: (your mysql root password you selected while installing the packages)
mysql> GRANT ALL PRIVILEGES ON *.* TO 'gitorious'@'localhost' IDENTIFIED BY '<insert password>' WITH GRANT OPTION;
mysql> FLUSH PRIVILEGES;
Configuring Gitorious
First of all, we need to make sure we have all gems in the correct version for Gitorious, so we run the following:
bundle install && \
bundle pack
Now we can create the user under which Gitorious will run and serve the Git repositories:
chown -R git:git /var/www/gitorious
Then we need to create some stuff that Gitorious needs to run:
mkdir .ssh && \
touch .ssh/authorized_keys && \
chmod 700 .ssh && \
chmod 600 .ssh/authorized_keys && \
mkdir tmp/pids && \
mkdir repositories && \
mkdir tarballs
Creating the Gitorious configuration
Lets copy the sample configuration files to the correct path:
cp config/gitorious.sample.yml config/gitorious.yml && \
cp config/broker.yml.example config/broker.yml
Now edit the config/database.yml and make sure you set the correct username and password in the production section. After that, we need to set a couple of things in config/gitorious.yml:
- Make sure you are configuring the right section (not
test:, butproduction:) - repository_base_path should be
/var/www/gitorious/repositories - cookie_secret needs to be set to a random value >= 30 characters
- gitorious_client_port should be 80
- gitorious_host needs to be the exact hostname that clients will use (cookies get messed up otherwise)
- archive_cache_dir should be
/var/www/gitorious/tarballs - archive_work_dir should be something like
/tmp/tarballs-work - hide_http_clone_urls should be true (they require extra unknown setup to work)
- is_gitorious_dot_org should be false
Creating the Gitorious database
Because of an incompatibility of RubyGems with Rails < 2.3.11 you need to add the following line at the top of config/boot.rb:
Now we let rake do all the work for us:
bundle exec rake db:create && \
bundle exec rake db:migrate && \
bundle exec rake ultrasphinx:bootstrap
Create the Sphinx Cronjob
Create an admin user
Reboot
You’re finally done. Reboot your Ubuntu machine, and your Gitorious installation should be up and running. If you find an error, feel free to leave a comment and I will fix it as soon as possible :)
Files
gitorious
ServerName your.server.com
DocumentRoot /var/www/gitorious/public
</VirtualHost>
gitorious-ssl
<VirtualHost _default_:443>
DocumentRoot /var/www/gitorious/public
SSLEngine on
SSLCertificateFile /etc/ssl/certs/ssl-cert-snakeoil.pem
SSLCertificateKeyFile /etc/ssl/private/ssl-cert-snakeoil.key
BrowserMatch ".*MSIE.*" nokeepalive ssl-unclean-shutdown downgrade-1.0 force-response-1.0
</VirtualHost>
</IfModule>
Thanks for the writeup!
Looks like package ‘libopenssl-rub’ should be ‘libopenssl-ruby’
Indeed, fixed that. Thanks :)
It looks like before running
bundle install
One should run:
Otherwise, I got a
Yeah, I somehow forgot the bundler gem in the Installing Ruby Gems section, thanks :)
Awesome writeup, was super easy to follow!
I’ve got one problem, everything seems to be working until I try and login, and I get this error:
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
I followed your guide exactly with one exception, I activated the admin user via the console, but I don’t think that would cause this issue? Any idea on how I could fix, I’m dying to get it working!
Thanks!
Hey there. I’ve been having this problem ever since I first installed Gitorious, and it is a Chrome/Safari only problem, at least for me.
The problem seems to be that Gitorious is not able to run on subdomains or IPs, so you’ll have to set “gitorious_host” to something that has the format “<name>” or “<name>.<domain>”. I’ve been able to get it running, for example, using
If you don’t have a DNS you can just add these to your hosts file
Hope that helps :)
Yeah it works perfectly in Firefox, just confirmed that, it’s only a chrome/safari issue.
For me though, my host is set to a real production FQDN, so it’s git.domain.com. So shouldn’t that work in chrome/safari?
Also, when having it set to git.domain.com I get a error inside my production log:
The specified gitorious_host is reserved in Gitorious See http://gitorious.org/gitorious/pages/ErrorMessages for further explanation
Does this mean I’m not supposed to use git.domain.com as the FQDN?
Yeah, you shouldn’t use git.domain.com because Gitorious uses it to serve it’s repositories (apparently, couldn’t see that in my installation :D, but that is what the wiki page you linked to says).
Apparently it doesn’t matter to Gitorious if it is a FQDN or not, it just doesn’t work on subdomains. Could you try it on a “domain.com” to verify that it really is the same issue that I’m having over here. That would make it way easier to submit a bug report, because I can’t make my Gitorious installation world accessible.
Yeah, changed it from git to gitorious.domain.com and that fixed that error, it also started to work in Safari when I did that, but not Chrome.
I changed it to domain.com and that fixed the issue in Chrome/Safari.
Mine is world accessible, so we could replicate it there just to be sure.
I’ve filed a bug (#40) over at the Gitorious Bugtracker. I’d appreciate it if you’d post any additional information you have :)
Before running bundle exec rake db:migrate I also had to uncomment this line in config/environment.rb
config.action_controller.session_store = :active_record_store
and add this line:
config.action_controller.session = { :key => “gitorious”, :secret => “secret phrase of at least 30 characters” }
Hi, i have a error by starting the rake task.
https://github.com/roman/rots.git (at master) is not checked out. Please run
and i don’t know why, because bundle install said it’s complete.
That repository doesn’t exist ;) Anyhow, you should consider asking your question on Stackoverflow, but with a proper error message :)
I can show you my error message =>
git@christine:/var/www/gitorious$ bundle exec rake db:create https://github.com/roman/rots.git (at master) is not checked out. Please run
that’s annoying xD
I actually have no clue what could cause this, but I’ll have a look at my configuration tomorrow and see what I can figure out.
I fixed the issue with rots by doing this:
As the root user do:
1. git clone git://github.com/roman/rots.git
2. cd rots && gem build rots.gemspec && gem install rots-0.2.1.gem
3. rm -rf /usr/lib/ruby/gems/1.8/bundler/gems/rots-babb5559aae8
4. edit /var/www/gitorious/Gemfile:
replace gem “rots”, :git => ‘https://github.com/roman/rots.git’
with gem “rots”, “~> 0.2.1″
5. run bundle install && bundle pack
6. export RAILS_ENV=production && \
bundle exec rake db:create && \
bundle exec rake db:migrate && \
bundle exec rake ultrasphinx:bootstrap
Worked for me. Thanks
Thanks
To fix this error, simply run [code]bundle pack[/code]
This will copy the needed gems into vendor/cache, solving your problem
This helped me! Lucas, perhaps you could add this step right before the rake stage…
Also – creating the two sites under the “Creating the Apache2 sites” stage is simply performing mkdir, right?
Notice that right before the rake stage you’re using the git user and not your root user, but
Added the
bundle packcommand to the guide. Thanks.try
bundle pack bundle install –path vender/cache
Do you perhaps mean “vendor/cache”?
I was getting fatal errors when trying to push from a remote location without:
in gitorious.yml
Also, for some reason my install really insists on creating the repositories right in /var/www/gitorious instead of /var/www/gitorious/repositories.
I’m not sure if this is the reason or not, but when I first installed it, I seem to have accidentally put repository_base_path: “/var/www/gitorious” instead of “/var/www/gitorious/repositories”… I deleted the mysqldatabase and started over from scratch starting with cloning gitorious off their site, but it still insists on just dumping all the repository data right in the root directory…
Kindof annoying, but at least it finally works!
Oh, and for some unknown reason, the second time around I couldn’t do
Just a hunch, but did you restart the server after re-installing Gitorious? If not, maybe one of the background daemons is still running with the old configuration or something like that.
Thanks, I was having this issue too.
Also, I did reboot the server, so not a daemon issue.
note: issue with fatal errors. Although both issues you had I had too, so thanks :)
For “Francis Varga”…
I was having the same issues this morning. I reran this step:
su – git && \ mkdir .ssh && \ touch .ssh/authorized_keys && \ chmod 700 .ssh && \ chmod 600 .ssh/authorized_keys && \ mkdir tmp/pids && \ mkdir repositories && \ mkdir tarballs
and maybe this(although I cant remember if I actually ran this as the git user or not):
su – git cd /var/www/gitorious/ bundle install
Thanks for taking the time to write up this guide. It saved me a hell of a long time trying to nut this out myself. I wrote up an automated install script based on your instructions and . Now I can roll out a Gitorious server in no time :)
Pingback: Ruby on Rails 備忘録 – Ride On Rails » Blog Archive » Gitoriousのインストール
Everything up and running on Ubuntu 11.04. I can create repos from gitorious and everything.
I have added my public key to my user account.
But when I try to
Tried to google but only find people having issues with github and official gitorious.org.
I’m not really sure what might be causing your problem. Have you checked if all the services are running?
I think so. Do you know what service that should take care of the ssh push actions etc?
I checked through and think I understand the authentication a little bit more now.
When I created the “.ssh” dir in /var/www/gitorious then gitorious created an authorized_keys file for ssh authentication when I added another public key.
It’s still not authenticating me though, I only get asked for password when trying to push to the server. What I understand this is usually cause I have invalid pub key but I tried to generate / add / delete keys back and forth without change.
What you could try is a
ssh -vvv git@gitorious.domain.comto see where it actually fails (-vvvstands for “very very verbose”).Got it to work finally. I will write down my issues here incase someone else have the same. Sorry for cluttering up your blog Lucas but thanks for this excellent guide for Gitorious! :)
Directories that was missing I had to manually add “/var/www/gitorious/tmp/pids” and “/var/www/gitorious/.ssh” directories. These are needed for poller and ssh auth.
I had wrong permissions on “/var/www/gitorious/”, “/var/www/gitorious/.ssh” and “/var/www/gitorious/.ssh/autorized_keys” so ssh refused to use the keys thus prompting me to type password when trying to make the initial “git push origin master”. If you look in “/var/log/auth.log” you will notice the message “Authentication refused: bad ownership or modes for directory” if you have this issues. Fixing this is easy by issuing “chmod go-w /var/www/gitorious”, “chmod 700 /var/www/gitorious/.ssh” and “chmod 600 /var/www/gitorious/.ssh/authorized_keys”. Make sure that git owns gitorious dir swell….
Thanks for the guide, seems a lot better than most, easy to follow, and wasn’t having any issues.
Only problem is now, coming to do “bundle install”, I get:
Installing nokogiri (1.5.0) with native extensions Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.
checking for libxml/parser.h… yes
checking for libxslt/xslt.h… no
libxslt is missing. please visit http://nokogiri.org/tutorials/installing_nokogiri.html for help with installing dependencies.
An error occured while installing nokogiri (1.5.0), and Bundler cannot continue. Make sure that
Any help would be awesome. Thanks
Okay, maybe I should have done a little more digging first, after running: sudo apt-get install libxslt1-dev it then installed. Seems like Stephen J. Fuhry (#comment-96) had the same issue for some reason too.
Hey there. I still don’t have a clue what causes this issue, but I added
libxslt1-devnonetheless. Like that hopefully no one else will run into this problem :)Hade the same issue…
Hi, I have libxslt1-dev installed via apt-get .. but i am still having issues when the bundler goes upto installing nokogiri -v ’1.5.0′… any help?
This is the first guide that worked for me. THANKS!!!
root@potter:/var/www/gitorious# export RAILS_ENV=production && bundle exec rake ultrasphinx:bootstrap (in /var/www/gitorious) Rebuilding configurations for production environment Available models are Comment, Repository, MergeRequest, and Project Generating SQL $ indexer –config ‘/var/www/gitorious/config/ultrasphinx/production.conf’ –all Sphinx 0.9.9-release (r2117) Copyright (c) 2001-2009, Andrew Aksyonoff
using config file ‘/var/www/gitorious/config/ultrasphinx/production.conf’… WARNING: key ‘address’ is deprecated in /var/www/gitorious/config/ultrasphinx/pr oduction.conf line 10; use ‘listen’ instead. indexing index ‘main’… ERROR: index ‘main’: sql_range_query: Unknown column ‘base_tags.name’ in ‘field list’ (DSN=mysql://root:***@localhost:3306/gitorious_production). total 0 docs, 0 bytes total 0.007 sec, 0 bytes/sec, 0.00 docs/sec total 0 reads, 0.000 sec, 0.0 kb/call avg, 0.0 msec/call avg total 0 writes, 0.000 sec, 0.0 kb/call avg, 0.0 msec/call avg Sphinx 0.9.9-release (r2117) Copyright (c) 2001-2009, Andrew Aksyonoff
using config file ‘/var/www/gitorious/config/ultrasphinx/production.conf’… WARNING: key ‘address’ is deprecated in /var/www/gitorious/config/ultrasphinx/pr oduction.conf line 10; use ‘listen’ instead. listening on all interfaces, port=3312 WARNING: index ‘main’: preload: failed to open /var/www/gitorious/db/sphinx//sph inx_index_main.sph: No such file or directory; NOT SERVING FATAL: no valid indexes to serve Failed to start Done Please restart your application containers
Sorry about that comment before, didn’t go through as expected :( I’m having issues with the sphinx bootstrap on the creating database step, I get a lot of errors. Here’s what I get:
root@potter:/var/www/gitorious# export RAILS_ENV=production && bundle exec rake ultrasphinx:bootstrap (in /var/www/gitorious) Rebuilding configurations for production environment Available models are Comment, Repository, MergeRequest, and Project Generating SQL $ indexer –config ‘/var/www/gitorious/config/ultrasphinx/production.conf’ –all Sphinx 0.9.9-release (r2117) Copyright (c) 2001-2009, Andrew Aksyonoff
using config file ‘/var/www/gitorious/config/ultrasphinx/production.conf’… WARNING: key ‘address’ is deprecated in /var/www/gitorious/config/ultrasphinx/pr oduction.conf line 10; use ‘listen’ instead. indexing index ‘main’… ERROR: index ‘main’: sql_range_query: Unknown column ‘base_tags.name’ in ‘field list’ (DSN=mysql://root:***@localhost:3306/gitorious_production). total 0 docs, 0 bytes total 0.007 sec, 0 bytes/sec, 0.00 docs/sec total 0 reads, 0.000 sec, 0.0 kb/call avg, 0.0 msec/call avg total 0 writes, 0.000 sec, 0.0 kb/call avg, 0.0 msec/call avg Sphinx 0.9.9-release (r2117) Copyright (c) 2001-2009, Andrew Aksyonoff
using config file ‘/var/www/gitorious/config/ultrasphinx/production.conf’… WARNING: key ‘address’ is deprecated in /var/www/gitorious/config/ultrasphinx/pr oduction.conf line 10; use ‘listen’ instead. listening on all interfaces, port=3312 WARNING: index ‘main’: preload: failed to open /var/www/gitorious/db/sphinx//sph inx_index_main.sph: No such file or directory; NOT SERVING FATAL: no valid indexes to serve Failed to start Done Please restart your application containers
Any ideas why that could be?
Regarding – Francis Varga issue: https://github.com/roman/rots.git (at master) is not checked out. Please run bundle install
I’ve got the same. Seems I’ve fixed it with something similar to what matt weppler has explained on http://coding-journal.com/installing-gitorious-on-ubuntu-11-04/#comment-98.
I’m a absolute ZERO on ruby & rails, then it would be great is someone can confirm what user has to used on: cd /var/www/gitorious/ && bundle install root or git ?
I’ve found an article based on this one (http://blog.kyodium.net/2011/09/install-gitorious-on-ubuntu-1104.html ) where an script will ALL STEPS need is provided. In this script su – git is done before running
export RAILS_ENV=production && \ bundle exec rake db:create && \ bundle exec rake db:migrate && \ bundle exec rake ultrasphinx:bootstrap
If I run this as git I get issue regarding rots missing.
Hope this comments is not a lot confusing, but I would like to know is somethings has to be added to this excelent tutorial in order to install gitorious without glitches.
Thank a lot to Lucas for this superb guide
Hey there. At the beginning of the guide we completely switch to root mode, that means that
cd /var/www/gitorious/ && bundle installhas to be run as root as well. At some point we create thegituser and switch to it (after the firstbundle installcall) and everything after that is run as thegituser, which includes the following command:bundle exec rake db:create && \
bundle exec rake db:migrate && \
bundle exec rake ultrasphinx:bootstrap
This worked perfectly for me when I installed it. Have you tried running it as root? It actually shouldn’t make much of a difference. As soon as I have time I will try another installation run on a fresh Ubuntu 11.04, hopefully I’ll then get the same error which would allow me to find a workaround. For now I’m don’t really have a good idea on how to fix it, sorry.
Lucas: thanks for your anwser. I’va done “export RAILS_ENV=production && \ bundle exec rake db:create && \ bundle exec rake db:migrate && \ bundle exec rake ultrasphinx:bootstrap” as root.
Then after server restart, I’ve had the error when trying to start git-daeom: https://github.com/roman/rots.git (at master) is not checked out. Please run bundle install
I also will try to find time to REPEAT all steps and give you feedback. Now I’ve giturious running but … when I try to register a new user I get error: “Sorry, something went wrong Gitorious encountered an server error. We are automatically notified of errors and will look into it. If the error persists beyond what’s reasonable, let us know.”
can be this error a issue related to POSTFIX configuration ?
regards
Francisco
Error found: FQDN server name not used. Sorry
I’ve had a problem with the cookie_secret option in the last step of this tutorial where this option needs to be replaced with something longer than the default “sssht” in the config/gitorious.yml file.
The hint to solve this is also included in the comments there, but they misspelled “apq”, which should be “apg” as long as I know. You could mention this in the tutorial just to complete the writeup.
Nevertheless, thanks a lot for this, worked out pretty well for me!
I added the cookie_secret setting to the guide, thanks :) Also, for me it says
apg -m 64in the comment above the option, and I just pulled the latest version. Did you perhaps misread? ;)The Gitorious repository uses submodules for some javascript dependancies, without getting these some errors occur when building pages, I noticed that the clone urls were all blank.
After this step
git submodule init &&
git submodule update
Thanks :) I added it to the guide. I wonder why it didn’t cause any errors for me though.
Thank you for this guide, I Have sucecss depoly it .
You’re welcome :)
I’ve been having the following error in the database creation step:
git@my-comp:~$ export RAILS_ENV=production && \
(See full trace by running task with –trace)
I'm new to... everything actually, so please be gentle :)
I’m not sure about the database collation thing. Did you manually create the gitorious_production database, perhaps? And the second error occurs because you haven’t set a proper value for cookie_secret in your “gitorious.yml” configuration file.
Also, does 32bit vs. 64bit makes a difference?
No, that should definitely make no difference as you install everything through the package manager, which usually takes care of the platform dependent issues for you.
Regarding the error message above, I think there’s only one problem here, not two. The utf8_unicode_ci collation is the one I always use with utf8 charset, so that’s probably just an irrelevant warning. What would be a proper value for cookie_secret? any long enough random sequence of characters would do? Should I take it from somewhere?
Yes, any random sequence of characters will do, as far as I know. I’m using a hexadecimal string (e.g. b5b2d76255991ffbd697ebdf046725db1b2ffeb63ad) which you could, for example, generate using
Would this guide work on 11.10? Would it work on the standard ubuntu edition and not the server edition
I haven’t tested it yet, but this guide should work on Ubuntu 11.10. Also there is no major difference between the GUI and the Server version (except for the missing Window Server) so it (again) should be working there too.
The rake step produced the following errors:
and
WARNING: key 'address' is deprecated in /var/www/gitorious/config/ultrasphinx/production.conf line 10; use 'listen' instead.
listening on all interfaces, port=3312
WARNING: index 'main': preload: failed to open /var/www/gitorious/db/sphinx//sphinx_index_main.sph: No such file or directory; NOT SERVING
FATAL: no valid indexes to serve
Failed to start
Done
Please restart your application containers
try this: vi /home/git/gitorious/config/ultrasphinx/production.conf # replace base_tags with tags bundle exec rake ultrasphinx:index RAILS_ENV=production
i am facing the same problem
help me
in the mysql privileges query should not there be ‘git’@'localhost’ as created by adduser (afterwards)?
on the other side, i get the same issues as jonathan on the (ultrasphinx) rake step :-(
Under the “Creating the Apache2 sites” stage – how exactly do I create them? Is it simply creating the directories (mkdir) or should I place files there? From where?
Hi! I have some trouble! When i try log in to system server gave me error 500! what i did wrong ?
You’ll have to take a look at your log files to see what is going wrong! Given the fact that it happens when you try to login, I’d guess that it is a problem with the gitorious_host setting though. What did you configure it to be?
Hello At the step with: export RAILS_ENV=production && \ bundle exec rake db:create && \ bundle exec rake db:migrate && \ bundle exec rake ultrasphinx:bootstrap
I see this error: git@gitux:~$ export RAILS_ENV=production && bundle exec rake db:create && bundle exec rake db:migrate && bundle exec rake ultrasphinx:bootstrap Invalid gemspec in [/var/lib/gems/1.8/specifications/childprocess-0.2.1.gemspec]: invalid date format in specification: “2011-08-11 00:00:00.000000000Z” Invalid gemspec in [/var/lib/gems/1.8/specifications/json-1.6.1.gemspec]: invalid date format in specification: “2011-09-18 00:00:00.000000000Z” Invalid gemspec in [/var/lib/gems/1.8/specifications/json-1.5.4.gemspec]: invalid date format in specification: “2011-08-31 00:00:00.000000000Z” Invalid gemspec in [/var/lib/gems/1.8/specifications/childprocess-0.2.1.gemspec]: invalid date format in specification: “2011-08-11 00:00:00.000000000Z” Invalid gemspec in [/var/lib/gems/1.8/specifications/json-1.6.1.gemspec]: invalid date format in specification: “2011-09-18 00:00:00.000000000Z” Invalid gemspec in [/var/lib/gems/1.8/specifications/json-1.5.4.gemspec]: invalid date format in specification: “2011-08-31 00:00:00.000000000Z” NOTE: Gem::Specification#has_rdoc= is deprecated with no replacement. It will be removed on or after 2011-10-01. Gem::Specification#has_rdoc= called from /var/www/gitorious/.bundler/ruby/1.8/rots-babb5559aae8/rots.gemspec:19 . Could not find json-1.5.4 in any of the sources
Any ideas? Thanks, david
I had the same problem as you David and my solution was to edit the s.date element in /var/lib/gems/1.8/specifications/json-1.5.4.gemspec and /var/lib/gems/1.8/specifications/childprocess-0.2.1.gemspec, removing the 0000000000Z at the end of the date fixed the problem. My json-1.5.4.gemspec s.date reads %q{2011-08-31}
Yup, i get the same ultrasphinx error as johnathan, any ideas? i’ve got a clean install on a new VPS.
My website won’t allow login/registration, it redirects to a 500 error with no logged errors ?
Looks like I missed this error: http://pastebin.com/D8J1hGnH
This is most likely a problem with your
After i successfully installed the gitorious,it worked first time,but next day i reboot my ubuntu,and use msysgit on win7,the following error occured:
Pushing to git@192.168.22.244:gps/gemfield-gps.git == Gitorious: ==========================================================
Access denied or bad command
fatal: The remote end hung up unexpectedly
what is the reason?
The su – git && mkdir .ssh etc command needs to be split in two. i.e first “su – git” and once in the git user’s env, execute mkdir && etc.
Fixed that, thanks.
I’m on a fresh ubuntu 11.10 install and am getting an error with the crontab step. My exact command:
crontab -e * * * * * cd /var/www/gitorious && /usr/bin/bundle exec rake ultrasphinx:index RAILS_ENV=production
Here’s what I get: crontab: usage error: no arguments permitted after this option
Any ideas?
Interesting. If I remember correctly, this worked perfectly for me on 11.04… What you could try is to call
Let me know if that works for you :)
That worked like a charm
my clone urls are blank.. what could possibly be the reason?
I’d suggest you ask the gitorious mailing list, they might know.
Thanks Lucas for this tutorial.
I have successfully installed gitorious on an Ubuntu 11.10 machine. The only two changes I had to do: bundle did get installed in /usr/local/bin instead of /usr/bin stomp did get installed in /usr/local/bin instead of /usr/bin so I did modify the crontab to: crontab -e * * * * * cd /var/www/gitorious && /usr/local/bin/bundle exec rake ultrasphinx:index RAILS_ENV=production and most importantly I have modified the /etc/init.d/stomp to: GEMS_HOME=”/usr/local” (used to be GEMS_HOME=”/usr”) Stomp was a bit tricky to find because gitorious is working even without stomp but it’s slow and adding users is not quite right. So my advice, check /var/log/apache2/error.log and if there is a line like that: connect failed: Connection refused – connect(2) will retry in 5 you are missing stomp
Nice work Lucas, Had some teething issues similar to jonathan’s. fixed all and its working fine now. Thanks!!!
Thanks for the nice article. I am facing a problem with git submodule update it says:
$ git submodule update Cloning into public/javascripts/lib/buster-core… fatal: reference is not a tree: 1f8ac20fcbd75ff9dc6e537a90883e4103c1b877 Unable to checkout ’1f8ac20fcbd75ff9dc6e537a90883e4103c1b877′ in submodule path ‘public/javascripts/lib/buster-core’
Anyone else facing similar problem? Any ideas, how to resolve this?
I ignored the error I got for git submodule update and completed the remaining steps, Gitorious seems to be working fine. I noticed one thing, I have used user ‘gitorious’ instead of ‘git’ so I had to edit the file /etc/init.d/stomp modify start() to look like below:
/bin/su – gitorious -c “$STOMP”
I can’t get passed this command
bundle exec rake db:migrate
I received the following error:
root@zombihq:/var/www/gitorious# bundle exec rake db:migrate (in /var/www/gitorious) rake aborted! private method `split’ called for nil:NilClass
anyone has any ideas?
What version of Ruby are you using? Sounds like either too old or too new… I installed it using Ruby 1.9.2…
Ruby 1.8.7
originally i was using 11.10 and ruby 1.9.2 and ServerTime 1.2.3 would error out
So i when back to 11.04 so i could use 1.8.7 like gitorious needs.
if its any help, instead of installing gitorious i installed a forked YouSource the only thing it adds as far as i know is private repos
hello lucas
getting this error while running REALLY_GEM_UPDATE_SYSTEM=1 gem update –system == 1.8.15 / 2012-01-06
1 bug fix:
system ubuntu 11.04 ( 32 bit)
Thanks
Hello everyone, gettting this error after running this coomand : bundle exec rake ultrasphinx:bootstrap
Rebuilding configurations for production environment Available models are Comment, Repository, MergeRequest, and Project Generating SQL $ indexer –config ‘/var/www/gitorious/config/ultrasphinx/production.conf’ –all Sphinx 0.9.9-release (r2117) Copyright (c) 2001-2009, Andrew Aksyonoff
using config file ‘/var/www/gitorious/config/ultrasphinx/production.conf’… WARNING: key ‘address’ is deprecated in /var/www/gitorious/config/ultrasphinx/production.conf line 10; use ‘listen’ instead. indexing index ‘main’… ERROR: index ‘main’: sql_range_query: Unknown column ‘base_tags.name’ in ‘field list’ (DSN=mysql://root:***@localhost:3306/gitorious_database). total 0 docs, 0 bytes total 0.047 sec, 0 bytes/sec, 0.00 docs/sec total 0 reads, 0.000 sec, 0.0 kb/call avg, 0.0 msec/call avg total 0 writes, 0.000 sec, 0.0 kb/call avg, 0.0 msec/call avg Sphinx 0.9.9-release (r2117) Copyright (c) 2001-2009, Andrew Aksyonoff
using config file ‘/var/www/gitorious/config/ultrasphinx/production.conf’… WARNING: key ‘address’ is deprecated in /var/www/gitorious/config/ultrasphinx/production.conf line 10; use ‘listen’ instead. listening on all interfaces, port=3312 WARNING: index ‘main’: preload: failed to open /var/www/gitorious/db/sphinx//sphinx_index_main.sph: No such file or directory; NOT SERVING FATAL: no valid indexes to serve Failed to start Done Please restart your application containers
pls help me out
Looks to me as if the file
yes i run this command : touch /var/www/gitorious/db/sphinx //sphinx_index_main.sph
but still getting the same error
no idea .
what i suppose to type in browser to open gitorious
help me ..
i did everything right , sorry but im soo confused now .. that i dont know what i should type in web browser
help me please
Great guide, the only one I’ve been through that actually works, thanks.
Now I am now trying to move the authentication onto LDAP using the instructions found here: http://gitorious.org/gitorious/pages/LdapIntegration but it throws out “TypeError: can’t convert String into Integer”. I’ve Googled around but have been unable to find an answer specific to Gitorious.
Have you tried to use LDAP with this configuration? Do you have any suggestions on how I can solve this problem
Thanks for any help David
Hey there David,
no, I haven’t tried LDAP integration myself, and unfortunately I have no better advice than to check the code where the TypeError occurs and try to fix it (and of course submit your fix to Gitorious :) With a bit of luck it won’t be hard to fix.
I was updating my laptop from version 10 to 11.04 but the problem is that it failed to restart lather than it is in the command window with some words which i failed to understand and work with it.”GNU GRUB version 1.98-1ubuntu10″ and the next line is minimal BASH-like line editing is supported .for the first word ,TAB lists is possible command completions.Anywhere else TAB lists possible device or file completions” that is the words written so please i need your help to solve this problem please help me
Hey there. This post isn’t about installing (or updating to) Ubuntu 11.04, and I frankly don’t know anything about the updating process, so I’d suggest you ask your question in the Ubuntu Forums
Greetings, after some hiccups (I am a Linux noob) I got it all running. here my personal blunders:
But all in all, thanks for being my guide in this dark alley of a typical “you have to know it” type of problem :)
So I finally found some time and a spare VM to get this installed onto. I have Ubuntu 11.04, completely fresh install. The guide worked wonderfully. I’ve got Gitorious up and running (sorta). I’ve set both gitorious_client_host and gitorious_host to git.cookiecache.com It seems to continue to fail in Safari, but everything seems to work (login, registering and such) in FireFox. That’s not the issue though, the issue is that after navigating through 1 or 2 pages everything crashes. Apache, MySQL, Postfix, SSHd, everything…has anyone else experienced this? I have setup my VPS container to use a 2.4GHz processor, 1GB of RAM and 20GBs of disk space. It rarely goes over 0.5 load avg and 27% of memory used. Any ideas? Any other further information I can provide to help troubleshoot? Any assistance is greatly appreciated!
Hey, thanks for this writing. It worked like a charm the first time.
Mi gitorious is up and running, thanks!
Pingback: Install Holla « garyalan.net
Hi,
So far i’ve got the gitorious application running and everything works. My problem is that I’m unable to clone, push or pull repo’s. As if the git port is closed or non-existent even though i’ve setup the iptables.
Any help on what to do to get the GIT port working woul be appreciated!
Have you checked if the ports are open through
Thanks for the guide. I’ve got this setup and running on 11.10
I had to do this to get it running: vi /var/www/gitorious/config/ultrasphinx/production.conf # replace base_tags with tags
bundle exec rake ultrasphinx:index RAILS_ENV=production
It’s working now, but when I create repositories, it doesn’t work. It sits on “This repository is being created” forever and doesn’t do anything.
I then have to run “script/poller run” manually. I then get spammed with: NOTE: Gem::SourceIndex#add_spec is deprecated, use Specification.add_spec. It will be removed on or after 2011-11-01. Gem::SourceIndex#add_spec called from /usr/local/lib/site_ruby/1.8/rubygems/source_index.rb:127.
The webpage then updates with: Sorry, something went wrong
Gitorious encountered an server error. We are automatically notified of errors and will look into it. If the error persists beyond what’s reasonable, let us know.
Files do get created in /var/www/gitorious/repositories; however, if I try to view a repository via gitorious, I get the same “something went wrong” error.
How do I actually find out what it’s failing on? Why do I have to run the poller manually?
My crontab is: * * * * * cd /var/www/gitorious && /usr/bin/bundle exec rake ultrasphinx:index RAILS_ENV=production
thanks.
Try accessing it locally to see what the proper error is.
If you’re using your full address like git.example.com it makes errors neat (and uninformative) whereas localhost will give you the error trace.
looks like I found the error:
[code] ActionView::TemplateError (/var/www/gitorious/repositories/d51/8cf/0bdd7f4c0b0c147af4377552e0a38cc564.git) on line #46 of app/views/repositories/_overview.html.erb: 43: :locals => {:repository => repository} -%> 44: 45: 46: 47:
<
div class="branches"> 48:
<
ul class="branch_list"> 49:
Looks like I found the error: http://slexy.org/view/s20WupakLn
I go this working. Make sure your folder permissions are: git:www-data.
ie chown -R git:www-data gitorituous
Also, make sure the cron job is set on the git user.
I had to add “script/poller run” to git’s crontab though… not sure how the poller is supposed to run normally.
I had some trouble with missing tables.
http://pastebin.com/1vC3gszR
I hope you can help me.
Hi,
Thank for this tuto, but I’ve a problem during the database creation with the command “bundle exec rake db:create” Couldn’t create database for {“encoding”=>”utf8″, “username”=>”gitorious”, “adapter”=>”mysql”, “database”=>”gitorious”, “host”=>”localhost”, “password”=>nil}, charset: utf8, collation: utf8_unicode_ci (if you set the charset manually, make sure you have a matching collation)
Can you help me ?
Pingback: Installing Holla « garyalan.net
Thanks for the very useful guide on setting up Gitorious on Ubuntu 11.04.
After referring to the link:- http://gitorious.org/gitorious/pages/LdapIntegration , I ran the script to test my ldap connection. That passed successfully without any issues. I am basically setting up Gitorious on my localbox.
Currently, I am making use of certs on my localbox for https. Now when I try to enter the same credentials during login, I get the below error:-
ActionController::InvalidAuthenticityToken in SessionsController#create
ActionController::InvalidAuthenticityToken
App Trace:-
/var/www/gitorious/vendor/rails/actionpack/lib/action_controller/request_forgery_protection.rb:79:in
/var/www/gitorious/vendor/rails/activesupport/lib/active_support/callbacks.rb:178:in
/var/www/gitorious/vendor/rails/activesupport/lib/active_support/callbacks.rb:166:in
/var/www/gitorious/vendor/rails/actionpack/lib/action_controller/filters.rb:629:in
/var/www/gitorious/vendor/rails/actionpack/lib/action_controller/filters.rb:610:in
/var/www/gitorious/vendor/rails/activesupport/lib/active_support/core_ext/benchmark.rb:17:in
/var/www/gitorious/vendor/rails/activesupport/lib/active_support/core_ext/benchmark.rb:17:in
/var/www/gitorious/vendor/rails/actionpack/lib/action_controller/rescue.rb:160:in
/var/www/gitorious/vendor/rails/actionpack/lib/action_controller/base.rb:532:in
/var/www/gitorious/vendor/rails/actionpack/lib/action_controller/filters.rb:606:in
/var/www/gitorious/vendor/rails/actionpack/lib/action_controller/base.rb:386:in
Any ideas on how I can over come this ?
Currently my gitorious_host is localhost.local , after referring to an earlier comment (http://coding-journal.com/installing-gitorious-on-ubuntu-11-04/#comment-76 ) . I am making use of apache2 server, thus my gitorious_client_host is localhost .
I was thinking if I disable SSL on localhost in my gitorious.yml, it might be of some help. If disabling SSL is the way, do I need to do it anywhere else as well ?. I was thinking of this on the grounds that anyways there wouldn’t be many security concerns if we disable https on localhost(to my best knowledge).
If there are other work arounds, kindly suggest.
Thank you..
Hi, thanks for tutor.. but I have problem when I do /etc/init.d/git-daemon start .. the error is
NOTE: Gem::SourceIndex#add_spec is deprecated, use Specification.add_spec. It will be removed on or after 2011-11-01.
Gem::SourceIndex#add_spec called from /usr/local/lib/site_ruby/1.8/rubygems/source_index.rb:127.
NOTE: Gem::SourceIndex#add_spec is deprecated, use Specification.add_spec. It will be removed on or after 2011-11-01.
Gem::SourceIndex#add_spec called from /usr/local/lib/site_ruby/1.8/rubygems/source_index.rb:127.
/var/www/gitorious/script/git-daemon:18:in `expand_path': can't convert nil into String (TypeError)
from /var/www/gitorious/script/git-daemon:18
failure
:( can You help me or tell what happen, wether I miss some configuration?
Apparently you have not configured the “repository_base_path” option.
hy lucas, thanks for your help. Thats error have been fixed.. but I have another problem, when I try to login to my gitorious server it get error “500 Internal Server Error” , maybe you know what happen or I miss some configuration again? thanks before lucas.
Hi,
Thanks for your good Tutorial. It’s great ! But, …. I have a problem. I can go to Gitorious on HTTPS://. I can login with my account LDAPS has gitorious, but when I am connected I can’t create project. I have this message on my log (log/production.log) ActiveRecord::StatementInvalid (Mysql::Error: Lock wait timeout exceeded; … AND ** ultrasphinx: configuration file not found for “production” environment ** ultrasphinx: please run ‘rake ultrasphinx:configure’ ** ultrasphinx: spelling support not available (raspell configuration raised “u$ Invalid subdomain name localhost/gitorious. Session cookies will not work!
I can not find a solution. Can you help me ?
And an other question. Before I had her log too, but I never saw them and I do not know why. Do you know what they mean? (production.log) Errno::EPIPE (Broken pipe): ….
Thanks for your help in advanced and excuse me for my english because I speak french….
Bye
Hi Olivier,
I can only guess what the problem is here, but you could try the following:
Hi Lucas,
Thanks for your answer. It’s Ok for my subdomain. Thanks
For ultrasphinx I still have the problem and I can’t create an new project.
–> production.log
** ultrasphinx: spelling support not available (raspell configuration raised “uninitialized constant Ultrasphinx::Spell::Aspell”)
For ultrasphinx, I execute this command $ export RAILS_ENV=production && bundle exec rake ultrasphinx:bootstrap With this command I have an error “Rebuilding configurations for production environment ERROR: index ‘main’: sql_range_query: Unknown column ‘base_tags.name’ in ‘field list’ (DSN=mysql://root:***@localhost:3306/gitorious_production). Failed to start”
And for information $bundle exec rake ultrasphinx:configure Rebuilding configurations for production environment Available models are Comment, Repository, MergeRequest, and Project Generating SQL
I execute this command $ aptitude install libaspell-dev $ gem install raspell
but it’s not a solution….. I can’t create an new project and when I try I have always this log: ** ultrasphinx: spelling support not available (raspell configuration raised “uninitialized constant Ultrasphinx::Spell::Aspell”)
If you want you can read that http://cweiske.de/tagebuch/gitorious-spelling-problems.htm
I execute this command $ aptitude install libaspell-dev $ gem install raspell
but it’s not a solution….. I can’t create an new project and when I try I have always this log: ** ultrasphinx: spelling support not available (raspell configuration raised “uninitialized constant Ultrasphinx::Spell::Aspell”)
If you want you can read that http://cweiske.de/tagebuch/gitorious-spelling-problems.htm
Excuse me for all these questions…. I cannot login with user admin. Why ? Yet, the script to create the admin is successful and the admin is in the database.
Thanks in advanced Olivier
I followed this tut for Ubuntu 12.04, and it seems te work, except for one thing: repo’s aren’t actual being created. I looked in the /var/www/gitorious/repositories but it is empty. On my screen i keep getting the message “This repository is being created, it will be ready pretty soon…” for over an hour now..
Have you got any suggestion whats wrong? Thanks!
Have you checked the permissions and ownership of your repositiories folder? Other than that, you’d have to check the logs for an error message which indicates what is going on, because I didn’t run into that problem yet.
I double checked it by chown -Rf git:git /var/www/gitorious
In wich logs do you suggest me to look?
I really can’t say because I can’t current access a machine on which Gitorious is installed. If I remember correctly, there is a “logs/” directory in the Gitorious project folder, which is probably a good place to start. I think that they use DelayedJobs to create the repositories, and its logs may not show up in the main “production.log”, that would be for you to investigate.
I had the same issue. The problem was that the poller daemon wasn’t running. The /etc/init.d/git-poller script invokes ruby directly and it should invoke it via “bundle exec” instead.
Pingback: Codepool Blog - Gitorious and Redmine on Ubuntu Server 12.04
First I would like to thank the author. Secondly, LoadModule passenger_module /usr/lib/ruby/gems/1.8/gems/passenger-3.0.9/ext/apache2/mod_passenger.so PassengerRoot /usr/lib/ruby/gems/1.8/gems/passenger-3.0.9 PassengerRuby /usr/bin/ruby1.8
the version number of passenger should be 3.0.13 when I install it on Amazon EC2 12.04 Server
Thirdly, $ crontab -e * * * * * cd /var/www/gitorious && /usr/bin/bundle exec rake ultrasphinx:index RAILS_ENV=production should be $ crontab -e and then add * * * * * cd /var/www/gitorious && /usr/bin/bundle exec rake ultrasphinx:index RAILS_ENV=production Actually I am suggesting running ultrasphinx:index once every hour.
Thanks for your feedback. I changed the “passenger” part so that it is clear that one should use the output from the passenger install script, and not the example I pasted.
Could you explain what issues you are having with the crontab command? Because the command you posted seems to be the same I used in the post, and it runs sphinx every minute, as far as I know.
Hi, Great guide. Something quite catasrophic happened though. Everything seemed to go swimmingly and then I rebooted and couldn’t login to my computer -_- I assume it’s the server being initialized, faulting and returning me back to the login page very quickly. Anyway, I’ve managed to login through a different account and su my way back in. On attempting to start apache I’m getting this error:
apache2ctl restart
apache2: Syntax error on line 210 of /etc/apache2/apache2.conf: Syntax error on line 1 of /etc/apache2/mods-enabled/passenger.load: Cannot load /usr/lib/ruby/gems/1.8/gems/passenger-3.0.9/ext/apache2/mod_passenger.so into server: /usr/lib/ruby/gems/1.8/gems/passenger-3.0.9/ext/apache2/mod_passenger.so: cannot open shared object file: No such file or directory
Any ideas/advice would be greatly appreciated.
Thanks Njall
This looks similar to the trouble Xinbenlv was having. Did you copy the content for “passenger.load” from this page or from the output of the passenger install script? If you copied it from this page, try running the install script again :)
The below step giving error in Ubuntu 12.04 LTS server REALLY_GEM_UPDATE_SYSTEM=1 gem update –system
Updating RubyGems Updating rubygems-update ERROR: While executing gem … (Gem::GemNotFoundException) Could not find a valid gem ‘rubygems-update’ (1.8.24) locally or in a repository
Any pointer to this problem ?
Hello Sir,
Your guide is really very good but after all this instruction i got this error. Please help me.
We are currently experiencing a problem with git where, when a user attempts to create a new project or attempts to add a new key the browser spins forever without completing the action
Thanks
Nice tutorial. I would like to share a special behavior. In order to avoid strange issues by “rake db:*” commands, apply quotation for the passwords in database.yml Ex: mysql password = !my.password in /gittorius/config/database.yml write ‘!my.password’, otherwise rake will fail
Hey i keep getting this stupid error Request exceeded the limit of 10 internal redirects due to probable configuration error. Use ‘LimitInternalRecursion’ to increase the limit if necessary. in my apache error.log after installing gitorious when i try to browse the site i created a now this might be in the apche configuration but i hope you’ll help out any way
This sounds a bit like a configuration issue with hostnames or the like. Make sure that the “gitorious_host” config parameter is set correctly. Also check the URL you are accessing the gitorious installation with, and make sure it matches the “gitorious_host” setting. If all that is the case, check if the internal links being generated by Gitorious somehow point to another URL.
Another possibility might be that Gitorious actually needs more than 10 internal redirects at some point (which I think is unlikely, but not impossible), so you might try to raise your Apache setting to 100, and if it works then, iteratively decrease it until you found the value that Gitorious requires, and set it to what you’ve found + 10 (just to be sure :D).
Ok i made sure that hostname and gitorious_host was the same, but it stille wont work keep getting 500 internal erro at last i added Options Indexes FollowSymLinks MultiViews AllowOverride None Order allow,deny allow from all to both gitorious and gitorius-ssl site files in the apache2/sites-enabled and then it all worked. Could you tell me why this was nessecary
Pingback: Installer Gitorious avec RVM
Alright so when i run
export RAILS_ENV=production && \ bundle exec rake db:create && \ bundle exec rake db:migrate && \ bundle exec rake ultrasphinx:bootstrap
I Get:
(in /srv/www/gitorious) rake aborted! Unknown database ‘gitorious_production’ /srv/www/gitorious/Rakefile:10:in `require’ (See full trace by running task with –trace) root@Wolf-Server:/srv/www/gitorious#
I have tried starting over several times. What i do wrong
Forget about my last post. I just made the database my self and it started filling but now i get this error Mysql::Error: Table ‘gitorious_production.content_memberships’ doesn’t exist: SELECT * FROM
Where is it not creating the table
It is just a commit with broken logic. I’ve fixed it such way:
~/# cat gitorious/db/migrate/20120223093906_make_project_membership_polymorphic_on_subject.rb
class ProjectMembership < ActiveRecord::Base belongs_to :project belongs_to :member, :polymorphic => true end
class MakeProjectMembershipPolymorphicOnSubject < ActiveRecord::Migration def self.up
rename_table :project_memberships, :content_memberships
add_column :content_memberships, :content_type, :string ProjectMembership.all.each do |pm| pm.content_type = "Project" pm.save! end
rename_column :content_memberships, :project_id, :content_id
end
# Destructive – removes any non-project memberships def self.down rename_table :content_memberships, :project_memberships
ProjectMembership.all.each do |pm| pm.delete if pm.content_type != "Project" end
remove_column :project_memberships, :content_type rename_column :project_memberships, :content_id, :project_id
end end
I have the same problem as Austin: “Mysql::Error: Table ‘gitorious_production.content_memberships’ doesn’t exist: SELECT * FROM…”. I am a perfect “newbe” in ruby but I suspect somehow the command “bundle exec rake db:create” does not do all its jobs!!!! I’ve checked in my schema.db file in db folder and at line 79 I have tabel creation.
Pingback: اسس عملك مفتوح المصدر | Eyadof
Pingback: بيئة عملك مفتوحة المصدر | Eyadof
Hi, I have made an auto-installer :
http://blog.celogeek.com/201211/272/gitorious-installer-for-ubuntu/
And the repos for the installer :
https://gitorious.celogeek.com/gitorious-installer
Could you try it ?
It work with Ubuntu 12.10
Pingback: Installing Gitorious on Solaris SPARC
Pingback: Install gitorious on ubuntu 10.04 (braindump) @laurii
Hi, Great article but I got “ELF file OS ABI invalid” when trying to load the passenger module. I use debian squeeze which has a packaged passenger mod, with that it works fine: # apt-get install libapache2-mod-passenger
Bests, Semir
Hello!
I have a problem creating the admin user in the last step of your tutorial. The error is this:
$ env RAILS_ENV=production ruby1.8 script/create_admin /usr/lib/ruby/gems/1.8/gems/rails-2.3.18/lib/rails/gem_dependency.rb:21:in
from /usr/lib/ruby/gems/1.8/gems/rails-2.3.18/lib/initializer.rb:132:in
from /usr/lib/ruby/gems/1.8/gems/rails-2.3.18/lib/initializer.rb:113:in
Can you help me?
Thanks