Unknown variable $tagStereo

0 votes
asked Oct 11, 2021 in Question / help by Jérôme (160 points)

Hi All,

I've setted up a plantuml server using the https://hub.docker.com/layers/plantuml/plantuml-server/v1.2021.12/images/sha256-97a4dc767b578630c715c5cca7302663b2e84fba6a061500997047cf655be0fc?context=explore docker image (also tried with the jetty image) and tried the C4 model provided in the getting started section of by https://github.com/plantuml-stdlib/C4-PlantUML

@startuml
!include https://raw.githubusercontent.com/plantuml-stdlib/C4-PlantUML/master/C4_Container.puml

Person(personAlias, "Label", "Optional Description")
Container(containerAlias, "Label", "Technology", "Optional Description")
System(systemAlias, "Label", "Optional Description")

Rel(personAlias, containerAlias, "Label", "Optional Technology")
@enduml

Result: https://ibb.co/1sLh9Cy
As you can see I have the error message "Unknown variable $tagStereo"

If I add a log directive, the example works:

@startuml
!log %version()
!include https://raw.githubusercontent.com/plantuml-stdlib/C4-PlantUML/master/C4_Container.puml

Person(personAlias, "Label", "Optional Description")
Container(containerAlias, "Label", "Technology", "Optional Description")
System(systemAlias, "Label", "Optional Description")

Rel(personAlias, containerAlias, "Label", "Optional Technology")
@enduml

Result: https://ibb.co/TKsLg67

Console output in the docker container:

https://ibb.co/DML6qqm


Any idea ?

Best regards,

Jérôme.

commented Oct 29, 2021 by kirchsth (2,270 points)
Hi Jérôme,

does it work if you remove the added logline again?
If yes It could be that you changed the encoding of your file during the edit operation.
It is only guessed.

BR Helmut

1 Answer

+1 vote
answered Nov 9, 2021 by kirchsth (2,270 points)

Hi @Jerome,

I think I found the details. There are 2 problems:

1) I assume you tried the first diagram with an too old docker version of the plantUML server and therefore the plantuml server generates a png with $tagStereo error.
2) the generated png is cached for 5 days

If you now update your server with the newer version you still get the old cached version. But as soon you changed the puml file the cache cannot be reused anymore and a new png has to be created (by the new server) and you get a png based on the new version

BR Helmut

commented Nov 23, 2021 by Jérôme (160 points)
Hi Kirchsth,

You're right. My erroneous diagram was in cache. My first attempt was using an incompatible version of plantUML server. I retry after the cache expires and it works fine !

Many thanks for your answer.

Kind Regards,

Jérôme.
...