[Fusioninventory-user] Unable to find agent to run this job

Carlos Gunners goondaba at gmail.com
Tue Jan 22 10:32:19 UTC 2013


> I may be helpful to understand what's going on to run the agent from a
console
with:
>     # fusioninventory-agent --daemon --no-fork --debug --debug

This was quite helpful ... First it helped me see that, while
/etc/default/fusioninventory had daemon mode enabled, the actual agent.cfg
had daemon = 0, and seemed to take precendence to the /etc/default setting.

I changed daemon mode to 1 in agent.cfg, and then ran your suggested debug
command again, and discovered that it was all down to a missing perl module
(Text::Template)

> [Tue Jan 22 10:22:37 2013][debug] Failed to load HTTP server: Can't
locate Text/Template.pm in @INC (@INC > contains:
/usr/local/share/fusioninventory/lib /etc/perl /usr/local/lib/perl/5.10.1
/usr/local/share/perl/5.10.1 > /usr/lib/perl5 /usr/share/perl5
/usr/lib/perl/5.10 /usr/share/perl/5.10 /usr/local/lib/site_perl .) at >
/usr/local/share/fusioninventory/lib/FusionInventory/Agent/HTTP/Server.pm
line 11.
> BEGIN failed--compilation aborted at
/usr/local/share/fusioninventory/lib/FusionInventory/Agent/HTTP/Server.pm >
line 11.
> Compilation failed in require at
/usr/local/share/fusioninventory/lib/FusionInventory/Agent.pm line 176.

 Fixed that, and the http server is now being fired up ..

Your other suggestion to try connecting to the port was moot because I
could see via lsof that no http process was being fired up ..

Thanks for your kind suggestions .. best regards.


On 18 January 2013 16:51, Gonéri Le Bouder <goneri at rulezlan.org> wrote:

> On Fri, Jan 18, 2013 at 01:37:55PM +0000, Carlos Gunners wrote:
> > Update ..
> >
> > I have found where the logs go for both glpi and fusioninventory, and I
> see no
> > issues of relevance being displayed in the logs ..
> >
> > [Fri Jan 18 12:26:27 2013][debug] FusionInventory unified agent for
> UNIX, Linux
> > and MacOSX (2.2.7)
> > [Fri Jan 18 12:26:27 2013][debug] Configuration directory:
> /usr/local/etc/
> > fusioninventory
> > [Fri Jan 18 12:26:27 2013][debug] Data directory: /usr/local/share/
> > fusioninventory
> > [Fri Jan 18 12:26:27 2013][debug] Storage directory: /usr/local/var/
> > fusioninventory
> > [Fri Jan 18 12:26:27 2013][debug] Lib directory: /usr/local/share/
> > fusioninventory/lib
> >
> > But the situation remains that:
> > -- the agent refuses to listen to the port defined (ie, 62354)  but is
> running
> > in daemon mode
> I may be helpful to understand what's going on to run the agent from a
> console
> with:
>     # fusioninventory-agent --daemon --no-fork --debug --debug
>
> > So, it does seem as if there is a clear break in communications, but I
> am not
> > exactly sure why ..
> Can you contact your agent from the server?
>
>     http://client_ip:62354/status
>
> > Possible options:
> > -- switch agent back to cron mode, and see if that helps
> In this case, switch the task to “pull” mode.
>
> > -- keep googling to see if one can ascertain exactly what config
> settings are
> > required to ensure http daemon is launched by the agent to listen on
> specified
> > port
> > -- follow code to see how the http element is invoked and why it is
> failing
> >
> > IS THIS MAILING LIST IN USE AT ALL ?
> I hope so :)
>
> Best regards,
> --
>     Gonéri
>
> _______________________________________________
> Fusioninventory-user mailing list
> Fusioninventory-user at lists.alioth.debian.org
>
> http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/fusioninventory-user
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/fusioninventory-user/attachments/20130122/a165b0e1/attachment.html>


More information about the Fusioninventory-user mailing list