Re: [gitorious] Re: 500 Internal Server error when trying to view newly created repo

2011-06-29 Thread Rodrigo Rosenfeld Rosas

Em 29-06-2011 09:22, Ismail Dhorat escreveu:

There seems to be a permission issue.

If i reset the permissions on the repositories directory too the git 
user, i can view the repo fine. However a new repo is not created with 
permissions of the git user. Any ideas why?  Are the repos created by 
the same user that runs the poller script? i.e does the poller script 
need to be run as the git user?


Yes

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


Re: [gitorious] Re: 500 internal server error

2011-05-20 Thread ratnadeepdeshm...@gmail.com
While creating repository, tested output of free command.

It is -
 total   used   free sharedbuffers cached
Mem:765004 756840   8164  0   5716  49700
 -/+ buffers/cache: 701424  63580
Swap:  1572860 966176 606684

Seems server is swapping. The server 765MB slice VPS, and there are other
two rails applications which are ideal.
What could be the minimum server requirement for gitorious to run ?



On Fri, May 20, 2011 at 10:53 AM, Marius Mårnes Mathiesen 
marius.mathie...@gmail.com wrote:

 On Thu, May 19, 2011 at 5:08 PM, ratnadeepdeshm...@gmail.com 
 ratnadeepdeshm...@gmail.com wrote:

 But now when i create a repository i am getting exception notifier errors
 with following message -

 An exception occured in #RepositoryCreationProcessor:0x7f7a1bfd4d68
  @message=
  #Stomp::Message:0x7f7a1bff9af0
   @body=

  
 {\command\:\create_git_repository\,\target_id\:16,\target_class\:\Repository\,\arguments\:[\315/e4b/9bb02953158b2d92e28ccb69481f0952cb.git\]},
   @command=MESSAGE,
   @headers=
{expires=0,
 timestamp=1305815699311,
 destination=/queue/GitoriousRepositoryCreation,
 message-id=ID:WEBONISE2-45768-1305815525667-5:4:-1:1:1,
 content-type=text/plain; charset=UTF-8,
 priority=0,
 content-length=141,
 subscription=repository_creation_processor}
 !


 {command:create_git_repository,target_id:16,target_class:Repository,arguments:[315/e4b/9bb02953158b2d92e28ccb69481f0952cb.git]}

 : execution expired

 /usr/lib/ruby/1.8/timeout.rb:60:in `sh'


 This is a timeout kicking in when the processor tries to create a git
 repository on disk, which is basically just being shelled out to the git
 CLI.
 This shouldn't take any time at all, is your server tight on resources?

 Cheers,
 - Marius

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




-- 
Ratnadeep Deshmane.
http://rtdptech.com

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


Re: [gitorious] Re: 500 internal server error

2011-05-20 Thread Rodrigo Rosenfeld Rosas
We use 1GB of RAM in our VM with 2 instances running under passenger at 
our Company.


Rodrigo.

Em 20-05-2011 06:08, Marius Mårnes Mathiesen escreveu:
On Fri, May 20, 2011 at 9:11 AM, ratnadeepdeshm...@gmail.com 
mailto:ratnadeepdeshm...@gmail.com ratnadeepdeshm...@gmail.com 
mailto:ratnadeepdeshm...@gmail.com wrote:


While creating repository, tested output of free command.

It is -
 total   used   free sharedbuffers
cached
Mem:765004 756840   8164  0   5716
 49700  -/+ buffers/cache: 701424  63580

Swap:  1572860 966176 606684

Seems server is swapping. The server 765MB slice VPS, and there
are other two rails applications which are ideal.
What could be the minimum server requirement for gitorious to run ?


There are probably other users with better estimates of what's 
required on the list than me, I work primarily with gitorious.org 
http://gitorious.org - which probably isn't a typical setup.


Generally, each Rails (web app) instance will take up 250-300 MBs of 
RAM, the poller currently requires roughly the same. The other 
components aren't that heavy on RAM, except the indexer, which loads a 
full Rails environment. You'll probably want at least ~500MB available 
for Gitorious.


Depending on traffic, IO can potentially  be a bottleneck, git is 
quite heavy there.


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


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


Re: [gitorious] Re: 500 internal server error

2011-05-19 Thread Marius Mårnes Mathiesen
On Thu, May 19, 2011 at 3:52 PM, Rtdp ratnadeepdeshm...@gmail.com wrote:

 I am also having the same problem.

 I installed everything with
 http://cjohansen.no/en/ruby/setting_up_gitorious_on_your_own_server

 So how can i rectify issue with ActiveMQ ? Tried doing above article
 instructions many times, but didn't helped.  How can i debug this ?


The first thing you should do is to verify that activemq is running on your
server. How did you start it?

Next: if activemq is indeed running, verify that it's listening to the port
specified. If you haven't changed anything in config/broker.yml, this will
default to 61613. telnet localhost 61613 should not give any errors.

Cheers,
- Marius

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


Re: [gitorious] Re: 500 internal server error

2011-05-19 Thread ratnadeepdeshm...@gmail.com
Hey Marius,
Thanks for the help.

I found that it was issue with ActiveMQ. Following that tutorial, i tried to
wget 5.2 version and couldn't so i downloaded 5.5 version and continued
which was causing error.
Then i search a bit for working ActiveMQ 5.2 link to wget and installed it,
and got past that error.

For anybody else to refer, ActiveMQ 5.2 can be downloaded form here -
http://www.alliedquotes.com/mirrors/apache//activemq/apache-activemq/5.2.0/apache-activemq-5.2.0-bin.tar.gz


But now when i create a repository i am getting exception notifier errors
with following message -

An exception occured in #RepositoryCreationProcessor:0x7f7a1bfd4d68
 @message=
 #Stomp::Message:0x7f7a1bff9af0
  @body=

 
{\command\:\create_git_repository\,\target_id\:16,\target_class\:\Repository\,\arguments\:[\315/e4b/9bb02953158b2d92e28ccb69481f0952cb.git\]},
  @command=MESSAGE,
  @headers=
   {expires=0,
timestamp=1305815699311,
destination=/queue/GitoriousRepositoryCreation,
message-id=ID:WEBONISE2-45768-1305815525667-5:4:-1:1:1,
content-type=text/plain; charset=UTF-8,
priority=0,
content-length=141,
subscription=repository_creation_processor}
!

{command:create_git_repository,target_id:16,target_class:Repository,arguments:[315/e4b/9bb02953158b2d92e28ccb69481f0952cb.git]}

: execution expired

/usr/lib/ruby/1.8/timeout.rb:60:in `sh'
   /usr/lib/ruby/1.8/open3.rb:86:in `popen3'
   /var/www/git.weboapps.com/gitorious/vendor/grit/lib/grit/git.rb:81:in
 `sh'
   /var/www/git.weboapps.com/gitorious/vendor/grit/lib/grit/git.rb:71:in
 `run'
   /usr/lib/ruby/1.8/benchmark.rb:293:in `measure'
   /var/www/git.weboapps.com/gitorious/vendor/grit/lib/grit/git.rb:70:in
 `run'
   /var/www/git.weboapps.com/gitorious/vendor/grit/lib/grit/git.rb:57:in
 `method_missing'
   /var/www/
git.weboapps.com/gitorious/vendor/grit/lib/grit/git-ruby.rb:17:in `init'
   /var/www/git.weboapps.com/gitorious/lib/git_backend.rb:12:in `create'
   /var/www/git.weboapps.com/gitorious/lib/git_backend.rb:9:in `chdir'
   /var/www/git.weboapps.com/gitorious/lib/git_backend.rb:9:in `create'
   /var/www/git.weboapps.com/gitorious/app/models/repository.rb:155:in
 `create_git_repository'
   /var/www/
git.weboapps.com/gitorious/app/processors/repository_creation_processor.rb:30:in
 `send'
   /var/www/
git.weboapps.com/gitorious/app/processors/repository_creation_processor.rb:30:in
 `on_message'
   /var/www/
git.weboapps.com/gitorious/vendor/plugins/activemessaging/lib/activemessaging/processor.rb:32:in
 `process!'
   /var/www/
git.weboapps.com/gitorious/vendor/plugins/activemessaging/lib/activemessaging/gateway.rb:229:in
 `_dispatch'
   /var/www/
git.weboapps.com/gitorious/vendor/plugins/activemessaging/lib/activemessaging/gateway.rb:149:in
 `execute_filter_chain'
   /var/www/
git.weboapps.com/gitorious/vendor/plugins/activemessaging/lib/activemessaging/gateway.rb:228:in
 `_dispatch'
   /var/www/
git.weboapps.com/gitorious/vendor/plugins/activemessaging/lib/activemessaging/gateway.rb:219:in
 `each'
   /var/www/
git.weboapps.com/gitorious/vendor/plugins/activemessaging/lib/activemessaging/gateway.rb:219:in
 `_dispatch'
   /var/www/
git.weboapps.com/gitorious/vendor/plugins/activemessaging/lib/activemessaging/gateway.rb:200:in
 `dispatch'
   /var/www/
git.weboapps.com/gitorious/vendor/plugins/activemessaging/lib/activemessaging/gateway.rb:197:in
 `synchronize'
   /var/www/
git.weboapps.com/gitorious/vendor/plugins/activemessaging/lib/activemessaging/gateway.rb:197:in
 `dispatch'
   /var/www/
git.weboapps.com/gitorious/vendor/plugins/activemessaging/lib/activemessaging/gateway.rb:43:in
 `start'
   /var/www/
git.weboapps.com/gitorious/vendor/plugins/activemessaging/lib/activemessaging/gateway.rb:30:in
 `start'
   /var/www/
git.weboapps.com/gitorious/vendor/plugins/activemessaging/lib/activemessaging/gateway.rb:29:in
 `each'
   /var/www/
git.weboapps.com/gitorious/vendor/plugins/activemessaging/lib/activemessaging/gateway.rb:29:in
 `start'
   /var/www/
git.weboapps.com/gitorious/vendor/plugins/activemessaging/lib/activemessaging.rb:109:in
 `start'
   /var/www/
git.weboapps.com/gitorious/vendor/plugins/activemessaging/poller.rb:14

 /usr/lib/ruby/gems/1.8/gems/daemons-1.1.0/lib/daemons/application.rb:203:in
`load'

 /usr/lib/ruby/gems/1.8/gems/daemons-1.1.0/lib/daemons/application.rb:203:in
`start_load'

 /usr/lib/ruby/gems/1.8/gems/daemons-1.1.0/lib/daemons/application.rb:292:in
`start'

 /usr/lib/ruby/gems/1.8/gems/daemons-1.1.0/lib/daemons/controller.rb:70:in
`run'
   /usr/lib/ruby/gems/1.8/gems/daemons-1.1.0/lib/daemons.rb:143

 /usr/lib/ruby/gems/1.8/gems/daemons-1.1.0/lib/daemons/cmdline.rb:112:in
`call'

 /usr/lib/ruby/gems/1.8/gems/daemons-1.1.0/lib/daemons/cmdline.rb:112:in
`catch_exceptions'
   /usr/lib/ruby/gems/1.8/gems/daemons-1.1.0/lib/daemons.rb:142:in `run'
   script/poller:30


On Thu, May 19, 2011 at 8:01 

Re: [gitorious] Re: 500 internal server error

2011-05-19 Thread Marius Mårnes Mathiesen
On Thu, May 19, 2011 at 5:08 PM, ratnadeepdeshm...@gmail.com 
ratnadeepdeshm...@gmail.com wrote:

 But now when i create a repository i am getting exception notifier errors
 with following message -

 An exception occured in #RepositoryCreationProcessor:0x7f7a1bfd4d68
  @message=
  #Stomp::Message:0x7f7a1bff9af0
   @body=

  
 {\command\:\create_git_repository\,\target_id\:16,\target_class\:\Repository\,\arguments\:[\315/e4b/9bb02953158b2d92e28ccb69481f0952cb.git\]},
   @command=MESSAGE,
   @headers=
{expires=0,
 timestamp=1305815699311,
 destination=/queue/GitoriousRepositoryCreation,
 message-id=ID:WEBONISE2-45768-1305815525667-5:4:-1:1:1,
 content-type=text/plain; charset=UTF-8,
 priority=0,
 content-length=141,
 subscription=repository_creation_processor}
 !


 {command:create_git_repository,target_id:16,target_class:Repository,arguments:[315/e4b/9bb02953158b2d92e28ccb69481f0952cb.git]}

 : execution expired

 /usr/lib/ruby/1.8/timeout.rb:60:in `sh'


This is a timeout kicking in when the processor tries to create a git
repository on disk, which is basically just being shelled out to the git
CLI.
This shouldn't take any time at all, is your server tight on resources?

Cheers,
- Marius

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