Forum OpenACS Q&A: HELP!!!!!! First page is not accessible!

Hi all, our dev envieroment is not accessible for some users!!! If I try to access the system I get from the browser the error :
http://62.99.149.182:8000/register/?return_url=%2fregister%2f%3freturn%5furl%3d%252fregister%252f%253freturn%255furl%253d%25252fregister%25252f%25253freturn%25255furl%25253d%2525252fregister%2525252f%2525253freturn%2525255furl%2525253d%252525252fregister%252525252f%252525253freturn%252525255furl%252525253d%25252525252fregister%25252525252f%25252525253freturn%25252525255furl%25252525253d%2525252525252fregister%2525252525252f%2525252525253freturn%2525252525255furl%2525252525253d%252525252525252fregister%252525252525252f%252525252525253freturn%252525252525255furl%252525252525253d%25252525252525252fregister%25252525252525252f%25252525252525253freturn%25252525252525255furl%25252525252525253d%2525252525252525252fregister%2525252525252525252f%2525252525252525253freturn%2525252525252525255furl%2525252525252525253d%252525252525252525252fregister%252525252525252525252f%252525252525252525253freturn%252525252525252525255furl%252525252525252525253d%25252525252525252525252fregister%25252525252525252525252f%25252525252 525252525253freturn%25252525252525252525255furl%2525 2525252525252525253d%2525252525252525252525252f ---------
Form the db i get the error:
NOTICE: identifier "acs_permission__grant_permission" will be truncated to "acs_permission__grant_permissio"
DEBUG: pq_recvbuf: unexpected EOF on client connection
DEBUG: pq_recvbuf: unexpected EOF on client connection
DEBUG: pq_recvbuf: unexpected EOF on client connection -- For some users the system works fine. Thanks in advance!!!
Collapse
Posted by Jeff Davis on
This looks like the server is redirecting to itself over and over. You might check if the kernel parameter ForceHostP is set to 1 (and change it to 0 if so and see if that fixes it).

the postgres error is not relevant I don't think.

Collapse
Posted by H. shefaat on
Hi Jeff, Thanks for fast answer. I already cchecked it. It is set to 0!! So mybe on other idea?
Collapse
Posted by Robert Locke on
What are your permissions on the main site node ("/")?  It appears that even your registration page is inaccessible:

$ telnet 62.99.149.182 8000
GET /register/ HTTP/1.0

HTTP/1.0 302 Found
Location: http://62.99.149.182:8000/register/?return_url=%2fregister%2f

Collapse
Posted by Robert Locke on
I just realized that you may not be able to access the site-map via the browser.  So you can try:

    select * from acs_permissions where object_id = (select object_id from site_nodes where parent_id is null)

I guess you could also add this clause since your main site surely inherits from the 'default context':

    union select * from acs_permissions where object_id = acs__magic_object_id('default_context')

G'luck...

Collapse
Posted by H. shefaat on
Hi Robert, Here is the result of select:

object_id | grantee_id | privilege

-----------+------------+-------------------------

-3 | -2 | bboard_create_message

-3 | -2 | general_comments_create

-3 | -2 | news_create

-3 | -1 | bboard_read_category

-3 | -1 | bboard_read_forum

-3 | -1 | bboard_read_message

-3 | -1 | bc_view

-3 | -1 | dad_view_dad

-3 | -1 | faq_view_faq

-3 | -1 | faq_view_q_and_a

-3 | -1 | news_read

2231 | -2 | admin

2231 | -2 | read

2231 | -1 | read

2231 | 7398 | admin

2231 | 7416 | admin

2231 | 7603 | admin


I can not see the problem??
Collapse
Posted by Robert Locke on
I do not see the problem either.  What changes have you made to the site since it was last working?  Anything interesting in your logs?
Collapse
Posted by Jade Rubick on
H., this looks very similar to a problem I had:

https://openacs.org/forums/message-view?message_id=84289

The problem was related to the upgrade script from 4.6 to 4.6.1 in pg.
acs-kernel/sql/postgresql/upgrade/upgrade-4.6-4.6.1.sql

this gave back an error:
insert into acs_objects
  (object_id, object_type)
values
  (0, 'person');

so did an update like this:
update acs_objects
set object_type = 'person'
where object_id = 0;

and everything works fine.

Collapse
Posted by H. shefaat on
Thanks all for Help, it works now!
.-)
Collapse
Posted by Jade Rubick on
If you explain which thing you did made it work, that will help other people in the future. In general, this is good community practice 😊

That way, the next person who comes along can save themselves some time.

Collapse
Posted by H. shefaat on
The solution is that of Roacel.