Unable to deploy shiny for python app to shinyapps.io: Unhandled Exception: Child Task 1268546154 failed

Hi all, I have seen an existing post that was closed on this topic: [Cannot deploy python shiny app to shinyapps.io - Exception: Child Task 1234081549 failed]

However I'm still having issues with this problem.. for context I've followed documentation on the following:

  • Python 3.9.13 environment setup for Shiny
  • RSConnect 1.10.0 used
  • Setup account on shinyapps.io
  • rsconnect add --account --name --token --secret
  • made requirements.txt file with pip freeze
  • rsconnect deploy shiny /path/to/app --name --title my-app

The app i've written works fine on my local server, however when deploying it kicks up this error:

    [ERROR]: shinyapps io reported an error (calling /v1/tasks/1268546152?legacy=true): Unhandled Exception: Child Task 1268546154 failed: Error 

building image: Build exited with non-zero status: 1
Error: shinyapps io reported an error (calling /v1/tasks/1268546152?legacy=true): Unhandled Exception: Child Task 1268546154 failed: Error building ibuilding image: Build exited with non-zero status: 1mage: Build exited with non-zero status: 1 mage: Build exited with non-zero status: 1

The app does show up as "undeployed" on shinyapps io, but I can't open it.

image

1 Like

I'm having exactly the same problem.... Did you manage to solve it?

I'm using Python 3.9.13 and RSConnect-Python 1.16.0.

Thanks

Would either of you be able to post the code you are trying to deploy so that I can replicate it? If possible it would be great to include the output of rsconnect write-manifest shiny .

I'm trying to deploy with rsconnect.exe deploy shiny propCI --name [name] --title [title] and I find the deployment error.

the output of rsconnect write-manifest shiny . is:

{
  "version": 1,
  "locale": "English_United States.1252",
  "metadata": {
    "appmode": "python-shiny",
    "entrypoint": "app"
  },
  "python": {
    "version": "3.11.5",
    "package_manager": {
      "name": "pip",
      "version": "23.3.1",
      "package_file": "requirements.txt"
    }
  },
  "files": {
    "requirements.txt": {
      "checksum": "9e4887448c362930cb992116053b9a77"
    },
    "README.md": {
      "checksum": "a85eb3ca1dd8d549943727676e9d9991"
    },
    "app.py": {
      "checksum": "9242b2147ac087dd852ff398ab814580"
    }
  }
}

Hello friend, I managed to solve it. I was having a similar problem. I left the step by step on my github:

https://github.com/maiconcentner/deploy_app_shiny_python