[GH-ISSUE #586] Bug: current machine does not support all of the following #194

Closed
opened 2026-02-26 04:34:20 +03:00 by kerem · 18 comments
Owner

Originally created by @SiriosDev on GitHub (Oct 7, 2024).
Original GitHub issue: https://github.com/mageddo/dns-proxy-server/issues/586

What is Happening

Using the following compose (derived from the run recommended in the docs) the container does not start giving in the logs only the lack of some instruction sets (read the logs below)

the processor is an Intel(R) Celeron(R) J4125 CPU, so fairly recent, also I didn't put the suffix for arch

version: "3.3"
services:
  dns-proxy-server:
    image: defreitas/dns-proxy-server
    hostname: dps
    container_name: dps
    restart: unless-stopped
    ports:
      - 5354:53/tcp
      - 5354:53/udp
      - 5380:5380
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock
    environment: []
    networks:
      - local
networks:
  local:
    external: true

What is Expected

Describe what you expected to happen.

Specs

  • Docker Version: 27.3.1
  • DPS Version: latest (cant run)
  • Log
dps  | The current machine does not support all of the following CPU features that are required by the image: [CX8, CMOV, FXSR, MMX, SSE, SSE2, SSE3, SSSE3, SSE4_1, SSE4_2, POPCNT, LZCNT, AVX, AVX2, BMI1, BMI2, FMA].
dps  | Please rebuild the executable with an appropriate setting of the -march option.The current machine does not support all of the following CPU features that are required by the image: [CX8, CMOV, FXSR, MMX, SSE, SSE2, SSE3, SSSE3, SSE4_1, SSE4_2, POPCNT, LZCNT, AVX, AVX2, BMI1, BMI2, FMA].
  • OS: Debian 12
Originally created by @SiriosDev on GitHub (Oct 7, 2024). Original GitHub issue: https://github.com/mageddo/dns-proxy-server/issues/586 ## What is Happening Using the following compose (derived from the run recommended in the docs) the container does not start giving in the logs only the lack of some instruction sets (read the logs below) the processor is an Intel(R) Celeron(R) J4125 CPU, so fairly recent, also I didn't put the suffix for arch ```yaml version: "3.3" services: dns-proxy-server: image: defreitas/dns-proxy-server hostname: dps container_name: dps restart: unless-stopped ports: - 5354:53/tcp - 5354:53/udp - 5380:5380 volumes: - /var/run/docker.sock:/var/run/docker.sock environment: [] networks: - local networks: local: external: true ``` ## What is Expected Describe what you expected to happen. ## Specs * Docker Version: `27.3.1` * DPS Version: `latest` (cant run) * Log ```log dps | The current machine does not support all of the following CPU features that are required by the image: [CX8, CMOV, FXSR, MMX, SSE, SSE2, SSE3, SSSE3, SSE4_1, SSE4_2, POPCNT, LZCNT, AVX, AVX2, BMI1, BMI2, FMA]. dps | Please rebuild the executable with an appropriate setting of the -march option.The current machine does not support all of the following CPU features that are required by the image: [CX8, CMOV, FXSR, MMX, SSE, SSE2, SSE3, SSSE3, SSE4_1, SSE4_2, POPCNT, LZCNT, AVX, AVX2, BMI1, BMI2, FMA]. ``` * OS: Debian 12
kerem 2026-02-26 04:34:20 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@julipercas commented on GitHub (Oct 21, 2024):

I'm also having this problem only since recently, even though I've been using dps-dns in docker for months without issues.

  • Docker version 24.0.2
  • DPS version: latest
  • OS: Ubuntu 18.04
<!-- gh-comment-id:2426205027 --> @julipercas commented on GitHub (Oct 21, 2024): I'm also having this problem only since recently, even though I've been using dps-dns in docker for months without issues. * Docker version 24.0.2 * DPS version: latest * OS: Ubuntu 18.04
Author
Owner

@mageddo commented on GitHub (Oct 21, 2024):

Looks like it's related to build optimizations, [1] [2]

Can you confirm that version 3.26.0-snapshot works great and 3.29.0-snapshot don´t?

<!-- gh-comment-id:2426517481 --> @mageddo commented on GitHub (Oct 21, 2024): Looks like it's related to build optimizations, [[1][1]] [[2][2]] Can you confirm that version `3.26.0-snapshot` works great and `3.29.0-snapshot` don´t? [1]: https://github.com/spring-projects/spring-boot/issues/36576 [2]: https://github.com/mageddo/dns-proxy-server/commit/eae70f13da6a40f397da0a3af824f22e9bb9cc74#diff-49a96e7eea8a94af862798a45174e6ac43eb4f8b4bd40759b5da63ba31ec3ef7R222
Author
Owner

@SiriosDev commented on GitHub (Oct 21, 2024):

I've tried 3.24 3.26 latest nightly and 3.30.2, all same error

<!-- gh-comment-id:2426794809 --> @SiriosDev commented on GitHub (Oct 21, 2024): I've tried `3.24` `3.26` `latest` `nightly` and `3.30.2`, all same error
Author
Owner

@mageddo commented on GitHub (Oct 21, 2024):

Made an adjustment, releasing 3.30.4-snapshot right now, try check it out later.

<!-- gh-comment-id:2427830183 --> @mageddo commented on GitHub (Oct 21, 2024): Made an adjustment, releasing `3.30.4-snapshot` right now, try check it out later.
Author
Owner

@SiriosDev commented on GitHub (Oct 21, 2024):

Yep now work, in this moment u r the savior of my self host mental sanity

<!-- gh-comment-id:2427852663 --> @SiriosDev commented on GitHub (Oct 21, 2024): Yep now work, in this moment u r the savior of my self host mental sanity
Author
Owner

@mageddo commented on GitHub (Oct 22, 2024):

Glad to help :)

<!-- gh-comment-id:2429544133 --> @mageddo commented on GitHub (Oct 22, 2024): Glad to help :)
Author
Owner

@SiriosDev commented on GitHub (Oct 22, 2024):

For my needs it works perfectly, but I discovered that (I only think this one image because I can't try the old ones 😅) refuse to accept config in every form, trough env var some is ignored some cause error.At the same time the config file once bind causes a null point exception to be thrown

<!-- gh-comment-id:2430409852 --> @SiriosDev commented on GitHub (Oct 22, 2024): For my needs it works perfectly, but I discovered that (I only think this one image because I can't try the old ones 😅) refuse to accept config in every form, trough env var some is ignored some cause error.At the same time the config file once bind causes a null point exception to be thrown
Author
Owner

@mageddo commented on GitHub (Oct 25, 2024):

@SiriosDev can you elaborate an example for this issue you are getting? I made some tests and couldn´t reproduce

<!-- gh-comment-id:2438713521 --> @mageddo commented on GitHub (Oct 25, 2024): @SiriosDev can you elaborate an example for this issue you are getting? I made some tests and couldn´t reproduce
Author
Owner

@SiriosDev commented on GitHub (Oct 27, 2024):

Yep, this is my example, putting any kind of env var, the resulting container is always the same, with the pre set entry (dps-sample.dev), no domain etc etc

services:
  dps:
    image: defreitas/dns-proxy-server:3.30.4-snapshot-amd64-static
    hostname: dps
    container_name: dps
    restart: unless-stopped
    deploy:
      resources:
        limits:
          memory: 512M
    ports:
      - 53:53/tcp
      - 53:53/udp
      - 5380:5380
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock
    networks:
      - local
    environment:
      - MG_DOMAIN="dkr"
      - MG_HOST_MACHINE_HOSTNAME="host.dkr"
      - MG_NO_REMOTE_SERVERS=true
networks:
  local:
    external: true
<!-- gh-comment-id:2440119648 --> @SiriosDev commented on GitHub (Oct 27, 2024): Yep, this is my example, putting any kind of env var, the resulting container is always the same, with the pre set entry (`dps-sample.dev`), no domain etc etc ```yaml services: dps: image: defreitas/dns-proxy-server:3.30.4-snapshot-amd64-static hostname: dps container_name: dps restart: unless-stopped deploy: resources: limits: memory: 512M ports: - 53:53/tcp - 53:53/udp - 5380:5380 volumes: - /var/run/docker.sock:/var/run/docker.sock networks: - local environment: - MG_DOMAIN="dkr" - MG_HOST_MACHINE_HOSTNAME="host.dkr" - MG_NO_REMOTE_SERVERS=true networks: local: external: true ```
Author
Owner

@SiriosDev commented on GitHub (Oct 27, 2024):

while with this (removing the env in the compose)

volumes:
  - /var/run/docker.sock:/var/run/docker.sock
  - ./binds/conf:/app/conf/

and this config.json

{
  "version" : 2,
  "activeEnv" : "",
  "webServerPort" : 5300,
  "dnsServerPort" : 53,
  "defaultDns" : false,
  "logLevel" : "INFO",
  "logFile" : "console",
  "registerContainerNames" : false,
  "hostMachineHostname" : "host.dkr",
  "domain" : "dkr",
  "dpsNetwork" : false,
  "dpsNetworkAutoConnect" : false,
  "serverProtocol" : "UDP_TCP",
  "dockerHost" : "192.168.1.253",
  "resolvConfOverrideNameServers" : false,
  "noRemoteServers" : true,
  "noEntriesResponseCode" : 3,
  "dockerSolverHostMachineFallbackActive" : false,
  "solverRemote" : {
    "circuitBreaker" : { 
      "failureThreshold" : 3, 
      "failureThresholdCapacity" : 10, 
      "successThreshold" : 5, 
      "testDelay" : "PT20S" 
    }
  },
  "remoteDnsServers" : [ ],
  "envs" : [ ]
}

these errors appear:

18:20:57.495 [main           ] DEB c.m.d.config.application.ConfigPathMapper         l=16   m=build                           status=configPathBuilt, path=/app/conf/config.json
18:20:57.515 [main           ] DEB c.m.d.config.dataprovider.ConfigDAOJson           l=27   m=find                            configPath=/app/conf/config.json
18:20:57.518 [main           ] ERR com.mageddo.dnsproxyserver.App                    l=40   m=start                           status=fatalError, action=exit, msg=NullPointerException: , class=NullPointerException
java.lang.NullPointerException: null
	at com.github.dockerjava.httpclient5.ApacheDockerHttpClientImpl.<init>(ApacheDockerHttpClientImpl.java:65)
	at com.github.dockerjava.httpclient5.ApacheDockerHttpClient.<init>(ApacheDockerHttpClient.java:56)
	at com.github.dockerjava.httpclient5.ApacheDockerHttpClient.<init>(ApacheDockerHttpClient.java:9)
	at com.github.dockerjava.httpclient5.ApacheDockerHttpClient$Builder.build(ApacheDockerHttpClient.java:50)
	at com.mageddo.dnsproxyserver.quarkus.DockerConfig.dockerClient(DockerConfig.java:41)
	at com.mageddo.dnsproxyserver.di.module.ModuleDockerClient.dockerClient(ModuleDockerClient.java:16)
	at com.mageddo.dnsproxyserver.di.module.ModuleDockerClient_DockerClientFactory.dockerClient(ModuleDockerClient_DockerClientFactory.java:35)
	at com.mageddo.dnsproxyserver.di.module.ModuleDockerClient_DockerClientFactory.get(ModuleDockerClient_DockerClientFactory.java:27)
	at com.mageddo.dnsproxyserver.di.module.ModuleDockerClient_DockerClientFactory.get(ModuleDockerClient_DockerClientFactory.java:11)
	at dagger.internal.DoubleCheck.get(DoubleCheck.java:47)
	at com.mageddo.dnsproxyserver.solver.docker.dataprovider.DockerDAODefault_Factory.get(DockerDAODefault_Factory.java:38)
	at com.mageddo.dnsproxyserver.solver.docker.dataprovider.DockerDAODefault_Factory.get(DockerDAODefault_Factory.java:12)
	at dagger.internal.DoubleCheck.get(DoubleCheck.java:47)
	at com.mageddo.dnsproxyserver.usecase.HostMachineService_Factory.get(HostMachineService_Factory.java:38)
	at com.mageddo.dnsproxyserver.usecase.HostMachineService_Factory.get(HostMachineService_Factory.java:12)
	at dagger.internal.DoubleCheck.get(DoubleCheck.java:47)
	at com.mageddo.dnsproxyserver.solver.SolverSystem_Factory.get(SolverSystem_Factory.java:33)
	at com.mageddo.dnsproxyserver.solver.SolverSystem_Factory.get(SolverSystem_Factory.java:11)
	at dagger.internal.DoubleCheck.get(DoubleCheck.java:47)
	at com.mageddo.dnsproxyserver.di.module.ModuleSolver_SolversFactory.get(ModuleSolver_SolversFactory.java:50)
	at com.mageddo.dnsproxyserver.di.module.ModuleSolver_SolversFactory.get(ModuleSolver_SolversFactory.java:17)
	at dagger.internal.DoubleCheck.get(DoubleCheck.java:47)
	at dagger.internal.SetFactory.get(SetFactory.java:119)
	at dagger.internal.SetFactory.get(SetFactory.java:37)
	at com.mageddo.dnsproxyserver.di.module.ModuleSolver_SolversInstanceFactory.get(ModuleSolver_SolversInstanceFactory.java:36)
	at com.mageddo.dnsproxyserver.di.module.ModuleSolver_SolversInstanceFactory.get(ModuleSolver_SolversInstanceFactory.java:14)
	at com.mageddo.dnsproxyserver.solver.SolverProvider_Factory.get(SolverProvider_Factory.java:33)
	at com.mageddo.dnsproxyserver.solver.SolverProvider_Factory.get(SolverProvider_Factory.java:11)
	at dagger.internal.DoubleCheck.get(DoubleCheck.java:47)
	at dagger.internal.DelegateFactory.get(DelegateFactory.java:36)
	at com.mageddo.dnsproxyserver.server.dns.RequestHandlerDefault_Factory.get(RequestHandlerDefault_Factory.java:38)
	at com.mageddo.dnsproxyserver.server.dns.RequestHandlerDefault_Factory.get(RequestHandlerDefault_Factory.java:12)
	at dagger.internal.DoubleCheck.get(DoubleCheck.java:47)
	at com.mageddo.dnsserver.UDPServerPool_Factory.get(UDPServerPool_Factory.java:32)
	at com.mageddo.dnsserver.UDPServerPool_Factory.get(UDPServerPool_Factory.java:10)
	at dagger.internal.DoubleCheck.get(DoubleCheck.java:47)
	at com.mageddo.dnsserver.SimpleServer_Factory.get(SimpleServer_Factory.java:41)
	at com.mageddo.dnsserver.SimpleServer_Factory.get(SimpleServer_Factory.java:11)
	at dagger.internal.DoubleCheck.get(DoubleCheck.java:47)
	at com.mageddo.dnsproxyserver.server.dns.ServerStarter_Factory.get(ServerStarter_Factory.java:33)
	at com.mageddo.dnsproxyserver.server.dns.ServerStarter_Factory.get(ServerStarter_Factory.java:11)
	at dagger.internal.DoubleCheck.get(DoubleCheck.java:47)
	at com.mageddo.dnsproxyserver.server.Starter_Factory.get(Starter_Factory.java:43)
	at com.mageddo.dnsproxyserver.server.Starter_Factory.get(Starter_Factory.java:14)
	at dagger.internal.DoubleCheck.get(DoubleCheck.java:47)
	at com.mageddo.dnsproxyserver.di.DaggerContext$ContextImpl.starter(DaggerContext.java:424)
	at com.mageddo.dnsproxyserver.di.Context.start(Context.java:64)
	at com.mageddo.dnsproxyserver.App.startContext(App.java:86)
	at com.mageddo.dnsproxyserver.App.mustStart(App.java:61)
	at com.mageddo.dnsproxyserver.App.start(App.java:36)
	at com.mageddo.dnsproxyserver.App.main(App.java:30)
	at java.base@21.0.2/java.lang.invoke.LambdaForm$DMH/sa346b79c.invokeStaticInit(LambdaForm$DMH)
<!-- gh-comment-id:2440126617 --> @SiriosDev commented on GitHub (Oct 27, 2024): while with this (removing the env in the compose) ```yaml volumes: - /var/run/docker.sock:/var/run/docker.sock - ./binds/conf:/app/conf/ ``` and this config.json ```json { "version" : 2, "activeEnv" : "", "webServerPort" : 5300, "dnsServerPort" : 53, "defaultDns" : false, "logLevel" : "INFO", "logFile" : "console", "registerContainerNames" : false, "hostMachineHostname" : "host.dkr", "domain" : "dkr", "dpsNetwork" : false, "dpsNetworkAutoConnect" : false, "serverProtocol" : "UDP_TCP", "dockerHost" : "192.168.1.253", "resolvConfOverrideNameServers" : false, "noRemoteServers" : true, "noEntriesResponseCode" : 3, "dockerSolverHostMachineFallbackActive" : false, "solverRemote" : { "circuitBreaker" : { "failureThreshold" : 3, "failureThresholdCapacity" : 10, "successThreshold" : 5, "testDelay" : "PT20S" } }, "remoteDnsServers" : [ ], "envs" : [ ] } ``` these errors appear: ```log 18:20:57.495 [main ] DEB c.m.d.config.application.ConfigPathMapper l=16 m=build status=configPathBuilt, path=/app/conf/config.json 18:20:57.515 [main ] DEB c.m.d.config.dataprovider.ConfigDAOJson l=27 m=find configPath=/app/conf/config.json 18:20:57.518 [main ] ERR com.mageddo.dnsproxyserver.App l=40 m=start status=fatalError, action=exit, msg=NullPointerException: , class=NullPointerException java.lang.NullPointerException: null at com.github.dockerjava.httpclient5.ApacheDockerHttpClientImpl.<init>(ApacheDockerHttpClientImpl.java:65) at com.github.dockerjava.httpclient5.ApacheDockerHttpClient.<init>(ApacheDockerHttpClient.java:56) at com.github.dockerjava.httpclient5.ApacheDockerHttpClient.<init>(ApacheDockerHttpClient.java:9) at com.github.dockerjava.httpclient5.ApacheDockerHttpClient$Builder.build(ApacheDockerHttpClient.java:50) at com.mageddo.dnsproxyserver.quarkus.DockerConfig.dockerClient(DockerConfig.java:41) at com.mageddo.dnsproxyserver.di.module.ModuleDockerClient.dockerClient(ModuleDockerClient.java:16) at com.mageddo.dnsproxyserver.di.module.ModuleDockerClient_DockerClientFactory.dockerClient(ModuleDockerClient_DockerClientFactory.java:35) at com.mageddo.dnsproxyserver.di.module.ModuleDockerClient_DockerClientFactory.get(ModuleDockerClient_DockerClientFactory.java:27) at com.mageddo.dnsproxyserver.di.module.ModuleDockerClient_DockerClientFactory.get(ModuleDockerClient_DockerClientFactory.java:11) at dagger.internal.DoubleCheck.get(DoubleCheck.java:47) at com.mageddo.dnsproxyserver.solver.docker.dataprovider.DockerDAODefault_Factory.get(DockerDAODefault_Factory.java:38) at com.mageddo.dnsproxyserver.solver.docker.dataprovider.DockerDAODefault_Factory.get(DockerDAODefault_Factory.java:12) at dagger.internal.DoubleCheck.get(DoubleCheck.java:47) at com.mageddo.dnsproxyserver.usecase.HostMachineService_Factory.get(HostMachineService_Factory.java:38) at com.mageddo.dnsproxyserver.usecase.HostMachineService_Factory.get(HostMachineService_Factory.java:12) at dagger.internal.DoubleCheck.get(DoubleCheck.java:47) at com.mageddo.dnsproxyserver.solver.SolverSystem_Factory.get(SolverSystem_Factory.java:33) at com.mageddo.dnsproxyserver.solver.SolverSystem_Factory.get(SolverSystem_Factory.java:11) at dagger.internal.DoubleCheck.get(DoubleCheck.java:47) at com.mageddo.dnsproxyserver.di.module.ModuleSolver_SolversFactory.get(ModuleSolver_SolversFactory.java:50) at com.mageddo.dnsproxyserver.di.module.ModuleSolver_SolversFactory.get(ModuleSolver_SolversFactory.java:17) at dagger.internal.DoubleCheck.get(DoubleCheck.java:47) at dagger.internal.SetFactory.get(SetFactory.java:119) at dagger.internal.SetFactory.get(SetFactory.java:37) at com.mageddo.dnsproxyserver.di.module.ModuleSolver_SolversInstanceFactory.get(ModuleSolver_SolversInstanceFactory.java:36) at com.mageddo.dnsproxyserver.di.module.ModuleSolver_SolversInstanceFactory.get(ModuleSolver_SolversInstanceFactory.java:14) at com.mageddo.dnsproxyserver.solver.SolverProvider_Factory.get(SolverProvider_Factory.java:33) at com.mageddo.dnsproxyserver.solver.SolverProvider_Factory.get(SolverProvider_Factory.java:11) at dagger.internal.DoubleCheck.get(DoubleCheck.java:47) at dagger.internal.DelegateFactory.get(DelegateFactory.java:36) at com.mageddo.dnsproxyserver.server.dns.RequestHandlerDefault_Factory.get(RequestHandlerDefault_Factory.java:38) at com.mageddo.dnsproxyserver.server.dns.RequestHandlerDefault_Factory.get(RequestHandlerDefault_Factory.java:12) at dagger.internal.DoubleCheck.get(DoubleCheck.java:47) at com.mageddo.dnsserver.UDPServerPool_Factory.get(UDPServerPool_Factory.java:32) at com.mageddo.dnsserver.UDPServerPool_Factory.get(UDPServerPool_Factory.java:10) at dagger.internal.DoubleCheck.get(DoubleCheck.java:47) at com.mageddo.dnsserver.SimpleServer_Factory.get(SimpleServer_Factory.java:41) at com.mageddo.dnsserver.SimpleServer_Factory.get(SimpleServer_Factory.java:11) at dagger.internal.DoubleCheck.get(DoubleCheck.java:47) at com.mageddo.dnsproxyserver.server.dns.ServerStarter_Factory.get(ServerStarter_Factory.java:33) at com.mageddo.dnsproxyserver.server.dns.ServerStarter_Factory.get(ServerStarter_Factory.java:11) at dagger.internal.DoubleCheck.get(DoubleCheck.java:47) at com.mageddo.dnsproxyserver.server.Starter_Factory.get(Starter_Factory.java:43) at com.mageddo.dnsproxyserver.server.Starter_Factory.get(Starter_Factory.java:14) at dagger.internal.DoubleCheck.get(DoubleCheck.java:47) at com.mageddo.dnsproxyserver.di.DaggerContext$ContextImpl.starter(DaggerContext.java:424) at com.mageddo.dnsproxyserver.di.Context.start(Context.java:64) at com.mageddo.dnsproxyserver.App.startContext(App.java:86) at com.mageddo.dnsproxyserver.App.mustStart(App.java:61) at com.mageddo.dnsproxyserver.App.start(App.java:36) at com.mageddo.dnsproxyserver.App.main(App.java:30) at java.base@21.0.2/java.lang.invoke.LambdaForm$DMH/sa346b79c.invokeStaticInit(LambdaForm$DMH) ```
Author
Owner

@mageddo commented on GitHub (Oct 28, 2024):

Got this, that's a different issue, the cause of the issue is the following line

"dockerHost" : "192.168.1.253",

You need to specify a protocol, like:

"dockerHost" : "tcp://192.168.1.253",

Do you really need to specify that docker host? you can just not pass it and let DPS use /var/run/docker.sock

<!-- gh-comment-id:2441739994 --> @mageddo commented on GitHub (Oct 28, 2024): Got this, that's a different issue, the cause of the issue is the following line ```json "dockerHost" : "192.168.1.253", ``` You need to specify a protocol, like: ```json "dockerHost" : "tcp://192.168.1.253", ``` Do you really need to specify that docker host? you can just not pass it and let DPS use `/var/run/docker.sock`
Author
Owner

@SiriosDev commented on GitHub (Oct 28, 2024):

Do you really need to specify that docker host?

Yes cause otherwise point to the wrong ip

Specifying the protocol start correctly, but not resolve nothing (of the docker hostnames, ex: trying to ping/dig dps itself) anymore, and trying to resolve the host address (in my case host.dkr) throw a null exception here a log:


19:19:30.201 [virtual-81     ] DEB c.m.d.server.dns.RequestHandlerDefault            l=52   m=handle                          status=solveReq, kind=udp, query=query=A:host.dkr
19:19:30.201 [Thread-7       ] DEB c.m.d.docker.application.DockerConnectionCheck    l=50   m=updateStatus                    status=updatingDockerStatus, null=false, expired=true
19:19:30.201 [virtual-81     ] WAR c.m.d.server.dns.RequestHandlerDefault            l=101  m=solveAndSummarizeHandlingError  status=solverFailed, currentSolverTime=0, totalTime=0, solver=SolverSystem, query=query=A:host.dkr, eClass=IllegalStateException, msg=Can't connect to docker API
java.lang.IllegalStateException: Can't connect to docker API
	at com.mageddo.dnsproxyserver.docker.dataprovider.DockerClientConnectionChecked.checkConnection(DockerClientConnectionChecked.java:112)
	at com.mageddo.dnsproxyserver.docker.dataprovider.DockerClientConnectionChecked.listNetworksCmd(DockerClientConnectionChecked.java:431)
	at com.mageddo.dnsproxyserver.solver.docker.dataprovider.DockerDAODefault.findNetworks(DockerDAODefault.java:48)
	at com.mageddo.dnsproxyserver.solver.docker.dataprovider.DockerDAODefault.findNetworksWithIp(DockerDAODefault.java:56)
	at com.mageddo.dnsproxyserver.solver.docker.dataprovider.DockerDAODefault.findBestNetwork(DockerDAODefault.java:39)
	at com.mageddo.dnsproxyserver.solver.docker.dataprovider.DockerDAODefault.findHostMachineIp(DockerDAODefault.java:35)
	at com.mageddo.dnsproxyserver.usecase.HostMachineService.findHostMachineIP(HostMachineService.java:25)
	at com.mageddo.dnsproxyserver.solver.SolverSystem.handle(SolverSystem.java:37)
	at com.mageddo.dnsproxyserver.server.dns.RequestHandlerDefault.solveAndSummarize(RequestHandlerDefault.java:115)
	at com.mageddo.dnsproxyserver.server.dns.RequestHandlerDefault.solveAndSummarizeHandlingError(RequestHandlerDefault.java:99)
	at com.mageddo.dnsproxyserver.server.dns.RequestHandlerDefault.solve(RequestHandlerDefault.java:82)
	at com.mageddo.dnsproxyserver.server.dns.RequestHandlerDefault.solveFixingCacheTTL(RequestHandlerDefault.java:73)
	at com.mageddo.dnsproxyserver.solver.SolverCache.calculateValueWithoutLocks(SolverCache.java:70)
	at com.mageddo.dnsproxyserver.solver.SolverCache.handleRes(SolverCache.java:51)
	at com.mageddo.dnsproxyserver.solver.SolverCache.handle(SolverCache.java:40)
	at com.mageddo.dnsproxyserver.server.dns.RequestHandlerDefault.solveCaching(RequestHandlerDefault.java:66)
	at com.mageddo.dnsproxyserver.server.dns.RequestHandlerDefault.handle(RequestHandlerDefault.java:54)
	at com.mageddo.dnsserver.UDPServer.handle(UDPServer.java:55)
	at com.mageddo.dnsserver.UDPServer.lambda$start0$0(UDPServer.java:43)
	at java.base@21.0.2/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:572)
	at java.base@21.0.2/java.util.concurrent.FutureTask.run(FutureTask.java:317)
	at java.base@21.0.2/java.lang.Thread.runWith(Thread.java:1596)
	at java.base@21.0.2/java.lang.VirtualThread.run(VirtualThread.java:309)
	at java.base@21.0.2/java.lang.VirtualThread$VThreadContinuation$1.run(VirtualThread.java:190)
19:19:30.201 [virtual-81     ] DEB c.m.d.server.dns.RequestHandlerDefault            l=90   m=solve                           status=solveSummary, summary=[]
19:19:30.201 [virtual-81     ] WAR c.m.d.server.dns.RequestHandlerDefault            l=56   m=handle                          status=solverFailed, totalTime=0, eClass=NullPointerException, msg=null
java.lang.NullPointerException: null
	at com.mageddo.dnsproxyserver.server.dns.RequestHandlerDefault.solve(RequestHandlerDefault.java:83)
	at com.mageddo.dnsproxyserver.server.dns.RequestHandlerDefault.solveFixingCacheTTL(RequestHandlerDefault.java:73)
	at com.mageddo.dnsproxyserver.solver.SolverCache.calculateValueWithoutLocks(SolverCache.java:70)
	at com.mageddo.dnsproxyserver.solver.SolverCache.handleRes(SolverCache.java:51)
	at com.mageddo.dnsproxyserver.solver.SolverCache.handle(SolverCache.java:40)
	at com.mageddo.dnsproxyserver.server.dns.RequestHandlerDefault.solveCaching(RequestHandlerDefault.java:66)
	at com.mageddo.dnsproxyserver.server.dns.RequestHandlerDefault.handle(RequestHandlerDefault.java:54)
	at com.mageddo.dnsserver.UDPServer.handle(UDPServer.java:55)
	at com.mageddo.dnsserver.UDPServer.lambda$start0$0(UDPServer.java:43)
	at java.base@21.0.2/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:572)
	at java.base@21.0.2/java.util.concurrent.FutureTask.run(FutureTask.java:317)
	at java.base@21.0.2/java.lang.Thread.runWith(Thread.java:1596)
	at java.base@21.0.2/java.lang.VirtualThread.run(VirtualThread.java:309)
	at java.base@21.0.2/java.lang.VirtualThread$VThreadContinuation$1.run(VirtualThread.java:190)
19:19:30.202 [virtual-81     ] DEB com.mageddo.dnsserver.UDPServer                   l=59   m=handle                          status=success, query=rc=3, query=A:host.dkr, res=rc=3, query=A:host.dkr, serverAddr=/0:0:0:0:0:0:0:0, clientAddr=/172.30.33.254:47103, dataLength=512, datagramLength=49
<!-- gh-comment-id:2442435823 --> @SiriosDev commented on GitHub (Oct 28, 2024): > Do you really need to specify that docker host? Yes cause otherwise point to the wrong ip Specifying the protocol start correctly, but not resolve nothing (**of the docker hostnames**, ex: trying to ping/dig dps itself) anymore, and trying to resolve the host address (in my case `host.dkr`) throw a null exception here a log: ```log 19:19:30.201 [virtual-81 ] DEB c.m.d.server.dns.RequestHandlerDefault l=52 m=handle status=solveReq, kind=udp, query=query=A:host.dkr 19:19:30.201 [Thread-7 ] DEB c.m.d.docker.application.DockerConnectionCheck l=50 m=updateStatus status=updatingDockerStatus, null=false, expired=true 19:19:30.201 [virtual-81 ] WAR c.m.d.server.dns.RequestHandlerDefault l=101 m=solveAndSummarizeHandlingError status=solverFailed, currentSolverTime=0, totalTime=0, solver=SolverSystem, query=query=A:host.dkr, eClass=IllegalStateException, msg=Can't connect to docker API java.lang.IllegalStateException: Can't connect to docker API at com.mageddo.dnsproxyserver.docker.dataprovider.DockerClientConnectionChecked.checkConnection(DockerClientConnectionChecked.java:112) at com.mageddo.dnsproxyserver.docker.dataprovider.DockerClientConnectionChecked.listNetworksCmd(DockerClientConnectionChecked.java:431) at com.mageddo.dnsproxyserver.solver.docker.dataprovider.DockerDAODefault.findNetworks(DockerDAODefault.java:48) at com.mageddo.dnsproxyserver.solver.docker.dataprovider.DockerDAODefault.findNetworksWithIp(DockerDAODefault.java:56) at com.mageddo.dnsproxyserver.solver.docker.dataprovider.DockerDAODefault.findBestNetwork(DockerDAODefault.java:39) at com.mageddo.dnsproxyserver.solver.docker.dataprovider.DockerDAODefault.findHostMachineIp(DockerDAODefault.java:35) at com.mageddo.dnsproxyserver.usecase.HostMachineService.findHostMachineIP(HostMachineService.java:25) at com.mageddo.dnsproxyserver.solver.SolverSystem.handle(SolverSystem.java:37) at com.mageddo.dnsproxyserver.server.dns.RequestHandlerDefault.solveAndSummarize(RequestHandlerDefault.java:115) at com.mageddo.dnsproxyserver.server.dns.RequestHandlerDefault.solveAndSummarizeHandlingError(RequestHandlerDefault.java:99) at com.mageddo.dnsproxyserver.server.dns.RequestHandlerDefault.solve(RequestHandlerDefault.java:82) at com.mageddo.dnsproxyserver.server.dns.RequestHandlerDefault.solveFixingCacheTTL(RequestHandlerDefault.java:73) at com.mageddo.dnsproxyserver.solver.SolverCache.calculateValueWithoutLocks(SolverCache.java:70) at com.mageddo.dnsproxyserver.solver.SolverCache.handleRes(SolverCache.java:51) at com.mageddo.dnsproxyserver.solver.SolverCache.handle(SolverCache.java:40) at com.mageddo.dnsproxyserver.server.dns.RequestHandlerDefault.solveCaching(RequestHandlerDefault.java:66) at com.mageddo.dnsproxyserver.server.dns.RequestHandlerDefault.handle(RequestHandlerDefault.java:54) at com.mageddo.dnsserver.UDPServer.handle(UDPServer.java:55) at com.mageddo.dnsserver.UDPServer.lambda$start0$0(UDPServer.java:43) at java.base@21.0.2/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:572) at java.base@21.0.2/java.util.concurrent.FutureTask.run(FutureTask.java:317) at java.base@21.0.2/java.lang.Thread.runWith(Thread.java:1596) at java.base@21.0.2/java.lang.VirtualThread.run(VirtualThread.java:309) at java.base@21.0.2/java.lang.VirtualThread$VThreadContinuation$1.run(VirtualThread.java:190) 19:19:30.201 [virtual-81 ] DEB c.m.d.server.dns.RequestHandlerDefault l=90 m=solve status=solveSummary, summary=[] 19:19:30.201 [virtual-81 ] WAR c.m.d.server.dns.RequestHandlerDefault l=56 m=handle status=solverFailed, totalTime=0, eClass=NullPointerException, msg=null java.lang.NullPointerException: null at com.mageddo.dnsproxyserver.server.dns.RequestHandlerDefault.solve(RequestHandlerDefault.java:83) at com.mageddo.dnsproxyserver.server.dns.RequestHandlerDefault.solveFixingCacheTTL(RequestHandlerDefault.java:73) at com.mageddo.dnsproxyserver.solver.SolverCache.calculateValueWithoutLocks(SolverCache.java:70) at com.mageddo.dnsproxyserver.solver.SolverCache.handleRes(SolverCache.java:51) at com.mageddo.dnsproxyserver.solver.SolverCache.handle(SolverCache.java:40) at com.mageddo.dnsproxyserver.server.dns.RequestHandlerDefault.solveCaching(RequestHandlerDefault.java:66) at com.mageddo.dnsproxyserver.server.dns.RequestHandlerDefault.handle(RequestHandlerDefault.java:54) at com.mageddo.dnsserver.UDPServer.handle(UDPServer.java:55) at com.mageddo.dnsserver.UDPServer.lambda$start0$0(UDPServer.java:43) at java.base@21.0.2/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:572) at java.base@21.0.2/java.util.concurrent.FutureTask.run(FutureTask.java:317) at java.base@21.0.2/java.lang.Thread.runWith(Thread.java:1596) at java.base@21.0.2/java.lang.VirtualThread.run(VirtualThread.java:309) at java.base@21.0.2/java.lang.VirtualThread$VThreadContinuation$1.run(VirtualThread.java:190) 19:19:30.202 [virtual-81 ] DEB com.mageddo.dnsserver.UDPServer l=59 m=handle status=success, query=rc=3, query=A:host.dkr, res=rc=3, query=A:host.dkr, serverAddr=/0:0:0:0:0:0:0:0, clientAddr=/172.30.33.254:47103, dataLength=512, datagramLength=49 ```
Author
Owner

@mageddo commented on GitHub (Oct 28, 2024):

I'm afraid the container is not able to ping 192.168.1.253?

<!-- gh-comment-id:2442441486 --> @mageddo commented on GitHub (Oct 28, 2024): I'm afraid the container is not able to ping `192.168.1.253`?
Author
Owner

@SiriosDev commented on GitHub (Oct 28, 2024):

Theoretically yes, but practically I can't test it with ping because via docker exec I can't execute anything except ./dns-proxy-server <args>

all the other containers can so I am 90% sure

<!-- gh-comment-id:2442448049 --> @SiriosDev commented on GitHub (Oct 28, 2024): Theoretically yes, but practically I can't test it with ping because via `docker exec` I can't execute anything except `./dns-proxy-server <args>` all the other containers can so I am 90% sure
Author
Owner

@mageddo commented on GitHub (Oct 28, 2024):

You can do something as follows

docker run --rm -it --entrypoint sh defreitas/dns-proxy-server:3.30.4-snapshot
apt-get update && apt-get install curl
curl 192.168.1.253:<port>
<!-- gh-comment-id:2442460472 --> @mageddo commented on GitHub (Oct 28, 2024): You can do something as follows ```bash docker run --rm -it --entrypoint sh defreitas/dns-proxy-server:3.30.4-snapshot apt-get update && apt-get install curl curl 192.168.1.253:<port> ```
Author
Owner

@SiriosDev commented on GitHub (Oct 28, 2024):

ok, tested, perfectly reachable very strange

<!-- gh-comment-id:2442473777 --> @SiriosDev commented on GitHub (Oct 28, 2024): ok, tested, perfectly reachable very strange
Author
Owner

@SiriosDev commented on GitHub (Nov 9, 2024):

so?

<!-- gh-comment-id:2466251129 --> @SiriosDev commented on GitHub (Nov 9, 2024): so?
Author
Owner

@mageddo commented on GitHub (Nov 19, 2024):

I don't know how to help at this point

<!-- gh-comment-id:2486266489 --> @mageddo commented on GitHub (Nov 19, 2024): I don't know how to help at this point
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/dns-proxy-server-mageddo#194
No description provided.