[Bug]: DataApiBuilder SIGTERM with Exec format error when run via SWA
See original GitHub issueWhat happened?
[dataApi] /bin/sh: 1: /home/jaypratt/.swa/dataApiBuilder/0.7.6/Microsoft.DataApiBuilder: Exec format error
Exec format error when running data api builder via swa
with
swa start http://localhost:5173 --run "npm run frontend" --api-location api --data-api-location swa-db-connections
On Linux Mint
Version
No dab found (Running via SWA)
What database are you using?
PostgreSQL
What hosting model are you using?
Local (including CLI), Static Web Apps (SWA)
Which API approach are you accessing DAB through?
REST, GraphQL
Relevant log output
> swa start http://localhost:5173 --run "npm run frontend" --api-location api --data-api-location swa-db-connections
Welcome to Azure Static Web Apps CLI (1.1.3)
***********************************************************************
* WARNING: This emulator may not match the cloud environment exactly. *
* Always deploy and test your app in Azure. *
***********************************************************************
[dataApi] /bin/sh: 1: /home/jaypratt/.swa/dataApiBuilder/0.7.6/Microsoft.DataApiBuilder: Exec format error
[dataApi] cd "/home/jaypratt/skfltech/skfl/swa-db-connections" && "/home/jaypratt/.swa/dataApiBuilder/0.7.6/Microsoft.DataApiBuilder" start -c staticwebapp.database.config.json --no-https-redirect exited with code 126
--> Sending SIGTERM to other processes..
[swa] node "/home/jaypratt/skfltech/skfl/node_modules/@azure/static-web-apps-cli/dist/msha/server.js" exited with code SIGTERM
--> Sending SIGTERM to other processes..
[run] cd "/home/jaypratt/skfltech/skfl" && npm run frontend exited with code SIGTERM
--> Sending SIGTERM to other processes..
[api] cd "/home/jaypratt/skfltech/skfl/api" && "func" start --cors "*" --port 7071 exited with code SIGTERM
Code of Conduct
- I agree to follow this project’s Code of Conduct
Issue Analytics
- State:
- Created 3 months ago
- Comments:8 (5 by maintainers)
Top Results From Across the Web
CLI tools are downloaded for the wrong architecture on ...
Describe the bug Wrong CLI tools appear t. ... [Bug]: DataApiBuilder SIGTERM with Exec format error when run via SWA Azure/data-api-builder# ...
Read more >why am I getting Exec format error when I am writing my ...
Another answer for those searching! If you are calling a binary and not a script, make sure it's built for the correct architecture...
Read more >Fix "Exec format error" When Running Scripts With run- ...
This brief tutorial explains how to fix "exec format error" when running scripts with run-parts command in Linux operating systems.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thank you for reporting, @Cypher1. We will investigate whether any components in the DAB engine needs to be updated to remediate the experience versus a fix in the Static Web Apps CLI.
Linking the release tag here https://github.com/Azure/static-web-apps-cli/releases/tag/v1.1.4 and closing. Please reopen in swa repo if this doesnt fix the issue. Thanks!