User:Woozle/Mastodon/setup/take 3/paste-6
root@cloud4:/home/icmstdn/apps/mastodon# /home/icmstdn/apps/mastodon/vendor/bundle/ruby/2.4.0/bin/puma [31952] Puma starting in cluster mode... [31952] * Version 3.11.0 (ruby 2.3.1-p112), codename: Love Song [31952] * Min threads: 5, max threads: 5 [31952] * Environment: development [31952] * Process workers: 2 [31952] * Preloading application [!] There was an error parsing `Gemfile`: no implicit conversion of Symbol into Integer. Bundler cannot continue. # from /home/icmstdn/apps/mastodon/Gemfile:4 # ------------------------------------------- # source 'https://rubygems.org' > ruby '>= 2.3.0', '< 2.5.0' # # ------------------------------------------- [31952] ! Unable to load application: SystemExit: exit
That same line (and all the lines before it) are identical in toot.cat's Gemfile, so I suspect this is actually complaining about something else (e.g. the fact that I'm maybe running it without setting up the proper environment first?). It occurred to me that maybe I need to be running this as user icmstdn
, so I tried that:
icmstdn@cloud4:~/apps/mastodon$ vendor/bundle/ruby/2.4.0/bin/puma
/home/icmstdn/.rbenv/versions/2.4.2/lib/ruby/2.4.0/rubygems.rb:271:in `find_spec_for_exe': can't find gem puma (>= 0.a) (Gem::GemNotFoundException) from /home/icmstdn/.rbenv/versions/2.4.2/lib/ruby/2.4.0/rubygems.rb:299:in `activate_bin_path' from vendor/bundle/ruby/2.4.0/bin/puma:23:in `<main>'
Woops, maybe I wasn't supposed to install gems as root. Let's install Puma again now that we're the proper Mastodon user:
icmstdn@cloud4:~/apps/mastodon$ gem install puma
Fetching: puma-3.11.0.gem (100%) Building native extensions. This could take a while... Successfully installed puma-3.11.0 Parsing documentation for puma-3.11.0 Installing ri documentation for puma-3.11.0 Done installing documentation for puma after 1 seconds 1 gem installed
...and then see if that made a difference (I've boldfaced what looks like the key information here):
icmstdn@cloud4:~/apps/mastodon$ vendor/bundle/ruby/2.4.0/bin/puma
[32375] Puma starting in cluster mode...
[32375] * Version 3.11.0 (ruby 2.4.2-p198), codename: Love Song
[32375] * Min threads: 5, max threads: 5
[32375] * Environment: development
[32375] * Process workers: 2
[32375] * Preloading application
[32375] ! Unable to load application: Gem::LoadError: You have already activated openssl 2.0.5, but your Gemfile requires openssl 2.0.6. Since openssl is a default gem, you can either remove your dependency on it or try updating to a newer version of bundler that supports openssl as a default gem.
/home/icmstdn/.rbenv/versions/2.4.2/lib/ruby/gems/2.4.0/gems/bundler-1.16.1/lib/bundler/runtime.rb:313:in `check_for_activated_spec!': You have already activated openssl 2.0.5, but your Gemfile requires openssl 2.0.6. Since openssl is a default gem, you can either remove your dependency on it or try updating to a newer version of bundler that supports openssl as a default gem. (Gem::LoadError)
from /home/icmstdn/.rbenv/versions/2.4.2/lib/ruby/gems/2.4.0/gems/bundler-1.16.1/lib/bundler/runtime.rb:31:in `block in setup'
from /home/icmstdn/.rbenv/versions/2.4.2/lib/ruby/2.4.0/forwardable.rb:229:in `each'
from /home/icmstdn/.rbenv/versions/2.4.2/lib/ruby/2.4.0/forwardable.rb:229:in `each'
from /home/icmstdn/.rbenv/versions/2.4.2/lib/ruby/gems/2.4.0/gems/bundler-1.16.1/lib/bundler/runtime.rb:26:in `map'
from /home/icmstdn/.rbenv/versions/2.4.2/lib/ruby/gems/2.4.0/gems/bundler-1.16.1/lib/bundler/runtime.rb:26:in `setup'
from /home/icmstdn/.rbenv/versions/2.4.2/lib/ruby/gems/2.4.0/gems/bundler-1.16.1/lib/bundler.rb:107:in `setup'
from /home/icmstdn/.rbenv/versions/2.4.2/lib/ruby/gems/2.4.0/gems/bundler-1.16.1/lib/bundler/setup.rb:10:in `<top (required)>'
from /home/icmstdn/.rbenv/versions/2.4.2/lib/ruby/2.4.0/rubygems/core_ext/kernel_require.rb:133:in `require'
from /home/icmstdn/.rbenv/versions/2.4.2/lib/ruby/2.4.0/rubygems/core_ext/kernel_require.rb:133:in `rescue in require'
from /home/icmstdn/.rbenv/versions/2.4.2/lib/ruby/2.4.0/rubygems/core_ext/kernel_require.rb:40:in `require'
from /home/icmstdn/apps/mastodon/config/boot.rb:3:in `<top (required)>'
from /home/icmstdn/apps/mastodon/config/application.rb:1:in `require_relative'
from /home/icmstdn/apps/mastodon/config/application.rb:1:in `<top (required)>'
from /home/icmstdn/apps/mastodon/config/environment.rb:2:in `require_relative'
from /home/icmstdn/apps/mastodon/config/environment.rb:2:in `<top (required)>'
from /home/icmstdn/.rbenv/versions/2.4.2/lib/ruby/2.4.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /home/icmstdn/.rbenv/versions/2.4.2/lib/ruby/2.4.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from config.ru:4:in `block in <main>'
from /home/icmstdn/.rbenv/versions/2.4.2/lib/ruby/gems/2.4.0/gems/puma-3.11.0/lib/puma/rack/builder.rb:187:in `instance_eval'
from /home/icmstdn/.rbenv/versions/2.4.2/lib/ruby/gems/2.4.0/gems/puma-3.11.0/lib/puma/rack/builder.rb:187:in `initialize'
from config.ru:in `new'
from config.ru:in `<main>'
from /home/icmstdn/.rbenv/versions/2.4.2/lib/ruby/gems/2.4.0/gems/puma-3.11.0/lib/puma/rack/builder.rb:173:in `eval'
from /home/icmstdn/.rbenv/versions/2.4.2/lib/ruby/gems/2.4.0/gems/puma-3.11.0/lib/puma/rack/builder.rb:173:in `new_from_string'
from /home/icmstdn/.rbenv/versions/2.4.2/lib/ruby/gems/2.4.0/gems/puma-3.11.0/lib/puma/rack/builder.rb:164:in `parse_file'
from /home/icmstdn/.rbenv/versions/2.4.2/lib/ruby/gems/2.4.0/gems/puma-3.11.0/lib/puma/configuration.rb:318:in `load_rackup'
from /home/icmstdn/.rbenv/versions/2.4.2/lib/ruby/gems/2.4.0/gems/puma-3.11.0/lib/puma/configuration.rb:243:in `app'
from /home/icmstdn/.rbenv/versions/2.4.2/lib/ruby/gems/2.4.0/gems/puma-3.11.0/lib/puma/runner.rb:138:in `load_and_bind'
from /home/icmstdn/.rbenv/versions/2.4.2/lib/ruby/gems/2.4.0/gems/puma-3.11.0/lib/puma/cluster.rb:397:in `run'
from /home/icmstdn/.rbenv/versions/2.4.2/lib/ruby/gems/2.4.0/gems/puma-3.11.0/lib/puma/launcher.rb:183:in `run'
from /home/icmstdn/.rbenv/versions/2.4.2/lib/ruby/gems/2.4.0/gems/puma-3.11.0/lib/puma/cli.rb:77:in `run'
from /home/icmstdn/.rbenv/versions/2.4.2/lib/ruby/gems/2.4.0/gems/puma-3.11.0/bin/puma:10:in `<top (required)>'
from vendor/bundle/ruby/2.4.0/bin/puma:23:in `load'
from vendor/bundle/ruby/2.4.0/bin/puma:23:in `<main>'
A wild-ass guess as to what needed to be done:
icmstdn@cloud4:~/apps/mastodon$ gem update openssl
Updating installed gems Updating openssl Fetching: openssl-2.1.0.gem (100%) Building native extensions. This could take a while... Successfully installed openssl-2.1.0 Parsing documentation for openssl-2.1.0 Installing ri documentation for openssl-2.1.0 Installing darkfish documentation for openssl-2.1.0 Done installing documentation for openssl after 5 seconds Parsing documentation for openssl-2.1.0 Done installing documentation for openssl after 1 seconds Gems updated: openssl
("a while" was about a minute)
So maybe vendor/bundle/ruby/2.4.0/bin/puma
now? Well, no...
icmstdn@cloud4:~/apps/mastodon$ vendor/bundle/ruby/2.4.0/bin/puma
[763] Puma starting in cluster mode...
[763] * Version 3.11.0 (ruby 2.4.2-p198), codename: Love Song
[763] * Min threads: 5, max threads: 5
[763] * Environment: development
[763] * Process workers: 2
[763] * Preloading application
[763] ! Unable to load application: Gem::LoadError: You have already activated openssl 2.1.0, but your Gemfile requires openssl 2.0.6. Prepending `bundle exec` to your command may solve this.
/home/icmstdn/.rbenv/versions/2.4.2/lib/ruby/gems/2.4.0/gems/bundler-1.16.1/lib/bundler/runtime.rb:313:in `check_for_activated_spec!': You have already activated openssl 2.1.0, but your Gemfile requires openssl 2.0.6. Prepending `bundle exec` to your command may solve this. (Gem::LoadError)
from /home/icmstdn/.rbenv/versions/2.4.2/lib/ruby/gems/2.4.0/gems/bundler-1.16.1/lib/bundler/runtime.rb:31:in `block in setup'
from /home/icmstdn/.rbenv/versions/2.4.2/lib/ruby/2.4.0/forwardable.rb:229:in `each'
from /home/icmstdn/.rbenv/versions/2.4.2/lib/ruby/2.4.0/forwardable.rb:229:in `each'
from /home/icmstdn/.rbenv/versions/2.4.2/lib/ruby/gems/2.4.0/gems/bundler-1.16.1/lib/bundler/runtime.rb:26:in `map'
from /home/icmstdn/.rbenv/versions/2.4.2/lib/ruby/gems/2.4.0/gems/bundler-1.16.1/lib/bundler/runtime.rb:26:in `setup'
from /home/icmstdn/.rbenv/versions/2.4.2/lib/ruby/gems/2.4.0/gems/bundler-1.16.1/lib/bundler.rb:107:in `setup'
from /home/icmstdn/.rbenv/versions/2.4.2/lib/ruby/gems/2.4.0/gems/bundler-1.16.1/lib/bundler/setup.rb:10:in `<top (required)>'
from /home/icmstdn/.rbenv/versions/2.4.2/lib/ruby/2.4.0/rubygems/core_ext/kernel_require.rb:133:in `require'
from /home/icmstdn/.rbenv/versions/2.4.2/lib/ruby/2.4.0/rubygems/core_ext/kernel_require.rb:133:in `rescue in require'
from /home/icmstdn/.rbenv/versions/2.4.2/lib/ruby/2.4.0/rubygems/core_ext/kernel_require.rb:40:in `require'
from /home/icmstdn/apps/mastodon/config/boot.rb:3:in `<top (required)>'
from /home/icmstdn/apps/mastodon/config/application.rb:1:in `require_relative'
from /home/icmstdn/apps/mastodon/config/application.rb:1:in `<top (required)>'
from /home/icmstdn/apps/mastodon/config/environment.rb:2:in `require_relative'
from /home/icmstdn/apps/mastodon/config/environment.rb:2:in `<top (required)>'
from /home/icmstdn/.rbenv/versions/2.4.2/lib/ruby/2.4.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /home/icmstdn/.rbenv/versions/2.4.2/lib/ruby/2.4.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from config.ru:4:in `block in <main>'
from /home/icmstdn/.rbenv/versions/2.4.2/lib/ruby/gems/2.4.0/gems/puma-3.11.0/lib/puma/rack/builder.rb:187:in `instance_eval'
from /home/icmstdn/.rbenv/versions/2.4.2/lib/ruby/gems/2.4.0/gems/puma-3.11.0/lib/puma/rack/builder.rb:187:in `initialize'
from config.ru:in `new'
from config.ru:in `<main>'
from /home/icmstdn/.rbenv/versions/2.4.2/lib/ruby/gems/2.4.0/gems/puma-3.11.0/lib/puma/rack/builder.rb:173:in `eval'
from /home/icmstdn/.rbenv/versions/2.4.2/lib/ruby/gems/2.4.0/gems/puma-3.11.0/lib/puma/rack/builder.rb:173:in `new_from_string'
from /home/icmstdn/.rbenv/versions/2.4.2/lib/ruby/gems/2.4.0/gems/puma-3.11.0/lib/puma/rack/builder.rb:164:in `parse_file'
from /home/icmstdn/.rbenv/versions/2.4.2/lib/ruby/gems/2.4.0/gems/puma-3.11.0/lib/puma/configuration.rb:318:in `load_rackup'
from /home/icmstdn/.rbenv/versions/2.4.2/lib/ruby/gems/2.4.0/gems/puma-3.11.0/lib/puma/configuration.rb:243:in `app'
from /home/icmstdn/.rbenv/versions/2.4.2/lib/ruby/gems/2.4.0/gems/puma-3.11.0/lib/puma/runner.rb:138:in `load_and_bind'
from /home/icmstdn/.rbenv/versions/2.4.2/lib/ruby/gems/2.4.0/gems/puma-3.11.0/lib/puma/cluster.rb:397:in `run'
from /home/icmstdn/.rbenv/versions/2.4.2/lib/ruby/gems/2.4.0/gems/puma-3.11.0/lib/puma/launcher.rb:183:in `run'
from /home/icmstdn/.rbenv/versions/2.4.2/lib/ruby/gems/2.4.0/gems/puma-3.11.0/lib/puma/cli.rb:77:in `run'
from /home/icmstdn/.rbenv/versions/2.4.2/lib/ruby/gems/2.4.0/gems/puma-3.11.0/bin/puma:10:in `<top (required)>'
from vendor/bundle/ruby/2.4.0/bin/puma:23:in `load'
from vendor/bundle/ruby/2.4.0/bin/puma:23:in `<main>'
Oh, so it requires exactly v2.0.6. So I went into the /gemfile to see if I could just kluge that (surely 2.0.10 will work??), but actually openssl is never mentioned.
Following the suggestion gets me this:
icmstdn@cloud4:~/apps/mastodon$ bundle exec vendor/bundle/ruby/2.4.0/bin/puma
[893] Puma starting in cluster mode...
[893] * Version 3.11.0 (ruby 2.4.2-p198), codename: Love Song
[893] * Min threads: 5, max threads: 5
[893] * Environment: development
[893] * Process workers: 2
[893] * Preloading application
[893] ! Unable to load application: NameError: uninitialized constant ActiveRecordQueryTrace
bundler: failed to load command: vendor/bundle/ruby/2.4.0/bin/puma (vendor/bundle/ruby/2.4.0/bin/puma)
NameError: uninitialized constant ActiveRecordQueryTrace
/home/icmstdn/apps/mastodon/vendor/bundle/ruby/2.4.0/gems/bootsnap-1.1.5/lib/bootsnap/load_path_cache/core_ext/active_support.rb:49:in `block in load_missing_constant'
/home/icmstdn/apps/mastodon/vendor/bundle/ruby/2.4.0/gems/bootsnap-1.1.5/lib/bootsnap/load_path_cache/core_ext/active_support.rb:8:in `without_bootsnap_cache'
/home/icmstdn/apps/mastodon/vendor/bundle/ruby/2.4.0/gems/bootsnap-1.1.5/lib/bootsnap/load_path_cache/core_ext/active_support.rb:49:in `rescue in load_missing_constant'
/home/icmstdn/apps/mastodon/vendor/bundle/ruby/2.4.0/gems/bootsnap-1.1.5/lib/bootsnap/load_path_cache/core_ext/active_support.rb:43:in `load_missing_constant'
/home/icmstdn/apps/mastodon/config/environments/development.rb:87:in `<top (required)>'
/home/icmstdn/apps/mastodon/vendor/bundle/ruby/2.4.0/gems/bootsnap-1.1.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:17:in `require'
/home/icmstdn/apps/mastodon/vendor/bundle/ruby/2.4.0/gems/bootsnap-1.1.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:17:in `require'
/home/icmstdn/apps/mastodon/vendor/bundle/ruby/2.4.0/gems/railties-5.1.4/lib/rails/engine.rb:600:in `block (2 levels) in <class:Engine>'
/home/icmstdn/apps/mastodon/vendor/bundle/ruby/2.4.0/gems/railties-5.1.4/lib/rails/engine.rb:599:in `each'
/home/icmstdn/apps/mastodon/vendor/bundle/ruby/2.4.0/gems/railties-5.1.4/lib/rails/engine.rb:599:in `block in <class:Engine>'
/home/icmstdn/apps/mastodon/vendor/bundle/ruby/2.4.0/gems/railties-5.1.4/lib/rails/initializable.rb:30:in `instance_exec'
/home/icmstdn/apps/mastodon/vendor/bundle/ruby/2.4.0/gems/railties-5.1.4/lib/rails/initializable.rb:30:in `run'
/home/icmstdn/apps/mastodon/vendor/bundle/ruby/2.4.0/gems/railties-5.1.4/lib/rails/initializable.rb:59:in `block in run_initializers'
/home/icmstdn/.rbenv/versions/2.4.2/lib/ruby/2.4.0/tsort.rb:228:in `block in tsort_each'
/home/icmstdn/.rbenv/versions/2.4.2/lib/ruby/2.4.0/tsort.rb:350:in `block (2 levels) in each_strongly_connected_component'
/home/icmstdn/.rbenv/versions/2.4.2/lib/ruby/2.4.0/tsort.rb:422:in `block (2 levels) in each_strongly_connected_component_from'
/home/icmstdn/.rbenv/versions/2.4.2/lib/ruby/2.4.0/tsort.rb:431:in `each_strongly_connected_component_from'
/home/icmstdn/.rbenv/versions/2.4.2/lib/ruby/2.4.0/tsort.rb:421:in `block in each_strongly_connected_component_from'
/home/icmstdn/apps/mastodon/vendor/bundle/ruby/2.4.0/gems/railties-5.1.4/lib/rails/initializable.rb:48:in `each'
/home/icmstdn/apps/mastodon/vendor/bundle/ruby/2.4.0/gems/railties-5.1.4/lib/rails/initializable.rb:48:in `tsort_each_child'
/home/icmstdn/.rbenv/versions/2.4.2/lib/ruby/2.4.0/tsort.rb:415:in `call'
/home/icmstdn/.rbenv/versions/2.4.2/lib/ruby/2.4.0/tsort.rb:415:in `each_strongly_connected_component_from'
/home/icmstdn/.rbenv/versions/2.4.2/lib/ruby/2.4.0/tsort.rb:349:in `block in each_strongly_connected_component'
/home/icmstdn/.rbenv/versions/2.4.2/lib/ruby/2.4.0/tsort.rb:347:in `each'
/home/icmstdn/.rbenv/versions/2.4.2/lib/ruby/2.4.0/tsort.rb:347:in `call'
/home/icmstdn/.rbenv/versions/2.4.2/lib/ruby/2.4.0/tsort.rb:347:in `each_strongly_connected_component'
/home/icmstdn/.rbenv/versions/2.4.2/lib/ruby/2.4.0/tsort.rb:226:in `tsort_each'
/home/icmstdn/.rbenv/versions/2.4.2/lib/ruby/2.4.0/tsort.rb:205:in `tsort_each'
/home/icmstdn/apps/mastodon/vendor/bundle/ruby/2.4.0/gems/railties-5.1.4/lib/rails/initializable.rb:58:in `run_initializers'
/home/icmstdn/apps/mastodon/vendor/bundle/ruby/2.4.0/gems/railties-5.1.4/lib/rails/application.rb:353:in `initialize!'
/home/icmstdn/apps/mastodon/config/environment.rb:5:in `<top (required)>'
config.ru:4:in `require'
config.ru:4:in `block in <main>'
/home/icmstdn/apps/mastodon/vendor/bundle/ruby/2.4.0/gems/rack-2.0.3/lib/rack/builder.rb:55:in `instance_eval'
/home/icmstdn/apps/mastodon/vendor/bundle/ruby/2.4.0/gems/rack-2.0.3/lib/rack/builder.rb:55:in `initialize'
config.ru:in `new'
config.ru:in `<main>'
/home/icmstdn/apps/mastodon/vendor/bundle/ruby/2.4.0/gems/rack-2.0.3/lib/rack/builder.rb:49:in `eval'
/home/icmstdn/apps/mastodon/vendor/bundle/ruby/2.4.0/gems/rack-2.0.3/lib/rack/builder.rb:49:in `new_from_string'
/home/icmstdn/apps/mastodon/vendor/bundle/ruby/2.4.0/gems/rack-2.0.3/lib/rack/builder.rb:40:in `parse_file'
/home/icmstdn/apps/mastodon/vendor/bundle/ruby/2.4.0/gems/puma-3.11.0/lib/puma/configuration.rb:318:in `load_rackup'
/home/icmstdn/apps/mastodon/vendor/bundle/ruby/2.4.0/gems/puma-3.11.0/lib/puma/configuration.rb:243:in `app'
/home/icmstdn/apps/mastodon/vendor/bundle/ruby/2.4.0/gems/puma-3.11.0/lib/puma/runner.rb:138:in `load_and_bind'
/home/icmstdn/apps/mastodon/vendor/bundle/ruby/2.4.0/gems/puma-3.11.0/lib/puma/cluster.rb:397:in `run'
/home/icmstdn/apps/mastodon/vendor/bundle/ruby/2.4.0/gems/puma-3.11.0/lib/puma/launcher.rb:183:in `run'
/home/icmstdn/apps/mastodon/vendor/bundle/ruby/2.4.0/gems/puma-3.11.0/lib/puma/cli.rb:77:in `run'
/home/icmstdn/apps/mastodon/vendor/bundle/ruby/2.4.0/gems/puma-3.11.0/bin/puma:10:in `<top (required)>'
vendor/bundle/ruby/2.4.0/bin/puma:23:in `load'
vendor/bundle/ruby/2.4.0/bin/puma:23:in `<top (required)>'
...and now out of time.