# Failed build of documentation on CI due to missing "Qt plugin" (?)

**URL:** <https://discourse.julialang.org/t/failed-build-of-documentation-on-ci-due-to-missing-qt-plugin/71389>\
**Category:** General Usage\
**Tags:** plotting, documenter, ci, github-actions\
**Created:** [November 12, 2021, 3:27pm UTC](https://discourse.julialang.org/t/failed-build-of-documentation-on-ci-due-to-missing-qt-plugin/71389 "2021-11-12T15:27:31Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sylvaticus](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/sylvaticus/32/203883_2.png) [@sylvaticus](https://discourse.julialang.org/u/sylvaticus)\
**Post date:** [November 12, 2021, 3:27pm UTC](https://discourse.julialang.org/t/failed-build-of-documentation-on-ci-due-to-missing-qt-plugin/71389/1 "2021-11-12T15:27:32Z")

</div>

It is a few weeks that my documentation doesn’t build anymore on GitHub, and I can’t get back to the problem.  
The actions log just tells me that the line where I call `makedocs` returns the above error:

```julia
qt.qpa.xcb: could not connect to display 
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: linuxfb, minimal, offscreen, vnc, xcb.

Aborted (core dumped)
connect: Connection refused
GKS: can't connect to GKS socket application

signal (11): Segmentation fault
in expression starting at /home/runner/work/BetaML.jl/BetaML.jl/docs/make.jl:112
gks_drv_socket at /home/runner/.julia/artifacts/b5fea2b0d5c84336f26b139587a84ee7e8ca2e12/lib/libGR.so (unknown line)
gks_ddlk.isra.0 at /home/runner/.julia/artifacts/b5fea2b0d5c84336f26b139587a84ee7e8ca2e12/lib/libGR.so (unknown line)
gks_open_ws at /home/runner/.julia/artifacts/b5fea2b0d5c84336f26b139587a84ee7e8ca2e12/lib/libGR.so (unknown line)
initgks at /home/runner/.julia/artifacts/b5fea2b0d5c84336f26b139587a84ee7e8ca2e12/lib/libGR.so (unknown line)
gr_setcharheight at /home/runner/.julia/artifacts/b5fea2b0d5c84336f26b139587a84ee7e8ca2e12/lib/libGR.so (unknown line)
setcharheight at /home/runner/.julia/packages/GR/SOvTP/src/GR.jl:1651
unknown function (ip: 0x7fe81afe6d6f)

```

My package has nothing to do with graphics, except a few plots that are present in some tutorials I am trying to build. But these were created without problems before. Any hint on where to look ?

---

<div class="post-metadata">

**Author:** ![fredrikekre](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/fredrikekre/32/1688_2.png) [@fredrikekre](https://discourse.julialang.org/u/fredrikekre)\
**Post date:** [November 12, 2021, 3:41pm UTC](https://discourse.julialang.org/t/failed-build-of-documentation-on-ci-due-to-missing-qt-plugin/71389/2 "2021-11-12T15:41:01Z")

</div>

> [@Plotting errors when building documentation using Plots.jl and Documenter.jl](https://discourse.julialang.org/t/plotting-errors-when-building-documentation-using-plots-jl-and-documenter-jl/67849):
>
> Hi all, I’m attempting to add plots into my package documentation using Plots.jl and Documenter.jl. However, creating a simple plot such as the following produces an error as below. Code in markdown file: using Plots plot(1:100) Resulting error when I tried julia --project=docs/ docs/make.jl: [ Info: SetupBuildDirectory: setting up build directory. [ Info: Doctest: running doctests. [ Info: ExpandTemplates: expanding markdown templates. connect: No error GKS: can't connect to GKS socket app…

---

<div class="post-metadata">

**Author:** ![sylvaticus](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/sylvaticus/32/203883_2.png) [@sylvaticus](https://discourse.julialang.org/u/sylvaticus)\
**Post date:** [November 12, 2021, 3:45pm UTC](https://discourse.julialang.org/t/failed-build-of-documentation-on-ci-due-to-missing-qt-plugin/71389/3 "2021-11-12T15:45:43Z")

</div>

yes, this seems relevant too: [Generation of documentation fails: "qt.qpa.xcb: could not connect to display"](https://discourse.julialang.org/t/generation-of-documentation-fails-qt-qpa-xcb-could-not-connect-to-display/60988)

I added `GKSwstype: "100"` to my `ci.yml` file… let’s see if this solve the problem. Thank you.

[EDIT]: yes, that solved my issue.
