#App got crashed without changing anything (just redeploy)

6 messages · Page 1 of 1 (latest)

stark island
#

Hi team,
Recently, I were in trouble when installing playwright. So I switched from railway.json to railpack.json to create a Docker file for deploying, and it worked.

But yesterday, I redeployed without changing anything, and I got a crash notification. I saw a successful build in the build log, but saw this error in the deploy log: /bin/bash: line 1: /app/.venv/bin/hypercorn: cannot execute: required file not found.

Here is the railpack.json file

{
    "$schema": "https://schema.railpack.com",
    "provider": "python",
    "steps": {
        "playwright": {
            "inputs": [
                {
                    "step": "build"
                }
            ],
            "commands": [
                "python -m playwright install --with-deps chromium"
            ]
        }
    },
    "deploy": {
        "inputs": [
            {
                "step": "playwright"
            }
        ],
        "startCommand": "hypercorn main:app --bind \"[::]:$PORT\""
    }
}

Any help would be great, thanks!

Here is the project_id: 86b6d50c-4a4d-423a-81d5-4e7a0d38cacd

shut prismBOT
#

Project ID: 86b6d50c-4a4d-423a-81d5-4e7a0d38cacd

vivid cragBOT
#

New reply sent from Help Station thread:

I had exact problem like you. I tried this and it resolved the problem:

  1. Update railpack.json to:
    {
    "$schema": "
    https://schema.railpack.com
    ",
    "provider": "python",
    "steps": {
    "playwright": {
    "inputs": [{ "step": "build" }],
    "commands": ["python -m playwright install --with-deps chromium"]
    }
    }
    }
  2. Create "Procfile" in same directory as railpack.json, and add this one line to the file (without quote marks):
    "web: hypercorn --bind 0.0.0.0:$PORT main:app"

You're seeing this because this thread has been automatically linked to the Help Station thread.

stark island
#

Thanks a lot for your support

thorny quiver
#

!s