Closed AndreyChizhikov closed 8 years ago
This also happened to me several times with the 'Bitnami Laravel' stack. Command No.1 is missing, the rest are available.
No reliable way to reproduce it.
Will try to fix it ASAP.
Cannot reproduce
This issue still happens to me very often with variety of stacks and project templates.
I debugged the problem and found the root cause.
The Dashboard's Create Project Controller sends addCommand and updateProject requests in parallel. This results in calling the respective addCommand and updateProject methods in the WorkspaceService, which both try to update the workspace's config object in a race condition.
There are two ways to fix this issue:
addCommand
and updateProject
in parallel. Instead, call them updateProject
after receiving the response from all addCommand
requests.Please reopen the issue.
@olexii4 : Try to use update workspace service for adding bunch of commands at once instead of adding it one by one. @kaloyan-raev : thank you for pointing it out.
I created PR #2928 that fixes the issue.
Reproduction Steps:
Expected behavior: "codeigniter: 1. Create and run project" and "codeigniter: 2. Run" are presented in the 'command' widget Observed behavior: Sometimes, only the "codeigniter: 1. Create and run project" command is presented in the 'commands' widget
Che version: 5.0.0-M5-SNAPSHOT OS and version: Ubuntu 14.04 LTS Docker version: 1.11.2 Che install: Docker container
Additional information: