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

Empty screen when clicking on pod on ocp sandbox #3868

Closed
lstocchi opened this issue Sep 12, 2023 · 5 comments · Fixed by #4371
Closed

Empty screen when clicking on pod on ocp sandbox #3868

lstocchi opened this issue Sep 12, 2023 · 5 comments · Fixed by #4371
Assignees

Comments

@lstocchi
Copy link
Contributor

Bug description

empty_screen_pod

Operating system

Windows 11

Installation Method

Installer from website/GitHub releases

Version

1.3.1

Steps to reproduce

  1. create a pod on your ocp sandbox cluster
  2. click on the pod from the pods list

Relevant log output

No response

Additional context

No response

@lstocchi lstocchi added the kind/bug 🐞 Something isn't working label Sep 12, 2023
@deboer-tim
Copy link
Collaborator

Is there anything in the log/trace? FWIW this is working fine for me on Mac on both 1.3.1 and dev.

@lstocchi
Copy link
Contributor Author

No error in the logs. I'll try to debug it later

@smfeest
Copy link

smfeest commented Oct 6, 2023

I'm seeing something very similar whenever I click Run Image on the Images screen.

Windows 11 / Podman Desktop 1.4.0 / Podman 4.6.2

The logs contain:

error : main ↪️ Kubeconfig path C:\Users\feests\.kube\config provided does not exist. Skipping.
warn : MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 extensions-started listeners added. Use emitter.setMaxListeners() to increase limit
log : main ↪️ PluginSystem: received dom-ready event from the UI
log : main ↪️ Delayed startup, flushing 7 events
log : main ↪️ System ready. Loading extensions...
log : main ↪️ Activating extension (podman-desktop.compose) with max activation time of 10 seconds
log : main ↪️ Activating extension (podman-desktop.docker) with max activation time of 10 seconds
log : main ↪️ Activating extension (podman-desktop.kind) with max activation time of 10 seconds
log : main ↪️ Activating extension (podman-desktop.kube-context) with max activation time of 10 seconds
log : main ↪️ [kube-context] starting extension kube-context
log : main ↪️ Activating extension (podman-desktop.lima) with max activation time of 10 seconds
debug : main ↪️ [lima] Could not find socket at C:\Users\feests\.lima\podman\sock\podman.sock
log : main ↪️ Activating extension (podman-desktop.podman) with max activation time of 10 seconds
log : main ↪️ Activating extension (podman-desktop.registries) with max activation time of 10 seconds
log : main ↪️ Activating extension (podman-desktop.compose) ended in 89 milliseconds
log : main ↪️ Activating extension (podman-desktop.docker) ended in 88 milliseconds
log : main ↪️ Activating extension (podman-desktop.kube-context) ended in 59 milliseconds
log : main ↪️ Activating extension (podman-desktop.lima) ended in 58 milliseconds
log : main ↪️ Activating extension (podman-desktop.registries) ended in 45 milliseconds
debug : main ↪️ [podman] Error while pinging docker as podman Error: connect ENOENT //./pipe/docker_engine
log : main ↪️ Fetched https://registry.podman-desktop.io/api/extensions.json in 339.6923000216484ms
log : main ↪️ Fetched https://registry.podman-desktop.io/api/extensions.json in 190.98960000276566ms
debug : main ↪️ [podman] Error while pinging docker as podman Error: connect ENOENT //./pipe/docker_engine
error : main ↪️ [kind] [object Object]
log : main ↪️ Activating extension (podman-desktop.kind) ended in 731 milliseconds
log : main ↪️ Activating extension (podman-desktop.podman) ended in 990 milliseconds
log : main ↪️ PluginSystem: initialization done.
log : main ↪️ Autostarting container engine
log : main ↪️ [podman] Podman extension: Autostarting machine podman-machine-default
log : main ↪️ Fetched https://registry.podman-desktop.io/api/extensions.json in 85.88849997520447ms

@feloy
Copy link
Contributor

feloy commented Oct 16, 2023

I can also reproduce the problem on Linux

@feloy feloy self-assigned this Oct 16, 2023
@feloy
Copy link
Contributor

feloy commented Oct 16, 2023

The URL to access the pod details page is /pods/$kind/$name/$engineId/logs with engineId being encoded with encodeURI.

In the case of ocp sandbox, engineId is in the form userid-dev/api-sandbox-...-openshiftapps-com:6443/userId, and encodeURI of this value is the same value, '/' not being encoded, and as a result the engineId read by the Details page is incomplete (userid-dev only).

To get the value encoded as we want, I think we need to use encodeURIComponent instead.

To fix this, we will need to change in all the places where this route is computed to replace encodeURI with encodeURIComponent, and decode it in App.svelte with decodeURIComponent.

I would suggest to make a refactor, to define helper functions creating the route with encoded fragment, instead of having the same formula duplicated in every places where the route is defined, so it will be easier to update routes later.

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

Successfully merging a pull request may close this issue.

6 participants