kubernetes / minikube

Run Kubernetes locally
https://minikube.sigs.k8s.io/
Apache License 2.0
29.35k stars 4.88k forks source link

Minikube open browser Ubuntu #9555

Closed cezeno2s closed 3 years ago

cezeno2s commented 3 years ago

Steps to reproduce the issue: I am trying to run the hello world service I deployed and exposed but after running "minikube service helloworld", I am getting an error message instead of minikube launching the service on my default browser. Please can someone help me to fix the error.

Full output of failed command:

david@Ubuntu-VirtualBox:~/Downloads/project/Ex_Files_Learning_Kubernetes_Upd/Exercise Files/03_04$ minikube service helloworld ----------- ------------ ------------- --------------------------- NAMESPACE NAME TARGET PORT URL
default helloworld 80 http://192.168.49.2:30357
----------- ------------ ------------- ---------------------------

🎉 Opening service default/helloworld in default browser... /usr/bin/xdg-open: 869: www-browser: not found /usr/bin/xdg-open: 869: links2: not found /usr/bin/xdg-open: 869: elinks: not found /usr/bin/xdg-open: 869: links: not found /usr/bin/xdg-open: 869: lynx: not found /usr/bin/xdg-open: 869: w3m: not found xdg-open: no method available for opening 'http://192.168.49.2:30357'

❌ Exiting due to HOST_BROWSER: exit status 3

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

Optional: Full output of minikube logs command:

sharifelgamal commented 3 years ago

What happens if you try the URL in a browser manually? It just looks like minikube can't find a default browser to open the URL in.

cezeno2s commented 3 years ago

It works when I try the URL manually on a browser but how can I resolve the issue of minikube not being able to find a default browser to open the URL directly?

On Tue, Nov 17, 2020, 19:22 Sharif Elgamal notifications@github.com wrote:

What happens if you try the URL in a browser manually? It just looks like minikube can't find a default browser to open the URL in.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/kubernetes/minikube/issues/9555#issuecomment-729114524, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKTX7Z5BKUZLXKLSZ2ZF4W3SQK5PBANCNFSM4S7YTHYQ .

fejta-bot commented 3 years ago

Issues go stale after 90d of inactivity. Mark the issue as fresh with /remove-lifecycle stale. Stale issues rot after an additional 30d of inactivity and eventually close.

If this issue is safe to close now please do so with /close.

Send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale

medyagh commented 3 years ago

@cezeno2s do u mind sharing more about your operating system lsb_release -a

medyagh commented 3 years ago

@cezeno2s it seems like u are running ubuntu on virtualbox does it have a GUI ?

OleksiiPasihnyk commented 2 years ago

But it still does nolt work with the same setup and config for me.

when I use minikube service "name of the service here" command I'm expecting to get service opened in the default browser. Unfortunately minikube fails to detect default browser. No errors nothing is shown. OS : Ubuntu Jammy Jellyfish Release: 22.04 Codename: jammy