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

xdg-open: no method available for opening on an Ubuntu machine #11222

Open
danielhabakkuk opened this issue Apr 28, 2021 · 10 comments
Open

xdg-open: no method available for opening on an Ubuntu machine #11222

danielhabakkuk opened this issue Apr 28, 2021 · 10 comments
Labels
kind/documentation Categorizes issue or PR as related to documentation. lifecycle/frozen Indicates that an issue or PR should not be auto-closed due to staleness. needs-solution-message Issues where where offering a solution for an error would be helpful os/linux priority/backlog Higher priority than priority/awaiting-more-evidence.

Comments

@danielhabakkuk
Copy link

Steps to reproduce the issue:

  1. minikube service mongo-express-service

🎉 Opening service default/mongo-express-service in default browser...
xdg-open: no method available for opening 'http://10.128.0.4:30000'

❌ Exiting due to HOST_BROWSER: exit status 3

😿 If the above advice does not help, please let us know:

Full output of minikube start command used, if not already included:

Optional: Full output of minikube logs command:

@danielhabakkuk danielhabakkuk changed the title xdg-open: no method available for opening xdg-open: no method available for opening on an Ubuntu machine Apr 28, 2021
@RA489
Copy link

RA489 commented Apr 29, 2021

/kind support

@k8s-ci-robot k8s-ci-robot added the kind/support Categorizes issue or PR as a support question. label Apr 29, 2021
@RA489 RA489 added the os/linux label Apr 29, 2021
@afbjorklund
Copy link
Collaborator

You can set your preferred web browser in your desktop settings, or you can export the $BROWSER environment variable.

Alternatively, you can use --url to just print it to the console instead of trying to opening it with the default web browser ?

@afbjorklund
Copy link
Collaborator

afbjorklund commented Apr 29, 2021

I think Firefox is the default in Ubuntu, see https://help.ubuntu.com/community/WebBrowsers

Like so: firefox http://10.128.0.4:30000

@medyagh
Copy link
Member

medyagh commented Apr 30, 2021

@danielhabakkuk your OS does not support openning link into browser,have u tried to open the url manually in your browser ?

@afbjorklund
Copy link
Collaborator

afbjorklund commented May 1, 2021

Probably needs an entry in the documentation, for people trying to run on control plane in a dedicated VM with only a CLI ?

https://github.com/kubernetes/minikube/issues?q=is%3Aissue+%22xdg-open%22

It would be possible to tunnel in special ports, and open them in a browser on another machine - like Katacoda is doing ?

https://kubernetes.io/docs/tutorials/hello-minikube/#create-a-minikube-cluster

Step 4 - Dashboard

Enable the dashboard using Minikube with the command minikube addons enable dashboard

Make the Kubernetes Dashboard available by deploying the following YAML definition. This should only be used on Katacoda.

kubectl apply -f /opt/kubernetes-dashboard.yaml

The Kubernetes dashboard allows you to view your applications in a UI. In this deployment, the dashboard has been made available on port 30000 but may take a while to start.

https://www.katacoda.com/courses/kubernetes/launch-single-node-cluster

It's also possible that the user does have a virtual desktop set up just for minikube, but forgot to install a web browser in it...

@afbjorklund afbjorklund added kind/documentation Categorizes issue or PR as related to documentation. needs-solution-message Issues where where offering a solution for an error would be helpful labels May 1, 2021
@sharifelgamal sharifelgamal added priority/backlog Higher priority than priority/awaiting-more-evidence. and removed kind/support Categorizes issue or PR as a support question. labels Jun 2, 2021
@sharifelgamal
Copy link
Collaborator

I'm going to turn this issue into a documentation issue for CLI-only environments.

@k8s-triage-robot
Copy link

The Kubernetes project currently lacks enough contributors to adequately respond to all issues and PRs.

This bot triages issues and PRs according to the following rules:

  • After 90d of inactivity, lifecycle/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied
  • After 30d of inactivity since lifecycle/rotten was applied, the issue is closed

You can:

  • Mark this issue or PR as fresh with /remove-lifecycle stale
  • Mark this issue or PR as rotten with /lifecycle rotten
  • Close this issue or PR with /close
  • Offer to help out with Issue Triage

Please send feedback to sig-contributor-experience at kubernetes/community.

/lifecycle stale

@k8s-ci-robot k8s-ci-robot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Aug 31, 2021
@k8s-triage-robot
Copy link

The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs.

This bot triages issues and PRs according to the following rules:

  • After 90d of inactivity, lifecycle/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied
  • After 30d of inactivity since lifecycle/rotten was applied, the issue is closed

You can:

  • Mark this issue or PR as fresh with /remove-lifecycle rotten
  • Close this issue or PR with /close
  • Offer to help out with Issue Triage

Please send feedback to sig-contributor-experience at kubernetes/community.

/lifecycle rotten

@k8s-ci-robot k8s-ci-robot added lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. and removed lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. labels Sep 30, 2021
@spowelljr spowelljr added lifecycle/frozen Indicates that an issue or PR should not be auto-closed due to staleness. and removed lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. labels Oct 13, 2021
@npabb001
Copy link

if I want to set the $HOST_BROWSER or $BROWSER env variable, what should be the value?

@afbjorklund
Copy link
Collaborator

Popular choices include "firefox" or "chromium-browser"

Usually just through "Preferred Applications", or somesuch

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/documentation Categorizes issue or PR as related to documentation. lifecycle/frozen Indicates that an issue or PR should not be auto-closed due to staleness. needs-solution-message Issues where where offering a solution for an error would be helpful os/linux priority/backlog Higher priority than priority/awaiting-more-evidence.
Projects
None yet
Development

No branches or pull requests

9 participants