onepanelio / onepanel

The open source, end-to-end computer vision platform. Label, build, train, tune, deploy and automate in a unified platform that runs on any cloud and on-premises.
https://docs.onepanel.ai/
Apache License 2.0
710 stars 69 forks source link

Missing or invalid authorization header after setup of MicroK8s on remote machine #966

Closed jo-fra closed 2 years ago

jo-fra commented 2 years ago

Describe the bug I was following the guide MicroK8s on remote machines until Expose Onepanel using Nginx. After that I tried to open the onepanel app within my local browser using the IP address of the remote machine. I get the response {"code":16,"message":"Missing or invalid \"authorization\" header.","details":[]} in the browser.

opctl version

$ opctl version

CLI version: v1.0.2
Manifest version: v1.0.2
API version: v1.0.2
Web UI version: v1.0.2

opctl init command opctl init --provider microk8s --enable-metallb --artifact-repository-provider s3

Kubernetes information

Machine information

xxl007 commented 2 years ago

Configure your localhost through the /etc/hosts/ file as described here. Then used the FQDN in the browser rather than the IP address.

jo-fra commented 2 years ago

Thanks, this resolved the issue! I was not aware that using the FQDN is mandatory.