adamcooke / staytus

💡 An open source solution for publishing the status of your services
http://staytus.co
MIT License
2.17k stars 285 forks source link

Can't start due to PID directory #321

Closed ilyarust closed 4 years ago

ilyarust commented 4 years ago

So I attempted to continue the installation tutorial today using sudo -u staytus procodile start --dev

It returned me this error

Error: The PID directory (/opt/staytus/staytus/tmp/pids) is not empty. Cannot start unless things are clean.

I am new to all of this and just assumed it meant I had to delete these files and now that I deleted the files every time I try to start using the command mentioned above it starts and returns this

16:43:04 web.1 | => /opt/staytus/staytus/vendor/bundle/ruby/2.5.0/gems/puma-3.11.3/lib/puma/binder.rb:270:in `initialize': Address already in use - bind(2) for "0.0.0.0" port 8787 (Errno::EADDRINUSE)

16:43:04 web.1 | => from /opt/staytus/staytus/vendor/bundle/ruby/2.5.0/gems/puma-3.11.3/lib/puma/binder.rb:270:in `new'

16:43:04 web.1 | => from /opt/staytus/staytus/vendor/bundle/ruby/2.5.0/gems/puma-3.11.3/lib/puma/binder.rb:270:in `add_tcp_listener'

16:43:04 web.1 | => from /opt/staytus/staytus/vendor/bundle/ruby/2.5.0/gems/puma-3.11.3/lib/puma/binder.rb:105:in `block in parse'

16:43:04 web.1 | => from /opt/staytus/staytus/vendor/bundle/ruby/2.5.0/gems/puma-3.11.3/lib/puma/binder.rb:88:in `each'

16:43:04 web.1 | => from /opt/staytus/staytus/vendor/bundle/ruby/2.5.0/gems/puma-3.11.3/lib/puma/binder.rb:88:in `parse'

16:43:04 web.1 | => from /opt/staytus/staytus/vendor/bundle/ruby/2.5.0/gems/puma-3.11.3/lib/puma/runner.rb:144:in `load_and_bind'

16:43:04 web.1 | => from /opt/staytus/staytus/vendor/bundle/ruby/2.5.0/gems/puma-3.11.3/lib/puma/single.rb:87:in `run'

16:43:04 web.1 | => from /opt/staytus/staytus/vendor/bundle/ruby/2.5.0/gems/puma-3.11.3/lib/puma/launcher.rb:183:in `run'

16:43:04 web.1 | => from /opt/staytus/staytus/vendor/bundle/ruby/2.5.0/gems/puma-3.11.3/lib/puma/cli.rb:77:in `run'

16:43:04 web.1 | => from /opt/staytus/staytus/vendor/bundle/ruby/2.5.0/gems/puma-3.11.3/bin/puma:10:in `<top (required)>'

16:43:04 web.1 | => from /opt/staytus/staytus/vendor/bundle/ruby/2.5.0/bin/puma:23:in `load'

16:43:04 web.1 | => from /opt/staytus/staytus/vendor/bundle/ruby/2.5.0/bin/puma:23:in `

'

16:43:05 web.1 | Process has stopped. Respawning not available.

16:43:05 web.1 | Removed PID file

I don't know if this is fixable and how I can handle this so I was hoping someone would be able to help. Thanks!