Package: ocsinventory-server
Version: 1.01-2
Severity: serious

Trying to install ocs-inventory from scratch. The database is on a
different computer.
Several bugs cropped up, and I still not haven't gotting things working:

1) Debconf asked whether I wanted to use dbconfig for database
installation or that I should check the ocsinventory /usr/share/doc
directory otherwise. Well, there is no info in the ocsinventory-server
documentation on how to prepare a database (which I would have
preferred personally)

2) Choosing dbconfig prompted for a database administrator password. But
it did not ask for the dbadmin username. The mysql root user does not
have remote access on that particular server...

3) Continuing as is, debconf complained that a mysql server would be
needed and if I wanted to abort/retry/ignore. As far as I could tell, it
had not even done anything yet so the retry made no sense at all. And
the database was to be on another host...
Ignoring, things failed completely, because, well, there was no mysql
running on the host ocsinventory was configuring on.

4) dpkg-reconfigure -plow could not run at this point because the
package had not been configured yet. I had to dpkg-reconfigure debconf
and set priority to low there in order to retry. The package could have
failed gracefully and allowed reconfiguration instead.

5) I prepared a dbadmin user on the mysql server so that the package
configuration could do what it had to, remotely. Trying dpkg --configure
-a: this time I was prompted for host and username. Great. Still
complaining about a mysql server requirement, ignore. Configuration then
failed because the mysql-client command was not installed!

6) After installing the mysql-client package, configuration finally
succeeded. Trying to browse http://localhost/ocsinventory/ I got an
internal server error...
The apache error logs showed that the application could not connect to
mysql; it turned out the configuration had not granted itself permission
to connect to the server remotely.

7) Fixing remote connectivity on the mysql server, the next browse
attempt resulted in a "bad request" error. Apache error logs listed
this:
DBD::mysql::st execute failed: Table 'ocsweb.config' doesn't exist at 
/usr/share/perl5/Apache/Ocsinventory/Server/System.pm line 85.

Now I'm stuck...


KR,

Filip

-- System Information:
Debian Release: lenny/sid
  APT prefers testing
  APT policy: (900, 'testing'), (899, 'stable'), (10, 'unstable')
Architecture: amd64 (x86_64)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.20-1-amd64
Locale: LANG=nl_BE.UTF-8, LC_CTYPE=nl_BE.UTF-8 (charmap=UTF-8)

Versions of packages ocsinventory-server depends on:
ii  apache2-mpm-prefork [apache2] 2.2.4-3    Traditional model for Apache HTTPD
ii  dbconfig-common               1.8.35     common framework for packaging dat
ii  debconf [debconf-2.0]         1.5.14     Debian configuration management sy
ii  libapache-dbi-perl            1.05-1     Connect apache server to database 
ii  libapache2-mod-perl2          2.0.2-2.4  Integration of perl with the Apach
ii  libcompress-zlib-perl         1.42-2     Perl module for creation and manip
ii  libdbd-mysql-perl             4.005-1    A Perl5 database interface to the 
ii  libdbi-perl                   1.53-1     Perl5 database interface by Tim Bu
ii  libnet-ip-perl                1.25-2     Perl extension for manipulating IP
ii  libxml-simple-perl            2.16-1     Perl module for reading and writin
ii  ucf                           3.001      Update Configuration File: preserv

Versions of packages ocsinventory-server recommends:
pn  ocsinventory-reports          <none>     (no description available)

-- debconf information:
  ocsinventory-server/internal/skip-preseed: false
  ocsinventory-server/remote/newhost: gemini.qbian.local
  ocsinventory-server/install-error: abort
  ocsinventory-server/passwords-do-not-match:
  ocsinventory-server/upgrade-error: abort
* ocsinventory-server/remote/port: 3306
* ocsinventory-server/mysql/method: tcp/ip
  ocsinventory-server/database-type: mysql
* ocsinventory-server/db/app-user: ocs
* ocsinventory-server/mysql/admin-user: mechanix
* ocsinventory-server/missing-db-package-error: ignore
  ocsinventory-server/remove-error: abort
  ocsinventory-server/internal/reconfiguring: false
* ocsinventory-server/dbconfig-install: true
  ocsinventory-server/dbconfig-upgrade: true
  ocsinventory-server/purge: false
  ocsinventory-server/upgrade-backup: true
* ocsinventory-server/remote/host: gemini.qbian.local
  ocsinventory-server/dbconfig-reinstall: false
* ocsinventory-server/db/dbname: ocsweb
  ocsinventory-server/dbconfig-remove:


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to