# Missing X server or $DISPLAY

**URL:** <https://community.postman.com/t/missing-x-server-or-display/44619>\
**Category:** Help Hub\
**Created:** [March 1, 2023, 8:39pm UTC](https://community.postman.com/t/missing-x-server-or-display/44619 "2023-03-01T20:39:09Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![dman777](https://avatars.discourse-cdn.com/v4/letter/d/4491bb/32.png) [@dman777](https://community.postman.com/u/dman777)\
**Post date:** [March 1, 2023, 8:39pm UTC](https://community.postman.com/t/missing-x-server-or-display/44619/1 "2023-03-01T20:39:09Z")

</div>

I am running ubuntu 20.04 LTS with vncserver. I get into it with a ssh tunnel using vnc viewer.

I have X11 installed. GUI apps like xdm, xclock, and visual studio code work with no issues. But when I run postman I get the below error. Can anyone help, please?

```auto
one@work ~
% postman                      
The disableGPU setting is set to undefined
Not disabling GPU
No protocol specified
[397738:0301/143717.046713:ERROR:ozone_platform_x11.cc(248)] Missing X server or $DISPLAY
[397738:0301/143717.046768:ERROR:env.cc(225)] The platform failed to initialize. Exiting.
The futex facility returned an unexpected error code.zsh: abort (core dumped) postman

```

```auto
% strace -e %net postman
--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=397171, si_uid=1000, si_status=0, si_utime=0, si_stime=0} ---
socket(AF_UNIX, SOCK_STREAM|SOCK_CLOEXEC|SOCK_NONBLOCK, 0) = 5
connect(5, {sa_family=AF_UNIX, sun_path="/var/run/nscd/socket"}, 110) = -1 ENOENT (No such file or directory)
socket(AF_UNIX, SOCK_STREAM|SOCK_CLOEXEC|SOCK_NONBLOCK, 0) = 5
connect(5, {sa_family=AF_UNIX, sun_path="/var/run/nscd/socket"}, 110) = -1 ENOENT (No such file or directory)
socket(AF_UNIX, SOCK_STREAM|SOCK_CLOEXEC|SOCK_NONBLOCK, 0) = 5
setsockopt(5, SOL_SOCKET, SO_BROADCAST, [1], 4) = 0
connect(5, {sa_family=AF_UNIX, sun_path="/run/user/1000/bus"}, 21) = 0
getsockname(5, {sa_family=AF_UNIX}, [112->2]) = 0
getpeername(5, {sa_family=AF_UNIX, sun_path="/run/user/1000/bus"}, [112->21]) = 0
sendmsg(5, {msg_name=NULL, msg_namelen=0, msg_iov=[{iov_base="\0", iov_len=1}], msg_iovlen=1, msg_control=[{cmsg_len=28, cmsg_level=SOL_SOCKET, cmsg_type=SCM_CREDENTIALS, cmsg_data={pid=397158, uid=1000, gid=1000}}], msg_controllen=32, msg_flags=0}, 0) = 1
The disableGPU setting is set to undefined
Not disabling GPU
No protocol specified
[397158:0301/142848.323330:ERROR:ozone_platform_x11.cc(248)] Missing X server or $DISPLAY
[397158:0301/142848.323393:ERROR:env.cc(225)] The platform failed to initialize. Exiting.
The futex facility returned an unexpected error code.+++ killed by SIGABRT (core dumped) +++
zsh: abort (core dumped) strace -e %net postman

```

---

<div class="post-metadata">

**Author:** ![dman777](https://avatars.discourse-cdn.com/v4/letter/d/4491bb/32.png) [@dman777](https://community.postman.com/u/dman777)\
**Post date:** [March 19, 2023, 7:04pm UTC](https://community.postman.com/t/missing-x-server-or-display/44619/2 "2023-03-19T19:04:12Z")

</div>

Bump on this, please

---

<div class="post-metadata">

**Author:** ![jandeg](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/jandeg/32/15653_2.png) [@jandeg](https://community.postman.com/u/jandeg)\
**Post date:** [April 26, 2023, 6:49am UTC](https://community.postman.com/t/missing-x-server-or-display/44619/3 "2023-04-26T06:49:49Z")

</div>

Same issue here running on wsl2 on Windows 10.

$ postman  
The disableGPU setting is set to undefined  
Not disabling GPU  
[1826:0426/085104.003259:ERROR:ozone\_platform\_x11.cc(248)] Missing X server or $DISPLAY  
[1826:0426/085104.003305:ERROR:env.cc(225)] The platform failed to initialize. Exiting.  
[0426/085104.004043:ERROR:scoped\_ptrace\_attach.cc(27)] ptrace: Operation not permitted (1)  
Segmentation fault

~$ echo $DISPLAY  
:0

$ strace -e %net /snap/bin/postman  
— SIGURG {si\_signo=SIGURG, si\_code=SI\_TKILL, si\_pid=1647, si\_uid=1000} —  
— SIGCHLD {si\_signo=SIGCHLD, si\_code=CLD\_EXITED, si\_pid=1658, si\_uid=1000, si\_status=0, si\_utime=0, si\_stime=0} —  
socket(AF\_UNIX, SOCK\_STREAM|SOCK\_CLOEXEC|SOCK\_NONBLOCK, 0) = 5  
connect(5, {sa\_family=AF\_UNIX, sun\_path=“/var/run/nscd/socket”}, 110) = 0  
sendto(5, “\2\0\0\0\v\0\0\0\7\0\0\0passwd\0”, 19, MSG\_NOSIGNAL, NULL, 0) = 19  
recvmsg(5, {msg\_name=NULL, msg\_namelen=0, msg\_iov=[{iov\_base=“passwd\0”, iov\_len=7}, {iov\_base=“\310O\3\0\0\0\0\0”, iov\_len=8}], msg\_iovlen=2, msg\_control=[{cmsg\_len=20, cmsg\_level=SOL\_SOCKET, cmsg\_type=SCM\_RIGHTS, cmsg\_data=[6]}], msg\_controllen=20, msg\_flags=MSG\_CMSG\_CLOEXEC}, MSG\_CMSG\_CLOEXEC) = 15  
socket(AF\_UNIX, SOCK\_STREAM|SOCK\_CLOEXEC|SOCK\_NONBLOCK, 0) = 5  
setsockopt(5, SOL\_SOCKET, SO\_BROADCAST, [1], 4) = 0  
connect(5, {sa\_family=AF\_UNIX, sun\_path=“/run/user/1000/bus”}, 21) = 0  
getsockname(5, {sa\_family=AF\_UNIX}, [112 =\> 2]) = 0  
getpeername(5, {sa\_family=AF\_UNIX, sun\_path=“/run/user/1000/bus”}, [112 =\> 21]) = 0  
sendmsg(5, {msg\_name=NULL, msg\_namelen=0, msg\_iov=[{iov\_base=“\0”, iov\_len=1}], msg\_iovlen=1, msg\_control=[{cmsg\_len=28, cmsg\_level=SOL\_SOCKET, cmsg\_type=SCM\_CREDENTIALS, cmsg\_data={pid=1647, uid=1000, gid=1000}}], msg\_controllen=32, msg\_flags=0}, 0) = 1  
The disableGPU setting is set to undefined  
Not disabling GPU  
[1647:0426/084904.278742:ERROR:ozone\_platform\_x11.cc(248)] Missing X server or $DISPLAY  
[1647:0426/084904.278803:ERROR:env.cc(225)] The platform failed to initialize. Exiting.  
[0426/084904.279646:ERROR:scoped\_ptrace\_attach.cc(27)] ptrace: Operation not permitted (1)  
+++ killed by SIGSEGV +++  
Segmentation fault

---

<div class="post-metadata">

**Author:** ![lunar-module-saganis](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/lunar-module-saganis/32/15918_2.png) [@lunar-module-saganis](https://community.postman.com/u/lunar-module-saganis)\
**Post date:** [May 26, 2023, 3:30pm UTC](https://community.postman.com/t/missing-x-server-or-display/44619/4 "2023-05-26T15:30:11Z")

</div>

Run in terminal

```auto
xhost local:

```

then

```auto
postman

```

Worked for me, I hope it will work for you too.

---

<div class="post-metadata">

**Author:** ![dman777](https://avatars.discourse-cdn.com/v4/letter/d/4491bb/32.png) [@dman777](https://community.postman.com/u/dman777)\
**Post date:** [May 31, 2023, 5:33pm UTC](https://community.postman.com/t/missing-x-server-or-display/44619/5 "2023-05-31T17:33:08Z")

</div>

This worked great, thank you! This made things so much easier than the workaround I had to do.
