Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"undefined" workspace name in modal dialog in case of error of starting workspace in Dashboard #2492

Closed
dmytro-ndp opened this issue Sep 19, 2016 · 1 comment
Assignees
Labels
kind/bug Outline of a bug - must adhere to the bug report template.
Milestone

Comments

@dmytro-ndp
Copy link
Contributor

dmytro-ndp commented Sep 19, 2016

Reproduction Steps:

  1. Create workspace workspace1 with RAM out of system resources.
  2. Start workspace.

Expected behavior:
Modal dialog with error message:

Unable to start workspace. Error when trying to start the workspace: workspace1.

Observed behavior:
Modal dialog with "undefined" workspace name inside:

Unable to start workspace. Error when trying to start the workspace: undefined.
undefined-workspace-name_2016-09-19

WebSocket messages:

{"headers":[{"name":"x-everrest-websocket-channel","value":"workspace:workspace8fn7wdpy7oqedsny:machines_statuses"},{"name":"x-everrest-websocket-message-type","value":"none"}],"responseCode":0,"body":"{"machineId":"machinegewvl0lsmw21uin5","eventType":"ERROR","dev":true,"machineName":"dev-machine","workspaceId":"workspace8fn7wdpy7oqedsny"}"}

{"headers":[{"name":"x-everrest-websocket-channel","value":"workspace:workspace8fn7wdpy7oqedsny"},{"name":"x-everrest-websocket-message-type","value":"none"}],"responseCode":0,"body":"{"error":"Start of environment default failed. Error: The system is out of resources. Please contact your system admin.","eventType":"ERROR","workspaceId":"workspace8fn7wdpy7oqedsny"}"}

WS Master error log:

2016-09-29 08:59:01,919[kspaceManager-0]  [ERROR] [o.e.c.a.w.s.WorkspaceManager 634]    - Start of environment workspace1 failed. Error: The system is out of resources. Please contact your
 system admin.
org.eclipse.che.api.core.ServerException: Start of environment default failed. Error: The system is out of resources. Please contact your system admin.
        at org.eclipse.che.api.workspace.server.WorkspaceRuntimes.start(WorkspaceRuntimes.java:277) ~[che-core-api-workspace-5.0.0-M3.jar:5.0.0-M3]
        at org.eclipse.che.api.workspace.server.WorkspaceManager.lambda$performAsyncStart$1(WorkspaceManager.java:618) ~[che-core-api-workspace-5.0.0-M3.jar:5.0.0-M3]
        at org.eclipse.che.api.workspace.server.WorkspaceManager$$Lambda$121/393050409.run(Unknown Source) [che-core-api-workspace-5.0.0-M3.jar:5.0.0-M3]
        at org.eclipse.che.commons.lang.concurrent.CopyThreadLocalRunnable.run(CopyThreadLocalRunnable.java:28) [che-core-commons-lang-5.0.0-M3.jar:5.0.0-M3]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [na:1.8.0_45]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [na:1.8.0_45]
        at java.lang.Thread.run(Thread.java:745) [na:1.8.0_45]
Caused by: org.eclipse.che.api.core.ServerException: The system is out of resources. Please contact your system admin.
        at org.eclipse.che.api.environment.server.CheEnvironmentEngine.startEnvironmentQueue(CheEnvironmentEngine.java:790) ~[che-core-api-workspace-5.0.0-M3.jar:5.0.0-M3]
        at org.eclipse.che.api.environment.server.CheEnvironmentEngine.start(CheEnvironmentEngine.java:242) ~[che-core-api-workspace-5.0.0-M3.jar:5.0.0-M3]
        at org.eclipse.che.api.workspace.server.WorkspaceRuntimes.start(WorkspaceRuntimes.java:246) ~[che-core-api-workspace-5.0.0-M3.jar:5.0.0-M3]
        ... 6 common frames omitted
Caused by: org.eclipse.che.api.core.ServerException: The system is out of resources. Please contact your system admin.
        at org.eclipse.che.api.environment.server.CheEnvironmentEngine.startInstance(CheEnvironmentEngine.java:879) ~[che-core-api-workspace-5.0.0-M3.jar:5.0.0-M3]
        at org.eclipse.che.api.environment.server.CheEnvironmentEngine.startEnvironmentQueue(CheEnvironmentEngine.java:725) ~[che-core-api-workspace-5.0.0-M3.jar:5.0.0-M3]
        ... 8 common frames omitted
Caused by: org.eclipse.che.api.core.ServerException: The system is out of resources. Please contact your system admin.
        at org.eclipse.che.plugin.docker.machine.MachineProviderImpl.startService(MachineProviderImpl.java:326) ~[che-plugin-docker-machine-5.0.0-M3.jar:5.0.0-M3]
        at org.eclipse.che.api.environment.server.CheEnvironmentEngine.lambda$startEnvironmentQueue$8(CheEnvironmentEngine.java:699) ~[che-core-api-workspace-5.0.0-M3.jar:5.0.0-M3]
        at org.eclipse.che.api.environment.server.CheEnvironmentEngine$$Lambda$131/538914490.startMachine(Unknown Source) ~[na:na]
        at org.eclipse.che.api.environment.server.CheEnvironmentEngine.startInstance(CheEnvironmentEngine.java:827) ~[che-core-api-workspace-5.0.0-M3.jar:5.0.0-M3]
        ... 9 common frames omitted
Caused by: org.eclipse.che.api.machine.server.exception.MachineException: The system is out of resources. Please contact your system admin.
        at com.codenvy.machine.HostedMachineProviderImpl.pullImage(HostedMachineProviderImpl.java:153) ~[codenvy-machine-hosted-5.0.0-M3.jar:5.0.0-M3]
        at org.eclipse.che.plugin.docker.machine.MachineProviderImpl.prepareImage(MachineProviderImpl.java:369) ~[che-plugin-docker-machine-5.0.0-M3.jar:5.0.0-M3]
        at org.eclipse.che.plugin.docker.machine.MachineProviderImpl.startService(MachineProviderImpl.java:263) ~[che-plugin-docker-machine-5.0.0-M3.jar:5.0.0-M3]
        ... 12 common frames omitted
Caused by: org.eclipse.che.plugin.docker.client.exception.DockerException: The system is out of resources. Please contact your system admin.
        at com.codenvy.swarm.client.SwarmDockerConnector.decorateMessage(SwarmDockerConnector.java:104) ~[codenvy-machine-hosted-5.0.0-M3.jar:5.0.0-M3]
        at com.codenvy.swarm.client.SwarmDockerConnector.buildImage(SwarmDockerConnector.java:87) ~[codenvy-machine-hosted-5.0.0-M3.jar:5.0.0-M3]
        at com.codenvy.machine.HostedMachineProviderImpl.pullImage(HostedMachineProviderImpl.java:142) ~[codenvy-machine-hosted-5.0.0-M3.jar:5.0.0-M3]
        ... 14 common frames omitted

Che version: 5.0.0-M1
OS and version: Ubuntu OS
Che install: Codenvy on-prem

Additional information:

  • Problem started happening recently, didn't happen in an older version of Che: [No]
    It is 5.0.0-M1 specific problem.
  • Problem can be reliably reproduced, doesn't happen randomly: [Yes]
@dmytro-ndp dmytro-ndp added kind/bug Outline of a bug - must adhere to the bug report template. team/plugin labels Sep 19, 2016
@dmytro-ndp dmytro-ndp assigned dmytro-ndp and unassigned dmytro-ndp Sep 19, 2016
@ashumilova ashumilova added status/analyzing An issue has been proposed and it is currently being analyzed for effort and implementation approach sprint/next labels Sep 21, 2016
@olexii4 olexii4 removed the status/analyzing An issue has been proposed and it is currently being analyzed for effort and implementation approach label Sep 29, 2016
@olexii4 olexii4 added this to the 5.0.0-M5 milestone Sep 29, 2016
@olexii4
Copy link
Contributor

olexii4 commented Sep 29, 2016

2h

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Outline of a bug - must adhere to the bug report template.
Projects
None yet
Development

No branches or pull requests

3 participants