Forum OpenACS Q&A: Intranet module problem

Collapse
Posted by Janne Blomqvist on

Hi,

I recently decided to try out OpenACS, and so far it seems rather
impressive. Except being dog slow with only 48MB RAM and X running 
too...maybe i should try reducing my db caches...
Anyway, I can't get the intranet module to work. Yesterday i 
installed 3.2.2 and dumped my old acs db. The new installation went 
without any errors, also during the loading of the data model (I 
followed the new installation instructions quite closely). When I try 
to access the intranet module it just gives me a HTTP 500 error 
(=internal server error). As a weird sidenote, trying to access the 
intranet module from localhost results in a "You are not an emplyee" 
message. Yes, I have added my user to the employee group in User 
Groups -> Intranet. But this shouldn't matter anyway, because my user 
is also a system wide admin. It gives the same error message for the 
system user too. My guess is that there is some kind of db error 
because my connection attempt is listed in the access log and 
postgres churns for a while before I receive the http 500 response. 
Also the same thing happens when i copy a vanilla index.html file to 
the /intranet directory and try to access it, so apparently aolserver 
never gets to evaluating the standard index.tcl file. Maybe some 
error during permission checking in the db? I did the data model 
loading as nsadmin (aolserver user) instead of as postgres as someone 
in this forum suggested a while ago. If that is wrong maybe update 
dox? Also I cannot access the employee administration page which is 
linked from /admin/intranet, it gives me the same http 500 response 
(and "Not employee" when trying from localhost).
Apparently there are similar problems with the bookmarks module (most 
of the modules seem to work fine), but I haven't studied that any 
closer yet. I got mailed the following:

    Error: nsd.tcl: Database operation "select" failed (exception 
NSDB, "Query was not a statement returning rows.")
    Database operation "select" failed (exception NSDB, "Query was 
not a statement returning rows.")
        while executing
    "ns_db select $db $bookmark_query"
        invoked from within
    "set selection [ns_db select $db $bookmark_query]..."
        (file "/var/web/mytestsite/www/bookmarks/index.tcl" line 77)
        invoked from within
    "source $ad_conn(file)"
        invoked from within
    "if { $extension == ".tcl" } {
    	# Tcl file - use source.
    	source $ad_conn(file)
        } elseif { $extension == ".adp" } {
    	# ADP file - parse and return  ..."
        (procedure "ad_handle_abstract_url" line 65)
        invoked from within
    "ad_handle_abstract_url cns51 {}"

    Notice: Querying 'select ad_group_member_p(3, 
system_administrator_group_id()) from dual;'

Some hopefully helpful info:
OS: Red hat 6.1 with 2.2.16 kernel
AOLServer 3.0 (binary tar.gz from www.aolserver.com)
PostgreSQL 7.0.2 (installed from rpm:s)
OpenACS 3.2.2 (tar.gz from OpenACS.org)
OpenACS Pg driver 1.01 (also openacs.org)
Collapse
Posted by Dan Wickstrom on
Do you have IntranetEnabledP set to 1 in your .tcl/.ini config file?

I think that bookmarks is one of the few modules that hasen't been ported yet.

Collapse
Posted by Gordon McAllister on
Also, make sure your user is a member of 'authorized users' of the intranet group.

It appears that the 'system' user doesn't have automatic access to all modules; you'd have to add that user to 'employees and 'authorized users' to see the intranet pages, just like a regular user.

Collapse
Posted by Janne Blomqvist on
Thanks, adding the user to authorized_users in addition to the employee group solved my problem!