puppeteer-sharp icon indicating copy to clipboard operation
puppeteer-sharp copied to clipboard

Invalid path for linux Permission denied

Open filipagh opened this issue 2 years ago • 6 comments

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

filipagh avatar Dec 05 '23 11:12 filipagh

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?

kblok avatar Dec 05 '23 13:12 kblok

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

filipagh avatar Dec 05 '23 13:12 filipagh

I'm not having this issue on Ubuntu :/

kblok avatar Dec 05 '23 14:12 kblok

What's your .net version?

kblok avatar Dec 05 '23 14:12 kblok

sdk 7 runtime 3.1

filipagh avatar Dec 05 '23 15:12 filipagh

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?

kblok avatar Dec 05 '23 15:12 kblok