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

Impossible to delete existing workspace #3372

Closed
vzhukovs opened this issue Dec 13, 2016 · 3 comments
Closed

Impossible to delete existing workspace #3372

vzhukovs opened this issue Dec 13, 2016 · 3 comments
Labels
kind/bug Outline of a bug - must adhere to the bug report template. severity/blocker Causes system to crash and be non-recoverable or prevents Che developers from working on Che code.
Milestone

Comments

@vzhukovs
Copy link
Contributor

vzhukovs commented Dec 13, 2016

When you're trying to remove a workspace which might be created before acceptance update you may obtain internal server error from workspace service with the message: Transaction "rolled back" because transaction was set to RollbackOnly.

Reproduction Steps:

  1. Try to remove a workspace via workspace service

Expected behavior:

Workspace successfully removed

Observed behavior:

Internal server error occurred:
Request URL: http://a9.codenvy-stg.com/api/workspace/workspaceks6z6nb990iuny81
Request Method: DELETE
Status Code: 500 Internal Server Error
Message: Transaction "rolled back" because transaction was set to RollbackOnly.

workspaceremove

Additional information:

  • Problem started happening recently, didn't happen in an older version of Che: [No]
  • Problem can be reliably reproduced, doesn't happen randomly: [No]
@vzhukovs vzhukovs added the kind/bug Outline of a bug - must adhere to the bug report template. label Dec 13, 2016
@slemeur
Copy link
Contributor

slemeur commented Dec 13, 2016

It seems that this problem is happening with old workspaces only - not the one that have just been created.

@slemeur
Copy link
Contributor

slemeur commented Dec 13, 2016

can reproduce it on a12

@slemeur slemeur changed the title Transaction "rolled back" because transaction was set to RollbackOnly Impossible to delete existing workspace Dec 13, 2016
@slemeur slemeur added the severity/blocker Causes system to crash and be non-recoverable or prevents Che developers from working on Che code. label Dec 13, 2016
@voievodin
Copy link
Contributor

In a9 logs:

2016-12-13 15:18:58,828[nio-8080-exec-2]  [ERROR] [c.p.d.m.DockerInstanceProvider 168]  - An error occurred while deleting snapshot with url: http://a9.codenvy-stg.com:5000/v2/machine_snapshot_5jsm02uu9flfyrul/manifests/sha256:8810671bc340ce3c290011f54a44260cb2f2e05c343183016c4c93d4f078f056
Error stream: {"errors":[{"code":"MANIFEST_UNKNOWN","message":"manifest unknown"}]}

2016-12-13 15:18:58,836[nio-8080-exec-2]  [ERROR] [o.e.c.a.w.s.WorkspaceManager 568]    - Internal server error occurs. Can't remove snapshot
org.eclipse.che.api.machine.server.exception.SnapshotException: Internal server error occurs. Can't remove snapshot
        at org.eclipse.che.plugin.docker.machine.DockerInstanceProvider.removeInstanceSnapshot(DockerInstanceProvider.java:171) ~[che-plugin-docker-machine-5.0.0-M9-SNAPSHOT.jar:5.0.0-M9-SNAPSHOT]
        at org.eclipse.che.api.environment.server.CheEnvironmentEngine.removeSnapshot(CheEnvironmentEngine.java:528) ~[che-core-api-workspace-5.0.0-M9-SNAPSHOT.jar:5.0.0-M9-SNAPSHOT]
        at org.eclipse.che.api.workspace.server.WorkspaceRuntimes.removeSnapshot(WorkspaceRuntimes.java:494) ~[che-core-api-workspace-5.0.0-M9-SNAPSHOT.jar:5.0.0-M9-SNAPSHOT]
        at org.eclipse.che.api.workspace.server.WorkspaceManager.removeSnapshots(WorkspaceManager.java:565) ~[che-core-api-workspace-5.0.0-M9-SNAPSHOT.jar:5.0.0-M9-SNAPSHOT]
        at org.eclipse.che.api.workspace.server.WorkspaceService.delete(WorkspaceService.java:285) [che-core-api-workspace-5.0.0-M9-SNAPSHOT.jar:5.0.0-M9-SNAPSHOT]
        at sun.reflect.GeneratedMethodAccessor525.invoke(Unknown Source) ~[na:na]
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_45]
        at java.lang.reflect.Method.invoke(Method.java:497) ~[na:1.8.0_45]

It seems that this is the same issue to codenvy/codenvy#1334

As i can see @vzhukovskii uses a9 and you are using a12, so it is rather codenvy issue than che.

@bmicklea bmicklea added this to the 5.0.0-M9 milestone Dec 13, 2016
@JamesDrummond JamesDrummond added the status/analyzing An issue has been proposed and it is currently being analyzed for effort and implementation approach label Dec 16, 2016
@mkuznyetsov mkuznyetsov removed the status/analyzing An issue has been proposed and it is currently being analyzed for effort and implementation approach label Dec 21, 2016
@bmicklea bmicklea mentioned this issue Jan 13, 2017
70 tasks
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. severity/blocker Causes system to crash and be non-recoverable or prevents Che developers from working on Che code.
Projects
None yet
Development

No branches or pull requests

7 participants