-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cisco IOS uploads to ptftpd fail with "File already exists error" #8
Comments
Can you run the server in debug mode and show me what it outputs? Also, did you try running in strict RFC1350 mode (with |
The problem exists with and without -r... I am including a traceback and the output with -D...
|
Thanks for your reply. Can you apply the following patch to help me debug your situation further? It will enable full protocol logging: diff --git a/ptftplib/proto.py b/ptftplib/proto.py
index 4a5fb84..517ac16 100644
--- a/ptftplib/proto.py
+++ b/ptftplib/proto.py
@@ -24,10 +24,10 @@ l = notify.getLogger('tftp-proto')
notify.NullEngine.install(l)
# Uncomment these lines to enable full protocol dump.
-# import sys
-# import logging
-#
-# notify.StreamEngine.install(l, sys.stderr, logging.DEBUG)
+import sys
+import logging
+
+notify.StreamEngine.install(l, sys.stderr, logging.DEBUG)
# The following values are defined in the following RFC documents:
# - RFC1350 - The TFTP Protocol (revision 2) Once you've applied it ( Thanks! |
Apologies for the delay... I patched as you requested, this is what I got when I tried to copy a cisco nexus 7000 configuration to the python tftpd...
|
Could you try the just-released version 1.2? It contains a fix for handling of WRQ requests. |
FYI, I tried to use ptftpd under python 2.6.6, running as root to receive a configuration file from Cisco IOS. When the switch sent the first UDP packet to port 69, ptftpd started opening the new file to receive the config, but never sent a tftp response packet.
When Cisco IOS retried four seconds later, ptftpd responded that the file already exists, and that killed the tftp session.
Is there anything else I can do to help fix this issue?
The text was updated successfully, but these errors were encountered: