Skip to content

[BUG] fatal: can only run as pid 1 when running on fly.io #395

@abitrolly

Description

@abitrolly

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

The image fails to run with fly.io.

$ fly logs
...
[info] INFO Preparing to run: `/init` as root
[info] INFO [fly api proxy] listening at /.fly/api
[info]s6-overlay-suexec: fatal: can only run as pid 1

It seems fly.io uses its own /init process [reference needed], which takes pid 1.

Expected Behavior

No response

Steps To Reproduce

Save this to fly.toml.

app = 'wgflyvpn'

[[services]]
  internal_port = 51820
  protocol = 'udp'

  [[services.ports]]
    port = 51820

[build]
  image = 'lscr.io/linuxserver/wireguard'

[env]
  PEERS = '1'

[mounts]
  source = 'wgflyvpn_data'
  destination = '/config'

Run

fly deploy

When it fails, run

fly logs

Environment

- OS:
- How docker service was installed:

CPU architecture

x86-64

Docker creation

fly deploy

Container logs

[info] INFO Preparing to run: `/init` as root
[info] INFO [fly api proxy] listening at /.fly/api
[info]s6-overlay-suexec: fatal: can only run as pid 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions