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 2010-03-29 16:39:04

hackmaf
Member
Registered: 2010-02-04
Posts: 2

Automated synchronization

hello, update a few days ago of GLPI 0.72.3 to 0.72.4 and now I'm trying to put a cron script to sync autmaticamente with OCS, but when you run the scripts I get the following errors, can anyone know that this happening?

#php /var/www/glpi/plugins/massocsimport/scripts/ocsng/ocsng_fullsync.php

Warning: include(../../../config/based_config.php): failed to open stream: No such file or directory in /var/www/glpi/plugins/massocsimport/scripts/ocsng_fullsync.php on line 85
Warning: include(): Failed opening '../../../config/based_config.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/glpi/plugins/massocsimport/scripts/ocsng_fullsync.php on line 85
Warning: include(../../../inc/includes.php): failed to open stream: No such file or directory in /var/www/glpi/plugins/massocsimport/scripts/ocsng_fullsync.php on line 86
Warning: include(): Failed opening '../../../inc/includes.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/glpi/plugins/massocsimport/scripts/ocsng_fullsync.php on line 86
Fatal error: Call to undefined function getMemoryLimit() in /var/www/glpi/plugins/massocsimport/scripts/ocsng_fullsync.php on line 93

My system is:
GLPI 0.72.4
Debian 5 Lenny
Apache 2.2.9-10
Php 5.2.6
MySQL 5.0.51a

Last edited by hackmaf (2010-03-29 20:21:16)

Offline

#2 2010-03-29 22:53:35

vgracanin
Member
Registered: 2009-08-31
Posts: 12

Re: Automated synchronization

Probably something with rights because the plugin cannot find /config/based_config.php

Last edited by vgracanin (2010-03-29 23:04:05)

Offline

#3 2010-03-30 07:31:40

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

Re: Automated synchronization

See plugin documentation.
You should not launch ocsng_fullsync.php but ocsng_fullsync.sh

+


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

#4 2010-04-22 11:21:32

marcinr
Member
Registered: 2007-09-13
Posts: 49

Re: Automated synchronization

Hello,
i get the same messages as hackmaf.
If i run ocsng_fullsync.sh with nolog

        Thread #1 : starting (1/2)
        Thread #1 : import computers from server: <server>
        Thread #1 : 600 computer(s)

        Thread #2 : starting (2/2)
        Thread #2 : import computers from server: <server>
        Thread #2 : 598 computer(s)

Then in GUI in OCS import i see:
Status    Number of threads    Starting date    Ending date     Imported machines%

Last edited by marcinr (2010-04-22 11:39:10)

Offline

#5 2010-04-22 11:27:17

marcinr
Member
Registered: 2007-09-13
Posts: 49

Re: Automated synchronization

omg i can't post because forum's engine is crashing?

edit: finally. It looks like i was unable to save my post because of too long line?!

edit2: geee, now my post is truncated. This forum sucks sad

Last edited by marcinr (2010-04-22 11:40:16)

Offline

Board footer

Powered by FluxBB