3.4.1 and MatchOrder=host problem

Author Message

Nicolas Heiringhoff

Tuesday 07 September 2004 3:16:02 am

Hello everybody,

we have an eZ Publish 3.3.5 installation which runs multiple sites using the MatchOrder=host access. We now have migrated all the sites from the 3.3.5 installation to an 3.4.1 installation on the same linux/apache server to use the new features of 3.4.1. Everything is fine so far, exept that we can not access the sites via MatchOrder=host but only by MatchOrder=uri. We can not figure out where the problem is. Switching from MatchOrder=host to MatchOrder=uri is no problem under 3.3.5 but it does not work for us under 3.4.1.

We get the followong error message:
"kernel 50 error, no database connection could be made"

Has anybody perhaps the same problem and a solution ;-) ?

http://www.heiringhoff.de

Ole Morten Halvorsen

Tuesday 07 September 2004 5:34:04 am

Hi,

Seems like eZ publish cant connect to the database. Check your database settings. Do you have your database settings in <i>settings/override/site.ini.append</i> or <i>settings/siteaccess/my_siteaccess/site.ini.append</i>?

Could you post your HostMatchMapItems from <i>settings/override/site.ini.append</i>?

Check out these threads:
http://ez.no/community/forum/install_configuration/database_would_not_accept_the_connection
http://ez.no/community/forum/install_configuration/kernel_error_50

Ole M.

Senior Software Engineer - Vision with Technology

http://www.visionwt.com
http://www.omh.cc
http://www.twitter.com/omh

eZ Certified Developer
http://ez.no/certification/verify/358441
http://ez.no/certification/verify/272578

Nicolas Heiringhoff

Tuesday 07 September 2004 5:56:01 am

Hi Ole,

we have the database settings in <i>settings/siteaccess/my_siteaccess/site.ini.append</i>

the HostMatchMapItems from <i>settings/override/site.ini.append</i> are the following:

MatchOrder=host
HostMatchType=map

HostMatchMapItems[]=faktorzwei.iddisweb.iddis.de;faktorzwei
HostMatchMapItems[]=www.faktorzwei.iddisweb.iddis.de;faktorzwei
HostMatchMapItems[]=admin.faktorzwei.iddisweb.iddis.de;faktorzwei_admin
HostMatchMapItems[]=iddisweb.iddis.de;iddisweb
HostMatchMapItems[]=www.iddisweb.iddis.de;iddisweb
HostMatchMapItems[]=admin.iddisweb.iddis.de;iddisweb_admin
HostMatchMapItems[]=ralf.iddis.de;ralf
HostMatchMapItems[]=www.ralf.iddis.de;ralf
HostMatchMapItems[]=admin.ralf.iddis.de;ralf_admin
HostMatchMapItems[]=nico.iddis.de;nico
HostMatchMapItems[]=www.nico.iddis.de;nico
HostMatchMapItems[]=admin.nico.iddis.de;nico_admin

I post the other settings aswell:

[SiteSettings]
DefaultAccess=
SiteList[]
SiteList[]=news
SiteList[]=ralf
SiteList[]=nico
SiteList[]=faktorzwei
SiteList[]=iddis

[SiteAccessSettings]
CheckValidity=false
AvailableSiteAccessList[]
AvailableSiteAccessList[]=news
AvailableSiteAccessList[]=news_admin
AvailableSiteAccessList[]=ralf
AvailableSiteAccessList[]=ralf_admin
AvailableSiteAccessList[]=nico
AvailableSiteAccessList[]=nico_admin
AvailableSiteAccessList[]=faktorzwei
AvailableSiteAccessList[]=faktorzwei_admin
AvailableSiteAccessList[]=iddis
AvailableSiteAccessList[]=iddis_admin

thank you,
Nico

http://www.heiringhoff.de

Ole Morten Halvorsen

Tuesday 07 September 2004 6:23:05 am

Try turning on debug and siteaccess debug.

settings/override/site.ini.append:
[DebugSettings]
DebugOutput=enabled
[SiteAccessSettings]
DebugAccess=enabled
DebugExtraAccess=enabled

Look for any warnings/errors in the debug output.

Ole M.

Senior Software Engineer - Vision with Technology

http://www.visionwt.com
http://www.omh.cc
http://www.twitter.com/omh

eZ Certified Developer
http://ez.no/certification/verify/358441
http://ez.no/certification/verify/272578

Nicolas Heiringhoff

Tuesday 07 September 2004 7:05:41 am

We have put the debug-enable-code in the settings/override/site.ini.append
but unfortunately we do not get any debug code. When we switch to MatchOrder=uri we see the debug output

All we get is

kernel (50)

* No database connection could be made, the system might not behave properly.

http://www.heiringhoff.de

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 31 2025 06:20:26
Script start
Timing: Jan 31 2025 06:20:26
Module start 'layout'
Timing: Jan 31 2025 06:20:26
Module start 'content'
Timing: Jan 31 2025 06:20:26
Module end 'content'
Timing: Jan 31 2025 06:20:26
Script end

Main resources:

Total runtime0.0128 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0055 588.1563151.2109
Module start 'layout' 0.00550.0023 739.367236.6484
Module start 'content' 0.00770.0038 776.015698.2813
Module end 'content' 0.01150.0013 874.296937.9922
Script end 0.0128  912.2891 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002418.5677140.0002
Check MTime0.00118.5202140.0001
Mysql Total
Database connection0.00064.910510.0006
Mysqli_queries0.002519.180130.0008
Looping result0.00000.077910.0000
Template Total0.00107.810.0010
Template load0.00075.797610.0007
Template processing0.00031.952310.0003
Override
Cache load0.00064.327810.0006
General
dbfile0.00021.842880.0000
String conversion0.00000.040840.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs