开发者社区 > 云原生 > Serverless > 正文

函数计算,报这个错是字体文件加载的有问题吗? Failed to launch the brows

函数计算,报这个错是字体文件加载的有问题吗?

Failed to launch the browser process! Fontconfig warning: "/code/fonts.conf", line 89: unknown element "blank" [0908/095458.042423:ERROR:bus.cc(399)] Failed to connect to the bus: Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory [0908/095458.042540:ERROR:bus.cc(399)] Failed to connect to the bus: Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory [0908/095458.042933:ERROR:platform_thread_posix.cc(155)] pthread_create: Resource temporarily unavailable (11) [0908/095458.043282:ERROR:platform_thread_posix.cc(155)] pthread_create: Resource temporarily unavailable (11) [0908/095458.043297:FATAL:simple_thread.cc(56)] Check failed: success. #0 0x556688b1a222 base::debug::CollectStackTrace() #1 0x556688a8b5e3 base::debug::StackTrace::StackTrace() #2 0x556688a88847 logging::LogMessage::~LogMessage() #3 0x556688a895be logging::LogMessage::~LogMessage() #4 0x556688b044e2 base::SimpleThread::StartAsync() #5 0x556686941cc8 content::VizProcessTransportFactory::VizProcessTransportFactory() #6 0x5566862e6644 content::BrowserMainLoop::PostCreateThreadsImpl() #7 0x5566862e6183 content::BrowserMainLoop::PostCreateThreads() #8 0x55668680cc63 content::StartupTaskRunner::RunAllTasksNow() #9 0x5566862e5e89 content::BrowserMainLoop::CreateStartupTasks() #10 0x5566862e857c content::BrowserMainRunnerImpl::Initialize() #11 0x55668e46f60c headless::HeadlessContentMainDelegate::RunProcess() #12 0x5566885dfbe2 content::RunBrowserProcessMain() #13 0x5566885e1060 content::ContentMainRunnerImpl::RunBrowser() #14 0x5566885e0ea8 content::ContentMainRunnerImpl::Run() #15 0x5566885de4be content::RunContentProcess() #16 0x5566885de5e5 content::ContentMain() #17 0x55668863f246 headless::(anonymous namespace)::RunContentMain() #18 0x55668863ef1a headless::HeadlessShellMain() #19 0x556684c671e3 ChromeMain #20 0x7fdf1a9122e1 __libc_start_main #21 0x556684c6702a _start TROUBLESHOOTING: https://github.com/puppeteer/puppeteer/blob/main/docs/troubleshooting.md

展开
收起
大圣东游 2023-09-08 21:52:40 186 0
1 条回答
写回答
取消 提交回答
  • 根据错误信息,问题出现在启动浏览器进程时出错。可能的原因和解决方法如下:

    1. Fontconfig警告:"/code/fonts.conf",第89行:未知元素"blank":这是由于Fontconfig配置文件中存在未知元素而引起的警告。您可以检查"/code/fonts.conf"文件中的第89行,确认该行是否包含了无效的或未知的元素。您可以尝试删除或注释掉该行,然后重新运行以查看是否仍然出现警告。

    2. Failed to connect to the bus: Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory:这是由于无法连接到DBus总线的错误。DBus用于进程间通信,在某些系统上可能未正确配置或运行。您可以尝试检查是否存在"/var/run/dbus/system_bus_socket"文件,并确保DBus服务正在运行。您也可以尝试重新启动系统以重新初始化DBus服务。

    3. pthread_create: Resource temporarily unavailable (11):这是由于无法创建新的线程资源导致的错误。您可以检查系统的线程限制和可用资源,例如通过ulimit命令来查看当前的线程限制。如果需要,您可以增加线程限制,以便进程可以创建更多的线程。

    4. Check failed: success.:这是一个致命错误,可能与运行环境或浏览器有关。您可以尝试升级Puppeteer库版本,或者查看Puppeteer的故障排除文档(https://github.com/puppeteer/puppeteer/blob/main/docs/troubleshooting.md)以获取更多的解决方法。

    总之,要解决这个问题,您可以依次尝试以下步骤:检查Fontconfig配置文件、检查并重新启动DBus服务、检查系统的线程限制和资源、升级Puppeteer库版本,并参考Puppeteer的故障排除文档进行进一步的故障排除。

    此答案来自钉钉群“阿里函数计算官网客户”

    2023-09-09 10:27:19
    赞同 展开评论 打赏

快速交付实现商业价值。

相关产品

  • 函数计算
  • 相关电子书

    更多
    Hologres Serverless之路:揭秘弹性计算组 立即下载
    Serverless开发平台: 让研发效能再提升 立即下载
    Serverless 引领云上研发新范式 立即下载