Lost after latest upgrade

Hi,

sorry - I do not really understand what I’m doing - ruby, bundler, gem - can’t even spell all this… (maybe someone can’t point me to an architecture sketch… esp. with regards to diaspora…)

Anyway - I did upgrade to the latest maintenance version 07.?? this morning. But when trying to restart diaspora-web doesn’t come up…

Debian 9.11
Postgres 11.6

I did follow https://wiki.diasporafoundation.org/Updating#Updating_a_production_install_to_a_new_minor_version

but as I did not use rvm I did not execute rvm get latest. (used rbenv accoding to this document: https://www.vultr.com/docs/build-your-social-network-with-diaspora-on-debian-9 )

diaspora/.ruby-version says 2.4.3

Seems like I threw up something with ruby versions (whatever this is…)…

Thanks for any pointers…

Feb 12 09:06:26 mein.serv.er bash[21853]: bundler: failed to load command: unicorn (/home/diaspora/diaspora/vendor/bundle/ruby/2.4.0/bin/unicorn)
Feb 12 09:06:26 mein.serv.er bash[21854]: bundler: failed to load command: sidekiq (/home/diaspora/diaspora/vendor/bundle/ruby/2.4.0/bin/sidekiq)
Feb 12 09:06:26 mein.serv.er bash[21854]: LoadError: cannot load such file -- bundler/setup
Feb 12 09:06:26 mein.serv.er bash[21854]:   /home/diaspora/diaspora/config/load_config.rb:4:in `require'
Feb 12 09:06:26 mein.serv.er bash[21854]:   /home/diaspora/diaspora/config/load_config.rb:4:in `<top (required)>'
Feb 12 09:06:26 mein.serv.er bash[21854]:   (erb):1:in `require_relative'
Feb 12 09:06:26 mein.serv.er bash[21854]:   (erb):1:in `<main>'
Feb 12 09:06:26 mein.serv.er bash[21854]:   /home/diaspora/.rbenv/versions/2.4.3/lib/ruby/2.4.0/erb.rb:896:in `eval'
Feb 12 09:06:26 mein.serv.er bash[21854]:   /home/diaspora/.rbenv/versions/2.4.3/lib/ruby/2.4.0/erb.rb:896:in `result'
Feb 12 09:06:26 mein.serv.er bash[21854]:   /home/diaspora/diaspora/vendor/bundle/ruby/2.4.0/gems/sidekiq-5.2.7/lib/sidekiq/cli.rb:414:in `parse_config'
Feb 12 09:06:26 mein.serv.er bash[21854]:   /home/diaspora/diaspora/vendor/bundle/ruby/2.4.0/gems/sidekiq-5.2.7/lib/sidekiq/cli.rb:255:in `setup_options'
Feb 12 09:06:26 mein.serv.er bash[21854]:   /home/diaspora/diaspora/vendor/bundle/ruby/2.4.0/gems/sidekiq-5.2.7/lib/sidekiq/cli.rb:31:in `parse'
Feb 12 09:06:26 mein.serv.er bash[21854]:   /home/diaspora/diaspora/vendor/bundle/ruby/2.4.0/gems/sidekiq-5.2.7/bin/sidekiq:11:in `<top (required)>'
Feb 12 09:06:26 mein.serv.er bash[21854]:   /home/diaspora/diaspora/vendor/bundle/ruby/2.4.0/bin/sidekiq:23:in `load'
Feb 12 09:06:26 mein.serv.er bash[21854]:   /home/diaspora/diaspora/vendor/bundle/ruby/2.4.0/bin/sidekiq:23:in `<top (required)>'
Feb 12 09:06:26 mein.serv.er systemd[1]: diaspora-web.service: Main process exited, code=exited, status=1/FAILURE
Feb 12 09:06:26 mein.serv.er bash[21853]: LoadError: cannot load such file -- bundler/setup
Feb 12 09:06:26 mein.serv.er bash[21853]:   /home/diaspora/diaspora/config/load_config.rb:4:in `require'
Feb 12 09:06:26 mein.serv.er bash[21853]:   /home/diaspora/diaspora/config/load_config.rb:4:in `<top (required)>'
Feb 12 09:06:26 mein.serv.er bash[21853]:   config/unicorn.rb:3:in `require_relative'
Feb 12 09:06:26 mein.serv.er bash[21853]:   config/unicorn.rb:3:in `reload'
Feb 12 09:06:26 mein.serv.er bash[21853]:   /home/diaspora/diaspora/vendor/bundle/ruby/2.4.0/gems/unicorn-5.5.1/lib/unicorn/configurator.rb:84:in `instance_eval'
Feb 12 09:06:26 mein.serv.er bash[21853]:   /home/diaspora/diaspora/vendor/bundle/ruby/2.4.0/gems/unicorn-5.5.1/lib/unicorn/configurator.rb:84:in `reload'
Feb 12 09:06:26 mein.serv.er bash[21853]:   /home/diaspora/diaspora/vendor/bundle/ruby/2.4.0/gems/unicorn-5.5.1/lib/unicorn/configurator.rb:77:in `initialize'
Feb 12 09:06:26 mein.serv.er bash[21853]:   /home/diaspora/diaspora/vendor/bundle/ruby/2.4.0/gems/unicorn-5.5.1/lib/unicorn/http_server.rb:79:in `new'
Feb 12 09:06:26 mein.serv.er bash[21853]:   /home/diaspora/diaspora/vendor/bundle/ruby/2.4.0/gems/unicorn-5.5.1/lib/unicorn/http_server.rb:79:in `initialize'
Feb 12 09:06:26 mein.serv.er bash[21853]:   /home/diaspora/diaspora/vendor/bundle/ruby/2.4.0/gems/unicorn-5.5.1/bin/unicorn:128:in `new'
Feb 12 09:06:26 mein.serv.er bash[21853]:   /home/diaspora/diaspora/vendor/bundle/ruby/2.4.0/gems/unicorn-5.5.1/bin/unicorn:128:in `<top (required)>'
Feb 12 09:06:26 mein.serv.er bash[21853]:   /home/diaspora/diaspora/vendor/bundle/ruby/2.4.0/bin/unicorn:23:in `load'
Feb 12 09:06:26 mein.serv.er bash[21853]:   /home/diaspora/diaspora/vendor/bundle/ruby/2.4.0/bin/unicorn:23:in `<top (required)>'
Feb 12 09:06:26 mein.serv.er systemd[1]: diaspora-web.service: Unit entered failed state.
Feb 12 09:06:26 mein.serv.er systemd[1]: diaspora-web.service: Failed with result 'exit-code'.
Feb 12 09:06:26 mein.serv.er systemd[1]: diaspora-sidekiq.service: Main process exited, code=exited, status=1/FAILURE
Feb 12 09:06:26 mein.serv.er systemd[1]: diaspora-sidekiq.service: Unit entered failed state.
Feb 12 09:06:26 mein.serv.er systemd[1]: diaspora-sidekiq.service: Failed with result 'exit-code'.

Did you ignore error output from the gem install bundler and/or bin/bundle --full-index command by chance? What’s the output of rerunning those?

Not aware of error output…

diaspora@server1:~$ gem install bundler
Successfully installed bundler-2.1.4
Parsing documentation for bundler-2.1.4
Done installing documentation for bundler after 5 seconds
1 gem installed
diaspora@server1:~/diaspora$ bin/bundle --full-index
Using rake 12.3.3
Using concurrent-ruby 1.1.6
Using i18n 1.8.2
Using minitest 5.14.0
Using thread_safe 0.3.6
Using tzinfo 1.2.6
Using activesupport 5.2.4.1
Using builder 3.2.4
Using erubi 1.9.0
Using mini_portile2 2.4.0
Using nokogiri 1.10.8
Using rails-dom-testing 2.0.3
Using crass 1.0.6
Using loofah 2.4.0
Using rails-html-sanitizer 1.3.0
Using actionview 5.2.4.1
Using rack 2.2.2
Using rack-test 1.1.0
Using actionpack 5.2.4.1
Using nio4r 2.5.2
Using websocket-extensions 0.1.4
Using websocket-driver 0.7.1
Using actioncable 5.2.4.1
Using globalid 0.4.2
Using activejob 5.2.4.1
Using mini_mime 1.0.2
Using mail 2.7.1
Using actionmailer 5.2.4.1
Using activemodel 5.2.4.1
Using active_model_serializers 0.9.7
Using arel 9.0.0
Using activerecord 5.2.4.1
Using activerecord-import 1.0.2
Using mimemagic 0.3.4
Using marcel 0.3.3
Using activestorage 5.2.4.1
Using acts-as-taggable-on 6.0.0
Using acts_as_api 1.0.1
Using public_suffix 3.1.1
Using addressable 2.6.0
Using aes_key_wrap 1.0.1
Using excon 0.72.0
Using formatador 0.2.5
Using mime-types-data 3.2019.0331
Using mime-types 3.2.2
Using fog-core 2.1.2
Using unf_ext 0.0.7.6
Using unf 0.1.4
Using asset_sync 2.7.0
Using encryptor 3.0.0
Using attr_encrypted 3.1.0
Using attr_required 1.0.1
Using execjs 2.7.0
Using autoprefixer-rails 8.6.5
Using bcrypt 3.1.13
Using bindata 2.4.4
Using ffi 1.11.1
Using sassc 2.0.1
Using bootstrap-sass 3.4.1
Using bootstrap-switch-rails 3.3.3
Using buftok 0.2.0
Using bundler 2.1.4
Using carrierwave 1.3.1
Using timers 4.3.0
Using celluloid-essentials 0.20.5
Using celluloid-extras 0.20.5
Using celluloid-fsm 0.20.5
Using celluloid-pool 0.20.5
Using celluloid-supervision 0.20.6
Using celluloid 0.17.4
Using celluloid-io 0.17.3
Using chunky_png 1.3.11
Using multi_json 1.13.1
Using sass 3.4.25
Using compass-core 1.0.3
Using compass-import-once 1.0.5
Using rb-fsevent 0.10.3
Using rb-inotify 0.10.0
Using compass 1.0.3
Using method_source 0.9.2
Using thor 0.20.3
Using railties 5.2.4.1
Using sprockets 3.7.2
Using sprockets-rails 3.2.1
Using tilt 2.0.9
Using sass-rails 5.0.7
Using compass-rails 3.1.0
Using configurate 0.3.1
Using connection_pool 2.2.2
Using orm_adapter 0.5.0
Using responders 2.4.1
Using warden 1.2.8
Using devise 4.7.1
Using rotp 2.1.2
Using devise-two-factor 3.0.3
Using rails 5.2.4.1
Using devise_lastseenable 0.0.6
Using diaspora-prosody-config 0.0.7
Using multipart-post 2.1.1
Using faraday 0.15.4
Using faraday_middleware 0.13.1
Using ethon 0.12.0
Using typhoeus 1.3.1
Using valid 1.2.0
Using diaspora_federation 0.2.6
Using diaspora_federation-json_schema 0.2.6
Using diaspora_federation-rails 0.2.6
Using domain_name 0.5.20180417
Using entypo-rails 3.0.0
Using equalizer 0.0.11
Using et-orbi 1.2.1
Using kostya-sigar 2.0.6
Using state_machines 0.5.0
Using eye 0.10.0
Using http-cookie 1.0.3
Using faraday-cookie_jar 0.0.6
Using fog-json 1.2.0
Using fog-xml 0.1.3
Using ipaddress 0.8.3
Using fog-aws 3.5.1
Using raabro 1.1.6
Using fugit 1.2.2
Using get_process_mem 0.2.3
Using request_store 1.4.1
Using gon 6.2.1
Using temple 0.8.1
Using hamlit 2.9.3
Using handlebars_assets 0.23.4
Using hashie 3.6.0
Using http-form_data 2.1.1
Using http_parser.rb 0.6.0
Using http 3.3.0
Using http_accept_language 2.1.1
Using httpclient 2.8.3
Using i18n-inflector 2.6.7
Using i18n-inflector-rails 1.0.7
Using jquery-rails 4.3.5
Using js-routes 1.4.7
Using js_image_paths 0.1.1
Using json 2.2.0
Using json-jwt 1.11.0
Using json-schema 2.8.1
Using jwt 2.2.1
Using kgio 2.11.2
Using leaflet-rails 1.5.1
Using little-plugger 1.1.4
Using logging 2.2.2
Using logging-rails 0.6.0
Using systemu 2.6.5
Using macaddr 1.7.2
Using markdown-it-html5-embed 1.0.0
Using markerb 1.1.0
Using memoizable 0.4.2
Using mini_magick 4.10.1
Using rack-mobile-detect 0.4.0
Using mobile-fu 1.4.0
Using multi_xml 0.6.0
Using naught 1.1.0
Using oauth 0.5.4
Using oauth2 1.4.1
Using omniauth 1.9.0
Using omniauth-oauth 1.1.0
Using omniauth-oauth2 1.6.0
Using omniauth-tumblr 1.2
Using omniauth-twitter 1.4.0
Using omniauth-wordpress 0.2.2
Using open_graph_reader 0.7.0
Using rack-oauth2 1.10.0
Using swd 1.1.2
Using validate_email 0.1.6
Using validate_url 1.0.8
Using webfinger 1.1.0
Using openid_connect 1.1.8
Using pg 1.1.4
Using rack-cors 1.1.1
Using rack-google-analytics 1.2.0
Using rack-piwik 0.3.0
Using rack-protection 2.0.5
Using rack-rewrite 1.5.1
Using rack-ssl 1.4.1
Using rails-assets-autosize 4.0.2
Using rails-assets-underscore 1.9.1
Using rails-assets-backbone 1.3.3
Using rails-assets-blueimp-gallery 2.33.0
Using rails-assets-jquery 3.4.1
Using rails-assets-bootstrap 3.4.1
Using rails-assets-bootstrap-markdown 2.10.0
Using rails-assets-corejs-typeahead 1.2.1
Using rails-assets-emojione 2.0.1
Using rails-assets-favico.js 0.3.10
Using rails-assets-jquery-colorbox 1.6.4
Using rails-assets-jquery-fullscreen-plugin 0.5.0
Using rails-assets-jquery.slimscroll 1.3.8
Using rails-assets-jquery.ui 1.11.4
Using rails-assets-diaspora_jsxc 0.1.5.develop.7
Using rails-assets-fine-uploader 5.13.0
Using rails-assets-highlightjs 9.12.0
Using rails-assets-jquery-placeholder 2.3.1
Using rails-assets-jquery-textchange 0.2.3
Using rails-assets-jquery.are-you-sure 1.9.0
Using rails-assets-markdown-it 8.4.2
Using rails-assets-markdown-it--markdown-it-for-inline 0.1.1
Using rails-assets-markdown-it-diaspora-mention 1.2.0
Using rails-assets-markdown-it-hashtag 0.4.0
Using rails-assets-markdown-it-sanitizer 0.4.3
Using rails-assets-markdown-it-sub 1.0.0
Using rails-assets-markdown-it-sup 1.0.0
Using rails-assets-utatti-perfect-scrollbar 1.4.0
Using rails-i18n 5.1.3
Using rails-timeago 2.17.1
Using raindrops 0.19.0
Using redcarpet 3.4.0
Using redis 3.3.5
Using rqrcode 0.10.1
Using ruby-oembed 0.12.0
Using rubyzip 1.3.0
Using secure_headers 6.3.0
Using sidekiq 5.2.7
Using sidekiq-cron 1.1.0
Using simple_captcha2 0.4.3
Using simple_oauth 0.3.1
Using string-direction 1.2.1
Using twitter 6.2.0
Using twitter-text 1.14.7
Using uglifier 4.1.20
Using unicorn 5.5.1
Using unicorn-worker-killer 0.4.4
Using uuid 2.3.9
Using yard 0.9.20
Using versionist 2.0.0
Using will_paginate 3.1.7
Bundle complete! 142 Gemfile dependencies, 231 gems now installed.
Gems in the groups test and development were not installed.
Bundled gems are installed into `./vendor/bundle`

Looks like the bundler version you installed is a bit too new. That’s not your fault, that’s something we will address in the next major version. Could you give the following a try and tell us how it worked out?

gem uninstall bundler:2.1.4 && gem install bundler:1.17.3 

and then re-run bin/bundle --full-index? :slight_smile:

Thanks for your support!
Did that. Got:

diaspora@server1:~/diaspora$ gem uninstall bundler:2.1.4 && gem install bundler:1.17.3 
Fetching: bundler-1.17.3.gem (100%)
Successfully installed bundler-1.17.3
Parsing documentation for bundler-1.17.3
Installing ri documentation for bundler-1.17.3
Done installing documentation for bundler after 4 seconds
1 gem installed
diaspora@server1:~/diaspora$ bin/bundle --full-index
Using rake 12.3.3
Using concurrent-ruby 1.1.6
:
:
Using versionist 2.0.0
Using will_paginate 3.1.7
Bundle complete! 142 Gemfile dependencies, 231 gems now installed.
Gems in the groups test and development were not installed.
Bundled gems are installed into `./vendor/bundle`

Then did:

diaspora@server1:~/diaspora$ RAILS_ENV=production bin/rake db:migrate
[DEPRECATED] `Bundler.with_clean_env` has been deprecated in favor of `Bundler.with_unbundled_env`. If you instead want the environment before bundler was originally loaded, use `Bundler.with_original_env` (called at /home/diaspora/.rbenv/versions/2.4.3/lib/ruby/gems/2.4.0/gems/spring-2.0.2/lib/spring/application_manager.rb:95)
Rack::SSL is enabled
/home/diaspora/diaspora/lib/configuration_methods.rb:4: warning: already initialized constant Configuration::KNOWN_SERVICES
/home/diaspora/diaspora/lib/configuration_methods.rb:4: warning: previous definition of KNOWN_SERVICES was here
/home/diaspora/diaspora/lib/diaspora/exporter.rb:9: warning: already initialized constant Diaspora::Exporter::SERIALIZED_VERSION
/home/diaspora/diaspora/lib/diaspora/exporter.rb:9: warning: previous definition of SERIALIZED_VERSION was here
:
:
/home/diaspora/diaspora/lib/diaspora/message_renderer.rb:108: warning: previous definition of DEFAULTS was here
/home/diaspora/diaspora/lib/direction_detector.rb:9: warning: already initialized constant String::RTL_CLEANER_REGEXES
/home/diaspora/diaspora/lib/direction_detector.rb:9: warning: previous definition of RTL_CLEANER_REGEXES was here
Running via Spring preloader in process 10889
diaspora@server1:~/diaspora$ RAILS_ENV=production bin/rake assets:precompile
Running via Spring preloader in process 10914

Still - systemctl start diaspora-web gives

Feb 12 14:55:28 my.ser.ver bash[11153]: bundler: failed to load command: unicorn (/home/diaspora/diaspora/vendor/bundle/ruby/2.4.0/bin/unicorn)
Feb 12 14:55:28 my.ser.ver bash[11153]: LoadError: cannot load such file -- bundler/setup
Feb 12 14:55:28 my.ser.ver bash[11153]:   /home/diaspora/diaspora/config/load_config.rb:4:in `require'
Feb 12 14:55:28 my.ser.ver bash[11153]:   /home/diaspora/diaspora/config/load_config.rb:4:in `<top (required)>'
Feb 12 14:55:28 my.ser.ver bash[11153]:   config/unicorn.rb:3:in `require_relative'
Feb 12 14:55:28 my.ser.ver bash[11153]:   config/unicorn.rb:3:in `reload'

Please show us the output of each of the following:

  • ruby --version
  • which ruby
  • bundle --version
  • bin/bundle --version
  • which bundle

To format console outputs, you can warp them in three backticks, like so:

```
(command output here)
```

which makes them much more readable. :slight_smile:

diaspora@server1:~/diaspora$ ruby --version
ruby 2.4.3p205 (2017-12-14 revision 61247) [x86_64-linux]
diaspora@server1:~/diaspora$ which ruby
/home/diaspora/.rbenv/shims/ruby
diaspora@server1:~/diaspora$ bundle --version
Bundler version 2.1.4
diaspora@server1:~/diaspora$ bin/bundle --version
Bundler version 2.1.4
diaspora@server1:~/diaspora$ which bundle
/home/diaspora/.rbenv/shims/bundle

Can you run

RAILS_ENV=production bin/bundle exec unicorn -c config/unicorn.rb -E production

manually in the terminal, or do you receive the same errors as your systemd unit?

diaspora@server1:~/diaspora$ RAILS_ENV=production bin/bundle exec unicorn -c config/unicorn.rb -E production
bundler: failed to load command: unicorn (/home/diaspora/diaspora/vendor/bundle/ruby/2.4.0/bin/unicorn)
LoadError: cannot load such file -- bundler/setup
  /home/diaspora/diaspora/config/load_config.rb:4:in `require'
  /home/diaspora/diaspora/config/load_config.rb:4:in `<top (required)>'
  config/unicorn.rb:3:in `require_relative'
  config/unicorn.rb:3:in `reload'
  /home/diaspora/diaspora/vendor/bundle/ruby/2.4.0/gems/unicorn-5.5.1/lib/unicorn/configurator.rb:84:in `instance_eval'
  /home/diaspora/diaspora/vendor/bundle/ruby/2.4.0/gems/unicorn-5.5.1/lib/unicorn/configurator.rb:84:in `reload'
  /home/diaspora/diaspora/vendor/bundle/ruby/2.4.0/gems/unicorn-5.5.1/lib/unicorn/configurator.rb:77:in `initialize'
  /home/diaspora/diaspora/vendor/bundle/ruby/2.4.0/gems/unicorn-5.5.1/lib/unicorn/http_server.rb:79:in `new'
  /home/diaspora/diaspora/vendor/bundle/ruby/2.4.0/gems/unicorn-5.5.1/lib/unicorn/http_server.rb:79:in `initialize'
  /home/diaspora/diaspora/vendor/bundle/ruby/2.4.0/gems/unicorn-5.5.1/bin/unicorn:128:in `new'
  /home/diaspora/diaspora/vendor/bundle/ruby/2.4.0/gems/unicorn-5.5.1/bin/unicorn:128:in `<top (required)>'
  /home/diaspora/diaspora/vendor/bundle/ruby/2.4.0/bin/unicorn:23:in `load'
  /home/diaspora/diaspora/vendor/bundle/ruby/2.4.0/bin/unicorn:23:in `<top (required)>'

It’s super weird. My best guess is that your /usr/bin/env ruby returns a different ruby to /home/diaspora/.rbenv/shims/ruby

So a dirty solution would be to just manually make sure you have a common GEM_HOME. If you want to go down that, as said, dirty path:

  1. Edit your $HOME/.bashrc(or whatever matches your shell) and at the very bottom add:
export GEM_HOME=$HOME/.gems
mkdir -p $GEM_HOME
  1. Reopen your shell.
  2. Run gem install bundler:v1.17.3
  3. Run bin/bundle again.
  4. Edit your systemd unit to contain (I’m unsure about this, maybe $HOME instead of %h), don’t forget the systemctl daemon-reload after:
Environment="GEM_HOME=%h/.gems"

Well, I guess. I hope rbenv doesn’t overwrite GEM_HOME again in one of those environments.

Alternatively for a simple Ruby setup where you want to avoid RVM I like the combination of ruby-install and chruby a lot. chruby could also be used to to switch to the rubies installed by rbenv’s ruby-build with the right RUBIES environment variable set. It has chruby-exec for script/systemd unit usage.

I’ll try anything to get the beast started again… - again thank you very much for responding so quickly!!!

diaspora@server1:~$ gem install bundler:v1.17.3
ERROR:  Could not find a valid gem 'bundler:v1.17.3' (>= 0) in any repository
diaspora@server1:~$ gem install bundler:1.17.3 
Successfully installed bundler-1.17.3
Parsing documentation for bundler-1.17.3
Done installing documentation for bundler after 4 seconds
1 gem installed
diaspora@server1:~$ cd diaspora
diaspora@server1:~/diaspora$ bin/bundle --full-index
Using rake 12.3.3
Using concurrent-ruby 1.1.6
Using i18n 1.8.2
Using minitest 5.14.0
Using thread_safe 0.3.6
Using tzinfo 1.2.6
Using activesupport 5.2.4.1
Using builder 3.2.4
Using erubi 1.9.0
Using mini_portile2 2.4.0
Using nokogiri 1.10.8
Using rails-dom-testing 2.0.3
Using crass 1.0.6
Using loofah 2.4.0
Using rails-html-sanitizer 1.3.0
Using actionview 5.2.4.1
Using rack 2.2.2
Using rack-test 1.1.0
Using actionpack 5.2.4.1
Using nio4r 2.5.2
Using websocket-extensions 0.1.4
Using websocket-driver 0.7.1
Using actioncable 5.2.4.1
Using globalid 0.4.2
Using activejob 5.2.4.1
Using mini_mime 1.0.2
Using mail 2.7.1
Using actionmailer 5.2.4.1
Using activemodel 5.2.4.1
Using active_model_serializers 0.9.7
Using arel 9.0.0
Using activerecord 5.2.4.1
Using activerecord-import 1.0.2
Using mimemagic 0.3.4
Using marcel 0.3.3
Using activestorage 5.2.4.1
Using acts-as-taggable-on 6.0.0
Using acts_as_api 1.0.1
Using public_suffix 3.1.1
Using addressable 2.6.0
Using aes_key_wrap 1.0.1
Using excon 0.72.0
Using formatador 0.2.5
Using mime-types-data 3.2019.0331
Using mime-types 3.2.2
Using fog-core 2.1.2
Using unf_ext 0.0.7.6
Using unf 0.1.4
Using asset_sync 2.7.0
Using encryptor 3.0.0
Using attr_encrypted 3.1.0
Using attr_required 1.0.1
Using execjs 2.7.0
Using autoprefixer-rails 8.6.5
Using bcrypt 3.1.13
Using bindata 2.4.4
Using ffi 1.11.1
Using sassc 2.0.1
Using bootstrap-sass 3.4.1
Using bootstrap-switch-rails 3.3.3
Using buftok 0.2.0
Using bundler 2.1.4
Using carrierwave 1.3.1
Using timers 4.3.0
Using celluloid-essentials 0.20.5
Using celluloid-extras 0.20.5
Using celluloid-fsm 0.20.5
Using celluloid-pool 0.20.5
Using celluloid-supervision 0.20.6
Using celluloid 0.17.4
Using celluloid-io 0.17.3
Using chunky_png 1.3.11
Using multi_json 1.13.1
Using sass 3.4.25
Using compass-core 1.0.3
Using compass-import-once 1.0.5
Using rb-fsevent 0.10.3
Using rb-inotify 0.10.0
Using compass 1.0.3
Using method_source 0.9.2
Using thor 0.20.3
Using railties 5.2.4.1
Using sprockets 3.7.2
Using sprockets-rails 3.2.1
Using tilt 2.0.9
Using sass-rails 5.0.7
Using compass-rails 3.1.0
Using configurate 0.3.1
Using connection_pool 2.2.2
Using orm_adapter 0.5.0
Using responders 2.4.1
Using warden 1.2.8
Using devise 4.7.1
Using rotp 2.1.2
Using devise-two-factor 3.0.3
Using rails 5.2.4.1
Using devise_lastseenable 0.0.6
Using diaspora-prosody-config 0.0.7
Using multipart-post 2.1.1
Using faraday 0.15.4
Using faraday_middleware 0.13.1
Using ethon 0.12.0
Using typhoeus 1.3.1
Using valid 1.2.0
Using diaspora_federation 0.2.6
Using diaspora_federation-json_schema 0.2.6
Using diaspora_federation-rails 0.2.6
Using domain_name 0.5.20180417
Using entypo-rails 3.0.0
Using equalizer 0.0.11
Using et-orbi 1.2.1
Using kostya-sigar 2.0.6
Using state_machines 0.5.0
Using eye 0.10.0
Using http-cookie 1.0.3
Using faraday-cookie_jar 0.0.6
Using fog-json 1.2.0
Using fog-xml 0.1.3
Using ipaddress 0.8.3
Using fog-aws 3.5.1
Using raabro 1.1.6
Using fugit 1.2.2
Using get_process_mem 0.2.3
Using request_store 1.4.1
Using gon 6.2.1
Using temple 0.8.1
Using hamlit 2.9.3
Using handlebars_assets 0.23.4
Using hashie 3.6.0
Using http-form_data 2.1.1
Using http_parser.rb 0.6.0
Using http 3.3.0
Using http_accept_language 2.1.1
Using httpclient 2.8.3
Using i18n-inflector 2.6.7
Using i18n-inflector-rails 1.0.7
Using jquery-rails 4.3.5
Using js-routes 1.4.7
Using js_image_paths 0.1.1
Using json 2.2.0
Using json-jwt 1.11.0
Using json-schema 2.8.1
Using jwt 2.2.1
Using kgio 2.11.2
Using leaflet-rails 1.5.1
Using little-plugger 1.1.4
Using logging 2.2.2
Using logging-rails 0.6.0
Using systemu 2.6.5
Using macaddr 1.7.2
Using markdown-it-html5-embed 1.0.0
Using markerb 1.1.0
Using memoizable 0.4.2
Using mini_magick 4.10.1
Using rack-mobile-detect 0.4.0
Using mobile-fu 1.4.0
Using multi_xml 0.6.0
Using naught 1.1.0
Using oauth 0.5.4
Using oauth2 1.4.1
Using omniauth 1.9.0
Using omniauth-oauth 1.1.0
Using omniauth-oauth2 1.6.0
Using omniauth-tumblr 1.2
Using omniauth-twitter 1.4.0
Using omniauth-wordpress 0.2.2
Using open_graph_reader 0.7.0
Using rack-oauth2 1.10.0
Using swd 1.1.2
Using validate_email 0.1.6
Using validate_url 1.0.8
Using webfinger 1.1.0
Using openid_connect 1.1.8
Using pg 1.1.4
Using rack-cors 1.1.1
Using rack-google-analytics 1.2.0
Using rack-piwik 0.3.0
Using rack-protection 2.0.5
Using rack-rewrite 1.5.1
Using rack-ssl 1.4.1
Using rails-assets-autosize 4.0.2
Using rails-assets-underscore 1.9.1
Using rails-assets-backbone 1.3.3
Using rails-assets-blueimp-gallery 2.33.0
Using rails-assets-jquery 3.4.1
Using rails-assets-bootstrap 3.4.1
Using rails-assets-bootstrap-markdown 2.10.0
Using rails-assets-corejs-typeahead 1.2.1
Using rails-assets-emojione 2.0.1
Using rails-assets-favico.js 0.3.10
Using rails-assets-jquery-colorbox 1.6.4
Using rails-assets-jquery-fullscreen-plugin 0.5.0
Using rails-assets-jquery.slimscroll 1.3.8
Using rails-assets-jquery.ui 1.11.4
Using rails-assets-diaspora_jsxc 0.1.5.develop.7
Using rails-assets-fine-uploader 5.13.0
Using rails-assets-highlightjs 9.12.0
Using rails-assets-jquery-placeholder 2.3.1
Using rails-assets-jquery-textchange 0.2.3
Using rails-assets-jquery.are-you-sure 1.9.0
Using rails-assets-markdown-it 8.4.2
Using rails-assets-markdown-it--markdown-it-for-inline 0.1.1
Using rails-assets-markdown-it-diaspora-mention 1.2.0
Using rails-assets-markdown-it-hashtag 0.4.0
Using rails-assets-markdown-it-sanitizer 0.4.3
Using rails-assets-markdown-it-sub 1.0.0
Using rails-assets-markdown-it-sup 1.0.0
Using rails-assets-utatti-perfect-scrollbar 1.4.0
Using rails-i18n 5.1.3
Using rails-timeago 2.17.1
Using raindrops 0.19.0
Using redcarpet 3.4.0
Using redis 3.3.5
Using rqrcode 0.10.1
Using ruby-oembed 0.12.0
Using rubyzip 1.3.0
Using secure_headers 6.3.0
Using sidekiq 5.2.7
Using sidekiq-cron 1.1.0
Using simple_captcha2 0.4.3
Using simple_oauth 0.3.1
Using string-direction 1.2.1
Using twitter 6.2.0
Using twitter-text 1.14.7
Using uglifier 4.1.20
Using unicorn 5.5.1
Using unicorn-worker-killer 0.4.4
Using uuid 2.3.9
Using yard 0.9.20
Using versionist 2.0.0
Using will_paginate 3.1.7
Bundle complete! 142 Gemfile dependencies, 231 gems now installed.
Gems in the groups test and development were not installed.
Bundled gems are installed into `./vendor/bundle`

Changed everything, even tried

RAILS_ENV=production bin/bundle exec unicorn -c config/unicorn.rb -E production

Same error message as before…

Is there any chance to uninstall this ruby thing? Or what would happen if I would simply delete the full diaspora directory and re-install… Everythings is in the database - isn’t it?

Photos are not, they’re in public/uploads. Just removing the diaspora folder won’t fix your ruby setup, that lives outside it in the home directory. But sure, dropping the entire user after backing up your config/ and public/uploads and going from scratch can work. Just be extra careful to skip any database creation steps as they might otherwise destroy the database. So better actually backup that one before too.

Thanks. Will give it a try. Somewhere it says that that latest 2.4 version of ruby ought to be used - is this still true? Installing 2.4.9 says it is nearing EOL and won’t receive any bug fixes anymore…

While some of the more experienced people already run on 2.5 and 2.6 without any reported issues, we’ve been slacking on updating a bit and 2.3 and 2.5 is still what we officially test against. I would discourage you from trying out 2.7 yet though.

Yep - up again! Thanks for being so super responsive!!!

I believe that there must be an issue with Ruby 2.4.

At first I did re-inst everything - but did run into the same issue. Then I did use Ruby 2.5.7.

Here I did run into the following issue, that did not come up with 2.4

diaspora@server1:~/diaspora$ gem install bundler
rbenv: version `2.4' is not installed (set by /home/diaspora/diaspora/.ruby-version)

--> edit .ruby-version - change 2.4 to 2.5.7

diaspora@server1:~/diaspora$ gem install bundler
rbenv: version `2.4' is not installed (set by /home/diaspora/diaspora/.ruby-version)
diaspora@server1:~/diaspora$ vi .ruby-version
diaspora@server1:~/diaspora$ gem install bundler
Fetching: bundler-2.1.4.gem (100%)
Successfully installed bundler-2.1.4
Parsing documentation for bundler-2.1.4
Installing ri documentation for bundler-2.1.4
Done installing documentation for bundler after 4 seconds
1 gem installed
diaspora@server1:~/diaspora$ gem install pg
Fetching: pg-1.2.2.gem (100%)
Building native extensions. This could take a while...
Successfully installed pg-1.2.2
Parsing documentation for pg-1.2.2
Installing ri documentation for pg-1.2.2
Done installing documentation for pg after 1 seconds
1 gem installed
diaspora@server1:~/diaspora$ script/configure_bundler
Configuring Bundler for production environment and postgresql database.
$ bin/bundle config --local jobs 8
Traceback (most recent call last):
        2: from /home/diaspora/diaspora/script/../bin/bundle:3:in `<main>'
        1: from /home/diaspora/.rbenv/versions/2.5.7/lib/ruby/2.5.0/rubygems.rb:263:in `bin_path'
/home/diaspora/.rbenv/versions/2.5.7/lib/ruby/2.5.0/rubygems.rb:284:in `find_spec_for_exe': Could not find 'bundler' (1.17.3) required by your /home/diaspora/diaspora/Gemfile.lock. (Gem::GemNotFoundException)
To update to the latest version installed on your system, run `bundle update --bundler`.
To install the missing version, run `gem install bundler:1.17.3`
$ bin/bundle config --local with postgresql
Traceback (most recent call last):
        2: from /home/diaspora/diaspora/script/../bin/bundle:3:in `<main>'
        1: from /home/diaspora/.rbenv/versions/2.5.7/lib/ruby/2.5.0/rubygems.rb:263:in `bin_path'
/home/diaspora/.rbenv/versions/2.5.7/lib/ruby/2.5.0/rubygems.rb:284:in `find_spec_for_exe': Could not find 'bundler' (1.17.3) required by your /home/diaspora/diaspora/Gemfile.lock. (Gem::GemNotFoundException)
To update to the latest version installed on your system, run `bundle update --bundler`.
To install the missing version, run `gem install bundler:1.17.3`
$ bin/bundle config --local without test:development
Traceback (most recent call last):
        2: from /home/diaspora/diaspora/script/../bin/bundle:3:in `<main>'
        1: from /home/diaspora/.rbenv/versions/2.5.7/lib/ruby/2.5.0/rubygems.rb:263:in `bin_path'
/home/diaspora/.rbenv/versions/2.5.7/lib/ruby/2.5.0/rubygems.rb:284:in `find_spec_for_exe': Could not find 'bundler' (1.17.3) required by your /home/diaspora/diaspora/Gemfile.lock. (Gem::GemNotFoundException)
To update to the latest version installed on your system, run `bundle update --bundler`.
To install the missing version, run `gem install bundler:1.17.3`
$ bin/bundle config --local path vendor/bundle
Traceback (most recent call last):
        2: from /home/diaspora/diaspora/script/../bin/bundle:3:in `<main>'
        1: from /home/diaspora/.rbenv/versions/2.5.7/lib/ruby/2.5.0/rubygems.rb:263:in `bin_path'
/home/diaspora/.rbenv/versions/2.5.7/lib/ruby/2.5.0/rubygems.rb:284:in `find_spec_for_exe': Could not find 'bundler' (1.17.3) required by your /home/diaspora/diaspora/Gemfile.lock. (Gem::GemNotFoundException)
To update to the latest version installed on your system, run `bundle update --bundler`.
To install the missing version, run `gem install bundler:1.17.3`
$ bin/bundle config --local frozen true
Traceback (most recent call last):
        2: from /home/diaspora/diaspora/script/../bin/bundle:3:in `<main>'
        1: from /home/diaspora/.rbenv/versions/2.5.7/lib/ruby/2.5.0/rubygems.rb:263:in `bin_path'
/home/diaspora/.rbenv/versions/2.5.7/lib/ruby/2.5.0/rubygems.rb:284:in `find_spec_for_exe': Could not find 'bundler' (1.17.3) required by your /home/diaspora/diaspora/Gemfile.lock. (Gem::GemNotFoundException)
To update to the latest version installed on your system, run `bundle update --bundler`.
To install the missing version, run `gem install bundler:1.17.3`
$ bin/bundle config --local disable_shared_gems true
Traceback (most recent call last):
        2: from /home/diaspora/diaspora/script/../bin/bundle:3:in `<main>'
        1: from /home/diaspora/.rbenv/versions/2.5.7/lib/ruby/2.5.0/rubygems.rb:263:in `bin_path'
/home/diaspora/.rbenv/versions/2.5.7/lib/ruby/2.5.0/rubygems.rb:284:in `find_spec_for_exe': Could not find 'bundler' (1.17.3) required by your /home/diaspora/diaspora/Gemfile.lock. (Gem::GemNotFoundException)
To update to the latest version installed on your system, run `bundle update --bundler`.
To install the missing version, run `gem install bundler:1.17.3`
Bundler configured! Please run 'bin/bundle install' now.
diaspora@server1:~/diaspora$ gem install bundler:1.17.3
Fetching: bundler-1.17.3.gem (100%)
Successfully installed bundler-1.17.3
Parsing documentation for bundler-1.17.3
Installing ri documentation for bundler-1.17.3
Done installing documentation for bundler after 4 seconds
1 gem installed
diaspora@server1:~/diaspora$ script/configure_bundler
Configuring Bundler for production environment and postgresql database.
$ bin/bundle config --local jobs 8
You are replacing the current local value of jobs, which is currently nil
$ bin/bundle config --local with postgresql
You are replacing the current local value of with, which is currently nil
$ bin/bundle config --local without test:development
You are replacing the current local value of without, which is currently nil
$ bin/bundle config --local path vendor/bundle
You are replacing the current local value of path, which is currently nil
$ bin/bundle config --local frozen true
You are replacing the current local value of frozen, which is currently nil
$ bin/bundle config --local disable_shared_gems true
You are replacing the current local value of disable_shared_gems, which is currently nil
Bundler configured! Please run 'bin/bundle install' now.
diaspora@server1:~/diaspora$ bin/bundle install

I know you told me to use bundler 1.17.3 before - and I did - but it seems that together with 2.4 it doesn’t work.

Anyway - thanks again! Systems up & running!

1 Like