Websocket broken with Portainer ?

Hi want to deploy Portainer on fly and connect to my vps with edge agent but the websocket seem to be broken, any idea why ?

portainer agent logs

portainer logs

fly.toml

# fly.toml file generated for REDACTED on REDACTED
app = "REDACTED"
kill_signal = "SIGINT"
kill_timeout = 5
processes = []

[build]
  image = "portainer/portainer-ce:latest"

[experimental]
  allowed_public_ports = []
  auto_rollback = true

[mounts]
  destination = "/data"
  source = "portainer_data"

[[services]]
  http_checks = []
  internal_port = 9000
  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.ports]]
    port = 9000

  [[services.tcp_checks]]
    grace_period = "1s"
    interval = "15s"
    restart_limit = 0
    timeout = "2s"
    
[[services]]
  http_checks = []
  internal_port = 8000
  processes = ["edge"]
  protocol = "tcp"
  script_checks = []
  [services.concurrency]
    hard_limit = 25
    soft_limit = 20
    type = "connections"

  [[services.ports]]
    port = 8000

  [[services.tcp_checks]]
    grace_period = "1s"
    interval = "15s"
    restart_limit = 0
    timeout = "2s" 
1 Like

Hi cfouche,

I’m currently try to deploy portainer on fly.io but i guess it will not work properly and just run into your post. Have you successfully done it or is there any workaround.

Hope you guys have a good day!

There’s no reason why it shouldn’t work :slight_smile:

@hophamlam can you give it a try? If it doesn’t work, we can help troubleshoot.

1 Like

That’s was my mistake in my fly.toml, this just makes me feel so dumb… sorry for bothering you guys.
By the way cfouche’s fly.toml is good, you guys can use it to deploy a Portainer instance, remember to change input :sweat_smile:

Thanks jerome, you rock :fire: :fire:

1 Like