Chinese characters when starting/stopping Docker containers

已回答

Does anybody knows why I'm getting these messages with mostly chinese characters when starting or stopping a container using the Docker plugin?

This started happening recently, I can't tell exactly when but probably after updating to IntelliJ 2023.1

2

Hello ASarco. Please, share more details regarding the problem you met:

  • is the Chinese language installed on your OS? 
  • could you share the docker-compose file (via JetBrains Uploads) or at least the names of the containers you started? It's needed to reproduce the problem on my side.
  • your IDE log ( Help | Collect Logs and Diagnostic Data ) could also be helpful.
0

Hi Olga, thanks for answering.

No Chinese language installed in my PC:

However, Docker is integrated with WSL2 in my system, can something in the WSL2 installation be causing this? I have no problem whatsoever using the WSL terminal, never seen any chinese character.

 

Here's the upload id for the logs and docker-compose.yaml files: Upload id: 2023_05_18_SkSmXFz4nUtsrhsDfQCsj4

0

Thank you for shared logs and compose file. 

Regrettably, I couldn't reproduce the problem on my side, but in the log, I see that the full error that led to the output you mentioned is the following:

2023-05-11 09:43:23,520 [63549104]   WARN - #c.i.d.c.DockerDefaultConnectionConfigurator - Unrecognized token '孻': was expecting (JSON String, Number, Array, Object or token 'null', 'true' or 'false')
 at [Source: (String)"孻≃畲牥湴∺瑲略Ⱒ䑥獣物灴楯渢㨢䍵牲敮琠䑏䍋䕒彈体吠扡獥搠捯湦楧畲慴楯渢Ⱒ䑯捫敲䕮摰潩湴∺≮灩灥㨯⼯⼮⽰楰支摯捫敲彥湧楮攢Ⱒ䭵扥牮整敳䕮摰潩湴∺∢Ⱒ䍯湴數瑔祰攢㨢浯批∬≎慭攢㨢摥晡畬琢Ⱒ却慣歏牣桥獴牡瑯爢㨢≽ⱻ≃畲牥湴∺晡汳攬≄敳捲楰瑩潮∺∢Ⱒ䑯捫敲䕮摰潩湴∺≮灩灥㨯⼯⼮⽰楰支摯捫敲䑥獫瑯灌楮畸䕮杩湥∬≋畢敲湥瑥獅湤灯楮琢㨢∬≃潮瑥硴呹灥∺≭潢礢Ⱒ乡浥∺≤敳歴潰⵬楮畸∬≓瑡捫佲捨敳瑲慴潲∺∢絝�"; line: 1, column: 2]
com.fasterxml.jackson.core.JsonParseException: Unrecognized token '孻': was expecting (JSON String, Number, Array, Object or token 'null', 'true' or 'false')
 at [Source: (String)"孻≃畲牥湴∺瑲略Ⱒ䑥獣物灴楯渢㨢䍵牲敮琠䑏䍋䕒彈体吠扡獥搠捯湦楧畲慴楯渢Ⱒ䑯捫敲䕮摰潩湴∺≮灩灥㨯⼯⼮⽰楰支摯捫敲彥湧楮攢Ⱒ䭵扥牮整敳䕮摰潩湴∺∢Ⱒ䍯湴數瑔祰攢㨢浯批∬≎慭攢㨢摥晡畬琢Ⱒ却慣歏牣桥獴牡瑯爢㨢≽ⱻ≃畲牥湴∺晡汳攬≄敳捲楰瑩潮∺∢Ⱒ䑯捫敲䕮摰潩湴∺≮灩灥㨯⼯⼮⽰楰支摯捫敲䑥獫瑯灌楮畸䕮杩湥∬≋畢敲湥瑥獅湤灯楮琢㨢∬≃潮瑥硴呹灥∺≭潢礢Ⱒ乡浥∺≤敳歴潰⵬楮畸∬≓瑡捫佲捨敳瑲慴潲∺∢絝�"; line: 1, column: 2]
    at com.fasterxml.jackson.core.JsonParser._constructError(JsonParser.java:2418)
    at com.fasterxml.jackson.core.base.ParserMinimalBase._reportError(ParserMinimalBase.java:759)
    at com.fasterxml.jackson.core.json.ReaderBasedJsonParser._reportInvalidToken(ReaderBasedJsonParser.java:3038)
    at com.fasterxml.jackson.core.json.ReaderBasedJsonParser._handleOddValue(ReaderBasedJsonParser.java:2079)
    at com.fasterxml.jackson.core.json.ReaderBasedJsonParser.nextToken(ReaderBasedJsonParser.java:805)
    at com.fasterxml.jackson.databind.ObjectMapper._initForReading(ObjectMapper.java:4817)
    at com.fasterxml.jackson.databind.ObjectMapper._readMapAndClose(ObjectMapper.java:4723)
    at com.fasterxml.jackson.databind.ObjectMapper.readValue(ObjectMapper.java:3677)
    at com.fasterxml.jackson.databind.ObjectMapper.readValue(ObjectMapper.java:3660)
    at com.intellij.docker.agent.util.DockerJsonUtilsKt.mapJsonTo(dockerJsonUtils.kt:21)
    at com.intellij.docker.agent.cli.DockerCli$contextsLs$1.invoke(DockerCli.kt:135)
    at com.intellij.docker.agent.cli.DockerCli$contextsLs$1.invoke(DockerCli.kt:33)
    at com.intellij.docker.agent.cli.Cli.makePromise$lambda$3(Cli.kt:94)
    at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1768)
    at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
    at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
    at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:702)
    at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:699)
    at java.base/java.security.AccessController.doPrivileged(AccessController.java:399)
    at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1.run(Executors.java:699)
    at java.base/java.lang.Thread.run(Thread.java:833)

Could you please check if any JSON files should be parsed while executing compose start/stop command?

0

Hello Olga Mulina! I faced with the same issue as ASarco.

Some details:

  • platform: Windows 10, version 21H2,
  • Docker Desktop installed,
  • Intellij IDEa Ultimate (upgraded to 2023.2 version) installed,
  • using Docker plugin (bundled 232.8660.185),
  • no Chinese language installed,
  • when I used previous IDEa version (2022.3 if I'm not mistaken), I didn't have this problem.

What can I do to prevent this behavior?

0

Hello,

Will you get the same result if you run the same command from command line directly?

0

Hello Yaroslav Bedrov!

I have no this issue when I use CLI

0

Please run the same command as shown in IDE output window.

0

请先登录再写评论。