Forum OpenACS Q&A: 'error in serving group pages' as ASC opening page

Hello!

I have a problem with the OpenACS - instead of the opening page it shows 'error in serving group pages'. When I try to login (by '/register/index.tcl') as the 'system' user, then I get 'server configuration error'. I get also errors when I try to register some other user, though I manged to register one.

Can anyone give me some suggestions on where to look for a solution?

I am running AOlserver 3.0, PostgreSQL 7.0.2 and OpenACS beta 3 on a RedHat 6.0 system. The computer is not connected to any network yet, so it is localhost.localdomain (if that matters).

The installation went smoothly, AOLServer is working fine, the same for Postgres.

My error log looks like:

Errors since 30/May/2000:21:57:19

[30/May/2000:21:57:20]
    Error: nsd.tcl: invalid set id: ""
    invalid set id: ""
        while executing
    "ns_set size $all_the_redirects"
        invoked from within
    "ns_log Notice "/tcl/ad-redirect.tcl has found [ns_set size 
$all_the_redirects]..."
        invoked from within
    "if !$ad_redirects_installed_p {
        # we haven't done this already
        set ad_redirects_installed_p 1
    
        # we could use ad_parameter_section (define ..."
        (file "/web/gpspl/tcl/ad-redirect.tcl" line 12)
    Notice: nsd.tcl: sourcing: /web/gpspl/tcl/ad-referer.tcl

[30/May/2000:21:57:21]
    Error: nsd.tcl: can't use non-numeric string as operand of "&&"
    can't use non-numeric string as operand of "&&"
        while executing
    "if { !$address_book_procs_scheduled_p && [ad_parameter 
SendBirthdayAlerts addressbook] } {
        set address_book_procs_scheduled_p 1
        
        # schedul ..."
        (file "/web/gpspl/tcl/address-book-defs.tcl" line 205)
    Notice: nsd.tcl: sourcing: /web/gpspl/tcl/adserver-defs.tcl


[30/May/2000:21:57:31]
    Error: nsd.tcl: expected boolean value but got ""
    expected boolean value but got ""
        while executing
    "if {[ad_parameter EnabledP ccstub]} {
    	proc cc_send_to_server_21 {command in_data out_data} {
    	    stub_cc_send_to_server_21 $command $in_data $out_da ..."
        (procedure "ccstub_enable_stub" line 2)
        invoked from within
    "ccstub_enable_stub"
    Notice: Running scheduled proc ad_partner_initialize...

[30/May/2000:21:58:37]
    Error: /tcl/user-group-defs.tcl: function ug_serve_group_pages: 
first element in url_list is not [ad_parameter GroupsDirectory ug]
    Notice: nsd.db: opening:  postgres:localhost::testdb

[30/May/2000:21:59:03]
    Error: /tcl/user-group-defs.tcl: function ug_serve_group_pages: 
first element in url_list is not [ad_parameter GroupsDirectory ug]
    Notice: Querying 'begin transaction;'

[30/May/2000:22:00:44]
    Error: nsd.tcl: expected boolean value but got ""
    expected boolean value but got ""
        while executing
    "if {[ad_parameter NotifyAdminOfNewRegistrationsP]} {
        # we're supposed to notify the administrator when someone new 
registers
        set notification_ ..."
        (file "/web/gpspl/www/register/user-new-2.tcl" line 228)
        invoked from within
    "source $script"
        invoked from within
    "if ![file exists $script] {
    		ns_returnnotfound $conn
    	} else {
    		source $script
    	}"
        (procedure "ns_sourceproc" line 3)
        invoked from within
    "ns_sourceproc cns5 {}"
    Notice: Querying '
            select user_id, token, secure_token,
                   last_ip, last_hit from sec_sessions
            where session_id = 1;'

[30/May/2000:22:02:25]
    Error: /tcl/user-group-defs.tcl: function ug_serve_group_pages: 
first element in url_list is not [ad_parameter GroupsDirectory ug]
    Notice: Querying 'select * from referer_log_glob_patterns;'

[30/May/2000:22:10:50]
    Error: nsd.tcl: can't use non-numeric string as operand of "&&"
    can't use non-numeric string as operand of "&&"
        while executing
    "if { [ad_parameter UsersTableContainsConvertedUsersP] && 
$converted_p == "t" } {
        # we have a user who never actively registered; he or she was 
       ..."
        (file "/web/gpspl/www/register/user-login.tcl" line 67)
        invoked from within
    "source $script"
        invoked from within
    "if ![file exists $script] {
    		ns_returnnotfound $conn
    	} else {
    		source $script
    	}"
        (procedure "ns_sourceproc" line 3)
        invoked from within
    "ns_sourceproc cns14 {}"
    Notice: Querying '
                    update sec_sessions
                    set last_hit = 959717449
                    where session_id = 1;'

