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

Workaround for frontend-version page not working in podman v5 #105

Closed
wants to merge 1 commit into from

Conversation

bjosttveit
Copy link
Member

@bjosttveit bjosttveit commented Jun 3, 2024

Description

Ever since upgrading to podman v5 I have had trouble with the "Pick frontend version" page taking forever and eventually timing out. I have waited for a couple of updates with the hope that it would resolve itself, but seeing as this is still an issue for me in podman v5.1 I have made this workaround.

The issue seems to be that when trying to connect to a port on host.docker.internal that does not have a server running it just tries to connect forever until eventually timing out after 100 seconds, throwing a TaskCanceledException which is not caught in main so the page eventually fails to load. I have not figured out why the requests don't simply fail instantly. To work around this problem I catch the TaskCanceledException, use a very low timeout for the HttpClient, and run the requests in parallel so that it only takes half a second to fail all of the other requests where a frontend server is not running.

If someone else uses podman v5 and don't have this issue then maybe its just my machine, and if we figure it out we could close this.

Related Issue(s)

  • #{issue number}

Verification

  • Your code builds clean without any errors or warnings
  • Manual testing done (required)
  • Relevant automated test added (if you find this hard, leave it and we'll help out)
  • All tests run green

Documentation

  • User documentation is updated with a separate linked PR in altinn-studio-docs. (if applicable)

@bjosttveit
Copy link
Member Author

Seems like Ronny does not have this problem in Podman 5.0.2, so I will close this for now

@bjosttveit bjosttveit closed this Jun 6, 2024
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

Successfully merging this pull request may close these issues.

1 participant