I realize I'm in somewhat uncharted territory here but I took the plunge last weekend and, after doing a little testing on a spare box, upgraded my main machine to Redhat 9 (with PG 7.3.2 and aolserver 4 beta 8). I loaded acs-kernel/sql/postgresql/postgresql.sql and then imported the dump from PG 7.2.3 into 7.3.2. That went smoothly so I went ahead and upgraded to 4.6.3 right after that (ran the kernel upgrade scripts and then upgraded the rest of the packages via apm). Although I did have to reload a handful of postgresql functions by hand, all seemed OK until I tried adding a new subsite. When I try to create a new subsite instance, I get:
We had some problems processing your entry:
The following error was generated when attempting to create the package
Query did not return any rows.
Please back up using your browser, correct them, and resubmit your entry.
in the browser and:
NOTICE: Adding missing FROM-clause entry for table "acs_object_id_seq"
[14/Jun/2003:14:41:55][20276.1091988784][-conn:msweb-dev::3] Notice: Invoking callback after-mount with command subsite::after_mount -package_id 4823 -node_id 4212
WARNING: ROLLBACK: no transaction in progress
[14/Jun/2003:14:41:55][20276.1091988784][-conn:msweb-dev::3] Error: Aborting transaction due to error:
Query did not return any rows.
in the error log. If I go back to the site map after the error, the new subsite is there, mounted where it should be. If I unmount it and try to delete the instance, I get the following error:
ERROR: -20000: No group_id found for package 4905 (blah)
SQL:
select application_group__group_id_from_package_id (
'4905',
'f'
)
If I try to remount the instance, mount-2.tcl errors out:
Request Error
Query did not return any rows.
while executing
"db_1row parent_subsite_query {}"
("uplevel" body line 14)
...
Again, if I go back and reload the site map after the error, the package instance is there, mounted where it should be.
I've tried tracing the proc calls by hand using nscp and things are definitely going awry in the after_mount callback. Everything runs OK up to the point of the parent_subsite_query but that never returns any rows. I haven't been able to get any further than that, though. Should this upgrade method even work? If so, any hints on how to resolve this error?