Report this

What is the reason for this report?

App Serverless functions returning code 126 when deploying.

Posted on April 12, 2023

I was mimicking this example repo to try to create a serverless function that imports the mysql python package so I can access my database cluster component of one of my projects.

I have the same structure in my git repo. My build.sh file is exactly the same. I have changed the requirements.txt file to only have the string mysql, corresponding with the package I need to talk with my MYSQL v8 DB. I even added a .env file that has the same string in the example: API_KEY="" just as a sanity check, although I’m not sure if this is required. When I go to deploy, all my other functions deploy fine (they do not import any libraries beyond boto3 & botocore for spaces access).

When I deploy my serverless functions I get this error:

[2023-04-12 16:09:48] │ Failures:
[2023-04-12 16:09:48] │  ›   Error: While deploying action 'user/get_profile_data': './build.sh' exited
[2023-04-12 16:09:48] │  ›    with code 126

I have consulted with two PHD experts I have contact with and they both concluded that it is likely a DO specific issue and did not have any readily available solutions to this problem.

Any help in remedying this would be greatly appreciated!

(PS I tried to log in as my own account to post this, however it would not allow me to so I had to post this as a community user. Where can I go to report this issue?)

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Start building today

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.