portainer: json: cannot unmarshal number into Go struct field Stack.Id of type portainer.StackID

Exception opening Dashboard and Stacks view

When opening the Dashboard and Stacks view an error message pops up. json: cannot unmarshal number into Go struct field Stack.Id of type portainer.StackID

Technical details:

  • Portainer version: 1.16.5 (Via docker image: f6dd93561a5f)
  • Target Docker version (the host/cluster you manage):
Client:
 Version:       17.12.0-ce
 API version:   1.35
 Go version:    go1.9.2
 Git commit:    c97c6d6
 Built: Wed Dec 27 20:05:22 2017
 OS/Arch:       windows/amd64

Server:
 Engine:
  Version:      17.12.0-ce
  API version:  1.35 (minimum version 1.12)
  Go version:   go1.9.2
  Git commit:   c97c6d6
  Built:        Wed Dec 27 20:12:29 2017
  OS/Arch:      linux/amd64
  Experimental: true
  • Platform (windows/linux): Windows 10 Pro
  • Command used to start Portainer : docker-compose up Based on the portainer-compose github example, mount points changed for usage on Windows platform.
version: '2'

services:
  proxy:
    build: nginx/
    container_name: "portainer-proxy"
    ports:
      - "8080:80"
    networks:
      - local
  templates:
    image: portainer/templates
    container_name: "portainer-templates"
    networks:
      - local
  portainer:
    image: portainer/portainer
    container_name: "portainer-app"
#Automatically choose 'Manage the Docker instance where Portainer is running' by adding <--host=unix:///var/run/docker.sock> to the command
    command: --templates http://templates/templates.json
    networks:
      - local
    volumes:
      - //var/run/docker.sock:/var/run/docker.sock
      - C:\ProgramData\Portainer:/data
  watchtower:
    image: v2tec/watchtower
    container_name: "portainer-watchtower"
    command: --cleanup portainer-app portainer-watchtower portainer/templates
    networks:
      - local
    volumes:
      - //var/run/docker.sock:/var/run/docker.sock
networks:
  local:
    driver: bridge
  • Browser: Google Chrome Version 65.0.3325.181 (Official Build) (64-bit)

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 17 (6 by maintainers)

Most upvoted comments

I sent an email with the db enclosed to the mail address in your contact info.