Skip to content
This repository has been archived by the owner on Nov 10, 2021. It is now read-only.

Connection refused #15

Open
s-h-a-d-o-w opened this issue Oct 22, 2019 · 0 comments
Open

Connection refused #15

s-h-a-d-o-w opened this issue Oct 22, 2019 · 0 comments

Comments

@s-h-a-d-o-w
Copy link

Using dokku 0.19.1 (on Ubuntu 18.04.3), I get:

curl: (7) Failed to connect to <My server IP> port 42143: Connection refused

It doesn't even work on the machine itself, using localhost.
Some debug output:

root@machine-name:~# dokku ps:report dokku-api
=====> dokku-api ps information
       Processes:                     2
       Deployed:                      true
       Running:                       true
       Restore:                       true
       Restart policy:                on-failure:10
       Ps can scale:                  true
       Status web.1:                  running    (CID: f5869ed00d7c)
       Status worker.1:               running    (CID: 330958cc7024)
root@machine-name:~/dokku-daemon# dokku logs dokku-api
2019-10-21T22:33:50.536853758Z app[worker.1]: 8 TID-gqdpocfk4 INFO: Booting Sidekiq 4.2.9 with redis options {:url=>"redis://dokku-api:REDACTED@dokku-redis-dokku-api:6379"}
2019-10-21T22:33:50.586255316Z app[worker.1]: /app/vendor/bundle/ruby/2.5.0/gems/data_objects-0.10.17/lib/data_objects/pooling.rb:149: warning: constant ::Fixnum is deprecated
2019-10-21T22:33:50.674070714Z app[worker.1]: 8 TID-gqdpocfk4 INFO: Booting Sidekiq 4.2.9 with redis options {:url=>"redis://dokku-api:REDACTED@dokku-redis-dokku-api:6379"}
2019-10-21T22:33:50.674619179Z app[worker.1]: 8 TID-gqdpocfk4 INFO: Running in ruby 2.5.5p157 (2019-03-15 revision 67260) [x86_64-linux]
2019-10-21T22:33:50.674673372Z app[worker.1]: 8 TID-gqdpocfk4 INFO: See LICENSE and the LGPL-3.0 for licensing details.
2019-10-21T22:33:50.674702368Z app[worker.1]: 8 TID-gqdpocfk4 INFO: Upgrade to Sidekiq Pro for more features and support: http://sidekiq.org
2019-10-21T22:33:50.679925948Z app[worker.1]: 8 TID-gqdpocfk4 DEBUG: Client Middleware:
2019-10-21T22:33:50.683998418Z app[worker.1]: 8 TID-gqdpocfk4 DEBUG: Server Middleware: Sidekiq::Middleware::Server::Logging, Sidekiq::Middleware::Server::RetryJobs
2019-10-21T22:33:50.684052009Z app[worker.1]: 8 TID-gqdpocfk4 INFO: Starting processing, hit Ctrl-C to stop
2019-10-21T22:33:50.706901305Z app[worker.1]: 8 TID-gqdpocfk4 DEBUG: {:queues=>["default"], :labels=>[], :concurrency=>1, :require=>"./workers/command_runner.rb", :environment=>nil, :timeout=>8, :poll_interval_average=>nil, :average_scheduled_poll_interval=>15, :error_handlers=>[#<Sidekiq::ExceptionHandler::Logger:0x000055dd944cdcc8>], :lifecycle_events=>{:startup=>[], :quiet=>[], :shutdown=>[], :heartbeat=>[]}, :dead_max_jobs=>10000, :dead_timeout_in_seconds=>15552000, :reloader=>#<Proc:0x000055dd9456ded0@/app/vendor/bundle/ruby/2.5.0/gems/sidekiq-4.2.9/lib/sidekiq.rb:35>, :executor=>#<Proc:0x000055dd9456dea8@/app/vendor/bundle/ruby/2.5.0/gems/sidekiq-4.2.9/lib/sidekiq.rb:36>, :verbose=>true, :pidfile=>"./sidekiq.pid", :config_file=>"./config/sidekiq.yml", :strict=>true, :identity=>"worker.1:8:f9f4115e4f39"}
2019-10-21T22:33:36.235475069Z app[web.1]: [8] Puma starting in cluster mode...
2019-10-21T22:33:36.236010231Z app[web.1]: [8] * Version 3.9.1 (ruby 2.5.5-p157), codename: Private Caller
2019-10-21T22:33:36.236061574Z app[web.1]: [8] * Min threads: 1, max threads: 4
2019-10-21T22:33:36.236135831Z app[web.1]: [8] * Environment: development
2019-10-21T22:33:36.236168885Z app[web.1]: [8] * Process workers: 2
2019-10-21T22:33:36.236194780Z app[web.1]: [8] * Phased restart available
2019-10-21T22:33:36.237516885Z app[web.1]: [8] * Listening on tcp://0.0.0.0:5000
2019-10-21T22:33:36.237750183Z app[web.1]: [8] Use Ctrl-C to stop
2019-10-21T22:33:37.479033088Z app[web.1]: /app/vendor/bundle/ruby/2.5.0/gems/data_objects-0.10.17/lib/data_objects/pooling.rb:149: warning: constant ::Fixnum is deprecated
2019-10-21T22:33:37.485165561Z app[web.1]: /app/vendor/bundle/ruby/2.5.0/gems/data_objects-0.10.17/lib/data_objects/pooling.rb:149: warning: constant ::Fixnum is deprecated
2019-10-21T22:33:37.784598404Z app[web.1]: /app/vendor/bundle/ruby/2.5.0/gems/dm-migrations-1.2.0/lib/dm-migrations/adapters/dm-do-adapter.rb:100:in `execute_non_query': ERROR:  duplicate key value violates unique constraint "pg_type_typname_nsp_index" (DataObjects::IntegrityError)
2019-10-21T22:33:37.784638940Z app[web.1]: DETAIL:  Key (typname, typnamespace)=(commands_id_seq, 2200) already exists.
2019-10-21T22:33:37.784722360Z app[web.1]:      from /app/vendor/bundle/ruby/2.5.0/gems/dm-migrations-1.2.0/lib/dm-migrations/adapters/dm-do-adapter.rb:100:in `block (2 levels) in create_model_storage'
2019-10-21T22:33:37.784750437Z app[web.1]:      from /app/vendor/bundle/ruby/2.5.0/gems/dm-migrations-1.2.0/lib/dm-migrations/adapters/dm-do-adapter.rb:98:in `each'
2019-10-21T22:33:37.784788269Z app[web.1]:      from /app/vendor/bundle/ruby/2.5.0/gems/dm-migrations-1.2.0/lib/dm-migrations/adapters/dm-do-adapter.rb:98:in `block in create_model_storage'
2019-10-21T22:33:37.784817507Z app[web.1]:      from /app/vendor/bundle/ruby/2.5.0/gems/dm-do-adapter-1.2.0/lib/dm-do-adapter/adapter.rb:276:in `with_connection'
2019-10-21T22:33:37.784843843Z app[web.1]:      from /app/vendor/bundle/ruby/2.5.0/gems/dm-migrations-1.2.0/lib/dm-migrations/adapters/dm-do-adapter.rb:93:in `create_model_storage'
2019-10-21T22:33:37.784882416Z app[web.1]:      from /app/vendor/bundle/ruby/2.5.0/gems/dm-migrations-1.2.0/lib/dm-migrations/adapters/dm-postgres-adapter.rb:23:in `block in create_model_storage'
2019-10-21T22:33:37.784911311Z app[web.1]:      from /app/vendor/bundle/ruby/2.5.0/gems/dm-migrations-1.2.0/lib/dm-migrations/adapters/dm-postgres-adapter.rb:58:in `without_notices'
2019-10-21T22:33:37.784937579Z app[web.1]:      from /app/vendor/bundle/ruby/2.5.0/gems/dm-migrations-1.2.0/lib/dm-migrations/adapters/dm-postgres-adapter.rb:23:in `create_model_storage'
2019-10-21T22:33:37.784978911Z app[web.1]:      from /app/vendor/bundle/ruby/2.5.0/gems/dm-migrations-1.2.0/lib/dm-migrations/adapters/dm-do-adapter.rb:57:in `upgrade_model_storage'
2019-10-21T22:33:37.785005000Z app[web.1]:      from /app/vendor/bundle/ruby/2.5.0/gems/dm-migrations-1.2.0/lib/dm-migrations/adapters/dm-postgres-adapter.rb:18:in `block in upgrade_model_storage'
2019-10-21T22:33:37.785030443Z app[web.1]:      from /app/vendor/bundle/ruby/2.5.0/gems/dm-migrations-1.2.0/lib/dm-migrations/adapters/dm-postgres-adapter.rb:58:in `without_notices'
2019-10-21T22:33:37.785073080Z app[web.1]:      from /app/vendor/bundle/ruby/2.5.0/gems/dm-migrations-1.2.0/lib/dm-migrations/adapters/dm-postgres-adapter.rb:18:in `upgrade_model_storage'
2019-10-21T22:33:37.785109150Z app[web.1]:      from /app/vendor/bundle/ruby/2.5.0/gems/dm-migrations-1.2.0/lib/dm-migrations/auto_migration.rb:73:in `upgrade_model_storage'
2019-10-21T22:33:37.785150111Z app[web.1]:      from /app/vendor/bundle/ruby/2.5.0/gems/dm-migrations-1.2.0/lib/dm-migrations/auto_migration.rb:145:in `auto_upgrade!'
2019-10-21T22:33:37.785175840Z app[web.1]:      from /app/vendor/bundle/ruby/2.5.0/gems/dm-migrations-1.2.0/lib/dm-migrations/auto_migration.rb:47:in `block in repository_execute'
2019-10-21T22:33:37.785214125Z app[web.1]:      from /app/vendor/bundle/ruby/2.5.0/gems/dm-core-1.2.1/lib/dm-core/support/descendant_set.rb:64:in `block in each'
2019-10-21T22:33:37.785242809Z app[web.1]:      from /app/vendor/bundle/ruby/2.5.0/gems/dm-core-1.2.1/lib/dm-core/support/subject_set.rb:211:in `block in each'
2019-10-21T22:33:37.785268256Z app[web.1]:      from /app/vendor/bundle/ruby/2.5.0/gems/dm-core-1.2.1/lib/dm-core/support/ordered_set.rb:320:in `block in each'
2019-10-21T22:33:37.785305881Z app[web.1]:      from /app/vendor/bundle/ruby/2.5.0/gems/dm-core-1.2.1/lib/dm-core/support/ordered_set.rb:320:in `each'
2019-10-21T22:33:37.785334308Z app[web.1]:      from /app/vendor/bundle/ruby/2.5.0/gems/dm-core-1.2.1/lib/dm-core/support/ordered_set.rb:320:in `each'
2019-10-21T22:33:37.785359640Z app[web.1]:      from /app/vendor/bundle/ruby/2.5.0/gems/dm-core-1.2.1/lib/dm-core/support/subject_set.rb:211:in `each'
2019-10-21T22:33:37.785403232Z app[web.1]:      from /app/vendor/bundle/ruby/2.5.0/gems/dm-core-1.2.1/lib/dm-core/support/descendant_set.rb:63:in `each'
2019-10-21T22:33:37.785431885Z app[web.1]:      from /app/vendor/bundle/ruby/2.5.0/gems/dm-migrations-1.2.0/lib/dm-migrations/auto_migration.rb:46:in `repository_execute'
2019-10-21T22:33:37.785458673Z app[web.1]:      from /app/vendor/bundle/ruby/2.5.0/gems/dm-migrations-1.2.0/lib/dm-migrations/auto_migration.rb:27:in `auto_upgrade!'
2019-10-21T22:33:37.785521909Z app[web.1]:      from /app/config/environment.rb:26:in `block in <top (required)>'
2019-10-21T22:33:37.785549416Z app[web.1]:      from /app/vendor/bundle/ruby/2.5.0/gems/sinatra-1.4.8/lib/sinatra/base.rb:1411:in `configure'
2019-10-21T22:33:37.785575298Z app[web.1]:      from /app/vendor/bundle/ruby/2.5.0/gems/sinatra-1.4.8/lib/sinatra/base.rb:1981:in `block (2 levels) in delegate'
2019-10-21T22:33:37.785616159Z app[web.1]:      from /app/config/environment.rb:18:in `<top (required)>'
2019-10-21T22:33:37.785641345Z app[web.1]:      from /app/app.rb:4:in `require'
2019-10-21T22:33:37.785679323Z app[web.1]:      from /app/app.rb:4:in `<top (required)>'
2019-10-21T22:33:37.785707156Z app[web.1]:      from config.ru:1:in `require'
2019-10-21T22:33:37.785732310Z app[web.1]:      from config.ru:1:in `block in <main>'
2019-10-21T22:33:37.785771005Z app[web.1]:      from /app/vendor/bundle/ruby/2.5.0/gems/rack-1.6.5/lib/rack/builder.rb:55:in `instance_eval'
2019-10-21T22:33:37.785799611Z app[web.1]:      from /app/vendor/bundle/ruby/2.5.0/gems/rack-1.6.5/lib/rack/builder.rb:55:in `initialize'
2019-10-21T22:33:37.785824809Z app[web.1]:      from config.ru:in `new'
2019-10-21T22:33:37.785862343Z app[web.1]:      from config.ru:in `<main>'
2019-10-21T22:33:37.785894924Z app[web.1]:      from /app/vendor/bundle/ruby/2.5.0/gems/rack-1.6.5/lib/rack/builder.rb:49:in `eval'
2019-10-21T22:33:37.785920170Z app[web.1]:      from /app/vendor/bundle/ruby/2.5.0/gems/rack-1.6.5/lib/rack/builder.rb:49:in `new_from_string'
2019-10-21T22:33:37.785965696Z app[web.1]:      from /app/vendor/bundle/ruby/2.5.0/gems/rack-1.6.5/lib/rack/builder.rb:40:in `parse_file'
2019-10-21T22:33:37.785991199Z app[web.1]:      from /app/vendor/bundle/ruby/2.5.0/gems/puma-3.9.1/lib/puma/configuration.rb:313:in `load_rackup'
2019-10-21T22:33:37.786016103Z app[web.1]:      from /app/vendor/bundle/ruby/2.5.0/gems/puma-3.9.1/lib/puma/configuration.rb:242:in `app'
2019-10-21T22:33:37.786060442Z app[web.1]:      from /app/vendor/bundle/ruby/2.5.0/gems/puma-3.9.1/lib/puma/runner.rb:148:in `app'
2019-10-21T22:33:37.786087855Z app[web.1]:      from /app/vendor/bundle/ruby/2.5.0/gems/puma-3.9.1/lib/puma/runner.rb:155:in `start_server'
2019-10-21T22:33:37.786127932Z app[web.1]:      from /app/vendor/bundle/ruby/2.5.0/gems/puma-3.9.1/lib/puma/cluster.rb:261:in `worker'
2019-10-21T22:33:37.786157438Z app[web.1]:      from /app/vendor/bundle/ruby/2.5.0/gems/puma-3.9.1/lib/puma/cluster.rb:126:in `block (2 levels) in spawn_workers'
2019-10-21T22:33:37.786182903Z app[web.1]:      from /app/vendor/bundle/ruby/2.5.0/gems/puma-3.9.1/lib/puma/cluster.rb:126:in `fork'
2019-10-21T22:33:37.786221397Z app[web.1]:      from /app/vendor/bundle/ruby/2.5.0/gems/puma-3.9.1/lib/puma/cluster.rb:126:in `block in spawn_workers'
2019-10-21T22:33:37.786249356Z app[web.1]:      from /app/vendor/bundle/ruby/2.5.0/gems/puma-3.9.1/lib/puma/cluster.rb:122:in `times'
2019-10-21T22:33:37.786274462Z app[web.1]:      from /app/vendor/bundle/ruby/2.5.0/gems/puma-3.9.1/lib/puma/cluster.rb:122:in `spawn_workers'
2019-10-21T22:33:37.786312672Z app[web.1]:      from /app/vendor/bundle/ruby/2.5.0/gems/puma-3.9.1/lib/puma/cluster.rb:447:in `run'
2019-10-21T22:33:37.786340970Z app[web.1]:      from /app/vendor/bundle/ruby/2.5.0/gems/puma-3.9.1/lib/puma/launcher.rb:174:in `run'
2019-10-21T22:33:37.786389338Z app[web.1]:      from /app/vendor/bundle/ruby/2.5.0/gems/puma-3.9.1/lib/puma/cli.rb:77:in `run'
2019-10-21T22:33:37.786424388Z app[web.1]:      from /app/vendor/bundle/ruby/2.5.0/gems/puma-3.9.1/bin/puma:10:in `<top (required)>'
2019-10-21T22:33:37.786449668Z app[web.1]:      from /app/vendor/bundle/bin/puma:17:in `load'
2019-10-21T22:33:37.786495221Z app[web.1]:      from /app/vendor/bundle/bin/puma:17:in `<main>'
2019-10-21T22:33:37.902276394Z app[web.1]: [8] - Worker 1 (pid: 164) booted, phase: 0
2019-10-21T22:33:38.204429333Z app[web.1]: /app/vendor/bundle/ruby/2.5.0/gems/data_objects-0.10.17/lib/data_objects/pooling.rb:149: warning: constant ::Fixnum is deprecated
2019-10-21T22:33:38.264221087Z app[web.1]: [8] - Worker 0 (pid: 172) booted, phase: 0
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant