Docker Failed to launch browser #2897
Unanswered
therealsras
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Will this help https://stackoverflow.com/questions/67457132/how-can-i-fix-error-while-loading-shared-libraries-libglib-2-0-so-0-when-star ? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I was running on Windows , locally testing fine, not running docker, just dotnet watch
This is issue when I compose to docker and try from docker.
{ "title": "Failed to launch browser! /app/\\puppeteer/Chrome/Linux-132.0.6834.83/chrome-linux64/chrome: error while loading shared libraries: libglib-2.0.so.0: cannot open shared object file: No such file or directory\n", "status": 500, "detail": " at PuppeteerSharp.States.ProcessStartingState.StartCoreAsync(LauncherBase p) in /home/runner/work/puppeteer-sharp/puppeteer-sharp/lib/PuppeteerSharp/States/ProcessStartingState.cs:line 83\n at PuppeteerSharp.States.ProcessStartingState.StartCoreAsync(LauncherBase p) in /home/runner/work/puppeteer-sharp/puppeteer-sharp/lib/PuppeteerSharp/States/ProcessStartingState.cs:line 89\n at PuppeteerSharp.Launcher.LaunchAsync(LaunchOptions options) in /home/runner/work/puppeteer-sharp/puppeteer-sharp/lib/PuppeteerSharp/Launcher.cs:line 77\n at PuppeteerSharp.Launcher.LaunchAsync(LaunchOptions options) in /home/runner/work/puppeteer-sharp/puppeteer-sharp/lib/PuppeteerSharp/Launcher.cs:line 110\n at API.Services.ExportService.GeneratePdfContent(String reportName, IViewModel model) in /app/src/API/Services/ExportService.cs:line 29\n at API.Controllers.ReportsController.TableReport() in /app/src/API/Controllers/ReportsController.cs:line 27\n at lambda_method1727(Closure, Object)" }
Dockerfile
Lunch function
public async Task GeneratePdfContent(string reportName, IViewModel model)
{
var html = await _templateService.RenderAsync(reportName, model);
PuppeteerExtension
Beta Was this translation helpful? Give feedback.
All reactions