Hi all,
I just installed Gitorious (cloned from master branch on mainline) and am getting two errors emailed to me whenever I push to any repo. If it matters, in a failed attempt to solve this problem, I re-cloned Gitorious just a few hours ago, but left the database and repos directory intact.
In short, the errors are:
--NoMethodError: undefined method `gitdir' for nil:NilClassandActiveMessaging::AbortMessageException: ActiveMessaging::AbortMessageExceptionFull backtraces are here:http://pastebin.com/xmRCmUhmhttp://pastebin.com/cZgwiVh4Strangely enough, pushing still seems to work fine. That is, the pushed code still shows up in a browser properly and git reports no errors client side.Any ideas?Thank you!
To post to this group, send email to gito...@googlegroups.com
To unsubscribe from this group, send email to
gitorious+...@googlegroups.com
-- best regards, Thomas Kjeldahl Nilsson http://gitorious.com
Hi Thomas,
Thanks for the reply!
I pulled your changes and rebooted my server, and while the "gitdir" error is now gone, it seems to have been replaced with another error.
NoMethodError: undefined method `wiki?' for nil:NilClassThe other error still persists as well.ActiveMessaging::AbortMessageException: ActiveMessaging::AbortMessageException
Backtraces:
The config I'm using is:
production:cookie_secret: ******repository_base_path: "/home/git/repos"site_name: ******use_ssl: truegitorious_client_port: 80gitorious_client_host: localhostgitorious_host: *****gitorious_user: gitexception_notification_emails: *****gitorious_support_email: *****mangle_email_addresses: falsepublic_mode: falselocale: enarchive_cache_dir: "/home/git/tarballs"archive_work_dir: "/home/git/tarball-work"only_site_admins_can_create_projects: falsehide_http_clone_urls: falseis_gitorious_dot_org: false
I'm still new to Gitorious, but I think everything in there is at least relatively normal.
Would it make any difference if I'm using Ruby Enterprise?
Thanks again!
Thomas,
My Ruby version is:# ./ruby --versionruby 1.8.7 (2012-02-08 MBARI 8/0x6770 on patchlevel 358) [x86_64-linux], MBARI 0x6770, Ruby Enterprise Edition 2012.02
/proc info for the processes seems to confirm that version 1.8.7 is in fact being used (/opt/ruby is a symlink to my Ruby Enterprise directory).
# ps aux | grep rubygit 4582 0.0 1.5 94620 15600 ? S Aug09 0:27 /opt/ruby/bin/ruby /usr/bin/stompserver -w /var/www/gitorious/tmp/stomp -q file -s queuegit 4614 0.0 13.9 269068 142244 ? S Aug09 0:00 ruby /var/www/gitorious/script/git-daemon -d# ls -la /proc/4614/exe
lrwxrwxrwx. 1 git apache 0 Aug 10 03:05 /proc/4614/exe -> /opt/ruby-enterprise-1.8.7-2012.02/bin/ruby
Although, if I'm not mistaken Passenger should be using a Ruby interpreter as well. I'm unsure how to figure out which one it's using.
Thanks!
Just to see what would happen, I commented out lines 36, 37, and 38 in push_processor.rb. I restarted everything, and got the error:
NoMethodError: undefined method `project' for nil:NilClass /var/www/gitorious/lib/push_event_logger.rb:48:in `build_push_event' /var/www/gitorious/lib/push_event_logger.rb:53:in `create_push_event' /var/www/gitorious/app/processors/push_processor.rb:53:in `process_push' /var/www/gitorious/app/processors/push_processor.rb:41:in `on_message' /var/www/gitorious/lib/gitorious/messaging.rb:82:in `consume' /var/www/gitorious/lib/gitorious/messaging/stomp_adapter.rb:96:in `on_message' /var/www/gitorious/vendor/cache/ruby/1.8/gems/activemessaging-0.7.1/lib/activemessaging/processor.rb:32:in `process!' /var/www/gitorious/vendor/cache/ruby/1.8/gems/activemessaging-0.7.1/lib/activemessaging/gateway.rb:232:in `_dispatch' /var/www/gitorious/vendor/cache/ruby/1.8/gems/activemessaging-0.7.1/lib/activemessaging/gateway.rb:151:in `execute_filter_chain' /var/www/gitorious/vendor/cache/ruby/1.8/gems/activemessaging-0.7.1/lib/activemessaging/gateway.rb:231:in `_dispatch' /var/www/gitorious/vendor/cache/ruby/1.8/gems/activemessaging-0.7.1/lib/activemessaging/gateway.rb:222:in `each' /var/www/gitorious/vendor/cache/ruby/1.8/gems/activemessaging-0.7.1/lib/activemessaging/gateway.rb:222:in `_dispatch' /var/www/gitorious/vendor/cache/ruby/1.8/gems/activemessaging-0.7.1/lib/activemessaging/gateway.rb:207:in `dispatch' /var/www/gitorious/vendor/cache/ruby/1.8/gems/activemessaging-0.7.1/lib/activemessaging/gateway.rb:204:in `synchronize' /var/www/gitorious/vendor/cache/ruby/1.8/gems/activemessaging-0.7.1/lib/activemessaging/gateway.rb:204:in `dispatch' /var/www/gitorious/vendor/cache/ruby/1.8/gems/activemessaging-0.7.1/lib/activemessaging/gateway.rb:45:in `start' /var/www/gitorious/vendor/cache/ruby/1.8/gems/activemessaging-0.7.1/lib/activemessaging/gateway.rb:32
It's like I'm missing some code, but I don't know what. Hmm.
@command"00000a2o: StompServer::StompFram:
MESSAGE:
@headers{
"message-id"0git-dev-1353103612-769291-1" destination" /queue/GitoriousPush" content-length162" content-type" text/plain; charset=UTF-8"persistent" true{"username":"anapsix","gitdir":"repos/test/test","message":"500a2bfdf346d7ba930b98e6b1f3c2583ca2d71d 518d1c9c31a77e5c7cbe5528a64331f53b52f774 refs/heads/master"}
same here.. as soon as I push, I get the following error emailed to me:An exception occured in #<PushProcessor:0x6c6f038
@repository=nil,
@spec=
#<PushSpecParser:0x6c6a948
@from_sha=
#<PushSpecParser::Sha:0x6c6a8f8
@sha="4d0ae08efc6b7a7aabce877467ec98b633afe8e0">,
@ref=#<PushSpecParser::Ref:0x6c6a8a8 @name="master", @type="heads">,
@to_sha=
#<PushSpecParser::Sha:0x6c6a8d0
@sha="e04ed7cc2b93d4160b75619f60dd5cc65bb5e124">>,
@user= [... snip ...]
NoMethodError: undefined method `wiki?' for nil:NilClass
Not sure id that makes any difference, but wiki is disabled for the project..
On Wednesday, October 3, 2012 4:27:15 PM UTC-4, Scott Allen wrote:Any resolution on this? I am seeing the same error on a newer server that we have configure to replace an older one. Older environment has no issue. They are running the exact same gitorious code base with the configuration as close as possible, with the only difference really being the patch level of pruby.
NoMethodError: undefined method `wiki?' for nil:NilClass
-scott