contao / contao-manager

Contao Manager
GNU Lesser General Public License v3.0
86 stars 33 forks source link

Composer intall Contao 4.9 under Win 10 + XAMPP "An error occurred while executing the "contao:install-web-dir" command" #582

Closed toteph42 closed 4 years ago

toteph42 commented 4 years ago

I tried to install a new Contao instance in an empty directory with composer and got the following error message:

Loading composer repositories with package information Updating dependencies (including require-dev) Dependency resolution completed in 111.317 seconds Analyzed 24234 packages to resolve dependencies Analyzed 3835600 rules to resolve dependencies Nothing to install or update Package phpunit/php-token-stream is abandoned, you should avoid using it. No replacement was suggested. Generating autoload files composer/package-versions-deprecated: Generating version class... composer/package-versions-deprecated: ...done generating version class 77 packages you are using are looking for funding. Use thecomposer fund` command to find out more! contao/manager-plugin: Generating plugin class...

toteph42 commented 4 years ago

Ich habe es gerade mit Comtao Manager 1.27 probiert. Derselbe Fehler. Log anbei error.log

fritzmg commented 4 years ago

Likely related to https://github.com/contao/manager-bundle/issues/88

As discussed with @m-vo in Slack, we want to work on a better solution for the Composer Script Handler - for Symfony, Composer and Contao.

m-vo commented 4 years ago

In the meantime you can try running the commands yourself:

rm -rf var/cache/prod
vendor/bin/contao-console contao:install-web-dir --env=prod
vendor/bin/contao-console cache:clear --no-warmup --env=prod
vendor/bin/contao-console cache:clear --no-warmup --env=dev
vendor/bin/contao-console cache:warmup --env=prod
vendor/bin/contao-console assets:install web --symlink --relative --env=prod
vendor/bin/contao-console contao:install web --env=prod
vendor/bin/contao-console contao:symlinks web --env=prod
toteph42 commented 4 years ago

I entered all commands in sequence and they did not return any error messages. After that I tried to call my site. Unfortunately it ended up in a loop. So I started Contao Manager, which then told me I can either try to repair a defect installation or start Contao in save mode. var/log is empty error.log

fritzmg commented 4 years ago

Unfortunately it ended up in a loop.

What do you mean by that?

toteph42 commented 4 years ago

Nach mehreren Minuten kommt: Beim Verbinden mit contao.localhost trat ein Fehler auf. PR_CONNECT_RESET_ERROR

fritzmg commented 4 years ago

Nach mehreren Minuten kommt: Beim Verbinden mit contao.localhost trat ein Fehler auf. PR_CONNECT_RESET_ERROR

That sounds unrelated to this problem or Contao itself.

toteph42 commented 4 years ago

Leider doch, da

<?php
declare(strict_types=1);

echo 'Hier ist Contao!'; exit;

in web\index.php funktioniert.

aschempp commented 4 years ago

This is not a Contao Manager issue, but rather a problem of Contao itself. It might be solved in the latest version though (https://github.com/contao/contao/pull/1964, https://github.com/contao/contao/pull/2184)