Welcome to Pandora FMS Community!

Find answers, ask questions, and connect with our community around the world.

Welcome to Pandora FMS Community Forums Community support Parse error in Babel server

  • Parse error in Babel server

    Posted by Raul77 on February 29, 2008 at 19:49

    Hi
    Im trying to deploy the babel server 1.1
    I started the server with the command
    /usr/local/bin/babel/babelserver -c /usr/local/etc/babel/babel_server.conf &
    so i have received all messages from the aplication at the console
    The error appeared when the client put its data into the server. when the server is procesing that information i have a lot of lines of this error:

    /var/spool/babel/data_in/pcs07.19199.data:1705: parser error : Premature end of data in tag data line 1705
    2005
    ^
    /var/spool/babel/data_in/pcs07.19199.data:1705: parser error : Premature end of data in tag moduledata line 1703
    2005
    ^

    I have searched into the documentation and i havent found nothing whitch can explain the error. I would appreciate any help in order to relsolve the problem

    manu replied 16 years, 11 months ago 2 Members · 5 Replies
  • 5 Replies
  • manu

    Member
    February 29, 2008 at 22:28
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Hi Raul,
    I’m glad you’re testing Babel as well 🙂

    Try to set up the agent in debug mode in the babel_agent.conf (debug 1) this means the agent will run normally but it won’t copy the XML to data_in/ it will leave it in data_out so we can analyze it deeper.
    Once you have it, can you paste it here?
    Another thing you might want to try is to open that XML with a Firefox and check out where the XML is badly parsed.

    Manuel.

  • Raul77

    Member
    March 3, 2008 at 13:44
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Hi
    I ve done the debug and i can se the result into a web browser without any problem. Ive tried to stop the babel_server and see the data inserted into de “data_in” directory. These file is truncated at the 2200 line as:


    Actualización de seguridad para Windows XP (KB933566)
    1
    Instal

    As you can see the final of the document is Incompleted. I think i should tell you that im using the ssh tranfer mode instead of the ftp.
    On one hand at the client side the file is completed, but at the oder hand when the file is put into the server directory it seems as if the document is incompleted.
    Another factor that i think i should tell you is that the language of the client is spanish, so when i read the xml file generated in the debug i see “accents”
    Thank you for your help

  • manu

    Member
    March 3, 2008 at 14:44
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    If it’s possible use FTP instead of SSH as there’re some problems detected with the libssh for windows that make the agent to be screwed up.

    What if you copy the complete file (which remains in your client box) manually to the server? Does it get processed smoothly?

  • Raul77

    Member
    March 3, 2008 at 15:23
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    I ve tried with the ftp transfer mode and all works great. As you have told it seems that there is a problem with the client ssh used at the transfer. Great job you’ve done with Babel and Pandora and thank for all.

  • manu

    Member
    March 3, 2008 at 15:39
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    You’re welcome.

    We’re working already in the new protocol, tentacle, for either pandora and babel, that might help everybody to get rid of the common problems with ssh and ftp, since tentacle is much simplier.