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

podman info fails: Error: parse "[::]:2376": first path segment in URL cannot contain colon #24152

Open
waldiTM opened this issue Oct 3, 2024 · 0 comments
Labels
kind/bug Categorizes issue or PR as related to a bug.

Comments

@waldiTM
Copy link

waldiTM commented Oct 3, 2024

Issue Description

Running podman info remote via TCP fails with: Error: parse "[::]:2376": first path segment in URL cannot contain colon

The HTTP request is:

GET /v5.2.3/libpod/info HTTP/1.1
Host: d
User-Agent: Go-http-client/1.1

The response is:

HTTP/1.1 500 Internal Server Error
Api-Version: 1.41
Content-Type: application/json
Libpod-Api-Version: 5.2.3
Server: Libpod/5.2.3 (linux)
X-Reference-Id: 0xc000630010
Date: Thu, 03 Oct 2024 18:01:27 GMT
Content-Length: 154

{"cause":"first path segment in URL cannot contain colon","message":"parse \"[::]:2376\": first path segment in URL cannot contain colon","response":500}

Steps to reproduce the issue

Steps to reproduce the issue

  1. Make podman listen on TCP via systemd socket activation. Aka append the podman.socket unit with
[Socket]
ListenStream=
ListenStream=2376
  1. Execute HTTP request with echo "GET /v5.2.3/libpod/info HTTP/1.1\nHost: d\n\n" | nc -C localhost 2376

Describe the results you received

HTTP 500 and error parse "[::]:2376": first path segment in URL cannot contain colon

Describe the results you expected

A proper info result.

podman info output

The request `podman info` does itself fail.

* Debian 13
* Podman 5.2.3

Podman in a container

No

Privileged Or Rootless

Privileged

Upstream Latest Release

No

Additional environment details

Additional environment details

Additional information

Additional information like issue happens only occasionally or issue happens with a particular architecture or on a particular setting

@waldiTM waldiTM added the kind/bug Categorizes issue or PR as related to a bug. label Oct 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug.
Projects
None yet
Development

No branches or pull requests

1 participant