Forum .LRN Q&A: new problem w/PG port

Collapse
Posted by Janine Ohmer on
This is very weird...

Michael was working with the PG installation I set up for him and everything was fine until he started getting a "connection refused" every time he went to any /dotlrn URL.

Looking at the log, it seems that everything was fine until 21:17:58. At that time, the server restarted itself after processing (or attempting to process) this query:

[28/Jul/2002:21:17:58][9859.1160199][-conn5-] Debug: 
QD_LOGGER = POST-QD: the SQL is
            select 
file_storage__get_package_id(fs_objects.object_id) as 
package_id,
                   (CASE
                      WHEN fs_objects.type = 'url'
                      THEN (select site_node__url(site_nodes.node_id)
                                                   from site_nodes
                                                   where site_nodes.object_id = 
file_storage__get_package_id(fs_objects.parent_id))
                      ELSE (select site_node__url(site_nodes.node_id)
                                            from site_nodes
                                            where site_nodes.object_id = 
file_storage__get_package_id(fs_objects.object_id))
                   END) as url,
                   fs_objects.object_id,
                   fs_objects.name,
                   fs_objects.live_revision,
                   fs_objects.type,
                   fs_objects.content_size
            from fs_objects
            where fs_objects.parent_id in (5390)
            and 't' = 
acs_permission__permission_p(fs_objects.object_id, :user_id, 
'read')
            order by fs_objects.parent_id,
                     fs_objects.sort_key,
                     fs_objects.name

After that, any attempt to go to any /dotlrn URL causes this query to be processed, which then causes the server to restart:

[28/Jul/2002:21:19:25][22833.10249][-conn0-] Debug: 
QD_LOGGER = POST-QD: the SQL is
            select forums_forums.package_id,
            
acs_object__name(apm_package__parent_id(forums_forums.
package_id)) as parent_name,
            (select site_node__url(site_nodes.node_id)
            from site_nodes
            where site_nodes.object_id = 
forums_forums.package_id) as url,
            forums_forums.forum_id,
            forums_forums.name,
            case when last_modified > (now() - 1) then 't' else 'f' end 
as new_p
            from forums_forums_enabled forums_forums,
            acs_objects
            where acs_objects.object_id = forums_forums.forum_id 
and
            forums_forums.package_id in (5407)
             order by parent_name,
             forums_forums.name

I have no idea what might be causing this. It's nsd 3.3+ad13, and we don't seem to have any such problems with the Oracle version.

Michael, do you happen to remember what you were doing in file storage? Maybe that will give us a clue...

Collapse
Posted by Michael Feldstein on
I was never able to get into file storage. All I did was click on the link.

Is it possible that this installation is calling up a parameters file from a previous install? Before you re-installed, I had played around with the default file names in the old installation. (I got there from the site map.)

Collapse
Posted by Janine Ohmer on
<em>Is it possible that this installation is calling up a parameters file from a previous install?</em>
<p>
Not unless parameters are being written to disk, which they are not as far as I know.  I dropped and recreated the database user so any parameters stored there are gone.
Collapse
Posted by Yonatan Feldman on
try setting your stacksize in the server config file to [expr 512 * 1024]. we saw servers restarting when we had stacksizes too low.
Collapse
Posted by Janine Ohmer on
The stack size was set to 500000, almost up to 512 * 1024.  But I tried 512 and even 1024 * 1024, with the same result (restart every time I go to /dotlrn).

It only restarts if I am logged in as a valid dotlrn user, so it is definitely related to trying to load a user's dotlrn home page.  But you probably could tell that from the query.