-
Notifications
You must be signed in to change notification settings - Fork 98
what are the required shared libraries in a linux container? #324
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
Comments
For running Puppeteersharp (the lib used internally for image export) on linux, here are some links for prerequisites and troubleshooting: https://github.com/hardkoded/puppeteer-sharp#prerequisites |
In your case, it might just be missing |
I think I got to a dead end, after following the prerequisites, this error is thrown: Running as root without --no-sandbox is not supported. See https://crbug.com/638180 |
You can set that on the PuppeteerSharp launch options object: using Plotly.NET;
using Plotly.NET.ImageExport;
PuppeteerSharpRendererOptions.launchOptions.Args = new string [] {"--no-sandbox"}; |
see also hardkoded/puppeteer-sharp#1211 |
We bumped the version of Puppeteer Sharp recently. Try using the prerelease version too.
|
You can try to install extra dependencies. For me worked.
|
I gave up, found another library to chart from the server side by running an external js file (nodejs). |
Description
I have deployed a webapp to azure using plotly.net but it throws several errors of missing shared libraries.
The webapp works perfectly on the development environment (windows 10).
Repro steps
Perhaps I am doing something wrong it is the first time I am using this library, this is the code I am using:
`*
Layout newChartLayout = Layout.init(
Title: Title.init(Text: "Visitas (cantidad de visitas)"),
BarMode: BarMode.Stack,
UniformText: UniformText.init(Mode: UniformTextMode.Show, MinSize: 6),
PaperBGColor: Color.fromARGB(0, 0, 0, 0),
PlotBGColor: Color.fromARGB(0, 0, 0, 0),
Font: Font.init(Family:FontFamily.Consolas, Color:Color.fromRGB(255,0,0))
//Font: Font.init(Family:FontFamily.NewCustom("Nunito"))
);
*`
Expected behavior
Get SVG string to embed into a pdf report
Actual behavior
It crashes, so far I have installed these libraries in the production enviroment:
libnss3
libatk1.0-0
libatk-bridge2.0-0
cups
Error messages like these are thown
`*
PuppeteerSharp.ProcessException: Failed to launch browser! /home/site/wwwroot/.local-chromium/Linux-884014/chrome-linux/chrome: error while loading shared libraries: libxkbcommon.so.0: cannot open shared object file: No such file or directory
at PuppeteerSharp.States.ChromiumStartingState.StartCoreAsync(LauncherBase p) in C:\projects\puppeteer-sharp\lib\PuppeteerSharp\States\ChromiumStartingState.cs:line 83
at PuppeteerSharp.States.ChromiumStartingState.StartCoreAsync(LauncherBase p) in C:\projects\puppeteer-sharp\lib\PuppeteerSharp\States\ChromiumStartingState.cs:line 89
at PuppeteerSharp.Launcher.LaunchAsync(LaunchOptions options) in C:\projects\puppeteer-sharp\lib\PuppeteerSharp\Launcher.cs:line 68
at PuppeteerSharp.Launcher.LaunchAsync(LaunchOptions options) in C:\projects\puppeteer-sharp\lib\PuppeteerSharp\Launcher.cs:line 91 | Stack: .lambda_method530 => ReportController.ballotResult => ReportService.getBallotResult
*`
Related information
"Plotly.NET" Version="3.0.0"
"Plotly.NET.ImageExport" Version="3.0.0"
The text was updated successfully, but these errors were encountered: