Error creating file (426) when accessing Zope using FTP
Hi All I have a problem with Zope that I can not solve, althoug I checked the web etc..: I try to upload a file to my Zope installation at localhost:8021 using FTP. When I "put" the file I keep getting an error 426, error creating file. The Zope is 2.4.0 for Mac OS X with Python 2.1 I log in as regular Zope user that is defined in the root acl_users folder and that has the Manager role. I tried various FTP clients (console, Pepper, GoLive), always the same result. I am getting crazy on this one... Any ideas? BTW: I have the same problem with another Zope Installation on Linux. Regards, Marc -- Marc Balmer, Micro Systems, Kannenfeldstrasse 32, CH-4056 Basel Tel +41 61 383 05 10, Fax +41 61 383 05 12, http://www.msys.ch/
Hi Marc, My guess is it's a syntax error in a DTML file, or python script. What sort of file are you trying to upload? Try this on the MacOSX command line: [localhost:~] steve% echo "test" > foo.txt [localhost:~] steve% ftp localhost 8021 Connected to localhost.spvi.com. 220 localhost FTP server (Medusa Async V1.17 [experimental]) ready. Name (localhost:steve): 331 Password required. Password: 230 Login successful. Remote system type is UNIX. Using binary mode to transfer files. ftp> put foo.txt local: foo.txt remote: foo.txt 200 PORT command successful. 150 Opening Binary connection for foo.txt 226 Transfer complete. 5 bytes sent in 0.000626 seconds (7987 bytes/s) ftp> quit 221 Goodbye. [localhost:~] steve% rm foo.txt [localhost:~] steve% does that work? -steve On Sunday, August 5, 2001, at 05:04 AM, Marc Balmer wrote:
Hi All
I have a problem with Zope that I can not solve, althoug I checked the web etc..:
I try to upload a file to my Zope installation at localhost:8021 using FTP. When I "put" the file I keep getting an error 426, error creating file.
The Zope is 2.4.0 for Mac OS X with Python 2.1
I log in as regular Zope user that is defined in the root acl_users folder and that has the Manager role.
I tried various FTP clients (console, Pepper, GoLive), always the same result. I am getting crazy on this one...
Any ideas?
BTW: I have the same problem with another Zope Installation on Linux.
Regards, Marc
-- Marc Balmer, Micro Systems, Kannenfeldstrasse 32, CH-4056 Basel Tel +41 61 383 05 10, Fax +41 61 383 05 12, http://www.msys.ch/
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Marc Balmer writes:
I try to upload a file to my Zope installation at localhost:8021 using FTP. When I "put" the file I keep getting an error 426, error creating file. Probably, your file is interpreted as of a Zope object type (maybe DTML Document) and does not have the correct content for this interpretation.
Your options: * someone posted an announcement about improved FTP error messages. Search the mailing list archives for "FTP and error and messages" and install the patch. Hopefully, you will get a more specific error message. * If you think, the object type is correctly guessed by Zope, then you can try to import the file via Zope's management interface. You will then see good problem reports for the upload. Otherwise, you need to learn about "PUTFactories". There is a HowTo at zope.org. It allows you to take over the decision about the object type of the uploaded file. Dieter
Am Sonntag, 5. August 2001 um 21:13 schrieb Dieter Maurer:
Marc Balmer writes:
I try to upload a file to my Zope installation at localhost:8021 using FTP. When I "put" the file I keep getting an error 426, error creating file. Probably, your file is interpreted as of a Zope object type (maybe DTML Document) and does not have the correct content for this interpretation.
Thanks to Steve Spicklemire I solved this puzzle, it's amazingly simple an incredible annoying: If the file being uploaded (a DTML document) is syntactically incorrect it can not be stored. The (rather simple) ZOPE error message reminds me of an early BASIC interpreter that ran on Atari TOS around ten years ago: If there was a syntax error somewhere in your program it just output "something is wrong". What exactly went wrong "das wissen die Goetter - und die schweigen". Thanks for your help and best regards, Marc -- Marc Balmer, Micro Systems, Kannenfeldstrasse 32, CH-4056 Basel Tel +41 61 383 05 10, Fax +41 61 383 05 12, http://www.msys.ch/
Marc Balmer writes:
The (rather simple) ZOPE error message reminds me of an early BASIC interpreter that ran on Atari TOS around ten years ago: If there was a syntax error somewhere in your program it just output "something is wrong". What exactly went wrong "das wissen die Goetter - und die schweigen". You noticed my hint on "FTP error messages"?
Install the patch and I expect, the error messages become much better... Dieter
participants (3)
-
Dieter Maurer -
Marc Balmer -
Steve Spicklemire