[gitorious] Re: Upgrade to the latest version, almost there

2014-11-29 Thread R N
Wonderful, the poller is started w restart resque-worker

sudo restart resque-worker

Another error, when on the page with reset password:

/var/www/gitorious/app/log/production.log-20141123
[1417279833] [13799] [0ec82e1142c04ab6f1ab8b8ecf964e02]
ActionController::RoutingError (No route matches [GET] 
/avatars/thumb/missing.png):
  
vendor/bundle/ruby/2.0.0/gems/actionpack-3.2.19/lib/action_dispatch/middleware/debug_exceptions.rb:21:in
 `call'
  
vendor/bundle/ruby/2.0.0/gems/actionpack-3.2.19/lib/action_dispatch/middleware/show_exceptions.rb:56:in
 `call'
  vendor/bundle/ruby/2.0.0/gems/railties-3.2.19/lib/rails/rack/logger.rb:32:in 
`call_app'
  vendor/bundle/ruby/2.0.0/gems/railties-3.2.19/lib/rails/rack/logger.rb:16:in 
`block in call'
  
vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.19/lib/active_support/tagged_logging.rb:22:in
 `tagged'
  vendor/bundle/ruby/2.0.0/gems/railties-3.2.19/lib/rails/rack/logger.rb:16:in 
`call'
  
vendor/bundle/ruby/2.0.0/gems/actionpack-3.2.19/lib/action_dispatch/middleware/request_id.rb:22:in
 `call'
  vendor/bundle/ruby/2.0.0/gems/rack-1.4.5/lib/rack/methodoverride.rb:21:in 
`call'
  vendor/bundle/ruby/2.0.0/gems/rack-1.4.5/lib/rack/runtime.rb:17:in `call'
  
vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.19/lib/active_support/cache/strategy/local_cache.rb:72:in
 `call'
  vendor/bundle/ruby/2.0.0/gems/rack-1.4.5/lib/rack/lock.rb:15:in `call'
  vendor/bundle/ruby/2.0.0/gems/railties-3.2.19/lib/rails/engine.rb:484:in 
`call'
  vendor/bundle/ruby/2.0.0/gems/railties-3.2.19/lib/rails/application.rb:231:in 
`call'
  
vendor/bundle/ruby/2.0.0/gems/railties-3.2.19/lib/rails/railtie/configurable.rb:30:in
 `method_missing'
  vendor/bundle/ruby/2.0.0/gems/rack-1.4.5/lib/rack/lint.rb:48:in `_call'
  vendor/bundle/ruby/2.0.0/gems/rack-1.4.5/lib/rack/lint.rb:36:in `call'
  vendor/bundle/ruby/2.0.0/gems/rack-1.4.5/lib/rack/showexceptions.rb:24:in 
`call'
  vendor/bundle/ruby/2.0.0/gems/rack-1.4.5/lib/rack/commonlogger.rb:33:in `call'
  vendor/bundle/ruby/2.0.0/gems/sinatra-1.4.5/lib/sinatra/base.rb:217:in `call'
  vendor/bundle/ruby/2.0.0/gems/rack-1.4.5/lib/rack/chunked.rb:43:in `call'
  vendor/bundle/ruby/2.0.0/gems/rack-1.4.5/lib/rack/content_length.rb:14:in 
`call'
  vendor/bundle/ruby/2.0.0/gems/unicorn-4.6.3/lib/unicorn/http_server.rb:552:in 
`process_client'
  vendor/bundle/ruby/2.0.0/gems/unicorn-4.6.3/lib/unicorn/http_server.rb:632:in 
`worker_loop'
  vendor/bundle/ruby/2.0.0/gems/unicorn-4.6.3/lib/unicorn/http_server.rb:500:in 
`spawn_missing_workers'
  vendor/bundle/ruby/2.0.0/gems/unicorn-4.6.3/lib/unicorn/http_server.rb:511:in 
`maintain_worker_count'
  vendor/bundle/ruby/2.0.0/gems/unicorn-4.6.3/lib/unicorn/http_server.rb:277:in 
`join'
  vendor/bundle/ruby/2.0.0/gems/unicorn-4.6.3/bin/unicorn:126:in `top 
(required)'
  vendor/bundle/ruby/2.0.0/bin/unicorn:23:in `load'
  vendor/bundle/ruby/2.0.0/bin/unicorn:23:in `main'

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

--- 
You received this message because you are subscribed to the Google Groups 
Gitorious group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to gitorious+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[gitorious] Re: Upgrade to the latest version, almost there

2014-11-29 Thread R N
Phew, quite an effort to upgrade.

So this error with missing image is fixed by
RAILS_ENV=production bundle exec rake assets:precompile

And then it started to complain about internal smpt, no idea why
so fix it with 
cp /var/www/gitorious/app/config/smtp.sample.yml 
/var/www/gitorious/app/config/smtp.yml 

and edit accordingly to send email through external relay.

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

--- 
You received this message because you are subscribed to the Google Groups 
Gitorious group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to gitorious+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[gitorious] Re: Upgrade to the latest version, almost there

2014-11-17 Thread D Tucny
On Monday, November 17, 2014 12:43:18 PM UTC+8, R N wrote:
 The installer didn't produce any errors, but when push something to
 a repo I get errors
 
 git push
 Counting objects: 14, done.
 Delta compression using up to 8 threads.
 Compressing objects: 100% (10/10), done.
 Writing objects: 100% (11/11), 9.29 KiB | 0 bytes/s, done.
 Total 11 (delta 4), reused 0 (delta 0)
 remote: 
 /opt/rubies/ruby-1.9.3-p484/lib/ruby/gems/1.9.1/gems/bundler-1.6.2/lib/bundler/spec_set.rb:92:in
  `block in materialize': Could not find rake-10.3.2 in any of the sources 
 (Bundler::GemNotFound)
 remote: from 
 /opt/rubies/ruby-1.9.3-p484/lib/ruby/gems/1.9.1/gems/bundler-1.6.2/lib/bundler/spec_set.rb:85:in
  `map!'
 remote: from 
 /opt/rubies/ruby-1.9.3-p484/lib/ruby/gems/1.9.1/gems/bundler-1.6.2/lib/bundler/spec_set.rb:85:in
  `materialize'
 remote: from 
 /opt/rubies/ruby-1.9.3-p484/lib/ruby/gems/1.9.1/gems/bundler-1.6.2/lib/bundler/definition.rb:133:in
  `specs'
 remote: from 
 /opt/rubies/ruby-1.9.3-p484/lib/ruby/gems/1.9.1/gems/bundler-1.6.2/lib/bundler/definition.rb:178:in
  `specs_for'
 remote: from 
 /opt/rubies/ruby-1.9.3-p484/lib/ruby/gems/1.9.1/gems/bundler-1.6.2/lib/bundler/runtime.rb:13:in
  `setup'
 remote: from 
 /opt/rubies/ruby-1.9.3-p484/lib/ruby/gems/1.9.1/gems/bundler-1.6.2/lib/bundler.rb:127:in
  `setup'
 remote: from 
 /opt/rubies/ruby-1.9.3-p484/lib/ruby/gems/1.9.1/gems/bundler-1.6.2/lib/bundler.rb:132:in
  `require'
 remote: from 
 /var/www/gitorious/repositories/configs/configs.git/hooks/messaging.rb:49:in 
 `top (required)'
 remote: from 
 /opt/rubies/ruby-1.9.3-p484/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in 
 `require'
 remote: from 
 /opt/rubies/ruby-1.9.3-p484/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in 
 `require'
 remote: from hooks/post-receive:26:in `main'
 remote: = Syncing Gitorious... To 
 ssh://g...@gitorious.mineserver.com:9422/configs/configs.git
5d1fe13..c67bbf4  master - master
 
 This is what's in the ce-installer folder. I 
 
 pwd
 /var/www/gitorious/ce-installer
 -bash-4.1$ git log | head
 commit f767849d3e7702eb0db7994a994dd6071b2c8564
 Author: Marcin Kulik ...@ku1ik.com
 Date:   Wed Oct 1 17:33:44 2014 +0200
 
 Remove buggy https configuration
 
 commit 4fed69a151dd652209d66d2e111281660b0cfac6
 Author: Marcin Kulik ...@ku1ik.com
 Date:   Wed Oct 1 13:10:07 2014 +0200
 
 I only fixed git checkout $GITORIOUS_VERSION -f according to 
 http://comments.gmane.org/gmane.comp.version-control.gitorious/5382
 
 Web-interface doesn't show updates in activity or feeds, but repos seems to 
 be updated fine, nor git client complains.
 
 Thanks,
 --Roman

Roman,

Noticed the same issue myself. 
With 3.1, ruby is upgraded to 2.0.0...
install-ruby.sh in ce-installer has the following at the end:
if [ ! -f /etc/profile.d/chruby.sh ]; then
echo Set up 2.0 as default ruby version
echo source /usr/local/share/chruby/chruby.sh  chruby 
$FACTER_ruby_version  /etc/profile.d/chruby.sh
chmod a+x /etc/profile.d/chruby.sh
fi

echo Ruby 2.0 installed, ready on next login/new shell.

If this is an upgrade, and you previously had ruby 1.9.3, 
/etc/profile.d/chruby.sh is saying to set to that old version, install-ruby.sh 
doesn't change that - it only sets 2.0.0 to default if there way nothing set 
prior... Unfortunately upgrade.sh doesn't change this either.

A quick fix is to run chruby without options to get the 2.0 release string and 
manually replace the 1.9 one in /etc/profile.d/chruby.sh and restart 
services/reboot.

What probably needs to happen to prevent this happening is that either 
install-ruby.sh or upgrade.sh need to replace /etc/profile.d/chruby.sh in the 
event of an upgrade rather than leaving whatever was there before.

Thanks,

d

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

--- 
You received this message because you are subscribed to the Google Groups 
Gitorious group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to gitorious+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[gitorious] Re: Upgrade to the latest version, almost there

2014-11-17 Thread Roman Naumenko
On Monday, November 17, 2014 7:52:34 PM UTC-5, D Tucny wrote:
 On Monday, November 17, 2014 12:43:18 PM UTC+8, R N wrote:
  The installer didn't produce any errors, but when push something to
  a repo I get errors
  
  git push
  Counting objects: 14, done.
  Delta compression using up to 8 threads.
  Compressing objects: 100% (10/10), done.
  Writing objects: 100% (11/11), 9.29 KiB | 0 bytes/s, done.
  Total 11 (delta 4), reused 0 (delta 0)
  remote: 
  /opt/rubies/ruby-1.9.3-p484/lib/ruby/gems/1.9.1/gems/bundler-1.6.2/lib/bundler/spec_set.rb:92:in
   `block in materialize': Could not find rake-10.3.2 in any of the sources 
  (Bundler::GemNotFound)
  remote: from 
  /opt/rubies/ruby-1.9.3-p484/lib/ruby/gems/1.9.1/gems/bundler-1.6.2/lib/bundler/spec_set.rb:85:in
   `map!'
  remote: from 
  /opt/rubies/ruby-1.9.3-p484/lib/ruby/gems/1.9.1/gems/bundler-1.6.2/lib/bundler/spec_set.rb:85:in
   `materialize'
  remote: from 
  /opt/rubies/ruby-1.9.3-p484/lib/ruby/gems/1.9.1/gems/bundler-1.6.2/lib/bundler/definition.rb:133:in
   `specs'
  remote: from 
  /opt/rubies/ruby-1.9.3-p484/lib/ruby/gems/1.9.1/gems/bundler-1.6.2/lib/bundler/definition.rb:178:in
   `specs_for'
  remote: from 
  /opt/rubies/ruby-1.9.3-p484/lib/ruby/gems/1.9.1/gems/bundler-1.6.2/lib/bundler/runtime.rb:13:in
   `setup'
  remote: from 
  /opt/rubies/ruby-1.9.3-p484/lib/ruby/gems/1.9.1/gems/bundler-1.6.2/lib/bundler.rb:127:in
   `setup'
  remote: from 
  /opt/rubies/ruby-1.9.3-p484/lib/ruby/gems/1.9.1/gems/bundler-1.6.2/lib/bundler.rb:132:in
   `require'
  remote: from 
  /var/www/gitorious/repositories/configs/configs.git/hooks/messaging.rb:49:in
   `top (required)'
  remote: from 
  /opt/rubies/ruby-1.9.3-p484/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in 
  `require'
  remote: from 
  /opt/rubies/ruby-1.9.3-p484/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in 
  `require'
  remote: from hooks/post-receive:26:in `main'
  remote: = Syncing Gitorious... To 
  ssh://g...@gitorious.mineserver.com:9422/configs/configs.git
 5d1fe13..c67bbf4  master - master
  
  This is what's in the ce-installer folder. I 
  
  pwd
  /var/www/gitorious/ce-installer
  -bash-4.1$ git log | head
  commit f767849d3e7702eb0db7994a994dd6071b2c8564
  Author: Marcin Kulik ...@ku1ik.com
  Date:   Wed Oct 1 17:33:44 2014 +0200
  
  Remove buggy https configuration
  
  commit 4fed69a151dd652209d66d2e111281660b0cfac6
  Author: Marcin Kulik ...@ku1ik.com
  Date:   Wed Oct 1 13:10:07 2014 +0200
  
  I only fixed git checkout $GITORIOUS_VERSION -f according to 
  http://comments.gmane.org/gmane.comp.version-control.gitorious/5382
  
  Web-interface doesn't show updates in activity or feeds, but repos seems to 
  be updated fine, nor git client complains.
  
  Thanks,
  --Roman
 
 Roman,
 
 Noticed the same issue myself. 
 With 3.1, ruby is upgraded to 2.0.0...
 install-ruby.sh in ce-installer has the following at the end:
 if [ ! -f /etc/profile.d/chruby.sh ]; then
 echo Set up 2.0 as default ruby version
 echo source /usr/local/share/chruby/chruby.sh  chruby 
 $FACTER_ruby_version  /etc/profile.d/chruby.sh
 chmod a+x /etc/profile.d/chruby.sh
 fi
 
 echo Ruby 2.0 installed, ready on next login/new shell.
 
 If this is an upgrade, and you previously had ruby 1.9.3, 
 /etc/profile.d/chruby.sh is saying to set to that old version, 
 install-ruby.sh doesn't change that - it only sets 2.0.0 to default if there 
 way nothing set prior... Unfortunately upgrade.sh doesn't change this either.
 
 A quick fix is to run chruby without options to get the 2.0 release string 
 and manually replace the 1.9 one in /etc/profile.d/chruby.sh and restart 
 services/reboot.
 
 What probably needs to happen to prevent this happening is that either 
 install-ruby.sh or upgrade.sh need to replace /etc/profile.d/chruby.sh in the 
 event of an upgrade rather than leaving whatever was there before.
 
 Thanks,
 
 d

Cool, thanks!
This is fixed - push to repositories works fine.
 
What about pooler, if I'm not mistaken service that updates activities and 
feeds on site pages?
/var/www/gitorious/app/script/poller is gone, so /etc/init.d/git-poller is 
useless.

--Roman

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

--- 
You received this message because you are subscribed to the Google Groups 
Gitorious group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to gitorious+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.