Hello everyone,
I’m trying to run a script sending email with docker. I guess I’m doing something wrong with port configuration but I don’t know what
Here are the logs I saw when trying to deploy
1 desired, 1 placed, 0 healthy, 1 unhealthy [health checks: 1 total, 1 critical]
Failed Instances
Failure #1
Instance
ID PROCESS VERSION REGION DESIRED STATUS HEALTH CHECKS RESTARTS CREATED
2bcb1ae3 app 0 cdg run running 1 total, 1 critical 0 4m53s ago
Recent Events
TIMESTAMP TYPE MESSAGE
2023-02-27T06:27:39Z Received Task received by client
2023-02-27T06:27:39Z Task Setup Building Task Directory
2023-02-27T06:28:02Z Started Task started by client
2023-02-27T06:27:46Z [info]Unpacking image
2023-02-27T06:27:53Z [info]Preparing kernel init
2023-02-27T06:27:53Z [info]Setting up volume 'appointment_data'
2023-02-27T06:27:53Z [info]Uninitialized volume 'appointment_data', initializing...
2023-02-27T06:27:53Z [info]Encrypting volume
2023-02-27T06:28:00Z [info]Opening encrypted volume
2023-02-27T06:28:02Z [info]Formatting volume
2023-02-27T06:28:02Z [info]Configuring firecracker
2023-02-27T06:28:02Z [info]Starting virtual machine
2023-02-27T06:28:02Z [info]Starting init (commit: 08b4c2b)...
2023-02-27T06:28:02Z [info]Mounting /dev/vdc at /data w/ uid: 0, gid: 0 and chmod 0755
2023-02-27T06:28:02Z [info]Preparing to run: `python main.py` as root
2023-02-27T06:28:02Z [info]2023/02/27 06:28:02 listening on [fdaa:0:b152:a7b:5adc:5:4907:2]:22 (DNS: [fdaa::3]:53)
--> v0 failed - Failed due to unhealthy allocations - no stable job version to auto revert to and deploying as v1
And here is my fly.toml file (I guess I can remove http and https configuration sections which are not useful in my use case since I’m not running a http service)
# fly.toml file generated for appointment on 2023-02-27T07:20:14+01:00
app = "appointment"
kill_signal = "SIGINT"
kill_timeout = 5
processes = []
[env]
[experimental]
auto_rollback = true
[mounts]
destination = "/data"
source = "appointment_data"
[[services]]
http_checks = []
internal_port = 587
processes = ["app"]
protocol = "tcp"
script_checks = []
[services.concurrency]
hard_limit = 25
soft_limit = 20
type = "connections"
[[services.ports]]
force_https = true
handlers = ["http"]
port = 80
[[services.ports]]
handlers = ["tls", "http"]
port = 443
[[services.tcp_checks]]
grace_period = "1s"
interval = "15s"
restart_limit = 0
timeout = "2s"
if anyone can tell me what I am doing wrong, I would be grateful