Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

porter_build_bundle.sh: Permission denied #4377

Open
james-annages opened this issue Feb 18, 2025 · 8 comments
Open

porter_build_bundle.sh: Permission denied #4377

james-annages opened this issue Feb 18, 2025 · 8 comments
Labels
bug Something isn't working

Comments

@james-annages
Copy link

Describe the bug
when running any section that uses porter_build_bundle.sh script. i get a Permission denied.

Steps to reproduce

  1. Deploy any servises in to the TRE

Azure TRE release version (e.g. v0.14.0 or main):
v0.20.0

Deployed Azure TRE components - click the (i) in the UI:
UI Version: 0.6.3
API Version: 0.20.4

Temp fix is to run chmod +x on the needed files.

Possibly a idea to add this as a step in to the devcontainer build in the main TRE and the Deployment devcontainer.

@james-annages james-annages added the bug Something isn't working label Feb 18, 2025
@marrobi
Copy link
Member

marrobi commented Feb 18, 2025

Is the source code checked out to Windows or Linux file system?

@james-annages
Copy link
Author

its in a linux github codespace

@marrobi
Copy link
Member

marrobi commented Feb 18, 2025

What do you get if you run:

ls -la devops/scripts/porter_build_bundle.sh

I get:

-rwxr-xr-x 1 vscode vscode 306 Feb  5 17:53 devops/scripts/porter_build_bundle.sh

So user vscode should have read write and execute.

@james-annages
Copy link
Author

james-annages commented Feb 18, 2025

-rwxr--r-- 1 vscode vscode 306 Feb 17 14:22 AzureTRE/devops/scripts/porter_build_bundle.sh
Is what i was getting.
I get the below after running the chmod
-rwxr-xr-x 1 vscode vscode 306 Feb 17 14:22 AzureTRE/devops/scripts/porter_build_bundle.sh

@marrobi
Copy link
Member

marrobi commented Feb 18, 2025

Odd.

Image

Is this from the AzureTRE-Deployment repository or this repository?

@marrobi
Copy link
Member

marrobi commented Feb 18, 2025

I've just checked the deployment repo, and got:

Image

Bit confused where your permission difference has come from.

@james-annages
Copy link
Author

humm same, let me re build my deployment container and see what happnes

@james-annages
Copy link
Author

Strange. I think I have found the problem. It may have been down to how I did a merge of code bases. I did this on a windows system. So that may have broken things.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants