You are not logged in.

Announcement

 Téléchargez la dernière version stable de GLPI      -     Et vous, que pouvez vous faire pour le projet GLPI ? :  Contribuer
 Download last stable version of GLPI                      -     What can you do for GLPI ? :  Contribute

#1 2008-11-10 22:27:14

Bug Reporter
Member
Registered: 2008-09-15
Posts: 79

Mass Import Plugin not synchronizing

I am trying to get the mass import plugin to work and have followed all the posts on this forum without success.  When I put GLPI into debug mode and run ocsng_fullsync.sh I get the following errors in ocsng_fullsync.log

Mon Nov 10 15:15:33 EST 2008 ./ocsng_fullsync.sh started
Clean old Not Imported machine list (0)
Manage delete items in OCS server #1: "localhost"
Thread #1 : starting (1/2)
thread #1 : import computers from server: 'localhost'
PHP ERROR: Undefined index:  SCRIPT_FILENAME in /var/www/html/glpi/inc/dbmysql.class.php at line 129
PHP ERROR: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /var/www/html/glpi/inc/dbmysql.class.php at line 164
thread #1 :  computer(s)
PHP ERROR: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /var/www/html/glpi/inc/dbmysql.class.php at line 172
^MThread #1 : done ..
Thread #2 : starting (2/2)
thread #2 : import computers from server: 'localhost'
PHP ERROR: Undefined index:  SCRIPT_FILENAME in /var/www/html/glpi/inc/dbmysql.class.php at line 129
PHP ERROR: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /var/www/html/glpi/inc/dbmysql.class.php at line 164
thread #2 :  computer(s)
PHP ERROR: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /var/www/html/glpi/inc/dbmysql.class.php at line 172
^MThread #2 : done ..
cleaning up.
Mon Nov 10 15:15:36 EST 2008 ended

The database is up and operational, but none of the computers in OCS ever get synchronized.  I am using the follow system configuration:

OS: RHEL 4
PHP: 4.3.9
MySQL: 4.1.22
GLPI: 0.71.2
OCS-NG: 1.01 / 4100


PROD: RHEL 5 on x86 32bit -- PHP 5.1.6 -- Apache 2.2.3 -- MySQL 5.0.77  --  GLPI 0.72.3 -- OCS-NG 1.02.1/5003
DEV:   RHEL 5 on x86 32bit -- PHP 5.1.6 -- Apache 2.2.3 -- MySQL 5.0.77  --  GLPI 0.72.4 -- OCS-NG 1.02.1/5003

Offline

#2 2008-11-10 23:08:53

wawa
GLPI-DEV
From: Montpellier / France
Registered: 2006-07-03
Posts: 6,019
Website

Re: Mass Import Plugin not synchronizing

hello
could you post the traces in the log files please ?

Offline

#3 2008-11-10 23:26:02

Bug Reporter
Member
Registered: 2008-09-15
Posts: 79

Re: Mass Import Plugin not synchronizing

What I posted is all I get.  I had to put GLPI into debug mode to get those errors in the ocsng_fullsync.log file.  The php-errors.log and sql-errors.log files are empty.  Is there another way to get more detailed information?  Thanks.


PROD: RHEL 5 on x86 32bit -- PHP 5.1.6 -- Apache 2.2.3 -- MySQL 5.0.77  --  GLPI 0.72.3 -- OCS-NG 1.02.1/5003
DEV:   RHEL 5 on x86 32bit -- PHP 5.1.6 -- Apache 2.2.3 -- MySQL 5.0.77  --  GLPI 0.72.4 -- OCS-NG 1.02.1/5003

Offline

#4 2008-11-19 18:35:22

setival
Member
Registered: 2008-09-16
Posts: 13

Re: Mass Import Plugin not synchronizing

i have the same error (computers not sync) but less information in log files. my logs are like this:

mié nov 19 16:56:56 CET 2008 ./ocsng_fullsync.sh started
cleaning up.
mié nov 19 16:56:56 CET 2008 ended

anyone can help ?
thank you very much ..

Offline

#5 2008-11-19 18:53:21

remi
GLPI-DEV
From: Champagne
Registered: 2007-04-28
Posts: 7,127
Website

Re: Mass Import Plugin not synchronizing

With MySQL 4.1, there is an issue,

You must apply patch :
https://dev.indepnet.net/plugins/changeset/7301

++

P.S. mais normalement une erreur devrait apparaître dans le fichier sql-errors.log....


Dév. Fedora 29 - PHP 5.6/7.0/7.1/7.2/7.3/7.4 - MariaDB 10.3 - GLPI master
Certifié ITILv3 - RPM pour Fedora, RHEL et CentOS sur https://blog.remirepo.net/

Offline

Board footer

Powered by FluxBB