question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

InspectContainer fail: Info too big for Integer format

See original GitHub issue

Hi, I notice a problem with inspecting containers created by a Windows Server Image specifically when they are down. The problem is on the “Exit code” wich is too long than the format “Integer” can support so I think it have to be changed in “long”.

I’m using the last stable version of docker-java (3.1.1):

Here some info:

Container State info from docker bash

> "Id": "93a53b5c7992f9a2e3c96c97effebf9831e4068c25fb12957c83e919a246f11e",
        "Created": "2019-10-10T10:07:11.834181Z",
        "Path": "C:\\ServiceMonitor.exe",
        "Args": [
            "w3svc"
        ],
        "State": {
            "Status": "exited",
            "Running": false,
            "Paused": false,
            "Restarting": false,
            "OOMKilled": false,
            "Dead": false,
            "Pid": 0,
            "ExitCode": 3221225786,    <---------
            "Error": "",
            "StartedAt": "2019-10-10T14:43:40.8936086Z",
            "FinishedAt": "2019-10-10T16:43:57.0633607+02:00"
        },

Error from “dockerClient.inspectContainerCmd(containerId.exec())”:

com.fasterxml.jackson.databind.JsonMappingException: Numeric value (3221225786) out of range of int at [Source: (byte[])“{“Id”:“93a53b5c7992f9a2e3c96c97effebf9831e4068c25fb12957c83e919a246f11e”,“Created”:“2019-10-10T10:07:11.834181Z”,“Path”:“C:\ServiceMonitor.exe”,“Args”:[“w3svc”],“State”:{“Status”:“exited”,“Running”:false,“Paused”:false,“Restarting”:false,“OOMKilled”:false,“Dead”:false,“Pid”:0,“ExitCode”:3221225786,“Error”:”",“StartedAt”:“2019-10-10T14:43:40.8936086Z”,“FinishedAt”:“2019-10-10T16:43:57.0633607+02:00”},“Image”:“sha256:8802176f1984cab0eef41e6ba81dfa643b51cf91752577df64e3329df047a7ed”,“ResolvConfPat”[truncated 3135 bytes]; line: 1, column: 290] (through reference chain: com.github.dockerjava.api.command.InspectContainerResponse[“State”]->com.github.dockerjava.api.command.InspectContainerResponse$ContainerState[“ExitCode”])

Thanks.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:2
  • Comments:12 (4 by maintainers)

github_iconTop GitHub Comments

4reactions
bsideupcommented, Oct 22, 2019

I will fix it ASAP in the upcoming 3.2.0 version

2reactions
ValentinParamonovcommented, Oct 15, 2019

I’m having the same problem, but in my case it’s InspectExecResponse and “Pid” field.

{
    "CanRemove": true,
    "ContainerID": "cfee9b10d26804c10a58d20362252e4bdc92a993d38170725fd8769354e98ebd",
    "DetachKeys": "",
    "ExitCode": 0,
    "ID": "ccfe7132fe39967962a8e922e8409d4bb029deb76adc4930501a512c97b04d22",
    "OpenStderr": true,
    "OpenStdin": false,
    "OpenStdout": true,
    "Pid": 4294967295,
    "ProcessConfig": {
        "arguments": [
            "-c",
            "true &&  (cat /proc/net/tcp{,6} | awk '{print $2}' | grep -i :15 || nc -vz -w 1 localhost 21 || /bin/bash -c '</dev/tcp/localhost/21')"
        ],
        "entrypoint": "/bin/sh",
        "privileged": false,
        "tty": false
    },
    "Running": false
}

I think both exitCode and pid in InspectExecResponse should be converted to Longs.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Fix and Debug Docker Containers Like a Superhero
Read along to learn how to debug Docker containers. ... Inspect the entrypoint.sh file to confirm our desired command exists.
Read more >
Why are Docker container images so large? - Stack Overflow
The key is to not use the official Docker images, they are too big. Scratch isn't all that practical either so I'd recommend...
Read more >
Making Sense of Hexdump | SUSE Communities
Part of the format syntax is pretty much the same as a commonly used ... dump the entire file to screen so use...
Read more >
Set container log limits when Docker is filling up /var/lib/docker ...
A log file can grow so large that it fills up the disk space if the container runs ... OR # cat /dev/null...
Read more >
Top 10 Reasons for Slow Loading Websites (And How to Fix It)
Check the file size of your images, anything above 1MB is really unacceptable. Use JPEG instead of PNG, especially for larger images. Icons...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found