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

make scheduler throws error on TYPO3 7 #139

Closed
stucki opened this issue Jul 11, 2016 · 1 comment
Closed

make scheduler throws error on TYPO3 7 #139

stucki opened this issue Jul 11, 2016 · 1 comment
Assignees
Labels

Comments

@stucki
Copy link
Contributor

stucki commented Jul 11, 2016

When trying to run make scheduler the execution ends with an error:

make scheduler
rpc error: code = 2 desc = "oci runtime error: exec failed: exec: \"typo3/cli_dispatch.phpsh\": stat typo3/cli_dispatch.phpsh: no such file or directory"Makefile:82: recipe for target 'scheduler' failed
make: *** [scheduler] Error 126

The solution seems to modify the command in Makefile and remove -it from docker exec:

diff --git a/Makefile b/Makefile
index 928e961..680f636 100644
--- a/Makefile
+++ b/Makefile
@@ -79,7 +79,7 @@ root:
 #############################

 scheduler:
-       docker exec -it $$(docker-compose ps -q app) typo3/cli_dispatch.phpsh scheduler $(ARGS)
+       docker exec $$(docker-compose ps -q app) web/typo3/cli_dispatch.phpsh scheduler $(ARGS)

 #############################
 # Argument fix workaround
@stucki
Copy link
Contributor Author

stucki commented Jul 11, 2016

Hmm, I forgot to mention that the path of the script also needs to be changed after the typo3 symlink has moved into the web/ folder.

@mblaschke mblaschke added the bug label Jul 12, 2016
@mblaschke mblaschke self-assigned this Jul 12, 2016
tbal added a commit to tbal/TYPO3-docker-boilerplate that referenced this issue Jan 21, 2017
- Determine path to typo3/cli_dispatch.phpsh by looking up
  WEB_DOCUMENT_ROOT env variable which is defined in
  etc/environment.yml and automatically available in
  the app container.
  This makes the 'make scheduler' command work for all
  TYPO3 versions.
- Run container as application user to avoid permission problems.
- Use docker-compose exec instead of docker exec,
  which speeds up the command call, because there is no
  need to determine the container id of the app container
  anymore.

Fixes webdevops#139
tbal added a commit to tbal/TYPO3-docker-boilerplate that referenced this issue Feb 18, 2017
- Determine path to typo3/cli_dispatch.phpsh by looking up
  WEB_DOCUMENT_ROOT env variable which is defined in
  etc/environment.yml and automatically available in
  the app container.
  This makes the 'make scheduler' command work for all
  TYPO3 versions.
- Run container as application user to avoid permission problems.
- Use docker-compose exec instead of docker exec,
  which speeds up the command call, because there is no
  need to determine the container id of the app container
  anymore.

Fixes webdevops#139
tbal added a commit to tbal/TYPO3-docker-boilerplate that referenced this issue Feb 18, 2017
- Determine path to typo3/cli_dispatch.phpsh by looking up
  WEB_DOCUMENT_ROOT env variable which is defined in
  etc/environment.yml and automatically available in
  the app container.
  This makes the 'make scheduler' command work for all
  TYPO3 versions.
- Run container as application user to avoid permission problems.
- Use docker-compose exec instead of docker exec,
  which speeds up the command call, because there is no
  need to determine the container id of the app container
  anymore.

Fixes webdevops#139
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants