CLI binary lacks execute permissions
See original GitHub issueI’ve just downloaded the 0.5.0
release and the Microsoft.DataApiBuilder
binary for the CLI does not have executable permissions, meaning that until you run chmod +x
on it, you can’t run the CLI:
This problem is particularly noticeable with the SWA integration, which downloads DAB in the background and then tries to launch it, only to fail:
[swa] ✔ Downloading https://dataapibuilder.azureedge.net/releases/download/v0.5.0-beta/dab_linux-x64-0.5.0.zip@0.5.0
[dataApi] /bin/sh: 1: /home/node/.swa/dab/0.5.0/Microsoft.DataApiBuilder: Permission denied
[dataApi] cd "/workspaces/dab-trivia-game/data" && "/home/node/.swa/dab/0.5.0/Microsoft.DataApiBuilder" start -c staticwebapp.database.config.json exited with code 126
--> Sending SIGTERM to other processes..
[run] cd "/workspaces/dab-trivia-game/app" && npm run dev exited with code SIGTERM
--> Sending SIGTERM to other processes..
[swa] node "/workspaces/dab-trivia-game/node_modules/@azure/static-web-apps-cli/dist/msha/server.js" exited with code SIGTERM
✖ SWA emulator stoped because SWA emulator exited with code SIGTERM.
Issue Analytics
- State:
- Created 7 months ago
- Reactions:1
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Can I execute a Linux binary without ...
No. At least, not in the same way. You are still executing a binary when you do the python thing. Python is +x....
Read more >How to execute a file without execute permissions [duplicate]
Assume someone with root access ran a command chmod -R 444 / and made the chmod binary non-executable. How do you recover from...
Read more >Can't execute .out files, getting permission denied
Usually, g++ gives the created file execute permissions. If you do not pass the -o option, the file will be named a.out ....
Read more >Cypress cannot run because this binary file does not have ...
You can do two things: Run the command npm cypress cache clear and then again install cypress npm install cypress --save-dev and check....
Read more >Linux file permissions explained | Enable Sysadmin
Execute permission allows you to execute the contents of a file. Typically, executables would be things like commands or compiled binary ...
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
No, it runs fine on Windows. This issue is only for Linux and Mac. I have to manually add permissions in Linux to run dab-cli.
Yes, it exists with previous versions.
I’m not sure that fixing it with the SWA cli is the best solution, as the zip on GitHub releases also lacks execute permissions on the binary as well, so you’d still have the problem here.
Get Outlook for Androidhttps://aka.ms/AAb9ysg
From: sgollapudi77 @.> Sent: Tuesday, February 7, 2023 4:49:00 PM To: Azure/data-api-builder @.> Cc: Aaron Powell @.>; Mention @.> Subject: Re: [Azure/data-api-builder] CLI binary lacks execute permissions (Issue #1197)
Hey @aaronpowellhttps://github.com/aaronpowell , @abhishekkumamshttps://github.com/abhishekkumams this issue was in previous versions also, I’ll investigate this and try to fix this in the SWA_CLI.
— Reply to this email directly, view it on GitHubhttps://github.com/Azure/data-api-builder/issues/1197#issuecomment-1420234504, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AADJ7XAHVIEKG6ZVRJ5VZ5LWWHO4ZANCNFSM6AAAAAAUTNSBLY. You are receiving this because you were mentioned.Message ID: @.***>