Topic: [error]No answer from the server at Agent.pm line 274.

Bonjour à tous, depuis ma migration
Ubuntu 14.04 LTS => 16.04 LTS
glpi 0.84.3 => 0.84.8
fusioninventory-for-glpi_0.84+3.5

glpi fonctionne bien mais la remontée des informations d'inventaire FI ne fonctionne plus que ce soit depuis des agents windows (2.3.4) ou linux (2.3.16), distants ou locaux.

Est ce que celà inspire quelqu'un ?


debug avec server=htttp://<serveur>/glpi/plugins/fusioninventory/front/communication.php

[debug] FusionInventory Agent (2.3.16)
[debug] Configuration directory: /etc/fusioninventory
[debug] Data directory: /usr/share/fusioninventory
[debug] Storage directory: /var/lib/fusioninventory-agent
[debug] Lib directory: /usr/share/fusioninventory/lib
[debug] [target server0] Next server contact planned for Fri Sep 22 15:11:52 2017
[debug] Available tasks:
[debug] - ESX: 2.2.1
[debug] - Inventory: 1.0
[debug] - WakeOnLan: 2.0
[debug] [htttp client] Using Compress::Zlib for compression
[info] sending prolog request to server server0
[debug2] [htttp client] sending message:
 <?xml version="1.0" encoding="UTF-8" ?>
<REQUEST>
  <DEVICEID><agent>-2014-11-28-14-32-46</DEVICEID>
  <QUERY>PROLOG</QUERY>
  <TOKEN>12345678</TOKEN>
</REQUEST>
[error] [htttp client] unknown content format
[error] No answer from the server at /usr/share/fusioninventory/lib/FusionInventory/Agent.pm line 274.

debug avec server=htttp://<serveur>/glpi/plugins/fusioninventory/

[debug] FusionInventory Agent (2.3.16)
[debug] Configuration directory: /etc/fusioninventory
[debug] Data directory: /usr/share/fusioninventory
[debug] Storage directory: /var/lib/fusioninventory-agent
[debug] Lib directory: /usr/share/fusioninventory/lib
[debug] [target server0] Next server contact planned for Thu Oct  1 07:42:56 2015
[debug] Available tasks:
[debug] - ESX: 2.2.1
[debug] - WakeOnLan: 2.0
[debug] - Inventory: 1.0
[debug] [htttp client] Using Compress::Zlib for compression
[info] sending prolog request to server server0
[debug2] [htttp client] sending message:
 <?xml version="1.0" encoding="UTF-8" ?>
<REQUEST>
  <DEVICEID><agent>-2014-11-28-14-32-46</DEVICEID>
  <QUERY>PROLOG</QUERY>
  <TOKEN>12345678</TOKEN>
</REQUEST>
[debug2] format: Plaintext
[debug2] [htttp client] receiving message:
 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
             "htttp://www.w3.org/TR/html4/loose.dtd">
<html><head><title>GLPI - FusionInventory</title><meta htttp-equiv='Content-Type' content='text/html; charset=utf-8'><meta htttp-equiv='Expires' content='Fri, Jun 12 1981 08:20:00 GMT'>
<meta htttp-equiv='Pragma' content='no-cache'>
<meta htttp-equiv='Cache-Control' content='no-cache'>
<link rel='stylesheet' href='/glpi/css/styles.css' type='text/css' media='screen' >
<!--[if lte IE 6]><link rel='stylesheet' href='/glpi/css/styles_ie.css' type='text/css' media='screen' >
<![endif]--><link rel='stylesheet' type='text/css' media='print' href='/glpi/css/print.css' >
<link rel='shortcut icon' type='images/x-icon' href='/glpi/pics/favicon.ico' >
<script type="text/javascript" src='/glpi/lib/extjs/adapter/ext/ext-base.js'></script>
<script type='text/javascript' src='/glpi/lib/extjs/ext-all.js'></script>
<link rel='stylesheet' type='text/css' href='/glpi/lib/extjs/resources/css/ext-all.css' media='screen' >
<link rel='stylesheet' type='text/css' href='/glpi/lib/extrajs/starslider/slider.css' media='screen' >
<link rel='stylesheet' type='text/css' href='/glpi/css/tab-scroller-menu.css' media='screen' >
<script type='text/javascript' src='/glpi/lib/tiny_mce/tiny_mce.js'></script><link rel='stylesheet' type='text/css' href='/glpi/css/ext-all-glpi.css' media='screen' >
<script type='text/javascript' src='/glpi/lib/extjs/locale/ext-lang-en.js'></script>
<script type='text/javascript' src='/glpi/lib/extrajs/xdatefield.js'></script>
<script type='text/javascript' src='/glpi/lib/extrajs/TabScrollerMenu.js'></script>
<script type='text/javascript' src='/glpi/lib/extrajs/datetime.js'></script>
<script type='text/javascript' src='/glpi/lib/extrajs/spancombobox.js'></script>
<script type='text/javascript' src='/glpi/lib/extrajs/starslider/slider.js'></script>
<script type='text/javascript'>
//<![CDATA[
Ext.BLANK_IMAGE_URL = '/glpi/lib/extjs/s.gif';
 Ext.Updater.defaults.loadScripts = true;
Ext.UpdateManager.defaults.indicatorText='<\span class="loading-indicator center">Loading...<\/span>';
//]]>
</script>
<!--[if IE]><script type='text/javascript'>
Ext.UpdateManager.defaults.indicatorText='<\span class="loading-indicator-ie">Loading...<\/span>';
</script>
<![endif]--><script type='text/javascript' src='/glpi/script.js'></script>
<link rel='stylesheet' href='/glpi/plugins/fusioninventory/css/views.css' type='text/css' media='screen'>
<link rel='stylesheet' href='/glpi/plugins/fusioninventory/css/deploy.css' type='text/css' media='screen'>
</head>
<body><div id='header'><div id='c_logo'><a href='/glpi/front/central.php' accesskey='1' title="Home"></a></div><div id='c_preference' ><ul><li id='deconnexion'><a href='/glpi/logout.php' title="Logout">Logout</a></li>
<li><a href='htttp://glpi-project.org/help-central' target='_blank' title="Help">Help</a></li><li><a href='/glpi/front/preference.php' title="My settings">My settings</a></li><li><a href='/glpi/front/preference.php' title="English">English</a></li></ul><div class='sep'></div></div>
<div id='c_recherche' >
<form method='get' action='/glpi/front/search.php'>
<div id='boutonRecherche'><input type='image' src='/glpi/pics/search.png' value='OK'
                title="Post"  alt="Post"></div><div id='champRecherche'><input size='15' type='text' name='globalsearch'
                                         value='Search' onfocus="this.value='';"></div><input type='hidden' name='_glpi_csrf_token' value='1c154bed3e1da19a9e42fcdb0d7092aa'></form>
<div class='sep'></div>
</div><div id='c_menu'><ul id='menu'><li id='menu1' onmouseover="javascript:menuAff('menu1','menu');" ><a href='/glpi/front/reminder.php' class='itemP'>Tools</a><ul class='ssmenu'><li><a href='/glpi/front/reminder.php'>Personal reminders</a></li>
<li><a href='/glpi/front/rssfeed.php'>RSS feeds</a></li>
</ul></li></ul><div class='sep'></div></div><div id='c_ssmenu1' ><ul><li>&nbsp;</li></ul></div><div id='c_ssmenu2' ><ul><li><a href='/glpi/front/central.php' title="Home">Home</a> ></li><li>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</li><li>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</li><li><div id='show_all_menu' onmouseover="completecleandisplay('show_all_menu');"><table><tr><td class='top'><table><tr><td class='tab_bg_1 b'><a href='/glpi/front/reminder.php' title="Tools" class='itemP'>Tools</a></td></tr><tr><td><a href='/glpi/front/reminder.php'>Personal reminders</a></td></tr>
<tr><td><a href='/glpi/front/rssfeed.php'>RSS feeds</a></td></tr>
</table></td></tr></table></div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</li><li><a href='#' onClick="var w=window.open('/glpi/front/popup.php?popup=load_bookmark' ,'glpibookmarks', 'height=500, width=1000, top=100, left=100, scrollbars=yes' );w.focus();"><img src='/glpi/pics/bookmark.png' title="Load a bookmark"  alt="Load a bookmark"></a></li><li ><img alt='' src='/glpi/pics/menu_all.png' onclick="completecleandisplay('show_all_menu')"></li></ul></div></div>
<div id='page' ><script language=javascript>
            NomNav = navigator.appName;
            if (NomNav=='Konqueror') {
               window.location='/glpi/plugins/fusioninventory/front/wizard.php?tokonq=s8y24l';
            } else {
               window.location='/glpi/plugins/fusioninventory/front/wizard.php';
            }
         </script>
[error] [htttp client] unexpected content, starting with <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
[error] No answer from the server at /usr/share/fusioninventory/lib/FusionInventory/Agent.pm line 274.

Informations sur le système, l'installation et la configuration

GLPI  0.84.8 (/glpi => /usr/share/glpi)

Operating system: Linux 4.4.0-96-generic #119-Ubuntu SMP Tue Sep 12 14:59:54 UTC 2017 x86_64
PHP 7.0.22-0ubuntu0.16.04.1 apache2handler (Core, PDO, Phar, Reflection, SPL, SimpleXML, Zend OPcache, apache2handler, calendar, ctype, curl, date, dom, exif, fileinfo, filter, ftp, gd, gettext, hash, iconv, imap, json, ldap, libxml, mbstring, mcrypt, mysqli, mysqlnd, openssl, pcre, pdo_mysql, posix, readline, session, shmop, snmp, soap, sockets, standard, sysvmsg, sysvsem, sysvshm, tokenizer, wddx, xml, xmlreader, xmlwriter, xsl, zlib)
Setup: max_execution_time="600" memory_limit="128M" post_max_size="8M" safe_mode="" session.save_handler="files" upload_max_filesize="2M" 
Software: Apache/2.4.18 (Ubuntu) (Apache/2.4.18 (Ubuntu) Server at <serveur> Port 80)
    Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; Trident/7.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; .NET4.0E; Tablet PC 2.0)
DBMS:    Server Software: (Ubuntu)
    Server Version: 5.7.19-0ubuntu0.16.04.1
    Parameters: glpi@localhost/glpi
    Host info: Localhost via UNIX socket

Re: [error]No answer from the server at Agent.pm line 274.

Bonjour,

je suis toujours coincé avec ca.
J'ai vu par ci par là qu'il pourrait s'agir d'un manque de zlib mais j'ai vérifié : php-zlib est bien activé

Si jamais une bonne âme a la solution.

David

Re: [error]No answer from the server at Agent.pm line 274.

Really appreciate this wonderful work that you have provided for us. Personally, I don't think php-xml is right package for php5. Great site and great topic as well. I really get amazed to read this. It is really good. I would certainly be anticipating even more posts like this from you. Cheers!!