User:Woozle/Mastodon/setup/take 3/paste-8
< User:Woozle | Mastodon | setup | take 3
Jump to navigation
Jump to search
icmstdn@cloud4:~/apps/mastodon$ ~/.rbenv/shims/bundle exec puma -C config/puma.rb
[2870] Puma starting in cluster mode... [2870] * Version 3.11.0 (ruby 2.4.2-p198), codename: Love Song [2870] * Min threads: 5, max threads: 5 [2870] * Environment: production [2870] * Process workers: 2 [2870] * Preloading application Creating scope :cache_ids. Overwriting existing method Notification.cache_ids. [2870] * Listening on tcp://0.0.0.0:3000 bundler: failed to load command: puma (/home/icmstdn/apps/mastodon/vendor/bundle/ruby/2.4.0/bin/puma) Errno::EADDRINUSE: Address already in use - bind(2) for "0.0.0.0" port 3000 /home/icmstdn/apps/mastodon/vendor/bundle/ruby/2.4.0/gems/puma-3.11.0/lib/puma/binder.rb:270:in `initialize' /home/icmstdn/apps/mastodon/vendor/bundle/ruby/2.4.0/gems/puma-3.11.0/lib/puma/binder.rb:270:in `new' /home/icmstdn/apps/mastodon/vendor/bundle/ruby/2.4.0/gems/puma-3.11.0/lib/puma/binder.rb:270:in `add_tcp_listener' /home/icmstdn/apps/mastodon/vendor/bundle/ruby/2.4.0/gems/puma-3.11.0/lib/puma/binder.rb:105:in `block in parse' /home/icmstdn/apps/mastodon/vendor/bundle/ruby/2.4.0/gems/puma-3.11.0/lib/puma/binder.rb:88:in `each' /home/icmstdn/apps/mastodon/vendor/bundle/ruby/2.4.0/gems/puma-3.11.0/lib/puma/binder.rb:88:in `parse' /home/icmstdn/apps/mastodon/vendor/bundle/ruby/2.4.0/gems/puma-3.11.0/lib/puma/runner.rb:144: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)>' /home/icmstdn/apps/mastodon/vendor/bundle/ruby/2.4.0/bin/puma:23:in `load' /home/icmstdn/apps/mastodon/vendor/bundle/ruby/2.4.0/bin/puma:23:in `<top (required)>'
So now it's actually complaining about 0.0.0.0. Let's try the tcp://localhost thing:
icmstdn@cloud4:~/apps/mastodon$ ~/.rbenv/shims/bundle exec puma -C config/puma.rb -b tcp://localhost
[3272] Puma starting in cluster mode... [3272] * Version 3.11.0 (ruby 2.4.2-p198), codename: Love Song [3272] * Min threads: 5, max threads: 5 [3272] * Environment: production [3272] * Process workers: 2 [3272] * Preloading application Creating scope :cache_ids. Overwriting existing method Notification.cache_ids. [3272] * Listening on tcp://localhost [3272] Use Ctrl-C to stop [3272] - Worker 0 (pid: 3295) booted, phase: 0 [3272] - Worker 1 (pid: 3301) booted, phase: 0 ^C[3272] - Gracefully shutting down workers... [3272] === puma shutdown: 2018-01-09 18:39:49 +0000 === [3272] - Goodbye! icmstdn@cloud4:~/apps/mastodon$
That kinda looked like a happy process... and while that was running, I was getting a blank web page instead of errors.
So, I'm kinda thinking I should add that localhost option to the config file and try a proper systemctl restart.