question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Bug]: DataApiBuilder SIGTERM with Exec format error when run via SWA

See original GitHub issue

What 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:closed
  • Created 3 months ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
seantleonardcommented, Jun 30, 2023

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.

0reactions
Aniruddh25commented, Jul 19, 2023

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!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found