question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Failed to get the workspace: Unauthorized

See original GitHub issue

Describe 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

  1. minikube start --driver=kvm2 --memory=16384 --cpus=4
  2. chectl server:start --self-signed-cert --installer=operator --platform=minikube
  3. Go to dashborad using Firefox
  4. Add Workspace -> Import Devfile -> YAML
  5. 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

  1. Create and Open

Runtime

  • kubernetes (include output of kubectl version)
  • Openshift (include output of oc version)
  • minikube (include output of minikube version and kubectl version)
  • minishift (include output of minishift version and oc version)
  • docker-desktop + K8S (include output of docker version and kubectl version)
  • other: (please specify)

Screenshots

unauthorized

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:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
RomanNikitenkocommented, Apr 21, 2020

@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.

0reactions
akurinnoycommented, Apr 21, 2020

trying to reproduce this issue

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found