Pid file could not be created

Hi,

yesterday I installed a new pod for migrating to a new server on debian 9. I followed the wiki tutorial for this distribution and all worked fine (fresh minimal installation). But diaspora cannot start up:

I, [2018-07-22T16:36:24.264229 #10957]  INFO -- : [diaspora:__default__] call:
I, [2018-07-22T16:36:24.264377 #10957]  INFO -- : [diaspora:__default__] schedule :monitor (load by user)
I, [2018-07-22T16:36:24.264531 #10957]  INFO -- : [diaspora:__default__] => monitor  (load by user)
I, [2018-07-22T16:36:24.264760 #10957]  INFO -- : [diaspora:__default__] starting async with 0.2s chain monitor
I, [2018-07-22T16:36:24.264708 #10957]  INFO -- : [diaspora:sidekiq] call:
I, [2018-07-22T16:36:24.264971 #10957]  INFO -- : [diaspora:sidekiq] schedule :monitor (load by user)
I, [2018-07-22T16:36:24.265157 #10957]  INFO -- : [diaspora:sidekiq] => monitor  (load by user)
I, [2018-07-22T16:36:24.265218 #10957]  INFO -- : [diaspora:sidekiq] starting async with 0.2s chain monitor
I, [2018-07-22T16:36:24.265431 #10957]  INFO -- : [diaspora:web] schedule :monitor (monitor by user)
I, [2018-07-22T16:36:24.265626 #10957]  INFO -- : [diaspora:web] => monitor  (monitor by user)
I, [2018-07-22T16:36:24.266064 #10957]  INFO -- : [Eye] <= loading: ["/home/diaspora/diaspora/config/eye.rb"]
I, [2018-07-22T16:36:24.266688 #10957]  INFO -- : [diaspora:__default__] <= monitor
I, [2018-07-22T16:36:24.280580 #10957]  INFO -- : [Eye] <= command: load /home/diaspora/diaspora/config/eye.rb (0.103473323s)
I, [2018-07-22T16:36:24.280768 #10957]  INFO -- : [diaspora:sidekiq:sidekiq1] schedule :monitor (monitor by user)
I, [2018-07-22T16:36:24.281536 #10957]  INFO -- : [diaspora:sidekiq:sidekiq1] => monitor  (monitor by user)
I, [2018-07-22T16:36:24.281670 #10957]  INFO -- : [diaspora:sidekiq] <= monitor
I, [2018-07-22T16:36:24.366082 #10957]  INFO -- : [diaspora:web] load_external_pid_file: pid_file not found
I, [2018-07-22T16:36:24.366726 #10957]  INFO -- : [diaspora:web] switch :starting [:unmonitored => :starting] monitor by user
I, [2018-07-22T16:36:24.366886 #10957]  INFO -- : [diaspora:web] executing: `bin/bundle exec unicorn -c config/unicorn.rb -D` with start_timeout: 15.0s, start_grace: 2.5s, env: 'RAILS_ENV=production PORT=' (in /home/diaspora/diaspora)
I, [2018-07-22T16:36:24.382181 #10957]  INFO -- : [diaspora:sidekiq:sidekiq1] load_external_pid_file: pid_file not found
I, [2018-07-22T16:36:24.382700 #10957]  INFO -- : [diaspora:sidekiq:sidekiq1] switch :starting [:unmonitored => :starting] monitor by user
I, [2018-07-22T16:36:24.383548 #10957]  INFO -- : [diaspora:sidekiq:sidekiq1] daemonizing: `bin/bundle exec sidekiq` with start_grace: 2.5s, env: 'RAILS_ENV=production', <11133> (in /home/diaspora/diaspora)
I, [2018-07-22T16:36:24.383642 #10957]  INFO -- : [diaspora:sidekiq:sidekiq1] sleeping for :start_grace 2.5
I, [2018-07-22T16:36:24.692801 #10957]  INFO -- : [diaspora:web] sleeping for :start_grace 2.5
E, [2018-07-22T16:36:26.884022 #10957] ERROR -- : [diaspora:sidekiq:sidekiq1] process <11133> not found, it may have crashed (you should check the process logs ["/home/diaspora/diaspora/log/eye_processes_stdout.log", "/home/diaspora/diaspora/log/eye_processes_stderr.log"])
E, [2018-07-22T16:36:26.884155 #10957] ERROR -- : [diaspora:sidekiq:sidekiq1] process <11133> failed to start (:not_really_running)

I don´t really know, why this is happening. How can I debug further? I´ve assigned all files the user diaspora.
What I´ve noticed are the following errors at eye_processes_stderror.log:

 tail log/eye_processes_stderr.log
bin/bundle:3:in `load': cannot load such file -- /home/diaspora/.rvm/rubies/ruby-2.4.4/lib/ruby/gems/2.4.0/gems/bundler-1.16.3/exe/bundle (LoadError)
        from bin/bundle:3:in `<main>'
bin/bundle:3:in `load': cannot load such file -- /home/diaspora/.rvm/rubies/ruby-2.4.4/lib/ruby/gems/2.4.0/gems/bundler-1.16.3/exe/bundle (LoadError)
        from bin/bundle:3:in `<main>'
bin/bundle:3:in `load': cannot load such file -- /home/diaspora/.rvm/rubies/ruby-2.4.4/lib/ruby/gems/2.4.0/gems/bundler-1.16.3/exe/bundle (LoadError)
        from bin/bundle:3:in `<main>'
bin/bundle:3:in `load': cannot load such file -- /home/diaspora/.rvm/rubies/ruby-2.4.4/lib/ruby/gems/2.4.0/gems/bundler-1.16.3/exe/bundle (LoadError)
        from bin/bundle:3:in `<main>'
bin/bundle:3:in `load': cannot load such file -- /home/diaspora/.rvm/rubies/ruby-2.4.4/lib/ruby/gems/2.4.0/gems/bundler-1.16.3/exe/bundle (LoadError)
        from bin/bundle:3:in `<main>'

The curious thing is, that this bundler version (bundler-1.16.3) was installed, but not really set as there is version 1.16.2 installed. I´m not sure, if this is related.

Would be great if anyone has a hint.

There were other users reporting problems with bundler 1.16.3, I didn’t have the time to look at that myself yet. But 1.16.2 should be working. So you can try to downgrade to 1.16.2 first and see if that fixes your problem:

gem uninstall bundler && gem install bundler --version 1.16.2

1 Like

Thanks for your answer - I just tested it with alternative startup methods (systemd) and the config files don´t work anymore (https://wiki.diasporafoundation.org/Alternative_startup_methods). I get the journalctl output:

Jul 23 17:38:18 mail systemd[1]: diaspora-sidekiq.service: Unit entered failed state.
Jul 23 17:38:18 mail systemd[1]: diaspora-sidekiq.service: Failed with result 'exit-code'.
Jul 23 17:38:24 mail systemd[1]: diaspora-sidekiq.service: Start request repeated too quickly.
Jul 23 17:38:24 mail systemd[1]: Failed to start Diaspora social network (sidekiq).
Jul 23 17:38:18 mail systemd[1]: diaspora-web.service: Start request repeated too quickly.
Jul 23 17:38:18 mail systemd[1]: Failed to start Diaspora social network (unicorn).

Could this be related? Diaspora can only be started by command line ./script/server.

So downgrading bundler fixed script/server?

The systemd-files from the wiki are still working, I use them on my server. Do you get more output or error messages, anything in the logs?

Yes, downgrading fixed script/server.

Syslog told me:

Jul 23 20:45:07 mail systemd[1]: Started Diaspora social network (unicorn).
Jul 23 20:45:07 mail bash[18829]: /usr/lib/ruby/2.3.0/rubygems.rb:241:in `bin_path': can't find gem bundler (>= 0) (Gem::GemNotFoundException)
Jul 23 20:45:07 mail bash[18829]: #011from bin/bundle:3:in `<main>'
Jul 23 20:45:07 mail bash[18828]: /usr/lib/ruby/2.3.0/rubygems.rb:241:in `bin_path': can't find gem bundler (>= 0) (Gem::GemNotFoundException)
Jul 23 20:45:07 mail bash[18828]: #011from bin/bundle:3:in `<main>'
Jul 23 20:45:07 mail systemd[1]: diaspora-web.service: Main process exited, code=exited, status=1/FAILURE
Jul 23 20:45:07 mail systemd[1]: diaspora-web.service: Unit entered failed state.
Jul 23 20:45:07 mail systemd[1]: diaspora-web.service: Failed with result 'exit-code'.
Jul 23 20:45:07 mail systemd[1]: diaspora-sidekiq.service: Main process exited, code=exited, status=1/FAILURE
Jul 23 20:45:07 mail systemd[1]: diaspora-sidekiq.service: Unit entered failed state.
Jul 23 20:45:07 mail systemd[1]: diaspora-sidekiq.service: Failed with result 'exit-code'.
Jul 23 20:45:08 mail systemd[1]: diaspora-web.service: Service hold-off time over, scheduling restart.
Jul 23 20:45:08 mail systemd[1]: diaspora-sidekiq.service: Service hold-off time over, scheduling restart.
Jul 23 20:45:08 mail systemd[1]: Stopped Diaspora social network (sidekiq).
Jul 23 20:45:08 mail systemd[1]: diaspora-sidekiq.service: Start request repeated too quickly.
Jul 23 20:45:08 mail systemd[1]: Failed to start Diaspora social network (sidekiq).
Jul 23 20:45:08 mail systemd[1]: diaspora-sidekiq.service: Unit entered failed state.
Jul 23 20:45:08 mail systemd[1]: diaspora-sidekiq.service: Failed with result 'exit-code'.
Jul 23 20:45:08 mail systemd[1]: Stopped Diaspora social network (unicorn).
Jul 23 20:45:08 mail systemd[1]: diaspora-web.service: Start request repeated too quickly.
Jul 23 20:45:08 mail systemd[1]: Failed to start Diaspora social network (unicorn).
Jul 23 20:45:08 mail systemd[1]: diaspora-web.service: Unit entered failed state.
Jul 23 20:45:08 mail systemd[1]: diaspora-web.service: Failed with result 'exit-code'.

It looks like it’s trying to use your system ruby and not rvm, where no bundler is installed. Did you copy the complete systemd files from the wiki, including the /bin/bash -lc part? And is your rvm installed correctly, so it activates when you start bash?

Thanks, /bin/bash -lc parts are available. I just made a copy from the wiki. How can I debug rvm? It seems that I´ve installed gem in the home folder and diaspora folder. I tried to remove it in the home folder - could this cause problems?

At least the bundler gem needs to be installed in the .rvm folder in your home (in the diaspora gemset), because it is needed to then load the rest of the gems from the vendor folder in the diaspora folder (at least the gems should be installed there on a usual production installation following our guide).

I´ve reinstalled rvm and there is a gem installed - I don´t know, why it fails. Can I turn on further debugging? I don´t know where to search.

Hmm, I don’t know. When script/server still works, it should theoretically work with systemd too, because it does nothing other. But you can try it manually: RAILS_ENV=production /bin/bash -lc "bin/bundle exec unicorn -c config/unicorn.rb -E production" in the diaspora directory should do what systemd does. You can also try rvm current and /bin/bash -lc "rvm current" to see if rvm is working.

@supertux88 Aha:

RAILS_ENV=production /bin/bash -lc "bin/bundle exec unicorn -c config/unicorn.rb -E production"
bundler: command not found: unicorn

Unicorn is installed and bundle install doesn not install new bundles:

Using rake 12.3.1
Using concurrent-ruby 1.0.5
Using i18n 1.0.0
Using minitest 5.11.3
Using thread_safe 0.3.6
Using tzinfo 1.2.5
Using activesupport 5.1.6
Using builder 3.2.3
Using erubi 1.7.1
Using mini_portile2 2.3.0
Using nokogiri 1.8.2
Using rails-dom-testing 2.0.3
Using crass 1.0.3
Using loofah 2.2.2
Using rails-html-sanitizer 1.0.4
Using actionview 5.1.6
Using rack 2.0.5
Using rack-test 1.0.0
Using actionpack 5.1.6
Using nio4r 2.3.0
Using websocket-extensions 0.1.3
Using websocket-driver 0.6.5
Using actioncable 5.1.6
Using globalid 0.4.1
Using activejob 5.1.6
Using mini_mime 1.0.0
Using mail 2.7.0
Using actionmailer 5.1.6
Using activemodel 5.1.6
Using active_model_serializers 0.9.7
Using arel 8.0.0
Using activerecord 5.1.6
Using activerecord-import 0.22.0
Using acts-as-taggable-on 5.0.0
Using acts_as_api 1.0.1
Using public_suffix 3.0.2
Using addressable 2.5.2
Using aes_key_wrap 1.0.1
Using excon 0.62.0
Using formatador 0.2.5
Using fog-core 1.45.0
Using mime-types-data 3.2016.0521
Using mime-types 3.1
Using unf_ext 0.0.7.5
Using unf 0.1.4
Using asset_sync 2.4.0
Using attr_required 1.0.1
Using execjs 2.7.0
Using autoprefixer-rails 8.2.0
Using bcrypt 3.1.11
Using bindata 2.4.3
Using sass 3.4.25
Using bootstrap-sass 3.3.7
Using bootstrap-switch-rails 3.3.3
Using buftok 0.2.0
Using bundler 1.16.2
Using carrierwave 1.2.2
Using hitimes 1.2.6
Using timers 4.1.2
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.3
Using celluloid-io 0.17.3
Using chunky_png 1.3.10
Using multi_json 1.13.1
Using compass-core 1.0.3
Using compass-import-once 1.0.5
Using rb-fsevent 0.10.3
Using ffi 1.9.23
Using rb-inotify 0.9.10
Using compass 1.0.3
Using method_source 0.9.0
Using thor 0.19.4
Using railties 5.1.6
Using sprockets 3.7.2
Using sprockets-rails 3.2.1
Using tilt 2.0.8
Using sass-rails 5.0.7
Using compass-rails 3.0.2
Using configurate 0.3.1
Using connection_pool 2.2.1
Using orm_adapter 0.5.0
Using responders 2.4.0
Using warden 1.2.7
Using devise 4.4.3
Using rails 5.1.6
Using devise_lastseenable 0.0.6
Using diaspora-prosody-config 0.0.7
Using multipart-post 2.0.0
Using faraday 0.12.2
Using faraday_middleware 0.12.2
Using ethon 0.11.0
Using typhoeus 1.3.0
Using valid 1.2.0
Using diaspora_federation 0.2.4
Using diaspora_federation-json_schema 0.2.4
Using diaspora_federation-rails 0.2.4
Using domain_name 0.5.20170404
Using entypo-rails 3.0.0
Using equalizer 0.0.11
Using et-orbi 1.1.0
Using kostya-sigar 2.0.4
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.0.2
Using fog-xml 0.1.3
Using ipaddress 0.8.3
Using fog-aws 2.0.1
Using get_process_mem 0.2.1
Using request_store 1.4.1
Using gon 6.2.0
Using temple 0.8.0
Using hamlit 2.8.8
Using handlebars_assets 0.23.2
Using hashie 3.5.7
Using http-form_data 2.1.0
Using http_parser.rb 0.6.0
Using http 3.0.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.1
Using js-routes 1.4.3
Using js_image_paths 0.1.1
Using json 2.1.0
Using securecompare 1.0.0
Using url_safe_base64 0.2.2
Using json-jwt 1.9.2
Using json-schema 2.8.0
Using jwt 1.5.6
Using kgio 2.11.2
Using leaflet-rails 1.3.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.1
Using markdown-it-html5-embed 1.0.0
Using markerb 1.1.0
Using memoizable 0.4.2
Using mini_magick 4.8.0
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.0
Using omniauth 1.8.1
Using omniauth-oauth2 1.5.0
Using omniauth-facebook 4.0.0
Using omniauth-oauth 1.1.0
Using omniauth-tumblr 1.2
Using omniauth-twitter 1.4.0
Using omniauth-wordpress 0.2.2
Using open_graph_reader 0.6.2
Using rack-oauth2 1.9.1
Using swd 1.1.2
Using validate_email 0.1.6
Using validate_url 1.0.2
Using webfinger 1.1.0
Using openid_connect 1.1.5
Using pg 1.0.0
Using rack-cors 1.0.2
Using rack-google-analytics 1.2.0
Using rack-piwik 0.3.0
Using rack-protection 2.0.1
Using rack-rewrite 1.5.1
Using rack-ssl 1.4.1
Using rails-assets-autosize 4.0.1
Using rails-assets-underscore 1.8.3
Using rails-assets-backbone 1.3.3
Using rails-assets-blueimp-gallery 2.33.0
Using rails-assets-jquery 3.2.1
Using rails-assets-bootstrap 3.3.7
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.1
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.3.0
Using rails-i18n 5.1.1
Using rails-timeago 2.16.0
Using raindrops 0.19.0
Using redcarpet 3.4.0
Using redis 3.3.5
Using ruby-oembed 0.12.0
Using rubyzip 1.2.1
Using rufus-scheduler 3.4.2
Using useragent 0.16.10
Using secure_headers 5.0.5
Using sidekiq 5.1.3
Using sidekiq-cron 0.6.3
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.8
Using unicorn 5.4.0
Using unicorn-worker-killer 0.4.4
Using uuid 2.3.8
Using yard 0.9.12
Using versionist 1.7.0
Using will_paginate 3.1.6
Bundle complete! 141 Gemfile dependencies, 226 gems now installed.
Gems in the groups test and development were not installed.
Bundled gems are installed into `./vendor/bundle`

It seems, that manually downgrading doesn´t really work. Perhaps you´ve to provide a fix for the latest bundler install, which seems to be an install, which is mentioned by the environment?

I´ve reinstalled diaspora on a fresh machine, used gem 1.6.2, but I´ve got the same problem. It seems to be a bigger problem at diaspora itself. The web service doesn´t come up:

Jul 29 14:12:12 mail systemd[1]: diaspora-web.service: Main process exited, code=exited, status=1/FAILURE
Jul 29 14:12:12 mail systemd[1]: diaspora-web.service: Unit entered failed state.
Jul 29 14:12:12 mail systemd[1]: diaspora-web.service: Failed with result 'exit-code'.
Jul 29 14:12:12 mail systemd[1]: diaspora-web.service: Service hold-off time over, scheduling restart.
Jul 29 14:12:12 mail systemd[1]: Stopped Diaspora social network (unicorn).
Jul 29 14:12:12 mail systemd[1]: diaspora-web.service: Start request repeated too quickly.
Jul 29 14:12:12 mail systemd[1]: Failed to start Diaspora social network (unicorn).
Jul 29 14:12:12 mail systemd[1]: diaspora-web.service: Unit entered failed state.
Jul 29 14:12:12 mail systemd[1]: diaspora-web.service: Failed with result 'exit-code'.

I have no idea what’s wrong. Does RAILS_ENV=production /bin/bash -lc "bin/bundle exec unicorn -c config/unicorn.rb -E production" still give the same output? What does rvm current and /bin/bash -lc "rvm current" print now? The systemd file do nothing other than what eye does (which is what script/server uses to start diaspora), so it should just work.

Thanks.

RAILS_ENV=production /bin/bash -lc bin/bundle exec unicorn -c config/unicorn.rb -E production:
Using rake 12.3.1
Using concurrent-ruby 1.0.5
Using i18n 1.0.0
Using minitest 5.11.3
Using thread_safe 0.3.6
Using tzinfo 1.2.5
Using activesupport 5.1.6
Using builder 3.2.3
Using erubi 1.7.1
Using mini_portile2 2.3.0
Using nokogiri 1.8.2
Using rails-dom-testing 2.0.3
Using crass 1.0.3
Using loofah 2.2.2
Using rails-html-sanitizer 1.0.4
Using actionview 5.1.6
Using rack 2.0.5
Using rack-test 1.0.0
Using actionpack 5.1.6
Using nio4r 2.3.0
Using websocket-extensions 0.1.3
Using websocket-driver 0.6.5
Using actioncable 5.1.6
Using globalid 0.4.1
Using activejob 5.1.6
Using mini_mime 1.0.0
Using mail 2.7.0
Using actionmailer 5.1.6
Using activemodel 5.1.6
Using active_model_serializers 0.9.7
Using arel 8.0.0
Using activerecord 5.1.6
Using activerecord-import 0.22.0
Using acts-as-taggable-on 5.0.0
Using acts_as_api 1.0.1
Using public_suffix 3.0.2
Using addressable 2.5.2
Using aes_key_wrap 1.0.1
Using excon 0.62.0
Using formatador 0.2.5
Using fog-core 1.45.0
Using mime-types-data 3.2016.0521
Using mime-types 3.1
Using unf_ext 0.0.7.5
Using unf 0.1.4
Using asset_sync 2.4.0
Using attr_required 1.0.1
Using execjs 2.7.0
Using autoprefixer-rails 8.2.0
Using bcrypt 3.1.11
Using bindata 2.4.3
Using sass 3.4.25
Using bootstrap-sass 3.3.7
Using bootstrap-switch-rails 3.3.3
Using buftok 0.2.0
Using bundler 1.16.2
Using carrierwave 1.2.2
Using hitimes 1.2.6
Using timers 4.1.2
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.3
Using celluloid-io 0.17.3
Using chunky_png 1.3.10
Using multi_json 1.13.1
Using compass-core 1.0.3
Using compass-import-once 1.0.5
Using rb-fsevent 0.10.3
Using ffi 1.9.23
Using rb-inotify 0.9.10
Using compass 1.0.3
Using method_source 0.9.0
Using thor 0.19.4
Using railties 5.1.6
Using sprockets 3.7.2
Using sprockets-rails 3.2.1
Using tilt 2.0.8
Using sass-rails 5.0.7
Using compass-rails 3.0.2
Using configurate 0.3.1
Using connection_pool 2.2.1
Using orm_adapter 0.5.0
Using responders 2.4.0
Using warden 1.2.7
Using devise 4.4.3
Using rails 5.1.6
Using devise_lastseenable 0.0.6
Using diaspora-prosody-config 0.0.7
Using multipart-post 2.0.0
Using faraday 0.12.2
Using faraday_middleware 0.12.2
Using ethon 0.11.0
Using typhoeus 1.3.0
Using valid 1.2.0
Using diaspora_federation 0.2.4
Using diaspora_federation-json_schema 0.2.4
Using diaspora_federation-rails 0.2.4
Using domain_name 0.5.20170404
Using entypo-rails 3.0.0
Using equalizer 0.0.11
Using et-orbi 1.1.0
Using kostya-sigar 2.0.4
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.0.2
Using fog-xml 0.1.3
Using ipaddress 0.8.3
Using fog-aws 2.0.1
Using get_process_mem 0.2.1
Using request_store 1.4.1
Using gon 6.2.0
Using temple 0.8.0
Using hamlit 2.8.8
Using handlebars_assets 0.23.2
Using hashie 3.5.7
Using http-form_data 2.1.0
Using http_parser.rb 0.6.0
Using http 3.0.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.1
Using js-routes 1.4.3
Using js_image_paths 0.1.1
Using json 2.1.0
Using securecompare 1.0.0
Using url_safe_base64 0.2.2
Using json-jwt 1.9.2
Using json-schema 2.8.0
Using jwt 1.5.6
Using kgio 2.11.2
Using leaflet-rails 1.3.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.1
Using markdown-it-html5-embed 1.0.0
Using markerb 1.1.0
Using memoizable 0.4.2
Using mini_magick 4.8.0
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.0
Using omniauth 1.8.1
Using omniauth-oauth2 1.5.0
Using omniauth-facebook 4.0.0
Using omniauth-oauth 1.1.0
Using omniauth-tumblr 1.2
Using omniauth-twitter 1.4.0
Using omniauth-wordpress 0.2.2
Using open_graph_reader 0.6.2
Using rack-oauth2 1.9.1
Using swd 1.1.2
Using validate_email 0.1.6
Using validate_url 1.0.2
Using webfinger 1.1.0
Using openid_connect 1.1.5
Using pg 1.0.0
Using rack-cors 1.0.2
Using rack-google-analytics 1.2.0
Using rack-piwik 0.3.0
Using rack-protection 2.0.1
Using rack-rewrite 1.5.1
Using rack-ssl 1.4.1
Using rails-assets-autosize 4.0.1
Using rails-assets-underscore 1.8.3
Using rails-assets-backbone 1.3.3
Using rails-assets-blueimp-gallery 2.33.0
Using rails-assets-jquery 3.2.1
Using rails-assets-bootstrap 3.3.7
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.1
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.3.0
Using rails-i18n 5.1.1
Using rails-timeago 2.16.0
Using raindrops 0.19.0
Using redcarpet 3.4.0
Using redis 3.3.5
Using ruby-oembed 0.12.0
Using rubyzip 1.2.1
Using rufus-scheduler 3.4.2
Using useragent 0.16.10
Using secure_headers 5.0.5
Using sidekiq 5.1.3
Using sidekiq-cron 0.6.3
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.8
Using unicorn 5.4.0
Using unicorn-worker-killer 0.4.4
Using uuid 2.3.8
Using yard 0.9.12
Using versionist 1.7.0
Using will_paginate 3.1.6
Bundle complete! 141 Gemfile dependencies, 226 gems now installed.
Gems in the groups test and development were not installed.
Bundled gems are installed into ./vendor/bundle

rvm current:
ruby-2.4.4@diaspora

/bin/bash -lc rvm current:
Ruby enVironment Manager 1.29.4 (latest) (c) 2009-2017 Michal Papis, Piotr Kuczynski, Wayne E. Seguin

Seems to be working now - don´t know why.

It looks like you removed the quotes from the commands above. /bin/bash -lc "rvm current" should output the same as rvm current (when both executed in the diaspora folder), but without the quotes. it’s something different. The same goes with the bin/bundle command to start unicorn. So it’s important you copy them correctly with quotes and also copy them correctly to the systemd files, otherwise it won’t work.

But when it’s working now, I think you can stop debugging now :slight_smile:

Hm - not sure whether I should respond to it and reviveit or not - but since I did stumble over the same issue, but could not see here how it did get resolved…

I did

su - diaspora
cd diaspora
rvm get stable --auto-dotfiles

the last line did change the zsh. I did it because previously “rvm get stable” did return
RVM sourcing line not found for Zsh, rerun this command with ‘–auto-dotfiles’ flag to fix it.

No clue what I’m doing here - but it seems to fix at least my issue with Debian Stretch systemd set-up…

Proably I’ve done something wrong before…