[30/May/2000:22:12:09]
    Error: /tcl/user-group-defs.tcl: function ug_serve_group_pages: 
first element in url_list is not [ad_parameter GroupsDirectory ug]
    Notice: Querying '
                    update sec_sessions
                    set last_hit = 959717528
                    where session_id = 1;'

[30/May/2000:22:12:15]
    Error: /tcl/user-group-defs.tcl: function ug_serve_group_pages: 
first element in url_list is not [ad_parameter GroupsDirectory ug]
    Notice: Running scheduled proc wd_mail_errors...

[30/May/2000:22:13:26]
    Error: nsd.tcl: can't use non-numeric string as operand of "&&"
    can't use non-numeric string as operand of "&&"
        while executing
    "if { [ad_parameter UsersTableContainsConvertedUsersP] && 
$converted_p == "t" } {
        # we have a user who never actively registered; he or she was 
       ..."
        (file "/web/gpspl/www/register/user-login.tcl" line 67)
        invoked from within
    "source $script"
        invoked from within
    "if ![file exists $script] {
    		ns_returnnotfound $conn
    	} else {
    		source $script
    	}"
        (procedure "ns_sourceproc" line 3)
        invoked from within
    "ns_sourceproc cns18 {}"
    Notice: exiting: no waiting connections

[30/May/2000:22:15:41]
    Error: nsd.tcl: can't read "QQemail": no such variable
    can't read "QQemail": no such variable
        while executing
    "ns_db 0or1row $db "select user_id, user_state, converted_p from 
users where upper(email)=upper('$QQemail..."
        invoked from within
    "set selection [ns_db 0or1row $db "select user_id, user_state, 
converted_p from users where upper(email)=upper('$QQemail..."
        (file "/web/gpspl/www/register/user-login.tcl" line 17)
        invoked from within
    "source $script"
        invoked from within
    "if ![file exists $script] {
    		ns_returnnotfound $conn
    	} else {
    		source $script
    	}"
        (procedure "ns_sourceproc" line 3)
        invoked from within
    "ns_sourceproc cns19 {}"

    Notice: AOLserver/3.0 stopping.
It sounds like something's not set up properly in your version of ad.tcl, or that it's not being sourced by your nsd.tcl file when you fire up AOLserver.

The "non-numeric arg to &&" error is an indication that a blank was returned when it tried to pick up a value using ad_parameter, leading to a statement like 'if { "" && something }" or 'if { $something && "" }'.

Thanks for help! Indeed, the problem was with configuration
files. Originally I took the Roberto Mello's ones and I modified them,
but I guess I messed up doing that. Now I applied the original
version and everything works. Will be more carful customizing
them for my instllation.
The key problem appears to be that the yourserver.tcl file was not sourced. This has to be done explicitly in the nsd.tcl file, presumably at the end. Just a:

source /web/${server}/parameters/${server}.tcl

should do the trick.

Is the requirement to "source" the ad.tcl file documented anywhere in ACS or OpenACS documentation? If it is an ad.ini file, it is automatically loaded as long as AuxConfigDir is set correctly. Just wondering if this was overlooked in the pre-made AOLserver files or if its just me.
If you have an nsd.tcl you have to explicitly source it. And yes it is in the documentation. If it's an ad.ini you still have to explicitly source it, but with a different param (AuxConfigDir).
Dear All,

I have similiar problem, my error msg:

[Tue Jun  5 17:16:45 2001] [error] [client 129.47.1.161] [uri: /]
  /tcl/user-group-defs.tcl: function ug_serve_group_pages: first element in url_list is not [ad_parameter GroupsDirectory ug]

How to fix the error.
Pls advice me.

Regards.