Bruno Cornec said on Fri, Mar 13, 2009 at 07:10:49PM +0100:

> > *** Checking database connectivity ***
> > ERROR: Unable to connect to the database
> >   Connection string: 'dbname=fossology host=localhost user=fossy
> > password=fossy'
> >   Connection status: '1'
> > ERROR: Failed to open database
> > ERROR: unable to connect to database, please check /etc/fossology/Db.conf

Thanks to Channing's tip this part is now working !
Now next problem ;-)

*** Initializing database tables ***
PHP Warning:
require_once(/usr/local/share/fossology/www/common/common.php): failed
to open stream: No such file or directory in /usr/bin/fossinit on line
47
PHP Fatal error:  require_once(): Failed opening required
'/usr/local/share/fossology/www/common/common.php'
(include_path='.:/usr/share/pear:/usr/share/php') in /usr/bin/fossinit
on line 47
ERROR: Unable to initialize.

It seems that there are a lot of hardcoded /usr/local path in the tree,
but I don't know which I need to adapt. With RPMs the install is done in
/usr/share instead, so a variable should be used to point to the right
dir depending it's a tar.gz install or a package install.

If I look in the tree I find:
./fossology/cli/fo_notify.php:require_once("$WEBDIR/common/common.php");
./fossology/cli/cp2foss.php:require_once ("$WEBDIR/common/common.php");
./fossology/cli/fossinit.php:require_once("$WEBDIR/common/common.php");
./fossology/cli/fosslic.php:require_once("$WEBDIR/common/common.php");
./fossology/cli/fossjobs.php:require_once ("$WEBDIR/common/common.php");
./fossology/ui/index.php:require_once("common/common.php");

So the last doesn't seem coherent with the others. And also it seems
that this WEBDIR variable is computed after DATADIR, but this one is not
mentioned in the doc (HACKING) as one you need to change in order to point
correctly to the files you need.

But IMHO DATADIR should rely on PREFIX, and not be redefined from
scratch. And also it seems that PREFIX needs to be used also at make
time, and not only at install time ! (Again something to add to doc).

Also I found that other variables do not seem to be handled correctly:
-DBSAMLIC='"/var/local/lib/fossology/agents/License.bsam"'
(I try to understand that one, but it seems to be defined as:
PROJECTSTATEDIR=$(LOCALSTATEDIR)/lib/$(PROJECT) and I redefine
LOCALSTATEDIR myself as %{_var} so it should work :-()

So I added PREFIX=%{_usr} to my make command, and then I have:

PHP Notice:  Undefined index:  CONSTRAINT in
/usr/share/fossology/www/plugins/core-schema.php on line 1300
PHP Notice:  Undefined index:  CONSTRAINT in
/usr/share/fossology/www/plugins/core-schema.php on line 1300
PHP Notice:  Undefined index:  CONSTRAINT in
/usr/share/fossology/www/plugins/core-schema.php on line 1300
PHP Notice:  Undefined index:  CONSTRAINT in
/usr/share/fossology/www/plugins/core-schema.php on line 1300
PHP Notice:  Undefined index:  CONSTRAINT in
/usr/share/fossology/www/plugins/core-schema.php on line 1300
PHP Notice:  Undefined index:  CONSTRAINT in
/usr/share/fossology/www/plugins/core-schema.php on line 1300
PHP Notice:  Undefined index:  CONSTRAINT in
/usr/share/fossology/www/plugins/core-schema.php on line 1300
PHP Notice:  Undefined index:  CONSTRAINT in
/usr/share/fossology/www/plugins/core-schema.php on line 1300
  Applying database functions
  Migrating database records
  Removing obsolete views
  Removing obsolete columns
  Committing changes...
  Purging cached results
  Initializing new tables and columns
  Initializing plugins
*** Created default user: 'Default User'.
*** Created default administrator: 'fossy' with password 'fossy'.
PHP Notice:  Undefined offset:  0 in
/usr/share/fossology/www/plugins/ui-browse.php on line 51
<ol>
<li>Creating default canonical name: 3dfx GLIDE
PHP Notice:  Undefined offset:  0 in
/usr/share/fossology/www/plugins/ui-licterm-manage.php on line 555
<li>Creating default canonical name: Academic Free License v1.1
PHP Notice:  Undefined index:  Term in
/usr/share/fossology/www/plugins/ui-licterm-default.php on line 209
[...]

</ol><hr>
PHP Notice:  Undefined variable: Verbose in
/usr/share/fossology/www/plugins/core-schema.php on line 827
  Initializing agents.
  Initializing data files.  This may take a few minutes.
FATAL: Directory '/var/local/lib/fossology/agents' does not exist.
Aborting.
*** Setting up scheduler ***
*** Checking Scheduler.conf ***
NOTE: default /etc/fossology/Scheduler.conf created.
  Please check that is it correct for your environment or
  create a different one with mkschedconf.
*** Setting up the web interface ***
FOSSology postinstall complete, but sure to complete the remaining
  steps in the INSTALL instructions.


So I guess that the local remaining for /var is indeed a problem ;-)

Any one having an idea ?
Thanks in advance,
Bruno.
-- 
Linux Profession Lead EMEA  / Open Source Ambassador \   EMEA CME Sol. Center
http://www.mondorescue.org / HP/Intel Solution Center \  http://hpintelco.net
Des infos sur Linux?  http://www.HyPer-Linux.org      http://www.hp.com/linux
La musique ancienne?  http://www.musique-ancienne.org http://www.medieval.org
_______________________________________________
fossology mailing list
[email protected]
http://fossology.org/mailman/listinfo/fossology

Reply via email to