FTP Publishing Error

I have setup FTP publishing for the first time and was running a test of the configuration. The FTP handler within Rhythmyx appears to be connecting to my FTP server but apparently is getting hung up on parsing the HTTP status line (or welcome message) of my FTP server.

Anybody had this problem before or know what might be causing this issue.

<?xml version=“1.0” encoding=“utf-8” ?>

  • <publicationstatus pubstatusid=“344”>
    <status>Error</status>
    <message>Error parsing HTTP status line “220 WindowsFtpServer v1.3 [165.91.10.120]”: java.lang.NumberFormatException: For input string: “WindowsFtpServer”</message>
    </publicationstatus>

Hi Alan

What happens if you try using the command line FTP? Can you connect to your destination server?

Cheers
James

Yes. the CMS application server can connect to my FTP server. Tested that prior to beginning the test deployment to make sure all the basics were working.

As an ODD aside, just noticed that the “ERROR” link in the publishing log actually creates a connection to my FTP server when pressed…takes about a minute…then it times out and produces the error dump in original post in XML output format…ODD…rather than pulling up a publishing error dump screen when other types of publishing error’s occur.

When I try FTP publishing, it doesn’t even appear in the publications log.

Hi Michael

Are you trying to publish a custom content list or a one already in Rhythmyx?

Can you attach the preview of the content list you are trying to publish?

Cheers
James

Before it was just:

<contentlist context="1" deliverytype="filesystem">
</contentlist>

With the following content list preview, I’m getting the same error report as Alan:

−
	<contentlist context="1" deliverytype="ftp">
−
	<contentitem contentid="551" revision="8" unpublish="no" variantid="545">
<title>Corporate Investments Home</title>
−
	<contenturl>
http://165.91.22.140:9992/Rhythmyx/assembler/render?sys_revision=8&sys_siteid=315&sys_template=545&sys_itemfilter=public&sys_contentid=551&sys_folderid=523&sys_context=303&sys_publish=publish
</contenturl>
−
	<delivery>
<location>/index.html</location>
</delivery>
<modifydate>2005-10-19 00:00:00</modifydate>
<modifyuser>rxserver</modifyuser>
<contenttype>312</contenttype>
</contentitem>
−
	<contentitem contentid="581" revision="1" unpublish="no" variantid="543">
<title>Portfolio Managers Category</title>
−
	<contenturl>
http://165.91.22.140:9992/Rhythmyx/assembler/render?sys_revision=1&sys_siteid=315&sys_template=543&sys_itemfilter=public&sys_contentid=581&sys_folderid=529&sys_context=303&sys_publish=publish
</contenturl>
−
	<delivery>
<location>/PortfolioManagers/item581.html</location>
</delivery>
<modifydate>2005-10-19 00:00:00</modifydate>
<modifyuser>rxserver</modifyuser>
<contenttype>311</contenttype>
</contentitem>
</contentlist>

Further information per a dump of the Rhythmyx LOG file during the FTP publishing routine. Error issue seems to revolve around this line:

"For input string: “Serv-U”; targetExceptio n=java.lang.IllegalArgumentException: Error parsing HTTP status line “220 Serv-U FTP Server v7.0 ready…”: "

Again… have tested from our linux command prompt an ftp connection from the rhythmyx server to the ftp server prooving that network connection, protocol access and authentication credentials are working.

Alan

===============================

Created content list eduPIFullNonBinar y publication id 361
Site id: 305, Delivery: ftp, Context: 1
64 result items took 4,519.37 milliseconds
10:53:51,666 INFO [STDOUT] [SOAPException: faultCode=SOAP-ENV:Client; msg=Error parsing HTTP status line “220 Serv-U FTP Server v7.0 ready…”: java. lang.NumberFormatException: For input string: “Serv-U”; targetExceptio n=java.lang.IllegalArgumentException: Error parsing HTTP status line “220 Serv-U FTP Server v7.0 ready…”: java.lang.NumberFormatException: For input string: " Serv-U"]
10:53:51,667 INFO [STDOUT] at org.apache.soap.transport.http.SOAPHTTPConnec tion.send(SOAPHTTPConnection.java:354)
10:53:51,667 INFO [STDOUT] at org.apache.soap.rpc.Call.invoke(Call.java:248 )
10:53:51,667 INFO [STDOUT] at com.percussion.publisher.server.PSPublisherWo rker.run(Unknown Source)
10:53:52,523 INFO [PSPublisherService] Getting content list data took <Stopwatc h stopped elapsed 302.16 ms> for 103 items
10:53:56,226 INFO [PSContentListServlet] Created content list eduPIFullBinary p ublication id 361
Site id: 305, Delivery: filesystem, Context: 1
103 result items took 4,030.96 milliseconds
10:53:56,261 INFO [STDOUT] [SOAPException: faultCode=SOAP-ENV:Client; msg=Error parsing HTTP status line “220 Serv-U FTP Server v7.0 ready…”: java. lang.NumberFormatException: For input string: “Serv-U”; targetExceptio n=java.lang.IllegalArgumentException: Error parsing HTTP status line “220 Serv-U FTP Server v7.0 ready…”: java.lang.NumberFormatException: For input string: " Serv-U"]
10:53:56,261 INFO [STDOUT] at org.apache.soap.transport.http.SOAPHTTPConnec tion.send(SOAPHTTPConnection.java:354)
10:53:56,261 INFO [STDOUT] at org.apache.soap.rpc.Call.invoke(Call.java:248 )
10:53:56,261 INFO [STDOUT] at com.percussion.publisher.server.PSPublisherWo rker.run(Unknown Source)
10:53:56,955 INFO [PSPublisherService] Getting content list data took <Stopwatc h stopped elapsed 156.84 ms> for 0 items
10:53:56,962 INFO [PSContentListServlet] Created content list eduPIUnpublish pu blication id 361
Site id: 305, Delivery: filesystem, Context: 1
0 result items took 182.917 milliseconds

Hi Michael

>>Site id: 305, Delivery: filesystem, Context: 1

Some of your log references filesystem when you say you are trying to FTP. Can you confirm that all content lists you’re trying to publish have a delivery type of FTP?

Cheers
James

James…

I think you were addressing my post… Yes, you are correct two of my content lists were still set to filesystem… I have set all 3 lists to FTP and the appropriate sys_assembly_context, but alas the same basic error is reported… See updated LOG dump below.

Its as if Rhythmyx does not like my FTP servers Welcome Message that it displays. To test that theory I have tried now 3 different FTP server applications on my target server with same results. This is concerning as I will be in an environment with 100’s of target FTP sites to publish all utilizing various vendor and OS ftp server software.

How has everyone else’s FTP publishing deployments gone? Any issues of this nature. Our Rhythmyx platform is based on a brand new server with stock RedHat Linux install with latest security patches.

Again we can FTP from command prompt to target server with no issues.

Alan

============
15:03:39,385 INFO [PublisherMgr] Edition ‘312’ started…
15:03:41,398 INFO [PSPublisherService] Getting content list data took <Stopwatch stopped elapsed 1,381.86 ms> for 64 items
15:03:43,826 INFO [PSContentListServlet] Created content list eduPIFullNonBinary publication id 362
Site id: 305, Delivery: ftp, Context: 1
64 result items took 3,841.229 milliseconds
15:03:43,863 INFO [STDOUT] [SOAPException: faultCode=SOAP-ENV:Client; msg=Error parsing HTTP status line “220 Serv-U FTP Server v7.0 ready…”: java.lang.NumberFormatException: For input string: “Serv-U”; targetException=java.lang.IllegalArgumentException: Error parsing HTTP status line “220 Serv-U FTP Server v7.0 ready…”: java.lang.NumberFormatException: For input string: “Serv-U”]
15:03:43,863 INFO [STDOUT] at org.apache.soap.transport.http.SOAPHTTPConnection.send(SOAPHTTPConnection .java:354)
15:03:43,863 INFO [STDOUT] at org.apache.soap.rpc.Call.invoke(Call.java:248)
15:03:43,864 INFO [STDOUT] at com.percussion.publisher.server.PSPublisherWorker.run(Unknown Source)
15:03:44,621 INFO [PSPublisherService] Getting content list data took <Stopwatch stopped elapsed 211.69 ms> for 103 items
15:03:48,698 INFO [PSContentListServlet] Created content list eduPIFullBinary publication id 362
Site id: 305, Delivery: ftp, Context: 1
103 result items took 4,316.372 milliseconds
15:03:48,741 INFO [STDOUT] [SOAPException: faultCode=SOAP-ENV:Client; msg=Error parsing HTTP status line “220 Serv-U FTP Server v7.0 ready…”: java.lang.NumberFormatException: For input string: “Serv-U”; targetException=java.lang.IllegalArgumentException: Error parsing HTTP status line “220 Serv-U FTP Server v7.0 ready…”: java.lang.NumberFormatException: For input string: “Serv-U”]
15:03:48,741 INFO [STDOUT] at org.apache.soap.transport.http.SOAPHTTPConnection.send(SOAPHTTPConnection.java:354)
15:03:48,741 INFO [STDOUT] at org.apache.soap.rpc.Call.invoke(Call.java:248)
15:03:48,741 INFO [STDOUT] at com.percussion.publisher.server.PSPublisherWorker.run(Unknown Source)
15:03:49,369 INFO [PSPublisherService] Getting content list data took <Stopwatch stopped elapsed 88.74 ms> for 0 items
15:03:49,375 INFO [PSContentListServlet] Created content list eduPIUnpublish publication id 362 Site id: 305, Delivery: ftp, Context: 1
0 result items took 137.549 milliseconds

A really wild guess - are your ftp sessions opened in passive mode?

From the call stack in the console log output posted earlier, it looks to me like the server is sending the content list request to the publisher client by making a soap call to the FTP server instead of the publisher.

That would indicate the publishing configuration is possibly incorrect. Check that the IP Address in the Publisher configuration really is the Rhythmyx server, not the FTP server.

Thanks, I had that wrong.