You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please choose the appropriate severity level accompanied by this report by removing the excess severity labels.
Describe the bug
On at least two occasions, setting up a workspace has not worked as expected, because the following steps assume that a mysql server is running in our init task with gitpod:
cp ./.env.gitpod ./.env
mysqladmin create greencheck
python -m pipenv install --dev
python -m pipenv run python ./manage.py migrate
python -m pipenv run python ./manage.py tailwind install
python -m pipenv run python ./manage.py tailwind build
cd ./apps/theme/static_src/
npx rollup --config
cd ../../../
python -m pipenv run python ./manage.py collectstatic --no-input
To Reproduce
Create a workspace with gitpod
Expected behavior
Our init task completes successfully
Actual behavior
Occasionally this mysql is not running when the init tasks runs, and we see the following error in the terminal:
mysqladmin: connect to server at 'localhost' failed
error: 'Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)'
Check that mysqld is running and that the socket: '/var/run/mysqld/mysqld.sock' exists!
Additional context
This is fixable by using the gp sync-await and gp sync-done commands in our init step which are specifically designed to delay actions until a service is available and so on.
Please choose the appropriate severity level accompanied by this report by removing the excess severity labels.
Describe the bug
On at least two occasions, setting up a workspace has not worked as expected, because the following steps assume that a mysql server is running in our init task with gitpod:
To Reproduce
Create a workspace with gitpod
Expected behavior
Our
init
task completes successfullyActual behavior
Occasionally this mysql is not running when the init tasks runs, and we see the following error in the terminal:
Additional context
This is fixable by using the
gp sync-await
andgp sync-done
commands in our init step which are specifically designed to delay actions until a service is available and so on.https://www.gitpod.io/docs/references/gitpod-cli#sync-await
The text was updated successfully, but these errors were encountered: