Failed to get the workspace: Unauthorized
See original GitHub issueDescribe the bug
I get the error Failed to get the workspace: Unauthorized
each time I create a new workspace
The issue is fixed by refreshing a page
Che version
- latest
- nightly
- other: please specify
Steps to reproduce
minikube start --driver=kvm2 --memory=16384 --cpus=4
chectl server:start --self-signed-cert --installer=operator --platform=minikube
- Go to dashborad using Firefox
Add Workspace
->Import Devfile
->YAML
- Put content of a devfile, for example:
Devfile
metadata:
name: che-in-che-theia
attributes:
persistVolumes: 'false'
projects:
- name: che-theia
source:
location: 'https://github.com/eclipse/che-theia.git'
type: git
- name: theia
source:
location: 'https://github.com/eclipse-theia/theia.git'
type: git
branch: master
components:
- mountSources: true
endpoints:
- name: theia-dev-flow
port: 3010
attributes:
protocol: http
public: 'true'
memoryLimit: 4Gi
type: dockerimage
alias: che-dev
image: 'quay.io/eclipse/che-theia-dev:next'
- id: redhat/vscode-yaml/latest
type: chePlugin
- id: che-incubator/typescript/latest
memoryLimit: 2048M
type: chePlugin
- id: eclipse/che-theia/next
memoryLimit: 2Gi
type: cheEditor
alias: theia-editor
apiVersion: 1.0.0
commands:
- name: start hosted instance
actions:
- workdir: /projects/theia/examples/assembly
type: exec
command: >
yarn theia start --hostname=0.0.0.0 --port=3130
--plugins=local-dir:../../../che-theia/plugins
component: che-dev
- name: 'che:theia:init'
actions:
- workdir: /projects/theia
type: exec
command: |
che-theia init
component: che-dev
- name: 'theia:build'
actions:
- workdir: /projects/theia
type: exec
command: |
yarn
component: che-dev
- name: 'che-theia:build'
actions:
- workdir: /projects/che-theia
type: exec
command: |
yarn
component: che-dev
Create and Open
Runtime
- kubernetes (include output of
kubectl version
) - Openshift (include output of
oc version
) - minikube (include output of
minikube version
andkubectl version
) - minishift (include output of
minishift version
andoc version
) - docker-desktop + K8S (include output of
docker version
andkubectl version
) - other: (please specify)
Screenshots
Installation method
- chectl
- che-operator
- minishift-addon
- I don’t know
Environment
- my computer
- Windows
- Linux
- macOS
- Cloud
- Amazon
- Azure
- GCE
- other (please specify)
- other: please specify
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:6 (6 by maintainers)
Top Results From Across the Web
Troubleshoot issues accessing your WorkSpace from the ...
This error typically indicates that the WorkSpaces client can authenticate over port 443, but can't establish a connection over TCP port 4172.
Read more >Solved: Attempt to get list of Workspaces via REST API res...
I'm currently using the REST API to list Datasets. This is working just fine. Now, I want to get a list of Workspaces...
Read more >Status: Unauthorized (401) error while getting the reports from ...
I created a workspace, added myself an admin user. Uploaded a Power BI report in my workspace. Works well when I am on...
Read more >How to fix the "You need permission to access workspace ...
That is, the error which states "You need permission to access workspace XYZ. Contact the workspace owner or administrators for access.".
Read more >Unauthorized request by user due to lack of proper permissions
This error indicates that the user or token being used to submit the workspace to run, has not been granted access permissions to...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@sleshchenko I created a few workspaces and didn’t face with it.
Please feel free to close the issue if you can not reproduce it.
trying to reproduce this issue