ER144
September 22, 2017, 2:26pm
1
Just added a new host with upgraded docker (upgradded to 17.06.2-ce). The client now fails with
time=“2017-09-22T14:25:01Z” level=fatal msg=“json: cannot unmarshal object into Go value of type []string”
Tried a new version of Rancher server with new version of Docker and got the same results
Thanks for the report. Can you please share the exact command you are a running to get that error?
Also, the exact version of rancher (click the version number in bottom left of rancher UI and copy paste all the output.
ER144
September 25, 2017, 10:21am
3
Here is everything I know
On the Rancher server
Component Version
Rancher v1.6.2
Cattle v0.181.4
User Interface v1.6.5
Rancher CLI v0.6.1
Rancher Compose v0.12.5
On the Rancher server
Client:
Version: 17.06.2-ce
API version: 1.30
Go version: go1.8.3
Git commit: cec0b72
Built: Tue Sep 5 19:59:06 2017
OS/Arch: linux/amd64
Server:
Version: 17.06.2-ce
API version: 1.30 (minimum version 1.12)
Go version: go1.8.3
Git commit: cec0b72
Built: Tue Sep 5 20:00:25 2017
OS/Arch: linux/amd64
Experimental: false
On the client machine
Client:
Version: 17.06.2-ce
API version: 1.30
Go version: go1.8.3
Git commit: cec0b72
Built: Tue Sep 5 19:59:06 2017
OS/Arch: linux/amd64
Server:
Version: 17.06.2-ce
API version: 1.30 (minimum version 1.12)
Go version: go1.8.3
Git commit: cec0b72
Built: Tue Sep 5 20:00:25 2017
OS/Arch: linux/amd64
Experimental: false
what is running that gets the error
c3847e918031 rancher/agent:v1.2.2 “/run.sh run” 2 days ago Restarting (1) 27 seconds ago rancher-agent
the rancher command that causes the issue (from add host)
sudo docker run --rm --privileged -v /var/run/docker.sock:/var/run/docker.sock -v /var/lib/rancher:/var/lib/rancher rancher/agent:v1.2.2 http://devdocker07:8080/v1/scripts/257F37725A36470E9C3B:1483142400000:TXF5VlkW33OUEJ61PoM97tzM
Looks like you are on Rancher v1.6.2 and 17.06 is only support on v1.6.3 and higher
https://rancher.com/docs/rancher/latest/en/hosts/#supported-docker-versions
ER144
September 26, 2017, 10:59am
5
That fixed the issue. Must complement you guys - this was about the easiest upgrade I had ever performed. A bit scary as I was afraid to loose my data, but easy.
thx
1 Like
Hi,
I have the same problem, can you share how you proceed to upgrade your rancher server to v1.6.3 ?
Thanks,
F.D