You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@jclouds.apache.org by "BK Lau (JIRA)" <ji...@apache.org> on 2014/11/24 23:21:13 UTC

[jira] [Commented] (JCLOUDS-783) inspect call results in java.lang.IllegalStateException: Expected STRING but was BEGIN_ARRAY

    [ https://issues.apache.org/jira/browse/JCLOUDS-783?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14223636#comment-14223636 ] 

BK Lau commented on JCLOUDS-783:
--------------------------------

Sample docker inspect output of a running nginx container:
================================================

[{
    "Args": [
        "-g",
        "daemon off;"
    ],
    "Config": {
        "AttachStderr": true,
        "AttachStdin": false,
        "AttachStdout": true,
        "Cmd": [
            "nginx",
            "-g",
            "daemon off;"
        ],
        "CpuShares": 0,
        "Cpuset": "",
        "Domainname": "",
        "Entrypoint": [],
        "Env": [
            "DEFAULT_LOG_LEVEL=info",
            "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
            "NGINX_VERSION=1.7.7-1~wheezy"
        ],
        "ExposedPorts": {
            "443/tcp": {},
            "80/tcp": {}
        },
        "Hostname": "a11d4005f241",
        "Image": "test/nginx",
        "Memory": 268435456,
        "MemorySwap": -1,
        "NetworkDisabled": false,
        "OnBuild": null,
        "OpenStdin": false,
        "PortSpecs": null,
        "SecurityOpt": null,
        "StdinOnce": false,
        "Tty": false,
        "User": "",
        "Volumes": {
            "/var/cache/nginx": {}
        },
        "WorkingDir": ""
    },
    "Created": "2014-11-24T21:55:22.371099702Z",
    "Driver": "aufs",
    "ExecDriver": "native-0.2",
    "HostConfig": {
        "Binds": null,
        "CapAdd": null,
        "CapDrop": null,
        "ContainerIDFile": "/home/blau/Public/DSEngine/work/BLAU-Z230-1/fabric/docker/1.cid",
        "Devices": [],
        "Dns": null,
        "DnsSearch": null,
        "ExtraHosts": null,
        "Links": null,
        "LxcConf": [],
        "NetworkMode": "bridge",
        "PortBindings": {
            "80/tcp": [
                {
                    "HostIp": "10.97.34.73",
                    "HostPort": "9091"
                }
            ]
        },
        "Privileged": false,
        "PublishAllPorts": false,
        "RestartPolicy": {
            "MaximumRetryCount": 0,
            "Name": ""
        },
        "VolumesFrom": null
    },
    "HostnamePath": "/var/lib/docker/containers/a11d4005f2417e0d7a55fb39e009211c94dfcefb4f320524b5177249d53df696/hostname",
    "HostsPath": "/var/lib/docker/containers/a11d4005f2417e0d7a55fb39e009211c94dfcefb4f320524b5177249d53df696/hosts",
    "Id": "a11d4005f2417e0d7a55fb39e009211c94dfcefb4f320524b5177249d53df696",
    "Image": "e21e462b1b4978a773baedabbcd9b7d54fd4726809dc2739c3007c39869963a3",
    "MountLabel": "",
    "Name": "/nginx_blau_z230_1",
    "NetworkSettings": {
        "Bridge": "",
        "Gateway": "",
        "IPAddress": "",
        "IPPrefixLen": 0,
        "MacAddress": "",
        "PortMapping": null,
        "Ports": null
    },
    "Path": "nginx",
    "ProcessLabel": "",
    "ResolvConfPath": "/var/lib/docker/containers/a11d4005f2417e0d7a55fb39e009211c94dfcefb4f320524b5177249d53df696/resolv.conf",
    "State": {
        "ExitCode": 0,
        "FinishedAt": "2014-11-24T22:03:20.587410088Z",
        "Paused": false,
        "Pid": 0,
        "Restarting": false,
        "Running": false,
        "StartedAt": "2014-11-24T21:55:22.47603123Z"
    },
    "Volumes": {
        "/var/cache/nginx": "/var/lib/docker/vfs/dir/43f5d992e9c317a0de5c6010e3f5a0d726f7feeebb8ab995b753e7e7838c909f"
    },
    "VolumesRW": {
        "/var/cache/nginx": true
    }
}
]
======================================================

> inspect call results in java.lang.IllegalStateException: Expected STRING but was BEGIN_ARRAY
> --------------------------------------------------------------------------------------------
>
>                 Key: JCLOUDS-783
>                 URL: https://issues.apache.org/jira/browse/JCLOUDS-783
>             Project: jclouds
>          Issue Type: Bug
>          Components: jclouds-labs
>    Affects Versions: 1.8.0
>         Environment: Docker 1.3.1, ubuntu 14.04
>            Reporter: BK Lau
>            Priority: Critical
>              Labels: docker, inspect
>
> I run NGINX from https://registry.hub.docker.com/_/nginx/ and tried doing
> an inspect on a running container based on above nginx using Docker version 1.3.1 on ubuntu 14.04, I got consistently JSON parsing errors:
> java.lang.IllegalStateException: Expected STRING but was BEGIN_ARRAY
> I attached sample error logs and Docker CLI inspect



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)