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

Invalid path for linux Permission denied #2371

Open
filipagh opened this issue Dec 5, 2023 · 6 comments
Open

Invalid path for linux Permission denied #2371

filipagh opened this issue Dec 5, 2023 · 6 comments

Comments

@filipagh
Copy link

filipagh commented Dec 5, 2023

https://github.com/hardkoded/puppeteer-sharp/blob/0c9362c830d86765119e72fc7a58fef528bcbd07/lib/PuppeteerSharp/BrowserFetcher.cs#L416C1-L417C1

archiveName is chrome-linux64.zip folder after extract is without .zip
but execPath contains archiveName
so execPath is [project folder]/bin/Debug/netcoreapp3.1/Chrome/Linux-119.0.6045.105/chrome-linux64.zip/chrome

but extractet path in file system is [project folder] /bin/Debug/netcoreapp3.1/Chrome/Linux-119.0.6045.105/chrome-linux64/chrome

then chrome binary will not have execute permission and fail to start

OS: Manjaro

@kblok
Copy link
Member

kblok commented Dec 5, 2023

Our builds run on Ubuntu without any issues.

We are running tar -xvjf \"{zipPath}\" -C \"{folderPath}\" to extract the tar file. Maybe that's behaving differently on your OS?

@filipagh
Copy link
Author

filipagh commented Dec 5, 2023

im on archlinux
extraction is done here https://github.com/hardkoded/puppeteer-sharp/blob/0c9362c830d86765119e72fc7a58fef528bcbd07/lib/PuppeteerSharp/BrowserFetcher.cs#L385C1-L385C69

explicitly i do not extract anything as whole process is automated in BrowserFetcher

@kblok
Copy link
Member

kblok commented Dec 5, 2023

I'm not having this issue on Ubuntu :/

@kblok
Copy link
Member

kblok commented Dec 5, 2023

What's your .net version?

@filipagh
Copy link
Author

filipagh commented Dec 5, 2023

sdk 7
runtime 3.1

@kblok
Copy link
Member

kblok commented Dec 5, 2023

3.1 is out of support. Could you at least test with a newer version to confirm if it's a bug in the runtime?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants