Skip to content

Container exiting with code 0 makes workflow fail #136

Description

@mszulik

Note: This is for v5, as I couldn't test it with v6 yet

We have a container which exits with status code 0 after running a command.
After this, the workflow shows as failed, but the server is running and everything is working fine.

 Container app-app-1  Healthy
 Container app-worker-transcoding-1  Healthy
 Container app-worker-client-notifications-1  Healthy
 Container app-worker-email-1  Healthy
container app-initialize-1 exited (0)

You can access your application at the following URL:
  [http://pr-105-new-base-images-ip-63-185-94-53.my.preview.run:80](http://pr-105-new-base-images-ip-63-185-94-53.my.preview.run/)


To connect to the instance
  ssh ec2-user@63.185.94.53

Then to view the logs:
  docker-compose logs --tail 1000 -f

I, [2026-06-29T07:17:19.461775 #1]  INFO -- : Setting commit status for repo="cybex-gmbh/transmorpher", sha="a41645b09de8dcd83647444a55ed475b43bb49b7", status=:error, params={:context=>"PullPreview", :description=>"Environment error"}
I, [2026-06-29T07:17:19.796242 #1]  INFO -- : Setting deployment status for repo="cybex-gmbh/transmorpher", branch="chore/new-base-images", sha="a41645b09de8dcd83647444a55ed475b43bb49b7", status=:error, params={:headers=>{:accept=>"application/vnd.github.ant-man-preview+json"}, :auto_inactive=>true}
Error: Trying to launch the application failed. Please see the logs above to troubleshoot the issue and for informations on how to connect to the instance
E, [2026-06-29T07:17:20.350147 #1] ERROR -- : /app/lib/pull_preview/up.rb:88:in `run'
/app/lib/pull_preview/github_sync.rb:175:in `sync!'
/app/lib/pull_preview/github_sync.rb:28:in `run'
/app/bin/pullpreview:86:in `<main>'

Full logs: https://github.com/cybex-gmbh/transmorpher/actions/runs/28354943965/job/83995700882?pr=105

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions