ERROR:ozone_platform_x11.cc(238)] Missing X server or $DISPLAY

See original GitHub issue

Verify latest release

  • I verified that the issue exists in the latest chatgpt release

Verify webapp is working

  • I verify that the ChatGPT webapp is working properly for this account.

Environment details

Here my Dockerfile:

FROM zenika/alpine-chrome:with-node

ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD 1
ENV PUPPETEER_EXECUTABLE_PATH /usr/bin/chromium-browser

WORKDIR /usr/src/app

COPY --chown=chrome package*.json ./

RUN npm install

COPY --chown=chrome . ./

EXPOSE 3000

CMD [ "node", "index.js" ]

Describe the Bug

Dec 19 09:16:59 PM  /usr/src/app/node_modules/puppeteer-core/lib/cjs/puppeteer/node/BrowserRunner.js:299
Dec 19 09:16:59 PM              reject(new Error([
Dec 19 09:16:59 PM                     ^
Dec 19 09:16:59 PM  
Dec 19 09:16:59 PM  Error: Failed to launch the browser process!
Dec 19 09:16:59 PM  [18:18:1219/141659.083685:ERROR:ozone_platform_x11.cc(238)] Missing X server or $DISPLAY
Dec 19 09:16:59 PM  [18:18:1219/141659.085321:ERROR:env.cc(255)] The platform failed to initialize.  Exiting.
Dec 19 09:16:59 PM  
Dec 19 09:16:59 PM  
Dec 19 09:16:59 PM  TROUBLESHOOTING: https://github.com/puppeteer/puppeteer/blob/main/docs/troubleshooting.md
Dec 19 09:16:59 PM  
Dec 19 09:16:59 PM      at onClose (/usr/src/app/node_modules/puppeteer-core/lib/cjs/puppeteer/node/BrowserRunner.js:299:20)
Dec 19 09:16:59 PM      at ChildProcess.<anonymous> (/usr/src/app/node_modules/puppeteer-core/lib/cjs/puppeteer/node/BrowserRunner.js:290:24)
Dec 19 09:16:59 PM      at ChildProcess.emit (node:events:525:35)
Dec 19 09:16:59 PM      at ChildProcess._handle.onexit (node:internal/child_process:291:12)
Dec 19 09:16:59 PM  
Dec 19 09:16:59 PM  Node.js v18.12.1

Issue Analytics

  • State:closed
  • Created 9 months ago
  • Comments:13 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
amosayomide05commented, Dec 19, 2022

Ok thanks for the link

1reaction
EmmanuelPenkracommented, Dec 19, 2022
Read more comments on GitHub >

github_iconTop Results From Across the Web

[Bug]: Missing X server or $DISPLAY · Issue #8148 - GitHub
I am running crawlsite.js function from puppeteer/examples/crawlsite.js path in their git repo and i am seeing the exact same issue - [186875: ...
Read more >
Unable to open X display when trying to run google-chrome ...
I need to run Google Chrome remotely on a virtual machine using SSH. I do not want xforwarding - I want to utilize...
Read more >
Meaning and Resolving “No X11 DISPLAY” and Related Errors
In our example, Host_Name and Screen_Number are missing, which is typical. It means X clients will use the local X server and IPC...
Read more >
"Missing X server or $DISPLAY" workaround broke w - Reddit
My guess is there's some type of conflict between the virtual environment passing hardware variables to the program? Does anyone have any ...
Read more >
"FATAL:ozone_platform_x11.cc(238)] Check failed: x11 ... - PTC
Missing X server or $DISPLAY #0 0x7f1a7c572693 ... No such file or directory (2) ERROR:file_io_posix.cc(144)] open ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found