Hi Guys, like you I’ve been a invoiceninja warrior for several years and am really excited about version 5! I have just recently successfully installed it, and with zero data in the system i wanted to play with the features before i migrate anything from my live version.
Everything seemed to work fine until I got to the best part “Creating the invoice”.
Settings > Invoice Design, then i Selected Plain, then clicked “Customize and Preview”.
A few seconds passed then i received the message "An error occurred, 500: Internal Server Error. This happens for any invoice template i choose. Can any of you guys help me out? Thanks in advance.
Error: Failed to launch chrome!
[0716/152534.777943:FATAL:zygote_host_impl_linux.cc(116)] No usable sandbox! Update your kernel or see https://chromium.googlesource.com/chromium/src/+/master/docs/linux_suid_sandbox_development.md for more information on developing with the SUID sandbox. If you want to live dangerously and need an immediate workaround, you can try using --no-sandbox. #0 0x55d631195879 base::debug::CollectStackTrace() #1 0x55d6310f2c63 base::debug::StackTrace::StackTrace() #2 0x55d631107013 logging::LogMessage::~LogMessage() #3 0x55d6328a195e service_manager::ZygoteHostImpl::Init() #4 0x55d630d36adc content::ContentMainRunnerImpl::Initialize() #5 0x55d630d8272c service_manager::Main() #6 0x55d630d350b1 content::ContentMain() #7 0x55d630d8199d headless::(anonymous namespace)::RunContentMain() #8 0x55d630d8170b headless::HeadlessShellMain() #9 0x55d62eb121b8 ChromeMain #10 0x2acb82157555 __libc_start_main #11 0x55d62eb1202a _start
Can you add env variable to pass --no-sandbox argument to chrome
browsershot allow to pass arguments to chrome
Browsershot::html(‘Foo’)
->addChromiumArguments([
‘some-argument-without-a-value’,
‘keyed-argument’ => ‘argument-value’,
]);
I tried above solution for centos not working properly. if you add env variable to set args for chrome that will solve above issue.