Skip to content

not auto sync after update to 2.1.1 #384

@ajavor

Description

@ajavor

After update GLPI to 11.0.0 and plugin ocsinventoryng to 2.1.1, automatic cronjob stopped working (debian 12).

Path to script ocsng_fullsync.sh has been changed from:
/var/www/glpi/plugins/ocsinventoryng/scripts/ocsng_fullsync.sh
to:
/var/www/glpi/plugins/ocsinventoryng/public/scripts/ocsng_fullsync.sh

I changed path, but still not working.

When i run script manually i got this:

root@xxxxxxx:/var/www/glpi/plugins/ocsinventoryng/public/scripts# ./ocsng_fullsync.sh --thread_nbr=2 --server_id=1
PHP Warning:  include(../../../../inc/based_config.php): Failed to open stream: No such file or directory in /var/www/glpi/plugins/ocsinventoryng/public/scripts/glpienv.php on line 3
PHP Warning:  include(): Failed opening '../../../../inc/based_config.php' for inclusion (include_path='.:/usr/share/php') in /var/www/glpi/plugins/ocsinventoryng/public/scripts/glpienv.php on line 3
PHP Fatal error:  Uncaught Error: Undefined constant "GLPI_LOG_DIR" in /var/www/glpi/plugins/ocsinventoryng/public/scripts/glpienv.php:4
Stack trace:
#0 {main}
thrown in /var/www/glpi/plugins/ocsinventoryng/public/scripts/glpienv.php on line 4

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions