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.

[Dogfooding] Cannot access my workspace

See original GitHub issue

Describe the bug

I’m using che.openshift.io for dogfooding. My workspace has been created two weeks ago and has been restarted dozens of times due to idle timeout and changing the devfile. This morning it become inaccessible. I don’t remember exactly, but it could have happened after login to che.openshift.io in another browser tab. After that my working Theia become unstable and after refreshing the browser tab I got a message that my workspace is already running and cannot be started. Having switched to the dashboard, I can see that my workspace is stopped. But under the hood it stay working.

I even cannot start another workspace due to the limit on running workspaces.

Error: Failed to run the workspace: "Unrecoverable event occurred: 'FailedCreate', 'Error creating: pods "workspace54hbwwq23bfudgw7.go-cli-7ffb9dbc7c-7rwm8" is forbidden: exceeded quota: compute-resources, requested: limits.cpu=3245m,limits.memory=1743028224, used: limits.cpu=15190m,limits.memory=8157003776, limited: limits.cpu=16,limits.memory=8Gi', 'workspace54hbwwq23bfudgw7.go-cli-7ffb9dbc7c'"

It’s critical issue, as the user can loose his sources.

Steps to reproduce

Difficult to say. In general, just use che.openshift.io for daily work. You can also open another browser tab and try to logout/login to che.openshift.io.

Devfile, which I’m using for my workspace

apiVersion: 1.0.0
metadata:
  name: che-theia-all
projects:

  - name: theia
    source:
      location: 'https://github.com/vitaliy-guliy/theia.git'
      type: git
      branch: master

  - name: che-theia
    source:
      location: 'https://github.com/eclipse/che-theia.git'
      type: git
      branch: master

components:
  - id: redhat/vscode-yaml/latest
    type: chePlugin

  - mountSources: true
    endpoints:
      - name: theia-dev-flow
        attributes:
          protocol: http
          public: 'true'
        port: 3010
    memoryLimit: 3Gi
    type: dockerimage
    alias: che-dev
    image: 'vgulyy/che-theia-dev:osio1'

  - id: che-incubator/typescript/latest
    memoryLimit: 2048M
    type: chePlugin

  - id: eclipse/che-machine-exec-plugin/latest
    type: chePlugin

  - id: eclipse/che-theia/latest
    memoryLimit: 2Gi
    type: cheEditor
    alias: theia-editor

commands:
  - name: '0. List projects'
    actions:
      - component: che-dev
        workdir: /projects
        type: exec
        command: |
          echo '# ls -la /projects'; \
          echo sleep 1; \
          ls -la; \
          echo -e "\e[32mDone\e[0m"

  - name: '1. Prepare theia-* dirs'
    actions:
      - component: theia-editor
        workdir: /projects
        type: exec
        command: |
          mkdir /projects/theia-default-plugins; \
          mkdir /projects/theia-plugins; \
          mkdir /projects/theia-projects-dir; \
          cd /default-theia-plugins; \
          cp * /projects/theia-default-plugins/; \
          echo -e "\e[32mDone\e[0m"

  - name: '2. Sync'
    actions:
      - component: che-dev
        workdir: /projects
        type: exec
        command: |
          rsync -rtv --exclude='node_mobules' /projects/theia/ /tmp/theia/; \
          echo -e "\e[32mDone\e[0m"

  - name: '3. Init che:theia'
    actions:
      - component: che-dev
        workdir: /tmp/theia
        type: exec
        command: |
          che:theia init; \
          echo -e "\e[32mDone\e[0m"

  - name: '4. Build che:theia'
    actions:
      - component: che-dev
        workdir: /tmp/theia
        type: exec
        command: |
          yarn; \
          echo -e "\e[32mDone\e[0m"

  - name: '5. Launch'
    actions:
      - component: che-dev
        workdir: /tmp/theia/examples/assembly
        type: exec
        command: |
          export CHE_PROJECTS_ROOT="/projects/theia-projects-dir"; \
          export THEIA_DEFAULT_PLUGINS="local-dir:///projects/theia-default-plugins"; \
          export THEIA_PLUGINS="local-dir:///projects/theia-plugins"; \
          export THEIA_PLUGIN_ENDPOINT_DISCOVERY_PORT='2506'; \
          yarn theia start /projects/theia-projects-dir --hostname=0.0.0.0 --port=3010; \
          echo -e "\e[32mDone\e[0m"

Expected behavior

The workspace must be working.

Runtime

  • che.openshift.io

Screenshots

Screencast https://www.youtube.com/watch?v=QbIllmqNyg8

Screenshot from 2020-01-22 13-19-18

Screenshot from 2020-01-22 13-26-48

Screenshot from 2020-01-22 13-27-56

URI to my workspace https://che.openshift.io/dashboard/#/ide/vgulyy/che-theia-all

URI to openshift console https://console.starter-us-east-2.openshift.com/console/project/vgulyy-che/overview

Workspace ID: workspacemibz4bsd0u4mlwff

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
vitaliy-guliycommented, Jan 29, 2020

Sorry, forgot to answer. Yes, now everything’s working well. Thanks.

0reactions
ibuziukcommented, Jan 29, 2020

@vitaliy-guliy closing, let me know if you have any issues with workspace startup on Hosted Che

Read more comments on GitHub >

github_iconTop Results From Across the Web

Can't start a workspace by factory on dogfooding instance
It is not possible to start any workspace by using factory. The error is: Failed to resolve a devfile. Failed to request factory...
Read more >
Dogfooding - GitLab
Stage Group Category Status Manage Authentication and Authorization Authentication and Authorization Active Manage Authentication and Authorization Permissions Active Manage Authentication and Authorization User Management Active
Read more >
Unable to remove myself from Outlook dogfood, cannot get ...
I've had it! I've sent in multiple support request. I cannot get my account out of dogfood! https://account.live.com/ManageDF.aspx " Dogfood Management Some ...
Read more >
Dogfooding Basedash at Basedash
Extend your database data to interact with internal and external APIs. Create a custome app in minutes.
Read more >
Eating our own dogfood: how research and testing works at ...
'Dogfooding' is the practice of actively testing your own product in real-world scenarios before it ships to customers.
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