Problems with private copy of Gitorious

217 views
Skip to first unread message

Wari

unread,
Jul 1, 2011, 11:32:45 AM7/1/11
to Gitorious
Hi there, for the past 2 days I've been trying to install Gitorious on
both Ubunty 11.04 and 10.04.2. On the systems, I followed the
documentation on http://cjohansen.no/en/ruby/setting_up_gitorious_on_your_own_server
and http://gitorious.org/gitorious/pages/UbuntuInstallation which are
similar, but somewhat different install methods. Anyway, the end
result is the same:

* The login/register screen does not render properly:
- http://momentum.subtlehints.net/stuff/LoginScreen.png
- http://momentum.subtlehints.net/stuff/RegisterScreen.png

* I can't create tarballs directly from gitorious:
- Please Wait - generating tarball appears, but
- there's nothing on the tarballs-work or tarballs-cache directory
- you wait forever

Other things works normally:
- create project
- create repo
- import ssh key
- register user
- clone repo
- git clone/push/fetch/etc

Is there anything I could have done wrong here? Since I don't know
rails/ruby, I don't know where to start looking.

Christian Johansen

unread,
Jul 4, 2011, 6:56:06 AM7/4/11
to gito...@googlegroups.com
Hi,


This was fixed earlier today. Please update from master.
 

* I can't create tarballs directly from gitorious:
 - Please Wait - generating tarball appears, but
 - there's nothing on the tarballs-work or tarballs-cache directory
 - you wait forever

Is your poller running? Are jobs being picked off from the queue?
 
Cheers,
Christian

Wari

unread,
Jul 4, 2011, 11:36:02 AM7/4/11
to Gitorious


On Jul 4, 6:56 pm, Christian Johansen <christ...@cjohansen.no> wrote:
> This was fixed earlier today. Please update from master.

Yes, I've realized this a bit later in the day today. Thanks for the
update

> > * I can't create tarballs directly from gitorious:
> Is your poller running? Are jobs being picked off from the queue?

This works on my third install today. Last weeks trial got totally
busted as git-daemon stopped working, and I can't push to the repo
anymore. Anyway, from the looks of it, the UbuntuInstallation wiki
does not work if you follow the instructions to the letter, and I'm
not sure why the other instructions does not work as well. But anyway,
I used the deb package of Ruby Enterprise, and that works the best, as
it does not have the latest stuff that compiling from source installs.

If I were to follow the instructions, I had to, `bundle exec rake` or
edit the gitorious (or is it poller) scripts to include `require
'bundler/setup'` to get things to run. Even then things don't work
well.

Anyway, I got things to work, (ruby enterprise + activemq with
UbuntuInstallation as base) I guess I need to document what I did some
where just in case someone else got problems with the install.

Wari

unread,
Jul 4, 2011, 1:11:46 PM7/4/11
to Gitorious


On Jul 4, 11:36 pm, Wari <wari.wa...@gmail.com> wrote:
> On Jul 4, 6:56 pm, Christian Johansen <christ...@cjohansen.no> wrote:
> > > * I can't create tarballs directly from gitorious:
> > Is your poller running? Are jobs being picked off from the queue?
> This works on my third install today.

Apparently I've said too soon. While the tarball does get created on
the server, the download is a 1 byte payload. How do I troubleshoot
this?

git@repos:/var/www/gitorious/tarballs-cache$ ls -l
total 16
-rw-rw-rw- 1 git git 12571 2011-07-04 17:05
f8f-7b0-55>..snip..<a571d9dce94740ab.tar.gz

wari@wari-wahabs-macbook-pro ~/Downloads ‹ruby-1.9.2@rails3tutorial›
$ curl --insecure -O https://repos/stuff/custom-configs/archive-tarball/master
% Total % Received % Xferd Average Speed Time Time
Time Current
Dload Upload Total Spent
Left Speed
0 1 0 1 0 0 0 0 --:--:-- 0:00:01
--:--:-- 2
wari@wari-wahabs-macbook-pro ~/Downloads ‹ruby-1.9.2@rails3tutorial›
$ ls -l master
-rw-r--r-- 1 wari staff 1 Jul 5 01:06 master
wari@wari-wahabs-macbook-pro ~/Downloads ‹ruby-1.9.2@rails3tutorial›
$ hexdump master
0000000 20
0000001

Benjamin Podszun

unread,
Jul 4, 2011, 3:32:22 PM7/4/11
to gito...@googlegroups.com
Enable the sendfile extension for your http server. For apache it's mod_sendfile or somesuch.


-- Sent from my Palm Pre


--
To post to this group, send email to gito...@googlegroups.com
To unsubscribe from this group, send email to
gitorious+...@googlegroups.com

Wari Wahab

unread,
Jul 4, 2011, 8:04:43 PM7/4/11
to gito...@googlegroups.com
Hi Benjamin, thanks for the help, but there is no mod_sendfile on the server. a2enmod shows the following:

authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cern_meta cgi cgid charset_lite dav dav_fs dav_lock dbd deflate dir disk_cache dump_io env expires ext_filter file_cache filter headers ident imagemap include info ldap log_forensic mem_cache mime mime_magic negotiation passenger php5 proxy proxy_ajp proxy_balancer proxy_connect proxy_ftp proxy_http proxy_scgi reqtimeout rewrite setenvif speling ssl status substitute suexec unique_id userdir usertrack version vhost_alias

Next closest thing I found is the EnableSendfile directive - http://httpd.apache.org/docs/2.0/mod/core.html#enablesendfile, which I turned on and off in /etc/apache2/sites-enabled/gitorious(-ssl). Still no beef.

Looked around the net and found mod_xsendfile https://tn123.org/mod_xsendfile/ which when enabled, I got a working gitorious, but clicking on the download links shows up as a 404, so I disabled that immediately.

Christian Johansen

unread,
Jul 5, 2011, 1:45:03 AM7/5/11
to gito...@googlegroups.com
Looked around the net and found mod_xsendfile https://tn123.org/mod_xsendfile/ which when enabled, I got a working gitorious, but clicking on the download links shows up as a 404, so I disabled that immediately.

That's the one. What does your logs tell you about the 404's? Did you configure it properly? You probably need to allow it to serve files from outside your document root:

    XSendFile on
    XSendFileAllowAbove on

Christian

Wari Wahab

unread,
Jul 5, 2011, 3:37:07 AM7/5/11
to gito...@googlegroups.com
Thanks, it works now!

FYI, XSendFileAllowAbove configuration directive in no longer possible with the new version, they removed it. Doing:

XSendFilePath /var/www/gitorious/tarballs-cache

works beautifully.

Thanks again, I believe I have this thing set up nicely..
Reply all
Reply to author
Forward
0 new messages