FTP 502 error

523 views
Skip to first unread message

JMAC

unread,
Mar 2, 2011, 1:35:40 PM3/2/11
to Bots Open Source EDI Translator
I am using BOTS 2.02, amd trying to configure bots to send X12 files
via FTP to our VAN provider.
It seems the VAN's ftp server can only accept limited FTP commands,
and I got the following error messages in BOTS:
-------------------------
Traceback (most recent call last):
File "/opt/Python-2.7/lib/python2.7/site-packages/bots/
communication.py", line 877, in outcommunicate
self.session.storlines(mode + tofilename, fromfile)
File "/opt/Python-2.7/lib/python2.7/ftplib.py", line 476, in
storlines
conn = self.transfercmd(cmd)
File "/opt/Python-2.7/lib/python2.7/ftplib.py", line 361, in
transfercmd
return self.ntransfercmd(cmd, rest)[0]
File "/opt/Python-2.7/lib/python2.7/ftplib.py", line 326, in
ntransfercmd
host, port = self.makepasv()
File "/opt/Python-2.7/lib/python2.7/ftplib.py", line 304, in
makepasv
host, port = parse227(self.sendcmd('PASV'))
File "/opt/Python-2.7/lib/python2.7/ftplib.py", line 244, in sendcmd
return self.getresp()
File "/opt/Python-2.7/lib/python2.7/ftplib.py", line 219, in getresp
raise error_perm, resp
error_perm: 502 Command not implemented.
-------------------------

I tested with my own FTP server and it works fine (meaning is not my
setting problem).
Can somebody help to identify which FTP command failed, and how can I
disable it?

Thanks in advance,

John Chen
==========

henk-jan ebbers

unread,
Mar 2, 2011, 1:51:24 PM3/2/11
to bots...@googlegroups.com
hi John,

maybe this works:
in the channel: set ftpbinary (in the FTP specific data)
(than another ftp command will be used)

else:
in config/bots.ini there is a setting for generating ftp-debug data
that might give soem more information about what goes wrong.

kind regards,
henk-jan

BikeMike

unread,
Mar 2, 2011, 4:36:30 PM3/2/11
to Bots Open Source EDI Translator
On Mar 3, 4:35 am, JMAC <jmacint....@gmail.com> wrote:
> makepasv
>     host, port = parse227(self.sendcmd('PASV'))

Hi John,
This seems to be the problem command. There is "active" and "passive"
ftp. http://www.slacksite.com/other/ftp.html
In the channel there is a tickbox for ftpactive, give that a try.

I had a similar problem when ftp sending to an AS/400. Small files
were ok but large ones would fail... until I switched to active.

Kind Regards,
Mike

JMAC

unread,
Mar 2, 2011, 5:15:33 PM3/2/11
to Bots Open Source EDI Translator
Thanks all.
I will give a try tomorrow morning and will let you know the result.

John Chen
========

On Mar 2, 4:36 pm, BikeMike <mjg1...@gmail.com> wrote:
> On Mar 3, 4:35 am, JMAC <jmacint....@gmail.com> wrote:
>
> > makepasv
> >     host, port = parse227(self.sendcmd('PASV'))
>
> Hi John,
> This seems to be the problem command. There is "active" and "passive"
> ftp.http://www.slacksite.com/other/ftp.html

JMAC

unread,
Mar 3, 2011, 9:20:49 AM3/3/11
to Bots Open Source EDI Translator
Yes the "ftpactive" plays the trick.
Thank you all for your helps.

John Chen
==========
Reply all
Reply to author
Forward
0 new messages