Updating to 0.5 | bin/rake db:migrate => rake aborted! NameError: uninitialized constant Rack::SSL | Following : https://wiki.diasporafoundation.org/Updating#Updating_diaspora.2A_0.4_to_diaspora.2A_0.5

399 views
Skip to first unread message

Sofocle

unread,
Jun 21, 2015, 6:52:51 PM6/21/15
to diaspora...@googlegroups.com, adi...@andalys.fr
Hello everyone !


I have a pod running on a debian 7 server.
Diaspora v4 worked just fine.
I followed the steps wrtten in the wiki but when I run this command bin/rake db:migrate, I get :

diaspora@icarus:/var/www/diaspora$ bin/rake db:migrate
rake aborted!
NameError: uninitialized constant Rack::SSL
/var/www/diaspora/config/initializers/enforce_ssl.rb:6:in `<top (required)>'
/home/diaspora/.rvm/gems/ruby-2.1.6/gems/railties-4.2.2/lib/rails/engine.rb:652:in `block in load_config_initializer'
/home/diaspora/.rvm/gems/ruby-2.1.6/gems/activesupport-4.2.2/lib/active_support/notifications.rb:166:in `instrument'
/home/diaspora/.rvm/gems/ruby-2.1.6/gems/railties-4.2.2/lib/rails/engine.rb:651:in `load_config_initializer'
/home/diaspora/.rvm/gems/ruby-2.1.6/gems/railties-4.2.2/lib/rails/engine.rb:616:in `block (2 levels) in <class:Engine>'
/home/diaspora/.rvm/gems/ruby-2.1.6/gems/railties-4.2.2/lib/rails/engine.rb:615:in `each'
/home/diaspora/.rvm/gems/ruby-2.1.6/gems/railties-4.2.2/lib/rails/engine.rb:615:in `block in <class:Engine>'
/home/diaspora/.rvm/gems/ruby-2.1.6/gems/railties-4.2.2/lib/rails/initializable.rb:30:in `instance_exec'
/home/diaspora/.rvm/gems/ruby-2.1.6/gems/railties-4.2.2/lib/rails/initializable.rb:30:in `run'
/home/diaspora/.rvm/gems/ruby-2.1.6/gems/railties-4.2.2/lib/rails/initializable.rb:55:in `block in run_initializers'
/home/diaspora/.rvm/gems/ruby-2.1.6/gems/railties-4.2.2/lib/rails/initializable.rb:44:in `each'
/home/diaspora/.rvm/gems/ruby-2.1.6/gems/railties-4.2.2/lib/rails/initializable.rb:44:in `tsort_each_child'
/home/diaspora/.rvm/gems/ruby-2.1.6/gems/railties-4.2.2/lib/rails/initializable.rb:54:in `run_initializers'
/home/diaspora/.rvm/gems/ruby-2.1.6/gems/railties-4.2.2/lib/rails/application.rb:352:in `initialize!'
/home/diaspora/.rvm/gems/ruby-2.1.6/gems/railties-4.2.2/lib/rails/railtie.rb:194:in `public_send'
/home/diaspora/.rvm/gems/ruby-2.1.6/gems/railties-4.2.2/lib/rails/railtie.rb:194:in `method_missing'
/var/www/diaspora/config/environment.rb:5:in `<top (required)>'
/home/diaspora/.rvm/gems/ruby-2.1.6/gems/railties-4.2.2/lib/rails/application.rb:328:in `require_environment!'
/home/diaspora/.rvm/gems/ruby-2.1.6/gems/railties-4.2.2/lib/rails/application.rb:457:in `block in run_tasks_blocks'
Tasks: TOP => db:migrate => environment
(See full trace by running task with --trace)

When I run the command with --trace parameter, I get :

/home/diaspora/.rvm/rubies/ruby-2.1.6/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:54:in `require': cannot load such file -- bundler/setup (LoadError)
from /home/diaspora/.rvm/rubies/ruby-2.1.6/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:54:in `require'
from /var/www/diaspora/config/boot.rb:3:in `<top (required)>'
from bin/rake:6:in `require_relative'
from bin/rake:6:in `<main>'



The wiki only states : "If you encounter a rake aborted! NameError: uninitialized constant Rack::SSL in the rest of this guide, that means you didn't execute this step correctly.
"This step" is running the command export DB=mysql RAILS_ENV=production but i didn't forget to run it as my pod uses MySQL.

Does anyone have a clue ?

Best regards.

Jonne Haß

unread,
Jun 21, 2015, 6:59:14 PM6/21/15
to diaspora...@googlegroups.com
What's the output of the following commands?

rvm current
bundle -v
echo $RAILS_ENV $DB
bundle install

On 22.06.2015 00:52, Sofocle wrote:
> Hello everyone !
>
> I was following this tutorial
> : https://wiki.diasporafoundation.org/Updating#Updating_diaspora.2A_0.4_to_diaspora.2A_0.5
>
> I have a pod running on a debian 7 server.
> Diaspora v4 worked just fine.
> I followed the steps wrtten in the wiki but when I run this
> command /*bin/rake db:migrate*/, I get :
> "This step" is running the command /export DB=mysql RAILS_ENV=production
> /but i didn't forget to run it as my pod uses MySQL.
>
> Does anyone have a clue ?
>
> Best regards.
>
> --
> You received this message because you are subscribed to the Google
> Groups "diaspora-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to diaspora-discu...@googlegroups.com
> <mailto:diaspora-discu...@googlegroups.com>.
> For more options, visit https://groups.google.com/d/optout.

sofo...@gmail.com

unread,
Jun 22, 2015, 7:56:23 AM6/22/15
to diaspora...@googlegroups.com, isa...@gmail.com
Hi Jonne, 
Thank for you quick answer.

Here are the results :


diaspora@icarus:/var/www/diaspora$ rvm current
ruby-2.1.5@diaspora

diaspora@icarus:/var/www/diaspora$ bundle -v
Bundler version 1.7.6

diaspora@icarus:/var/www/diaspora$ echo $RAILS_ENV $DB
production mysql

diaspora@icarus:/var/www/diaspora$ bundle install
Fetching source index from https://rails-assets.org/
Fetching gem metadata from https://rails-assets.org/..
Fetching gem metadata from https://rubygems.org/............
Fetching additional metadata from https://rails-assets.org/..
Fetching additional metadata from https://rubygems.org/..
Resolving dependencies.....
Using rake 10.4.2
Using CFPropertyList 2.3.1
Using i18n 0.7.0
Using json 1.8.2
Using minitest 5.7.0
Using thread_safe 0.3.5
Using tzinfo 1.2.2
Using activesupport 4.2.2
Using builder 3.2.2
Using erubis 2.7.0
Using mini_portile 0.6.2
Using nokogiri 1.6.6.2
Using rails-deprecated_sanitizer 1.0.3
Using rails-dom-testing 1.0.6
Using loofah 2.0.2
Using rails-html-sanitizer 1.0.2
Using actionview 4.2.2
Using rack 1.6.2
Using rack-test 0.6.3
Using actionpack 4.2.2
Using globalid 0.3.5
Using activejob 4.2.2
Using mime-types 2.6.1
Using mail 2.6.3
Using actionmailer 4.2.2
Using actionpack-action_caching 1.1.1
Using actionpack-page_caching 1.0.2
Using activemodel 4.2.2
Using active_model_serializers 0.9.3
Using arel 6.0.0
Using activerecord 4.2.2
Using activerecord-import 0.7.0
Using acts-as-taggable-on 3.5.0
Using acts_as_api 0.4.2
Using addressable 2.3.8
Using excon 0.45.3
Using formatador 0.2.5
Using net-ssh 2.9.2
Using net-scp 1.2.1
Using fog-core 1.30.0
Using fog-xml 0.1.2
Using fog-atmos 0.1.0
Using multi_json 1.11.1
Using fog-json 1.0.1
Using ipaddress 0.8.0
Using fog-aws 0.1.2
Using inflecto 0.0.2
Using fog-brightbox 0.7.1
Using fog-ecloud 0.1.1
Using fog-google 0.0.5
Using fog-local 0.2.1
Using fog-powerdns 0.1.1
Using fog-profitbricks 0.0.2
Using fog-radosgw 0.0.4
Using fog-riakcs 0.1.0
Using fog-sakuracloud 1.0.1
Using fog-serverlove 0.1.2
Using fog-softlayer 0.4.5
Using fog-storm_on_demand 0.1.1
Using fog-terremark 0.1.0
Using fission 0.5.0
Using fog-vmfusion 0.1.0
Using fog-voxel 0.1.0
Using fog 1.30.0
Using unf_ext 0.0.7.1
Using unf 0.1.4
Using asset_sync 1.1.0
Using execjs 2.5.2
Using autoprefixer-rails 5.1.11
Using coffee-script-source 1.9.1.1
Using coffee-script 2.4.1
Using eco-source 1.1.0.rc.1
Using eco 1.0.0
Using ejs 1.1.1
Using thor 0.19.1
Using railties 4.2.2
Using jquery-rails 4.0.4
Using backbone-on-rails 1.1.2.1
Using bcrypt 3.1.10
Using sass 3.4.13
Using bootstrap-sass 2.3.2.2
Using buftok 0.2.0
Using bundler 1.7.6
Using carrierwave 0.10.0
Using hitimes 1.2.2
Using timers 4.0.1
Using celluloid 0.16.0
Using nio4r 1.1.0
Using celluloid-io 0.16.2
Using chunky_png 1.3.4
Using coffee-rails 4.1.0
Using compass-core 1.0.3
Using compass-import-once 1.0.5
Using rb-fsevent 0.9.4
Using ffi 1.9.8
Using rb-inotify 0.9.5
Using compass 1.0.3
Using hike 1.2.3
Using tilt 1.4.1
Using sprockets 2.12.3
Using sprockets-rails 2.3.1
Using sass-rails 5.0.1
Using compass-rails 2.0.4
Using configurate 0.3.1
Using connection_pool 2.2.0
Using orm_adapter 0.5.0
Using responders 2.1.0
Using warden 1.2.3
Using devise 3.4.1
Using devise-token_authenticatable 0.3.0
Using rails 4.2.2
Using devise_lastseenable 0.0.4
Using eventmachine 1.0.7
Using hiredis 0.5.2
Using em-hiredis 0.3.0
Using http_parser.rb 0.6.0
Using diaspora-vines 0.1.27
Using domain_name 0.5.24
Using entypo-rails 2.2.3
Using equalizer 0.0.11
Using ethon 0.7.3
Using sigar 0.7.3
Using state_machine 1.2.0
Using eye 0.7.pre
Using facebox-rails 0.2.0
Using multipart-post 2.0.0
Using faraday 0.9.1
Using http-cookie 1.0.2
Using faraday-cookie_jar 0.0.6
Using faraday_middleware 0.9.1
Using font-awesome-rails 4.3.0.0
Using request_store 1.1.0
Using gon 5.2.3
Using haml 4.0.6
Using handlebars_assets 0.20.1
Using hashie 3.4.1
Using http 0.6.4
Using http_accept_language 2.0.5
Using i18n-inflector 2.6.7
Using i18n-inflector-rails 1.0.7
Using ice_cube 0.11.1
Using jquery-ui-rails 5.0.3
Using js-routes 1.0.1
Using js_image_paths 0.0.2
Using jwt 1.4.1
Using kaminari 0.16.3
Using kgio 2.9.3
Using little-plugger 1.1.3
Using logging 2.0.0
Using logging-rails 0.5.0
Using systemu 2.6.5
Using macaddr 1.7.1
Using redcarpet 3.2.3
Using markerb 1.0.2
Using memoizable 0.4.2
Using messagebus_ruby_api 1.0.3
Using mini_magick 4.2.3
Using rack-mobile-detect 0.4.0
Using mobile-fu 1.3.1
Using multi_xml 0.5.5
Using mysql2 0.3.18
Using naught 1.0.0
Using nested_form 0.3.2
Using oauth 0.4.7
Using oauth2 1.0.0
Using omniauth 1.2.2
Using omniauth-oauth2 1.3.0
Using omniauth-facebook 2.0.1
Using omniauth-oauth 1.1.0
Using omniauth-tumblr 1.1
Using omniauth-twitter 1.2.0
Using omniauth-wordpress 0.2.2
Using open_graph_reader 0.6.1
Using rack-cors 0.4.0
Using rack-google-analytics 1.2.0
Using rack-piwik 0.3.0
Using rack-pjax 0.8.0
Using rack-protection 1.5.3
Using rack-rewrite 1.5.1
Using rack-ssl 1.4.1
Using rails-assets-jquery 1.11.2
Using rails-assets-jquery-colorbox 1.5.15
Using rails-assets-jquery-fullscreen 1.1.4
Using rails-assets-jquery-ui 1.10.4
Using rails-assets-jquery.slimscroll 1.3.6
Using rails-assets-diaspora_jsxc 0.1.1
Using rails-assets-highlightjs 8.5.0
Using rails-assets-jakobmattsson--jquery-elastic 1.6.11
Using rails-assets-jeresig--jquery.hotkeys 0.2.0
Using rails-assets-jquery-idletimer 1.0.1
Using rails-assets-jquery-placeholder 2.1.1
Using rails-assets-jquery-textchange 0.2.3
Using rails-assets-markdown-it 4.2.1
Using rails-assets-markdown-it--markdown-it-for-inline 0.1.1
Using rails-assets-markdown-it-diaspora-mention 0.3.0
Using rails-assets-markdown-it-hashtag 0.3.1
Using rails-assets-markdown-it-sanitizer 0.3.1
Using rails-assets-markdown-it-sub 1.0.0
Using rails-assets-markdown-it-sup 1.0.0
Using rails-assets-perfect-scrollbar 0.5.9
Using rails-i18n 4.0.4
Using rails-timeago 2.11.0
Using remotipart 1.2.1
Using safe_yaml 1.0.4
Using rails_admin 0.6.7
Using raindrops 0.13.0
Using redis 3.2.1
Using redis-namespace 1.5.2
Using roxml 3.1.6
Using ruby-oembed 0.8.14
Using rubyzip 1.1.7
Using sidekiq 3.3.4
Using sidetiq 0.6.3
Using simple_captcha2 0.3.4
Using simple_oauth 0.3.1
Using sinatra 1.4.6
Using twitter 5.14.0
Using twitter-text 1.12.0
Using typhoeus 0.7.1
Using uglifier 2.7.1
Using unicorn 4.9.0
Using uuid 2.3.7
Using will_paginate 3.0.7
Your bundle is complete!
Gems in the groups test and development were not installed.
Use `bundle show [gemname]` to see where a bundled gem is installed.


When I try the following command, I get :
diaspora@icarus:/var/www/diaspora$ bundle exec sidekiq
Could not find gem 'rails-assets-jquery-simulate-ext (= 1.3.0) ruby' in rubygems repository https://rails-assets.org/.
Source does not contain any versions of 'rails-assets-jquery-simulate-ext (= 1.3.0) ruby'
Run `bundle install` to install missing gems.

Do you have any other command that comes in your mind so I help you determine where the problem comes from ?
I'll execute them right away.

Jonne Haß

unread,
Jun 22, 2015, 7:58:34 AM6/22/15
to diaspora...@googlegroups.com
It looks like you either skipped step 9 of the guide updating bundler, or mixed step 7, updating the codebase, before step 4. Try proceeding from step 9 and update bundler.

On 22.06.2015 13:50, sofo...@gmail.com wrote:
> Hi Jonne,
> Thank for you quick answer.
>
> Here are the results :
>
>
> *diaspora@icarus:/var/www/diaspora$ rvm current*
> ruby-2.1.5@diaspora
>
> *diaspora@icarus:/var/www/diaspora$ bundle -v*
> Bundler version 1.7.6
>
> *diaspora@icarus:/var/www/diaspora$ echo $RAILS_ENV $DB*
> production mysql
>
> *diaspora@icarus:/var/www/diaspora$ bundle install*
> *diaspora@icarus:/var/www/diaspora$ bundle exec sidekiq*
> > an email to diaspora-discu...@googlegroups.com <javascript:>
> > <mailto:diaspora-discu...@googlegroups.com <javascript:>>.
> > For more options, visit https://groups.google.com/d/optout
> <https://groups.google.com/d/optout>.
>
> --
> You received this message because you are subscribed to the Google
> Groups "diaspora-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to diaspora-discu...@googlegroups.com
> <mailto:diaspora-discu...@googlegroups.com>.

sofo...@gmail.com

unread,
Jun 22, 2015, 8:00:39 AM6/22/15
to diaspora...@googlegroups.com, adi...@andalys.fr
Hi Jonne, thanks for answering so quickly.
I have to post here because I anwser with the mail I use in the office :
diaspora@icarus:/var/www/diaspora$ rvm current
ruby-2.1.5@diaspora

