Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to determine endpoint type for ppc64le agent #156

Open
disprosium8 opened this issue Sep 16, 2020 · 2 comments
Open

Unable to determine endpoint type for ppc64le agent #156

disprosium8 opened this issue Sep 16, 2020 · 2 comments

Comments

@disprosium8
Copy link

Running portainer-ce on amd64 and agent 1.6.0 on ppc64le using portainer/agent:linux-ppc64le

When trying to register Agent as new Endpoint via webUI:

-ce log:
2020/09/16 17:07:13 http error: Unable to get endpoint type (err=Agent Platform Header is missing) (code=500)

Agent debug run:
docker run -ti -p 9001:9001 --network=portainer_agent_network -e AGENT_CLUSTER_ADDR=<ip> --mount type=bind,src=//var/run/docker.sock,dst=/var/run/docker.sock --mount type=bind,src=//var/lib/docker/volumes,dst=/var/lib/docker/volumes portainer/agent:linux-ppc64le --platform=ppc64le portainer/agent:linux-ppc64le

Also tried:
docker service create --name portainer_agent --network portainer_agent_network --publish mode=host,target=9001,published=9001 --mode global --mount type=bind,src=//var/run/docker.sock,dst=/var/run/docker.sock --mount type=bind,src=//var/lib/docker/volumes,dst=/var/lib/docker/volumes --no-resolve-image portainer/agent:linux-ppc64le

Without --no-resolve-image the service will report unsupported architecture and not start.

Probable issue is that Architecture is set to amd64 in ppc64le image?

$ docker inspect portainer/agent:linux-ppc64le
...
        "Architecture": "amd64",
        "Os": "linux",
        "Size": 13516934,
...

Many other amd64 agent endpoints have registered and are usable using the same method at the same instance.

@eheu
Copy link

eheu commented Mar 30, 2022

Am also running into this

From ppc64le-host:

$ docker pull portainer/agent
Using default tag: latest
latest: Pulling from portainer/agent
no matching manifest for linux/ppc64le in the manifest list entries

From amd64-host:

$ docker pull portainer/agent:linux-ppc64le >/dev/null && docker manifest inspect portainer/agent:linux-ppc64le --verbose | grep architecture
                        "architecture": "amd64",

@Newspaperman57
Copy link

Confirming that this is till an issue:

root@dev5p:~# docker pull portainer/agent:latest
latest: Pulling from portainer/agent
no matching manifest for linux/ppc64le in the manifest list entries

However, specifying a version works:

root@dev5p:~# docker pull portainer/agent:2.19.1
2.19.1: Pulling from portainer/agent
9ed3d7414deb: Pull complete 
c227b94b97a0: Pull complete 
3d435dd9f3ec: Pull complete 
fee55ffc6023: Pull complete 
ac2075fc3fd7: Pull complete 
d3e45bc15f02: Pull complete 
e6bdf79c49e7: Pull complete 
77a11d2303cb: Pull complete 
42b6bcb32765: Pull complete 
0ef8ab4ae97e: Pull complete 
Digest: sha256:c74e57bebbe93b347d0b8f4a23cd3820a3abda9ea58c5bc87d6d3a769fe70d7d
Status: Downloaded newer image for portainer/agent:2.19.1
docker.io/portainer/agent:2.19.1
root@dev5p:~# docker run portainer/agent:2.19.1
2023/10/24 09:40AM INF github.com/portainer/agent/cmd/agent/main.go:86 > agent running on Docker platform |

This is also visible on docker-hub by the linux/ppc64le-tag missing on the latest-tag, but being present on the versioned tag:

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants