|
From: Jon <jo...@3e...> - 2003-03-11 18:02:48
|
At 22:57 10/03/2003 -0500, Chris Winters wrote:
>Jon wrote:
>>But All Of A Sudden:
>>[root@3evtowers demo]# oi_manage --base_dir=/usr/local/OpenInteract
>>--website_dir=/home/httpd/OIdemo --package=demo apply_package
>>Running apply_package...
>>=========================
>>Status of the packages you requested to be applied:
>>demo (0.01)
>> FAILED!: Cannot install package to website. Error: Website name not
>> set in package object
{snip}
>That's very strange... this isn't set in the package itself (that is, the
>'package.conf' file in the package), it's set into the information passed
>to the relevant OI::Package routine. What's strange is that oi_manage
>should read this information from your base configuration file -- sort of
>a bootstrapping file that gets everything up and going. It should be in
>$WEBSITE_DIR/conf/base.conf and have your website name defined. Does yours
>have this field?
Mine didn't have the file, yet alone that field :)
I just posted the reason why in response to a message from Jan -
essentially Apache hadn't been restarted fully and it had an old value for
$BASE_CONFIG, so all bets were off.
But I still can't apply a package. I deleted all of the web site
directories and the dir where OI was installed, drop'ped the DB. I went to
the folder with the OI sources and reinstalled OI again. Got it working
fine with the base packages. Went through the Developer's Guide, stuck
again on apply_package:
[root@3evtowers oiOne]# oi_manage --website_dir /home/httpd/oi --package
oiOne apply_package
[oi_manage]: Using (/usr/local/OpenInteract) for 'base_dir'.
Running apply_package...
=========================
Cannot save package repository: the OpenInteract base installation
directory for package (-) is not specified or does not exist! at
/usr/lib/perl5/site_perl/5.8.0/OpenInteract/PackageRepository.pm line 135.
Status of the packages you requested to be applied:
OK
FAILED!: Package could not be verified -- either it doesn't exist in
base install or there's a problem with the base
install package.{snip
That's essentially the problem, read on for more info}
[root@3evtowers oiOne]# oi_manage --website_dir=/home/httpd/oi
--package=oiOne apply_package
[oi_manage]: Using (/usr/local/OpenInteract) for 'base_dir'.
Running apply_package...
=========================
Status of the packages you requested to be applied:
FAILED!: Cannot install package to website. Error: Package directory
/home/httpd/oi/pkg/- already exists.
FAILED!: Package could not be verified -- either it doesn't exist in
base install or there's a problem with the base
install package.{snip}
[root@3evtowers oiOne]# oi_manage list_packages
[oi_manage]: Using (/usr/local/OpenInteract) for 'base_dir'.
Running list_packages...
{snip}
Package: oiOne-0.01
Installed: 2003-03-11 15:55:31
Directory: /usr/local/OpenInteract/pkg/oiOne-0.01 {snip}
[root@3evtowers oiOne]# oi_manage --website_dir=/home/httpd/oi
--package=oiOne test_db
{snip}
-- Basic connect: ok
-- Use database: ok
-- Create table: ok {snip}
[root@3evtowers oiOne]# oi_manage --website_dir=/home/httpd/oi
--package=oiOne install_sql
[oi_manage]: Using (/usr/local/OpenInteract) for 'base_dir'.
Running install_sql...
=========================
Cannot create object without existing file or 'new' permission
[/home/httpd/oi/conf/package_repository.perl] [write] at
/usr/lib/perl5/site_perl/5.8.0/SPOPS/Exception.pm line 80, <CONF> line 24.
[root@3evtowers oiOne]# ls -ls /home/httpd/oi/conf/package_repository*
16 -rw-r--r-- 1 root root 15990 Mar 11 15:57
/home/httpd/oi/conf/package_repository.perl.backup
16 -rw-r--r-- 1 root root 15990 Mar 11 12:55
/home/httpd/oi/conf/package_repository.perl.tmp
Looks like earlier barf left package_repository.perl nicely backed-up
before a premature exit, so now the httpd wont start.
TIA
jon
|