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

[Bug]: Error with composer create-project #591

Open
blankse opened this issue Jul 4, 2024 · 4 comments
Open

[Bug]: Error with composer create-project #591

blankse opened this issue Jul 4, 2024 · 4 comments

Comments

@blankse
Copy link
Contributor

blankse commented Jul 4, 2024

Expected behavior

No error

Actual behavior

Error:
An exception occurred in the driver: SQLSTATE[HY000] [2002] No such file or directory

Steps to reproduce

Execute as described in the README:
COMPOSER_MEMORY_LIMIT=-1 composer create-project pimcore/demo my-project

@blankse blankse added the Bug label Jul 4, 2024
@blankse
Copy link
Contributor Author

blankse commented Jul 4, 2024

After debugging, it seems that the GenericExecutionEngineBundle needs a DB connection. However, the connection will be configured in the step ./vendor/bin/pimcore-install.

In this step an error occurs because the MkdirCacheWarmer was not executed. The temp directory is not created, and the requirement check is failing:
php: ../../magick/exception.c:1121: ThrowMagickExceptionList: Assertion `exception != (ExceptionInfo *) NULL' failed.

So the error should be since this PR #583

@mcop1 Can you look into this?

@fashxp
Copy link
Member

fashxp commented Jul 4, 2024

Hmm ... as far as we understand this, do we have following situation:
Doctrine ORM needs a DB connection during cache:clear when server_version is not known to it - at least sometimes.
Right now, composer create project runs the scripts defined in composer.json, which contains cache:clear the command.

For the tests we solved it like here: https://github.com/pimcore/demo/pull/583/files#diff-d7b672fd527bb6f82ceb3c23b6f417911c595d020f4a14aac07cad73936dbf0cR66-R101

Any better solutions are highly appreciated.

@blankse
Copy link
Contributor Author

blankse commented Jul 22, 2024

@fashxp Can we set a server_version? So that composer create-project is possible again. I think the installer should then set the correct server_version anyway.

@fashxp
Copy link
Member

fashxp commented Jul 22, 2024

If this is working, I have no idea to be honest...

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

No branches or pull requests

3 participants