Skip to content

Fontconfig error: No writable cache directories #470

@sdavids

Description

@sdavids
$ docker run --user "$(id -u):$(id -g)" --rm asciidoctor/docker-asciidoctor:1.76.0 fc-cache
Fontconfig error: No writable cache directories

This surfaces when you use asciidoctor-diagram with PlantUML:

$ mkdir -p /tmp/test && cd "$_"
$ cat << 'EOF' >test.adoc
[plantuml]
----
@startuml

label Test

@enduml
----
EOF
$ docker run \
  --rm \
  -u "$(id -u):$(id -g)" \
  -v '/tmp/test:/documents' \
  asciidoctor/docker-asciidoctor:1.76.0 \
  sh -c 'asciidoctor-pdf -r asciidoctor-diagram test.adoc'
Fontconfig error: No writable cache directories
...

$ docker run \
  --rm \
  -u "$(id -u):$(id -g)" \
  -v '/tmp/test:/documents' \
  asciidoctor/docker-asciidoctor:1.76.0 \
  sh -c 'asciidoctor-pdf -r asciidoctor-diagram test.adoc'

$ rm diag-plantuml-md5-*.png
$ docker run \
  --rm \
  -u "$(id -u):$(id -g)" \
  -v '/tmp/test:/documents' \
  asciidoctor/docker-asciidoctor:1.76.0 \
  sh -c 'asciidoctor-pdf -r asciidoctor-diagram test.adoc'
Fontconfig error: No writable cache directories
...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions