Pages: [1]   Go Down
Author Topic: Parse error in Babel server  (Read 755 times)
0 Members and 2 Guests are viewing this topic.
Raul77
Jr. Member
**

Karma: 0
Offline Offline

Posts: 19


View Profile
« on: February 29, 2008, 04:49:57 PM »

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
            <data>2005
                      ^
/var/spool/babel/data_in/pcs07.19199.data:1705: parser error : Premature end of data in tag moduledata line 1703
            <data>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
« Last Edit: January 01, 1970, 01:00:00 AM by Raul77 » Logged

Manuel Arostegui
Global Moderator
Expert member
*****

Karma: 50
Offline Offline

Posts: 853



View Profile
« Reply #1 on: February 29, 2008, 07:28:05 PM »

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.
« Last Edit: January 01, 1970, 01:00:00 AM by manu » Logged

Raul77
Jr. Member
**

Karma: 0
Offline Offline

Posts: 19


View Profile
« Reply #2 on: March 03, 2008, 10:44:26 AM »

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:

        <moduledata>
            <item>Actualización de seguridad para Windows XP (KB933566)</item>
            <data>1</data>
            <description>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
« Last Edit: January 01, 1970, 01:00:00 AM by Raul77 » Logged

Manuel Arostegui
Global Moderator
Expert member
*****

Karma: 50
Offline Offline

Posts: 853



View Profile
« Reply #3 on: March 03, 2008, 11:44:01 AM »

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?
« Last Edit: January 01, 1970, 01:00:00 AM by manu » Logged

Raul77
Jr. Member
**

Karma: 0
Offline Offline

Posts: 19


View Profile
« Reply #4 on: March 03, 2008, 12:23:33 PM »

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.
« Last Edit: January 01, 1970, 01:00:00 AM by Raul77 » Logged

Manuel Arostegui
Global Moderator
Expert member
*****

Karma: 50
Offline Offline

Posts: 853



View Profile
« Reply #5 on: March 03, 2008, 12:39:13 PM »

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.
« Last Edit: January 01, 1970, 01:00:00 AM by manu » Logged

Pages: [1]   Go Up
Print
 
Jump to:  


SourceForge.net Logo  This site is monitored by Pandora FMS   ArticaST