diaspora@icarus:/var/www/diaspora$ bundle -v
Bundler version 1.7.6

diaspora@icarus:/var/www/diaspora$ echo $RAILS_ENV $DB
production mysql

diaspora@icarus:/var/www/diaspora$ bundle install

sofo...@gmail.com

unread,
Jun 22, 2015, 8:05:08 AM6/22/15
to diaspora...@googlegroups.com, adi...@andalys.fr
When I type bundle exec sidekiq, I get :

diaspora@icarus:/var/www/diaspora$ bundle exec sidekiq
Could not find gem 'rails-assets-jquery-simulate-ext (= 1.3.0) ruby' in rubygems repository https://rails-assets.org/.
Source does not contain any versions of 'rails-assets-jquery-simulate-ext (= 1.3.0) ruby'
Run `bundle install` to install missing gems.

Do you have any other command for me so I can help you determine where the problem comes from ?
I could test them right away threw ssh

Best regards,

Le lundi 22 juin 2015 00:52:51 UTC+2, Sofocle a écrit :

Jonne Haß

unread,
Jun 22, 2015, 8:06:54 AM6/22/15
to diaspora...@googlegroups.com
Wasn't I clear enough in my last message?

> It looks like you either skipped step 9 of the guide updating bundler, or mixed step 7, updating the codebase, before step 4. Try proceeding from step 9 and update bundler.

And actually in the latter case just skip step 4 and proceed to step 5, the point of doing step 4 is lost at this point anyhow.

On 22.06.2015 14:05, sofo...@gmail.com wrote:
> When I type bundle exec sidekiq, I get :
>
> *diaspora@icarus:/var/www/diaspora$ bundle exec sidekiq*
> Could not find gem 'rails-assets-jquery-simulate-ext (= 1.3.0) ruby' in
> rubygems repository https://rails-assets.org/.
> Source does not contain any versions of
> 'rails-assets-jquery-simulate-ext (= 1.3.0) ruby'
> Run `bundle install` to install missing gems.
>
> Do you have any other command for me so I can help you determine where
> the problem comes from ?
> I could test them right away threw ssh
>
> Best regards,
>
> Le lundi 22 juin 2015 00:52:51 UTC+2, Sofocle a écrit :
>
> Hello everyone !
>
> I was following this tutorial
> : https://wiki.diasporafoundation.org/Updating#Updating_diaspora.2A_0.4_to_diaspora.2A_0.5
> <https://wiki.diasporafoundation.org/Updating#Updating_diaspora.2A_0.4_to_diaspora.2A_0.5>
>
> I have a pod running on a debian 7 server.
> Diaspora v4 worked just fine.
> I followed the steps wrtten in the wiki but when I run this
> command /*bin/rake db:migrate*/, I get :
> "This step" is running the command /export DB=mysql
> RAILS_ENV=production /but i didn't forget to run it as my pod uses
> MySQL.
>
> Does anyone have a clue ?
>
> Best regards.
>

sofo...@gmail.com

unread,
Jun 22, 2015, 8:12:41 AM6/22/15
to diaspora...@googlegroups.com
No I just didn't get the message on the screen, that's all. :)

Sofocle

unread,
Jun 22, 2015, 2:44:04 PM6/22/15
to diaspora...@googlegroups.com
Ok, back from the office : I can launch diaspora and use it but here is what's printed on the console when I launch the service :

diaspora@icarus:/var/www/diaspora$ service diaspora restart
$Stoping Diaspora service: WARNING: Project gemset is diaspora but you are using ruby-2.0.0-p353
FATAL: Your bundle is not up to date, run the command "bundle install"

$Starting Diaspora service: WARNING: 
*****************************************************************
curl does not support async DNS, this can cause Sidekiq to crash!
Please update curl to version 7.32, see issue
*****************************************************************

Starting Diaspora in production mode with 1 Sidekiq worker(s).

