Forbidden error when trying to run gitorious with https localhost + unable to start Poller

385 views
Skip to first unread message

boddhisattva

unread,
Apr 26, 2012, 9:34:58 AM4/26/12
to Gitorious
Hi,

I am trying to setup Gitorious on my localbox. I am currently facing
two issues.

1. Forbidden error when trying to run gitorious with https localhost

When I try to run gitorious with http://localhost it gives me the
"File Structure" of all the files. When I try to run the same on
https://localhost I get the below error:-

Forbidden

You don't have permission to access / on this server.

Apache/2.2.17 (Ubuntu) Server at localhost Port 443

[doubt] ==> Is this got to do with the flie permissions of my
certificate .key and .pem files? Currently they are owned by a local
user, should they be owned by root ?


2. I am unable to start background processes like poller, git-daemon,
ultrasphinx. Please find below the error I am getting wrt the same.

For e.g. when I run the command /etc/init.d/git-poller start, the
error I get is:-

Starting poller: /etc/profile.d/rvm.sh: line 51: __rvm_add_to_path:
command not found
/usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:36:in
`gem_original_require': no such file to load -- daemons (LoadError)
from /usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:36:in
`require'
from /var/www/gitorious/script/poller:12
FAILURE

My Gem Env is:-

RubyGems Environment:
- RUBYGEMS VERSION: 1.8.15
- RUBY VERSION: 1.8.7 (2010-08-16 patchlevel 302) [x86_64-linux]
- INSTALLATION DIRECTORY: /home/mohnish/.rvm/gems/ruby-1.9.2-
p290@abc
- RUBY EXECUTABLE: /usr/bin/ruby1.8
- EXECUTABLE DIRECTORY: /home/mohnish/.rvm/gems/ruby-1.9.2-p290@abc/
bin
- RUBYGEMS PLATFORMS:
- ruby
- x86_64-linux
- GEM PATHS:
- /home/mohnish/.rvm/gems/ruby-1.9.2-p290@abc
- /home/mohnish/.rvm/gems/ruby-1.9.2-p290@global
- GEM CONFIGURATION:
- :update_sources => true
- :verbose => true
- :benchmark => false
- :backtrace => false
- :bulk_threshold => 1000
- REMOTE SOURCES:
- http://rubygems.org/


I am not sure what I am missing. Your insights would of real help.

Thank you.

boddhisattva

unread,
Apr 30, 2012, 8:34:45 AM4/30/12
to Gitorious
All this while, I was getting the Gitorious setup done using RVM.

I basically made reference to one blog(
http://coding-journal.com/installing-gitorious-on-ubuntu-11-04/ ), I
was using RVM, and probably thats why I ran into issues.

I tried to setup a clean environment all over again without using RVM,
things seem fine except for starting git-poller background job.

I am currently starting the git-poller background job by:
1. RAILS_ENV=production script/poller start

(I had to start this as root user)

*I haven't tried starting sphinx yet.

When I am trying to start poller using /etc/init.d/git-poller start, I
got the following error:-

/etc/init.d/git-poller start
Starting poller: /etc/profile.d/rvm.sh: line 51: __rvm_add_to_path:
command not found
FAILURE

I had to start this as root user as well.

Is there any where I can over come the same? I would be glad to have a
work around..

Thank you..

On Apr 26, 6:34 pm, boddhisattva <mail4mohn...@gmail.com> wrote:
> Hi,
>
> I am trying to setup Gitorious on my localbox. I am currently facing
> two issues.
>
> 1. Forbidden error when trying to run gitorious with https localhost
>
> When I try to run gitorious withhttp://localhostit gives me the
> "File Structure" of all the files. When I try to run the same onhttps://localhostI get the below error:-
>      -http://rubygems.org/
Reply all
Reply to author
Forward
0 new messages