This site has been archived and you can no longer log in or post new messages. For up-to-date community resources please visit ezplatform.com

eZ Community » Forums » eZ Publish 5 Platform » After installation problems. Site...
expandshrink

After installation problems. Site redirect to /ezsetup with no valid database credentials.

After installation problems. Site redirect to /ezsetup with no valid database credentials.

Monday 22 October 2012 10:06:29 am - 10 replies

Hi guys,

making my way back from cologne, I really get excited to set up my own eZP5 playground, so I've followed the installation instructions on

https://github.com/ezsystems/ezpublish5/blob/master/INSTALL.md

and was able to install eZp5 finishing the wizard. Database was also created and everything looked well, until the end of the installation. So when I try to access localhost, I always get redirected to localhost/ezsetup showing me a login page with ezdebug output saying:

Connection error… Access denied for user ‘’@’localhost’ to database ‘none’

I’ve checked site.ini for my admin siteaccess and all database credentials are set correctly.

Any idea?

Dirk

Monday 22 October 2012 12:00:00 pm

Hi Dirk.

First, thank you for reporting this. Let's try to fix it.

What you can check first is if an ezpublish_dev.yml file was created in app/config. This is where the eZ Publish 5 configuration is (it will be injected to eZ Publish 4).

Monday 22 October 2012 1:14:55 pm

Hi Bertrand,

no there is only an

ezpublish.yml (witch I created)

ezpublish.yml.example

ezpublish_prod.yml

ezpublish_setup.yml (wich is the one that is uses, because there is no database in that file)

Maybe it is more a routing problem!?

But I also discovered some other problems. ezpgenerateautoloads as well as ezcache script fails, because they could not load some zetacomponents classes, althoug they are installed in the vendor directory.

Dirk

Monday 22 October 2012 3:12:14 pm

Regarding ezpublish.yml, it is okay as long as you have at least one variation (ezpublish_prod.yml, for prod environnement). What do you have in that file ?

ezpublish_setup.yml should only be used when you have no ezpublish_<env>.yml. If you are running the prod environnement, it should use ezpublish_prod.yml.

Tuesday 23 October 2012 9:54:30 am

Hi,

I'm having the same problem. 

To me it looks like maybe the new installation isn't getting the contents from the ezpublish_prod.yml.

Eg. my locoalhost says "Access denied for user ''@'localhost' to database 'none'", but in my ezpublish_prod.yml it says user = root, password=null and database_name= ezpublish5

 

Cheers,

Peder

Tuesday 23 October 2012 1:54:01 pm

So far, I had only tried eZ Publish 5 with the index_dev.yml file.

I just tried by switching to the normal index.php ("prod"blunk.gif Emoticon, and this is what happened.

Without doing any changes

No ezpublish_prod.yml file, only my previous ezpublish_dev.yml. When loading the root resource, I end up on the backoffice login screen.

Duplicated ezpublish_dev.yml as ezpublish_prod.yml

After clearing cache for prod, I got an error on first load, probably because I've hit the max execution time, but it worked fine after refreshing.

The "none" database is the "fake" one used in ezpublish_setup.yml. It therefore cached upon use, and may conflict later. We have added a clear cache call after writing the configuration recently that should avoid this.

In the meanwhile, just rm -rf app/cache/prod/*, and see if it fixes the issue, please.

Note: you will get MUCH more debug informations if you use index_dev.php instead of index.php. Just create a copy of your existing app/config/ezpublish_prod.yml as app/config/ezpublish_dev.yml.

Wednesday 24 October 2012 7:26:38 am

Hi,

I also found out, that clearing the symfony cache brings up the backend login page. Anyway I'm not able to login.

I'm not sure if that is related to the same issue, but I do have problems with eZComponents probably.

Just a short question:

Should these calls run?

cd app/ezpublish_legacy

php bin/php ezpgenerateautoloads.php

php bin/php ezcache.php --clear-all

I do always get errors like: Warning: require(Base/src/base.php): failed to open stream.

Composer installed eZComponents, so it's might be a include path problem.

Do you have a quick hint on that, or should I open a new topic?

Dirk

Wednesday 24 October 2012 10:25:46 am

 

Quote from Dirk Blicker :

I also found out, that clearing the symfony cache brings up the backend login page. Anyway I'm not able to login.

Are you running PHP 5.4 ? If so, consider using 5.3 because we have a known issue regarding login with 5.4.

As for Zeta components, it depends on how you installed eZ Publish. If you installed from GitHub, then you won't have them in ezpublish_legacy/lib/ezc/. To solve this problem, there are 2 solutions :

Wednesday 24 October 2012 11:18:16 am

Hi Jérôme,

yes it's PHP 5.4.7. Maybe I'll wait for you to fix that issue. Easier than downgrade php blunk.gif Emoticon

Second issue solved, by copying ezComponents. Maybe you should add this to the install instructions, for the GitHub installers.

Thanks, so far.

Wednesday 24 October 2012 11:33:10 am

 

Quote from Dirk Blicker :

yes it's PHP 5.4.7. Maybe I'll wait for you to fix that issue. Easier than downgrade php

Then you might wait for some time, as fixing this is not prioritized at the moment happy.gif Emoticon. But feel free to help us tackling this down! blunk.gif Emoticon

As for the Zeta components issue, you're right.

Wednesday 24 October 2012 3:45:55 pm

For the record the PHP 5.4 issue with workaround is found here: https://jira.ez.no/browse/EZP-19712

expandshrink

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu

Proudly Developed with from