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

service "cli" is not running container #397

Closed
kj187 opened this issue Nov 24, 2022 · 3 comments
Closed

service "cli" is not running container #397

kj187 opened this issue Nov 24, 2022 · 3 comments
Labels
bug Something isn't working CI solved

Comments

@kj187
Copy link
Contributor

kj187 commented Nov 24, 2022

Which release, branch or hash of Docker SDK are you using?

master

Which operating system (platform/version/architecture) are you using?

ubuntu-18.04 on GitHub Actions

What is the issue that you're experiencing?

The following error happens only sporadically, after a restart of the failed job it works without any issues.
In this case it was happen on Alpine, but it could also happen on Debian. Its totally sporadical.

https://github.com/elmerdigital/b2b-demo-shop/actions/runs/3540975943/jobs/5944669572
SCR-20221124-kiw

What are the steps to reproduce the issue?

I forked the current Spryker Demo Shop (https://github.com/elmerdigital/b2b-demo-shop).
The github CI which I use is the following (https://github.com/elmerdigital/b2b-demo-shop/blob/master/.github/workflows/ci.yml)

git clone https://github.com/spryker/docker-sdk.git ./docker
docker/sdk boot -v deploy.ci.acceptance.mariadb.yml
docker/sdk up -t
docker/sdk testing console queue:worker:start --stop-when-empty
docker/sdk testing codecept run -c codeception.acceptance.yml

What is the expected result of these steps in the absence of the issue?

A successful Github job

@felixgeyer
Copy link

I'm not sure if it's really related but I'm currently experiencing the same issue with my local docker setup.

Apparently node is not installed properly.
Logs from my cli container:
/usr/local/bin/docker-php-entrypoint: line 9: /usr/local/bin/node: No such file or directory

Starting the container without an entrypoint is possible (docker run -it --entrypoint="" --user=root <id> /bin/bash).
node is installed within the container at /usr/bin/node but not /usr/local/bin/node.

@kj187
Copy link
Contributor Author

kj187 commented Feb 27, 2023

Its still an daily issue for us

Its the same issue with Postgress which is already solved #381

Please just replace line 48 in https://github.com/spryker/docker-sdk/blob/master/bin/service/database/mysql.sh#L48
with

( [ ! -z "${tableCount}" ] &&  [ "${tableCount}" -gt 0 ]) && return "${TRUE}" || return "${FALSE}" to fix this issue

Thanks :)

@alexanderM91
Copy link
Collaborator

Hi, the fix should be available in the latest master.
Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working CI solved
Development

No branches or pull requests

3 participants