This commit is contained in:
2020-09-21 19:33:11 +00:00
parent 29f130b11d
commit c592da4cbf
2 changed files with 14 additions and 2 deletions

View File

@@ -371,7 +371,18 @@ namespace AyaNova.Biz
{
log.LogDebug($"Not Windows: setting executable path for chrome to expected '/usr/bin/chromium-browser'");
lo.ExecutablePath = "/usr/bin/chromium-browser";//this is the default path for docker based alpine dist, but maybe not others, need to make a config setting likely
lo.Args = new string[] { "--no-sandbox" };
// lo.Args = new string[] { "--no-sandbox" };
/*
https://github.com/puppeteer/puppeteer/issues/1825
const chromeFlags = [
'--headless',
'--no-sandbox',
"--disable-gpu",
"--single-process",
"--no-zygote"
]
*/
lo.Args = new string[] { "--headless --no-sandbox --disable-gpu --single-process --no-zygote" };
}
else
{
@@ -383,6 +394,7 @@ namespace AyaNova.Biz
//https://stackoverflow.com/questions/53367966/puppeteer-sharp-still-appear-many-chromium-instance-in-process-task-manager-when
log.LogDebug($"Launching headless Chrome now:");
using (var browser = await Puppeteer.LaunchAsync(lo))
using (var page = await browser.NewPageAsync())
{
try

View File

@@ -5,7 +5,7 @@ namespace AyaNova.Util
/// </summary>
internal static class AyaNovaVersion
{
public const string VersionString = "8.0.0-alpha.16";
public const string VersionString = "8.0.0-alpha.17";
public const string FullNameAndVersion = "AyaNova server " + VersionString;
}//eoc
}//eons