I, [2015-06-22T20:24:54.276465 #4857]  INFO -- : [diaspora:__default__] send_command: monitor
I, [2015-06-22T20:24:54.277966 #4857]  INFO -- : [diaspora:__default__] schedule :monitor (reason: monitor by user)
I, [2015-06-22T20:24:54.278778 #4857]  INFO -- : [diaspora:__default__] => monitor  (reason: monitor by user)
I, [2015-06-22T20:24:54.278898 #4857]  INFO -- : [diaspora:__default__] starting async with 0.2s chain monitor []
I, [2015-06-22T20:24:54.278994 #4857]  INFO -- : [diaspora:sidekiq] send_command: monitor
I, [2015-06-22T20:24:54.279997 #4857]  INFO -- : [diaspora:sidekiq] schedule :monitor (reason: monitor by user)
I, [2015-06-22T20:24:54.280156 #4857]  INFO -- : [diaspora:web] schedule :monitor (reason: monitor by user)
I, [2015-06-22T20:24:54.280641 #4857]  INFO -- : [diaspora:sidekiq] => monitor  (reason: monitor by user)
I, [2015-06-22T20:24:54.280763 #4857]  INFO -- : [diaspora:web] => monitor  (reason: monitor by user)
I, [2015-06-22T20:24:54.280863 #4857]  INFO -- : [diaspora:sidekiq] starting async with 0.2s chain monitor []
I, [2015-06-22T20:24:54.280916 #4857]  INFO -- : [diaspora:__default__] <= monitor
I, [2015-06-22T20:24:54.281244 #4857]  INFO -- : [diaspora:web] process <3416> from pid_file is already running
I, [2015-06-22T20:24:54.281906 #4857]  INFO -- : [Eye] <= loading: ["/var/www/diaspora/config/eye.rb"]
I, [2015-06-22T20:24:54.282313 #4857]  INFO -- : [diaspora:web] switch :already_running [:unmonitored => :up] (reason: monitor by user)
I, [2015-06-22T20:24:54.282377 #4857]  INFO -- : [diaspora:sidekiq:sidekiq1] schedule :monitor (reason: monitor by user)
I, [2015-06-22T20:24:54.299281 #4857]  INFO -- : [Eye] <= command: load /var/www/diaspora/config/eye.rb (0.156628318s)
I, [2015-06-22T20:24:54.306108 #4857]  INFO -- : [diaspora:sidekiq:sidekiq1] => monitor  (reason: monitor by user)
I, [2015-06-22T20:24:54.306363 #4857]  INFO -- : [diaspora:sidekiq] <= monitor
I, [2015-06-22T20:24:54.307799 #4857]  INFO -- : [diaspora:sidekiq:sidekiq1] process <3418> from pid_file is already running
I, [2015-06-22T20:24:54.308688 #4857]  INFO -- : [diaspora:sidekiq:sidekiq1] switch :already_running [:unmonitored => :up] (reason: monitor by user)
I, [2015-06-22T20:24:54.308795 #4857]  INFO -- : [diaspora:web] <= monitor
I, [2015-06-22T20:24:54.308992 #4857]  INFO -- : [diaspora:sidekiq:sidekiq1] <= monitor

It said I had the version ruby-2.0.0-p353
diaspora@icarus:/home/alex$ ruby -version
ruby 2.0.0p353 (2013-11-22 revision 43784) [i686-linux]
-e:1:in `<main>': undefined local variable or method `rsion' for main:Object (NameError)

After a little googling, I discovered I could have multiple versions of Ruby installed on my server (conveignant but not explicit).

Si typed :
diaspora@icarus:/home/alex$ rvm list

rvm rubies

=* ruby-2.0.0-p353 [ i686 ]
   ruby-2.0.0-p481 [ i686 ]
   ruby-2.0.0-p645 [ i686 ]
   ruby-2.1.5 [ i686 ]
   ruby-2.1.6 [ i686 ]

Then I recognized the versions 2.1.5 and 2.1.6 I installed yesterday.
I chosed 2.1.6 :

diaspora@icarus:/home/alex$ rvm --default use 2.1.6
Using /home/diaspora/.rvm/gems/ruby-2.1.6
diaspora@icarus:/home/alex$ ruby -v
ruby 2.1.6p336 (2015-04-13 revision 50298) [i686-linux]

I tried again to lauch the diaspora service to see if I had warning and guess what, I still have them !

alex@icarus:~$ sudo service diaspora restart
$Stoping Diaspora service: WARNING: Project gemset is diaspora but you are using ruby-2.1.6
FATAL: Your bundle is not up to date, run the command "bundle install"

$Starting Diaspora service: WARNING: 
*****************************************************************
curl does not support async DNS, this can cause Sidekiq to crash!
Please update curl to version 7.32, see issue
*****************************************************************

etc...

So I stopped the service again and I tried the command above : 

diaspora@icarus:/var/www/diaspora$ bundle install
Using bundler 1.10.4
Bundle complete! 129 Gemfile dependencies, 223 gems now installed.
Gems in the groups development and test were not installed.
Use `bundle show [gemname]` to see where a bundled gem is installed.


I think I'm chasing my tail, here.
Do you have any idea ?
What would you recommand ?

Best regards !


Le lundi 22 juin 2015 14:06:54 UTC+2, Jonne Haß a écrit :

Jonne Haß

unread,
Jun 22, 2015, 2:49:05 PM6/22/15
to diaspora...@googlegroups.com
I would recommend step 9, update bundler with `gem install bundler`.

On 22.06.2015 20:44, Sofocle wrote:
> Ok, back from the office : I can launch diaspora and use it but here is
> what's printed on the console when I launch the service :
>
> *diaspora@icarus:/var/www/diaspora$ service diaspora restart*
> _$Stoping Diaspora service: WARNING: Project gemset is diaspora but you
> are using ruby-2.0.0-p353_
> It said I had the version _ruby-2.0.0-p353_
> *diaspora@icarus:/home/alex$ ruby -version*
> ruby 2.0.0p353 (2013-11-22 revision 43784) [i686-linux]
> -e:1:in `<main>': undefined local variable or method `rsion' for
> main:Object (NameError)
>
> After a little googling, I discovered I could have multiple versions of
> Ruby installed on my server (conveignant but not explicit).
>
> Si typed :
> *diaspora@icarus:/home/alex$ rvm list*
>
> rvm rubies
>
> =* ruby-2.0.0-p353 [ i686 ]
> ruby-2.0.0-p481 [ i686 ]
> ruby-2.0.0-p645 [ i686 ]
> ruby-2.1.5 [ i686 ]
> ruby-2.1.6 [ i686 ]
>
> Then I recognized the versions 2.1.5 and 2.1.6 I installed yesterday.
> I chosed 2.1.6 :
>
> *diaspora@icarus:/home/alex$ rvm --default use 2.1.6*
> Using /home/diaspora/.rvm/gems/ruby-2.1.6
> *diaspora@icarus:/home/alex$ ruby -v*
> ruby 2.1.6p336 (2015-04-13 revision 50298) [i686-linux]
>
> I tried again to lauch the diaspora service to see if I had warning and
> guess what, I still have them !
>
> *alex@icarus:~$ sudo service diaspora restart*
> > an email to diaspora-discu...@googlegroups.com <javascript:>
> > <mailto:diaspora-discu...@googlegroups.com <javascript:>>.
> > For more options, visit https://groups.google.com/d/optout
> <https://groups.google.com/d/optout>.
>
> --
> You received this message because you are subscribed to the Google
> Groups "diaspora-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to diaspora-discu...@googlegroups.com
> <mailto:diaspora-discu...@googlegroups.com>.

Sofocle

unread,
Jun 23, 2015, 1:43:08 AM6/23/15
to diaspora...@googlegroups.com
Thanks for answering :

diaspora@icarus:/var/www/diaspora$ gem install bundler
Successfully installed bundler-1.10.4
Parsing documentation for bundler-1.10.4

Done installing documentation for bundler after 5 seconds
1 gem installed

When I start the service, no warning again (almost)
Fantastic : thanks !

diaspora@icarus:~$ sudo service diaspora start
$Starting Diaspora service: WARNING: 
*****************************************************************
curl does not support async DNS, this can cause Sidekiq to crash!
Please update curl to version 7.32, see issue
*****************************************************************

Starting Diaspora in production mode with 1 Sidekiq worker(s).

I, [2015-06-23T07:38:05.253955 #7894]  INFO -- : [diaspora:__default__] send_command: monitor
I, [2015-06-23T07:38:05.255696 #7894]  INFO -- : [diaspora:__default__] schedule :monitor (reason: monitor by user)
I, [2015-06-23T07:38:05.256048 #7894]  INFO -- : [diaspora:__default__] => monitor  (reason: monitor by user)
I, [2015-06-23T07:38:05.256144 #7894]  INFO -- : [diaspora:__default__] starting async with 0.2s chain monitor []
I, [2015-06-23T07:38:05.256231 #7894]  INFO -- : [diaspora:sidekiq] send_command: monitor
I, [2015-06-23T07:38:05.257143 #7894]  INFO -- : [diaspora:sidekiq] schedule :monitor (reason: monitor by user)
I, [2015-06-23T07:38:05.257287 #7894]  INFO -- : [diaspora:web] schedule :monitor (reason: monitor by user)
I, [2015-06-23T07:38:05.257722 #7894]  INFO -- : [diaspora:sidekiq] => monitor  (reason: monitor by user)
I, [2015-06-23T07:38:05.257830 #7894]  INFO -- : [diaspora:web] => monitor  (reason: monitor by user)
I, [2015-06-23T07:38:05.258164 #7894]  INFO -- : [diaspora:web] pid_file found, but process <4931> is down, starting...
I, [2015-06-23T07:38:05.257974 #7894]  INFO -- : [diaspora:__default__] <= monitor
I, [2015-06-23T07:38:05.258535 #7894]  INFO -- : [diaspora:web] switch :starting [:unmonitored => :starting] (reason: monitor by user)
I, [2015-06-23T07:38:05.257925 #7894]  INFO -- : [diaspora:sidekiq] starting async with 0.2s chain monitor []
I, [2015-06-23T07:38:05.260862 #7894]  INFO -- : [diaspora:web] daemonizing: `bin/bundle exec unicorn -c config/unicorn.rb` with start_grace: 2.5s, env: 'DB=mysql RAILS_ENV=production PORT=', <8040> (in /var/www/diaspora)
I, [2015-06-23T07:38:05.261082 #7894]  INFO -- : [Eye] <= loading: ["/var/www/diaspora/config/eye.rb"]
I, [2015-06-23T07:38:05.261371 #7894]  INFO -- : [diaspora:web] sleeping for :start_grace 2.5
I, [2015-06-23T07:38:05.280200 #7894]  INFO -- : [Eye] <= command: load /var/www/diaspora/config/eye.rb (0.159944786s)
I, [2015-06-23T07:38:05.283155 #7894]  INFO -- : [diaspora:sidekiq:sidekiq1] schedule :monitor (reason: monitor by user)
I, [2015-06-23T07:38:05.283677 #7894]  INFO -- : [diaspora:sidekiq:sidekiq1] => monitor  (reason: monitor by user)
I, [2015-06-23T07:38:05.283878 #7894]  INFO -- : [diaspora:sidekiq:sidekiq1] pid_file found, but process <4933> is down, starting...
I, [2015-06-23T07:38:05.284183 #7894]  INFO -- : [diaspora:sidekiq:sidekiq1] switch :starting [:unmonitored => :starting] (reason: monitor by user)
I, [2015-06-23T07:38:05.283758 #7894]  INFO -- : [diaspora:sidekiq] <= monitor
I, [2015-06-23T07:38:05.291332 #7894]  INFO -- : [diaspora:sidekiq:sidekiq1] daemonizing: `bin/bundle exec sidekiq` with start_grace: 2.5s, env: 'DB=mysql RAILS_ENV=production', <8044> (in /var/www/diaspora)
I, [2015-06-23T07:38:05.291686 #7894]  INFO -- : [diaspora:sidekiq:sidekiq1] sleeping for :start_grace 2.5
I, [2015-06-23T07:38:07.781335 #7894]  INFO -- : [diaspora:web] switch :started [:starting => :up] (reason: monitor by user)
I, [2015-06-23T07:38:07.787045 #7894]  INFO -- : [diaspora:web] <= monitor
I, [2015-06-23T07:38:07.792350 #7894]  INFO -- : [diaspora:sidekiq:sidekiq1] switch :started [:starting => :up] (reason: monitor by user)
I, [2015-06-23T07:38:07.792593 #7894]  INFO -- : [diaspora:sidekiq:sidekiq1] <= monitor


There is just the cURL not supporting async DNS to solve. I gona take it from here : https://github.com/diaspora/diaspora/issues/4202
Have a great day, Jonne !
>     > <mailto:diaspora-discuss+unsub...@googlegroups.com <javascript:>>.
>     > For more options, visit https://groups.google.com/d/optout
>     <https://groups.google.com/d/optout>.
>
> --
> You received this message because you are subscribed to the Google
> Groups "diaspora-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to diaspora-discu...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages