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

4.1.0-RC1 - impossible to access the installation tool #406

Closed
lionel-m opened this issue Nov 11, 2015 · 9 comments
Closed

4.1.0-RC1 - impossible to access the installation tool #406

lionel-m opened this issue Nov 11, 2015 · 9 comments
Assignees
Labels
Milestone

Comments

@lionel-m
Copy link

After installing Contao, I can not access the installation tool.

Path: http://localhost:8888/contao410rc/web/install.php

Message:

The installation has not been completed. Open the Contao install tool to continue.
500 Internal Server Error - InternalServerErrorHttpException
1 linked Exception: IncompleteInstallationException

Logs:

INFO - Matched route "contao_catch_all".
INFO - Attempting SimplePreAuthentication.
CRITICAL - An exception occurred.
CRITICAL - Uncaught PHP Exception Contao\CoreBundle\Exception\InternalServerErrorHttpException: "The installation has not been completed. Open the Contao install tool to continue." at /Applications/MAMP/htdocs/contao410rc/vendor/contao/core-bundle/src/EventListener/ExceptionConverterListener.php line 80

And:

RuntimeException in NativeSessionStorage.php line 144: Failed to start the session because headers have already been sent by "/Applications/MAMP/htdocs/contao410rc/app/bootstrap.php.cache" at line 1474.

@aschempp
Copy link
Member

Did you install Contao using Composer? I assume it did create the parameters.yml? The problem most likely is that Composer will create parameters.yml but not localconfig.php.

@leofeyer leofeyer added the bug label Nov 11, 2015
@leofeyer leofeyer added this to the 4.1.0 milestone Nov 11, 2015
@lionel-m
Copy link
Author

Did you install Contao using Composer?

Yes php composer.phar create-project contao/standard-edition=4.1.0-RC1 contao410rc

parameters.yml is ok

You're right, the folder system/config is empty

leofeyer added a commit to contao/installation-bundle that referenced this issue Nov 11, 2015
@leofeyer leofeyer self-assigned this Nov 11, 2015
@leofeyer
Copy link
Member

Fixed in contao/installation-bundle@4a519c0. To test the fix, you have to add the following line to the "require" section of your composer.json file:

    "require": {
        
        "contao/installation-bundle": "dev-release/1.0.0",
    },

@lionel-m
Copy link
Author

@leofeyer I added this line and after the composer update it returns:

capture d ecran 2015-11-11 a 11 52 28

@leofeyer
Copy link
Member

Yes, sorry, it should have been:

    "require": {
        
        "contao/core-bundle": "dev-release/4.1.0 as 4.1.x-dev",
    },

@lionel-m
Copy link
Author

Thanks 👍

@xchs
Copy link
Contributor

xchs commented Nov 11, 2015

Hmm, even with the "contao/core-bundle": "dev-release/4.1.0 as 4.1.x-dev" line in the composer.json require section and an dependency update by running composer update I still get an Error 500 when running the install tool (/install.php).

The error_log shows the following stack trace:

PHP Fatal error:  Uncaught exception 'Contao\\CoreBundle\\Exception\\IncompleteInstallationException' with message 'The installation has not been completed. Open the Contao install tool to continue.' in /var/www/virtual/contao4/vendor/contao/core-bundle/src/Framework/ContaoFramework.php:377

Stack trace:
#0 /var/www/virtual/contao4/vendor/contao/core-bundle/src/Framework/ContaoFramework.php(299): Contao\\CoreBundle\\Framework\\ContaoFramework->validateInstallation()
#1 /var/www/virtual/contao4/vendor/contao/core-bundle/src/Framework/ContaoFramework.php(147): Contao\\CoreBundle\\Framework\\ContaoFramework->initializeFramework()
#2 /var/www/virtual/contao4/vendor/contao/installation-bundle/src/HttpKernel/InstallationKernel.php(81): Contao\\CoreBundle\\Framework\\ContaoFramework->initialize()
#3 /var/www/virtual/contao4/vendor/contao/installation-bundle/src/HttpKernel/InstallationKernel.php(39): Contao\\InstallationBundle\\HttpKernel\\InstallationKernel->bo in /var/www/virtual/contao4/vendor/contao/core-bundle/src/Framework/ContaoFramework.php on line 377

@leofeyer
Copy link
Member

I have just tried it with a fresh install and it worked like a charm.

composer create-project contao/standard-edition <target> dev-release/4.1.0

I have completed the Composer setup and then opened the install tool. It asked me to accept the license and to set a password and then completed the installation as usual.

@xchs
Copy link
Contributor

xchs commented Nov 12, 2015

Okay, thanks a lot. Setting up a new fresh install with

composer create-project contao/standard-edition . dev-release/4.1.0

did the trick. The installation went through without any problems now.

Yesterday, I did it as follows:

  1. composer create-project contao/standard-edition . 4.1.0-RC1
  2. Added the new requirement "contao/core-bundle": "dev-release/4.1.0 as 4.1.x-dev" to the composer.json
  3. Executed the composer update command

Apparently, that was not the same. 😕

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

4 participants