-
-
Notifications
You must be signed in to change notification settings - Fork 2k
Description
If you're using Dokku - especially for commercial purposes - consider donating to project development via OpenCollective or Patreon. Funds go to general development, support, and infrastructure costs.
If you need help figuring out how to use a specific buildpack, or are having issues using multiple buildpacks, please see our irc or slack channels. Issues pertaining to buildpacks may be closed and locked.
Description of problem
I successfully deployed my Ruby on Rails application in a Ubuntu root server at NetCup.
When I try to connect via browser to my server I get the following error message from Chromium: This site can’t be reached. cinemeeting.eu refused to connect. ERR_CONNECTION_REFUSED.
Firefox says "Unable to connect. Firefox can’t establish a connection to the server at cinemeeting.eu."
Maintenance mode works when it is on.
The following are my IPTABLES rules:
# Allow all loopback (lo0) traffic and reject traffic
# to localhost that does not originate from lo0.
-A INPUT -i lo -j ACCEPT
-A INPUT ! -i lo -s 127.0.0.0/8 -j REJECT
# Allow ping.
-A INPUT -p icmp -m state --state NEW --icmp-type 8 -j ACCEPT
# Allow SSH connections.
-A INPUT -p tcp --dport 22 -m state --state NEW -j ACCEPT
# Allow HTTP and HTTPS connections from anywhere
# (the normal ports for web servers).
-A INPUT -p tcp --dport 80 -m state --state NEW -j ACCEPT
-A INPUT -p tcp --dport 443 -m state --state NEW -j ACCEPT
# Allow inbound traffic from established connections.
# This includes ICMP error returns.
-A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
# Log what was incoming but denied (optional but useful).
-A INPUT -m limit --limit 5/min -j LOG --log-prefix "iptables_INPUT_denied: " --log-level 7
# Reject all other inbound.
-A INPUT -j REJECT
# Log any traffic that was sent to you
# for forwarding (optional but useful).
-A FORWARD -m limit --limit 5/min -j LOG --log-prefix "iptables_FORWARD_denied: " --log-level 7
# Reject all traffic forwarding.
-A FORWARD -j REJECT
How reproducible
Steps to Reproduce
- Simply try to connect to cinemeeting.eu via browser
Actual Results
Your connection will be refused
Expected Results
My application should show up
Environment Information
dokku report APP_NAME output
This is required! Issues missing this information may be closed.
For problems affecting all applications, the report output for a broken application is useful for our debugging.
You may also rundokku reportwithout any arguments to display the top-level reporting information.
$ dokku report cinemeeting_app
[sudo] password for user:
-----> uname: Linux rocinante 4.15.0-74-generic #84-Ubuntu SMP Thu Dec 19 08:06:28 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
-----> memory:
total used free shared buff/cache available
Mem: 7976 661 3091 24 4223 7226
Swap: 8191 0 8191
-----> docker version:
Client: Docker Engine - Community
Version: 19.03.5
API version: 1.40
Go version: go1.12.12
Git commit: 633a0ea838
Built: Wed Nov 13 07:29:52 2019
OS/Arch: linux/amd64
Experimental: false
Server: Docker Engine - Community
Engine:
Version: 19.03.5
API version: 1.40 (minimum version 1.12)
Go version: go1.12.12
Git commit: 633a0ea838
Built: Wed Nov 13 07:28:22 2019
OS/Arch: linux/amd64
Experimental: false
containerd:
Version: 1.2.10
GitCommit: b34a5c8af56e510852c35414db4c1f4fa6172339
runc:
Version: 1.0.0-rc8+dev
GitCommit: 3e425f80a8c931f88e6d94a8c831b9d5aa481657
docker-init:
Version: 0.18.0
GitCommit: fec3683
-----> docker daemon info:
Client:
Debug Mode: true
Server:
Containers: 15
Running: 5
Paused: 0
Stopped: 10
Images: 16
Server Version: 19.03.5
Storage Driver: overlay2
Backing Filesystem: extfs
Supports d_type: true
WARNING: No swap limit support
Native Overlay Diff: true
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
Volume: local
Network: bridge host ipvlan macvlan null overlay
Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog
Swarm: inactive
Runtimes: runc
Default Runtime: runc
Init Binary: docker-init
containerd version: b34a5c8af56e510852c35414db4c1f4fa6172339
runc version: 3e425f80a8c931f88e6d94a8c831b9d5aa481657
init version: fec3683
Security Options:
apparmor
seccomp
Profile: default
Kernel Version: 4.15.0-74-generic
Operating System: Ubuntu 18.04.3 LTS
OSType: linux
Architecture: x86_64
CPUs: 2
Total Memory: 7.79GiB
Name: rocinante
ID: QWLE:G63M:FPIA:TX2P:V2WM:NE43:A3WR:UKVP:YWII:I5QJ:BUSK:FHHO
Docker Root Dir: /var/lib/docker
Debug Mode: false
Registry: https://index.docker.io/v1/
Labels:
Experimental: false
Insecure Registries:
127.0.0.0/8
Live Restore Enabled: false
-----> sigil version: 0.4.0
-----> herokuish version:
herokuish: 0.5.5
buildpacks:
heroku-buildpack-multi v1.0.0
heroku-buildpack-ruby v207
heroku-buildpack-nodejs v166
heroku-buildpack-clojure v84
heroku-buildpack-python v162
heroku-buildpack-java v66
heroku-buildpack-gradle v31
heroku-buildpack-scala v86
heroku-buildpack-play v26
heroku-buildpack-php v166
heroku-buildpack-go v136
buildpack-nginx v12
-----> dokku version: dokku version 0.19.12
-----> dokku plugins:
plugn: 0.3.2
00_dokku-standard 0.19.12 enabled dokku core standard plugin
20_events 0.19.12 enabled dokku core events logging plugin
app-json 0.19.12 enabled dokku core app-json plugin
apps 0.19.12 enabled dokku core apps plugin
builder-dockerfile 0.19.12 enabled dokku core builder-dockerfile plugin
builder-herokuish 0.19.12 enabled dokku core builder-herokuish plugin
buildpacks 0.19.12 enabled dokku core buildpacks plugin
certs 0.19.12 enabled dokku core certificate management plugin
checks 0.19.12 enabled dokku core checks plugin
common 0.19.12 enabled dokku core common plugin
config 0.19.12 enabled dokku core config plugin
docker-options 0.19.12 enabled dokku core docker-options plugin
domains 0.19.12 enabled dokku core domains plugin
enter 0.19.12 enabled dokku core enter plugin
git 0.19.12 enabled dokku core git plugin
letsencrypt 0.9.1 enabled Automated installation of let's encrypt TLS certificates
logs 0.19.12 enabled dokku core logs plugin
maintenance 0.5.0 enabled Maintenance mode for apps
network 0.19.12 enabled dokku core network plugin
nginx-vhosts 0.19.12 enabled dokku core nginx-vhosts plugin
plugin 0.19.12 enabled dokku core plugin plugin
postgres 1.9.5 enabled dokku postgres service plugin
proxy 0.19.12 enabled dokku core proxy plugin
ps 0.19.12 enabled dokku core ps plugin
redis 1.10.4 enabled dokku redis service plugin
repo 0.19.12 enabled dokku core repo plugin
resource 0.19.12 enabled dokku core resource plugin
scheduler-docker-local 0.19.12 enabled dokku core scheduler-docker-local plugin
shell 0.19.12 enabled dokku core shell plugin
ssh-keys 0.19.12 enabled dokku core ssh-keys plugin
storage 0.19.12 enabled dokku core storage plugin
tags 0.19.12 enabled dokku core tags plugin
tar 0.19.12 enabled dokku core tar plugin
trace 0.19.12 enabled dokku core trace plugin
=====> cinemeeting_app app information
App dir: /home/dokku/cinemeeting_app
Git sha: 2c4bf48
Deploy source: git
Locked: false
=====> cinemeeting_app buildpacks information
Buildpacks list:
=====> cinemeeting_app ssl information
Ssl dir: /home/dokku/cinemeeting_app/tls
Ssl enabled: false
Ssl hostnames:
Ssl expires at:
Ssl issuer:
Ssl starts at:
Ssl subject:
Ssl verified:
=====> cinemeeting_app checks information
Checks disabled list: none
Checks skipped list: none
=====> cinemeeting_app docker options information
Docker options build: --link dokku.postgres.cinemeeting_postgres:dokku-postgres-cinemeeting-postgres --link dokku.redis.cinemeeting_redis:dokku-redis-cinemeeting-redis
Docker options deploy: --link dokku.postgres.cinemeeting_postgres:dokku-postgres-cinemeeting-postgres --link dokku.redis.cinemeeting_redis:dokku-redis-cinemeeting-redis --restart=on-failure:10
Docker options run: --link dokku.postgres.cinemeeting_postgres:dokku-postgres-cinemeeting-postgres --link dokku.redis.cinemeeting_redis:dokku-redis-cinemeeting-redis
=====> cinemeeting_app domains information
Domains app enabled: true
Domains app vhosts: cinemeeting.eu www.cinemeeting.eu
Domains global enabled: false
Domains global vhosts:
=====> cinemeeting_app git information
Git deploy branch: master
Git global deploy branch: master
Git keep git dir: false
Git rev env var: GIT_REV
=====> cinemeeting_app network information
Network listeners: 172.17.0.5:5000
Network bind all interfaces: false
=====> cinemeeting_app nginx information
Nginx bind address ipv4:
Nginx bind address ipv6: ::
=====> cinemeeting_app proxy information
Proxy enabled: true
Proxy type: nginx
Proxy port map: http:80:5000
=====> cinemeeting_app ps information
Processes: 3
Deployed: true
Running: true
Restore: true
Restart policy: on-failure:10
Ps can scale: true
Status web.1: running (CID: c013a225ac84)
Status worker.1: running (CID: 3d2e26c9bf11)
Status worker.2: running (CID: b6b34dc2bde5)
=====> cinemeeting_app scheduler-docker-local information
Scheduler docker local disable chown:
=====> cinemeeting_app storage information
Storage build mounts:
Storage deploy mounts:
Storage run mounts:
How (deb/make/rpm) and where (AWS, VirtualBox, physical, etc.) was Dokku installed?:
Dokku was installed in a Ubuntu root server at netcup with the following commands:
wget https://raw.githubusercontent.com/dokku/dokku/v0.19.13/bootstrap.sh;
sudo DOKKU_TAG=v0.19.13 bash bootstrap.sh
Additional information
-
Container Inspect Output (if applicable) via
dokku ps:inspect APP_NAME
$ dokku ps:inspect cinemeeting_app
Error: No such container -
The nginx configuration (if applicable) via
dokku nginx:show-conf
$ dokku nginx:show-conf
APP must not be null -
Link to the exact repository being deployed (if possible/applicable):
-
If a deploy is failing or behaving unexpectedly:
- Application name
- The type of application being deployed (node, php, python, ruby, etc.)
- If using buildpacks, which custom buildpacks are in use
- If using a
Dockerfile, the contents of that file - If it exists, the contents of your
Procfile.
-
Output of failing Dokku commands after running
dokku trace:on
(BEWARE:trace:onwill print environment variables for some commands, be sure you're not exposing any sensitive information when posting issues. You may replace these values with XXXXXX):