You are not logged in.
Pages: 1
Topic closed
Bonjour
GLPI 0.72.3
OCS Ver 1.02
j'ai installé le plugin mass ocs import.
je suis bloqué sur le statut "nettoyer" du plugin, je le désinstalle et le réinstalle puis l'active.
l'import se passe bien si je lance immédiatement le script àla main :
sh ocsng_fullsync.sh --thread_nbr=2 --server_id=1
par contre..au bout de qqs instants, le statut du plugin revient sur "nettoyer"
auriez vous une idée, merci
Offline
version du plugin ?
des erreurs en mode debug ? des erreurs dans les logs ?
Offline
plugin V1.3.0
le log /var/www/glpi/files/_log/ocsng_fullsync.log s'implémente en lançant le script a la mano uniquement et remonte bien les infos.
voicis les infos du mode debug a l'activation du plugin :
SQL REQUEST : 3 Queries took 0s
N° Queries Time Errors
1 SELECT *
FROM `glpi_plugins`
WHERE (directory = 'massocsimport') 0.000
2 SELECT *
FROM `glpi_plugins`
ORDER BY name, directory 0.000
3 SELECT *
FROM `glpi_plugins`
ORDER BY name, directory 0.000
POST VARIABLE
GET VARIABLE
SESSION VARIABLE
KEY => VALUE
glpi_currenttime => 2010-04-27 11:34:20
glpi_use_mode => 2
glpiID => 72
glpiname => admin
glpirealname => Administrateur
glpifirstname =>
glpidefault_entity => 0
glpiauthorisation => 1
glpiextauth => 0
glpiauth_method => 1
glpisearchcount =>
KEY => VALUE
1 => 1
glpisearchcount2 =>
KEY => VALUE
1 => 0
glpiroot =>
glpicrontimer => 1272360855
glpi_tab => 1
glpilanguage => fr_FR
glpilist_limit => 20
glpidateformat => 1
glpinumberformat => 0
glpiview_ID => 0
glpidropdown_limit => 50
glpiflat_dropdowntree => 0
glpinum_of_events => 10
glpinextprev_item => name
glpijobs_at_login => 1
glpipriority_1 => #fff2f2
glpipriority_2 => #ffe0e0
glpipriority_3 => #ffcece
glpipriority_4 => #ffbfbf
glpipriority_5 => #ffadad
glpiexpand_soft_categorized => 1
glpiexpand_soft_not_categorized => 1
glpitracking_order => 1
glpifollowup_private => 0
glpiprofiles =>
KEY => VALUE
4 =>
KEY => VALUE
name => super-admin
entities =>
KEY => VALUE
69 =>
KEY => VALUE
ID => 0
name =>
recursive => 1
glpiactiveprofile =>
KEY => VALUE
ID => 4
name => super-admin
interface => central
is_default => 0
computer => w
monitor => w
software => w
networking => w
printer => w
peripheral => w
cartridge => w
consumable => w
phone => w
notes => w
contact_enterprise => w
document => w
contract => w
infocom => w
knowbase => w
faq => w
reservation_helpdesk => 1
reservation_central => w
reports => r
ocsng => w
view_ocsng => r
sync_ocsng => w
dropdown => w
entity_dropdown => w
device => w
typedoc => w
link => w
config => w
rule_tracking => w
rule_ocs => w
rule_ldap => w
rule_softwarecategories => w
search_config => w
search_config_global => w
check_update => r
profile => w
user => w
user_auth_method => w
group => w
entity => w
transfer => w
logs => r
reminder_public => w
bookmark_public => w
backup => w
create_ticket => 1
delete_ticket => 1
comment_ticket => 1
comment_all_ticket => 1
update_ticket => 1
own_ticket => 1
steal_ticket => 1
assign_ticket => 1
show_all_ticket => 1
show_assign_ticket => 1
show_full_ticket => 1
observe_ticket => 1
update_followups => 1
show_planning => 1
show_group_planning => 1
show_all_planning => 1
statistic => 1
password_update => 1
helpdesk_hardware => 3
helpdesk_hardware_type => 8388718
show_group_ticket => 0
show_group_hardware => 0
rule_dictionnary_software => w
rule_dictionnary_dropdown => w
entities =>
KEY => VALUE
69 =>
KEY => VALUE
ID => 0
name =>
recursive => 1
glpiactiveentities =>
KEY => VALUE
0 => 0
glpiactiveentities_string => '0'
glpiparententities =>
glpiparententities_string =>
glpiactive_entity => 0
glpiactive_entity_name => Entité Racine (arborescence)
glpiactive_entity_shortname => Entité Racine (arborescence)
glpishowallentities => 1
glpigroups =>
glpi_plugins =>
KEY => VALUE
0 => massocsimport
MESSAGE_AFTER_REDIRECT =>
glpi_multientitiesmode => 0
ocs_server_id => 1
change_import_mode =>
glpisearch =>
KEY => VALUE
1 =>
KEY => VALUE
start => 0
order => ASC
deleted => 0
distinct => N
link =>
field =>
KEY => VALUE
0 => view
contains =>
KEY => VALUE
0 => tpo
link2 =>
field2 =>
KEY => VALUE
0 => view
contains2 =>
KEY => VALUE
0 =>
type2 =>
sort => 1
glpilisttitle =>
KEY => VALUE
1 => Liste
glpilistitems =>
KEY => VALUE
1 =>
KEY => VALUE
0 => 770
1 => 867
2 => 969
3 => 738
4 => 1010
5 => 464
6 => 582
7 => 780
8 => 1036
9 => 414
10 => 877
11 => 1038
12 => 763
13 => 876
14 => 841
15 => 875
16 => 972
17 => 998
18 => 1034
19 => 1039
glpilisturl =>
KEY => VALUE
1 => /front/computer.php
glpimassiveactionselected =>
Offline
...puis le mode Debug apres qqs minutes en passant en mode "Nettoyer" :
SQL REQUEST : 3 Queries took 0s
N° Queries Time Errors
1 SELECT *
FROM `glpi_plugins`
WHERE (directory = 'massocsimport') 0.000
2 SELECT *
FROM `glpi_plugins`
ORDER BY name, directory 0.000
3 SELECT *
FROM `glpi_plugins`
ORDER BY name, directory 0.000
POST VARIABLE
GET VARIABLE
SESSION VARIABLE
KEY => VALUE
glpi_currenttime => 2010-04-27 11:36:02
glpi_use_mode => 2
glpiID => 72
glpiname => admin
glpirealname => Administrateur
glpifirstname =>
glpidefault_entity => 0
glpiauthorisation => 1
glpiextauth => 0
glpiauth_method => 1
glpisearchcount =>
KEY => VALUE
1 => 1
glpisearchcount2 =>
KEY => VALUE
1 => 0
glpiroot =>
glpicrontimer => 1272360855
glpi_tab => 1
glpilanguage => fr_FR
glpilist_limit => 20
glpidateformat => 1
glpinumberformat => 0
glpiview_ID => 0
glpidropdown_limit => 50
glpiflat_dropdowntree => 0
glpinum_of_events => 10
glpinextprev_item => name
glpijobs_at_login => 1
glpipriority_1 => #fff2f2
glpipriority_2 => #ffe0e0
glpipriority_3 => #ffcece
glpipriority_4 => #ffbfbf
glpipriority_5 => #ffadad
glpiexpand_soft_categorized => 1
glpiexpand_soft_not_categorized => 1
glpitracking_order => 1
glpifollowup_private => 0
glpiprofiles =>
KEY => VALUE
4 =>
KEY => VALUE
name => super-admin
entities =>
KEY => VALUE
69 =>
KEY => VALUE
ID => 0
name =>
recursive => 1
glpiactiveprofile =>
KEY => VALUE
ID => 4
name => super-admin
interface => central
is_default => 0
computer => w
monitor => w
software => w
networking => w
printer => w
peripheral => w
cartridge => w
consumable => w
phone => w
notes => w
contact_enterprise => w
document => w
contract => w
infocom => w
knowbase => w
faq => w
reservation_helpdesk => 1
reservation_central => w
reports => r
ocsng => w
view_ocsng => r
sync_ocsng => w
dropdown => w
entity_dropdown => w
device => w
typedoc => w
link => w
config => w
rule_tracking => w
rule_ocs => w
rule_ldap => w
rule_softwarecategories => w
search_config => w
search_config_global => w
check_update => r
profile => w
user => w
user_auth_method => w
group => w
entity => w
transfer => w
logs => r
reminder_public => w
bookmark_public => w
backup => w
create_ticket => 1
delete_ticket => 1
comment_ticket => 1
comment_all_ticket => 1
update_ticket => 1
own_ticket => 1
steal_ticket => 1
assign_ticket => 1
show_all_ticket => 1
show_assign_ticket => 1
show_full_ticket => 1
observe_ticket => 1
update_followups => 1
show_planning => 1
show_group_planning => 1
show_all_planning => 1
statistic => 1
password_update => 1
helpdesk_hardware => 3
helpdesk_hardware_type => 8388718
show_group_ticket => 0
show_group_hardware => 0
rule_dictionnary_software => w
rule_dictionnary_dropdown => w
entities =>
KEY => VALUE
69 =>
KEY => VALUE
ID => 0
name =>
recursive => 1
glpiactiveentities =>
KEY => VALUE
0 => 0
glpiactiveentities_string => '0'
glpiparententities =>
glpiparententities_string =>
glpiactive_entity => 0
glpiactive_entity_name => Entité Racine (arborescence)
glpiactive_entity_shortname => Entité Racine (arborescence)
glpishowallentities => 1
glpigroups =>
glpi_plugins =>
KEY => VALUE
0 => massocsimport
MESSAGE_AFTER_REDIRECT =>
glpi_multientitiesmode => 0
ocs_server_id => 1
change_import_mode =>
glpisearch =>
KEY => VALUE
1 =>
KEY => VALUE
start => 0
order => ASC
deleted => 0
distinct => N
link =>
field =>
KEY => VALUE
0 => view
contains =>
KEY => VALUE
0 => tpo
link2 =>
field2 =>
KEY => VALUE
0 => view
contains2 =>
KEY => VALUE
0 =>
type2 =>
sort => 1
glpilisttitle =>
KEY => VALUE
1 => Liste
glpilistitems =>
KEY => VALUE
1 =>
KEY => VALUE
0 => 770
1 => 867
2 => 969
3 => 738
4 => 1010
5 => 464
6 => 582
7 => 780
8 => 1036
9 => 414
10 => 877
11 => 1038
12 => 763
13 => 876
14 => 841
15 => 875
16 => 972
17 => 998
18 => 1034
19 => 1039
glpilisturl =>
KEY => VALUE
1 => /front/computer.php
glpimassiveactionselected =>
Offline
quelqu'un aurait une idée? merci
Offline
- Vous êtes sous quel OS ?
- Avez-vous configuré le plugin avant de l'activé ?
- Au lancement du script, vous avez quoi dans le menu Plugins >> Import en masse OCS ?
CentOS 6.5 - CentOS 7.x
PHP 5.6 - PHP 7.x - MySQL 5.6 - MariaDB 10.2 + APC + oOPcache
GLPI from 0.72 to dev version
Certifiée ITIL (ITV2F, ITILF, ITILOSA)
Offline
bonjour et merci pour la réponse
je suis sur RED HAT Entreprise Server 5.3.
j'ai bien positionné "Nombre d'éléments à synchroniser via le cron" à 0 dans le mode OCSNG selon la procédure indiquée ici:
https://forge.indepnet.net/projects/mas … /Fr_manuel
dans la conf du plugin...j'ai "Nettoyer"
je fais dans l'ordre :
-nettoyer
-désinstaller
-installer
-activer
le plugin "umport OCS" apparait bien ds le menu plugin pdt qqs instants (je peux d'ailleurs lancer le script a la main et cela fonctionne) mais il disparait ensuite et le plugin passe en mode "Nettoyer" a nouveau !
Merci pour vos idées
Offline
Il manque la configuration entre l'installation et l'activation (clic sur le nom du plugin dans administration / plugin)
CentOS 6.5 - CentOS 7.x
PHP 5.6 - PHP 7.x - MySQL 5.6 - MariaDB 10.2 + APC + oOPcache
GLPI from 0.72 to dev version
Certifiée ITIL (ITV2F, ITILF, ITILOSA)
Offline
bonjour,
j'ai reproduis le problème sur mon serveur de recette, il semble que cela soit lié à la configuration apache sécurisée.
en effet, dès que le virtual host pointe sur une adresse différente du hostname du serveur, le plugin passe en mode "nettoyer".
la différence est que cela se règle en désinstallant/réinstallant le plugin en recette, mais pas en production !
il s'avère que le plugin a été installé dans le répertoire "/usr/share/glpi/plugins" en recette et "/var/www/glpi/plugins" en prod méthode d'instal via yum en recette et via l'archive tgz en prod!)
apparemment le "nettoyage" ne se fait pas correctement? puisque le plugin reste sur le mode "nettoyer"
comment puis je totalement supprimé tous les fichiers relatifs au plugin installé via l'archive afin de le réinstaller correctement?
merci
Offline
Tous les fichiers relatifs à ce plugin se trouve dans le répertoire glpi/plugin/massocsimport.
Dans la base, les noms des tables commence par glpi_plugin_massocsimport (5 de mémoire)
En supprimant ce dossier et ces tables, vous repartez de 0
Mais il faut impérativement que le plugin soit installé dans le même répertoire glpi que l'application sinon il ne pourra pas bénéficier des fonctions du core.
Après, pour le virtual host, il suffit de bien le paramétrer dans apache.
Last edited by yllen (2010-04-30 17:19:17)
CentOS 6.5 - CentOS 7.x
PHP 5.6 - PHP 7.x - MySQL 5.6 - MariaDB 10.2 + APC + oOPcache
GLPI from 0.72 to dev version
Certifiée ITIL (ITV2F, ITILF, ITILOSA)
Offline
merci Nelly pour ces infos...
je vais tenter un nettoyage total de printemps du plugin ce matin, je vous tiens informé
Offline
Pages: 1
Topic closed