Access denied for siteaccesses admin and public

Author Message

anne martinet

Thursday 18 September 2008 4:35:52 am

Greg McAvoy-Jensen

Thursday 18 September 2008 6:27:53 am

Have you turned on debug output to see the errors? Or check the error logs in var.

Perhaps eZ Publish isn't able to access the database at all. You could verify database settings in site.ini.append.php for the siteaccess. It's worth verifying that the sql server is running.

If that's not it, you could verify permissions in var. Can Apache write to it?

Granite Horizon, Certified Developer of eZ Publish Web Solutions
Provider of the SaaS Solution Granite Horizon In The Cloud | http://granitehorizon.com/cloud
http://granitehorizon.com | +1 916 647 6350 | California USA | @granitegreg
Blog: http://granitehorizon.com/blog

anne martinet

Thursday 18 September 2008 7:06:37 am

I turned on debug output. And my errors is :

...
Error: error/view.php  	Sep 15 2008 01:14:15
Error ocurred using URI: /ezpublish/index.php/demonstrateur_ez
...
Warning: Insufficient permissions  	Sep 15 2008 01:14:15
Function required:
 Module : user
 Function : login
 ClassID : 
 MainNodeID : 
Policies that didn't match:

I didn't change the related database informations in site.ini for my siteaccesses. Then I verified the name of my database and that seems ok.
I restarted mysql like that:

root@ubuntu:# /etc/init.d/mysql restart
Stopping MySQL database server: mysqld.
Starting MySQL database server: mysqld.
 * Root password is blank.  To change it use:
 * /etc/init.d/mysql reset-password

My root password is blank.Do you think that is the problem?

After bin/modfix.sh, I read in my /etc/apache2/apache2.conf :

User www-data
Group www-data

so I did this :

chown -R www-data.www-data var

How can I verify that Apache write to /<install_ezpublish>/var ?

Thank you for your help.

Greg McAvoy-Jensen

Thursday 18 September 2008 7:22:27 am

Having a blank root password is of course a problem, but it's not the cause of this trouble.

Check to see in your user roles and policies whether the anonymous user has access to the login function of the user module--for the siteaccess in question. I think this is required for them to access their anonymous user rights, even though they don't actually have to go through the login process.

Granite Horizon, Certified Developer of eZ Publish Web Solutions
Provider of the SaaS Solution Granite Horizon In The Cloud | http://granitehorizon.com/cloud
http://granitehorizon.com | +1 916 647 6350 | California USA | @granitegreg
Blog: http://granitehorizon.com/blog

anne martinet

Thursday 18 September 2008 7:52:50 am

But I don't have access to my siteaccess admin. Then I don't kow how to do....

Greg McAvoy-Jensen

Thursday 18 September 2008 10:32:09 am

What happens if you append /user/login (or index.php/user/login) to the URL for the admin siteaccess?

Granite Horizon, Certified Developer of eZ Publish Web Solutions
Provider of the SaaS Solution Granite Horizon In The Cloud | http://granitehorizon.com/cloud
http://granitehorizon.com | +1 916 647 6350 | California USA | @granitegreg
Blog: http://granitehorizon.com/blog

anne martinet

Thursday 18 September 2008 11:36:06 pm

If I give admin username and the good password :

Access denied!

    * You do not have permission to access <demonstrateur_ez>.
    * Please contact the site administrator.

If I give admin username and a bad password :

The system could not log you in.

    * Make sure that the username and password is correct.
    * All letters must be entered in the correct case.
    * Please try again or contact the site administrator.

André R.

Friday 19 September 2008 12:44:51 am

Could you try to:
* truncate your ezsession database table
* look thrue your site ini settings for disabled modules (Both the SiteAccessRules section and the PolicyOmitList setting)

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

anne martinet

Monday 22 September 2008 5:12:44 am

I have drop table ezsession and now in siteaccess admin my error is :

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

anne martinet

Thursday 25 September 2008 7:24:51 am

I could not solve my problem, then I reinstalled eZ Publish, and a new siteaccess.
This siteaccess recover from ezpublish BD and a dump of my old base.
This seems to solve my problem. But I do not think this is the best way.

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 18 2025 16:11:23
Script start
Timing: Jan 18 2025 16:11:23
Module start 'layout'
Timing: Jan 18 2025 16:11:23
Module start 'content'
Warning: PHP: E_WARNING Jan 18 2025 16:11:24
DOMDocument::loadXML(): Opening and ending tag mismatch: literal line 7 and paragraph in Entity, line: 11 in /home/ze/public_html/share.se7enx.com/kernel/classes/datatypes/ezxmltext/ezxmloutputhandler.php on line 174
Warning: PHP: E_WARNING Jan 18 2025 16:11:24
DOMDocument::loadXML(): Opening and ending tag mismatch: paragraph line 7 and section in Entity, line: 13 in /home/ze/public_html/share.se7enx.com/kernel/classes/datatypes/ezxmltext/ezxmloutputhandler.php on line 174
Timing: Jan 18 2025 16:11:24
Module end 'content'
Timing: Jan 18 2025 16:11:24
Script end

Main resources:

Total runtime0.7379 sec
Peak memory usage4,096.0000 KB
Database Queries80

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0051 589.2813152.6563
Module start 'layout' 0.00510.0027 741.937539.5078
Module start 'content' 0.00780.7284 781.4453672.1484
Module end 'content' 0.73620.0016 1,453.593820.3203
Script end 0.7379  1,473.9141 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00350.4704160.0002
Check MTime0.00150.2001160.0001
Mysql Total
Database connection0.00070.095710.0007
Mysqli_queries0.660389.4866800.0083
Looping result0.00110.1520780.0000
Template Total0.701395.020.3506
Template load0.00220.300320.0011
Template processing0.699094.732320.3495
Template load and register function0.00010.017610.0001
states
state_id_array0.00140.191410.0014
state_identifier_array0.00160.215620.0008
Override
Cache load0.00190.2591470.0000
Sytem overhead
Fetch class attribute can translate value0.00120.164830.0004
Fetch class attribute name0.00170.2281120.0001
XML
Image XML parsing0.00120.166730.0004
class_abstraction
Instantiating content class attribute0.00000.0037140.0000
General
dbfile0.00230.3071250.0001
String conversion0.00000.000940.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
10content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
4content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
14content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
7content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
3content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 40
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs