Skip to content
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

Fatal exception thrown from session ip_address:1028: Only octet transfers are supported at this time. #70

Closed
JFC-MC opened this issue Sep 8, 2016 · 3 comments

Comments

@JFC-MC
Copy link

JFC-MC commented Sep 8, 2016

Hello,

I'm trying to copy configuration file from HP ProCurve switch and it fails with error:
ERROR:tftpy:Fatal exception thrown from session ip_address:1028: Only octet transfers are supported at this time.
I've tried all the options available on the HP Procurve, it didn't help?

Any hope to get this type of transfers fixed soon? Thanks!

@msoulier
Copy link
Owner

msoulier commented Sep 8, 2016

Do you have debug logs from tftpy?

@JFC-MC
Copy link
Author

JFC-MC commented Sep 8, 2016

Sure,

tftpy_server.py --root=/tftpboot --debug
DEBUG:tftpy:tftproot /tftpboot does exist
DEBUG:tftpy:tftproot /tftpboot is a directory
DEBUG:tftpy:tftproot /tftpboot is readable
DEBUG:tftpy:tftproot /tftpboot is writable
INFO:tftpy:Server requested on ip 0.0.0.0, port 69
INFO:tftpy:Starting receive loop...
DEBUG:tftpy:shutdown_immediately is False
DEBUG:tftpy:shutdown_gracefully is False
DEBUG:tftpy:Performing select on this inputlist: [<socket._socketobject object at 0x7fe72f08c980>]
DEBUG:tftpy:Data ready on our main socket
DEBUG:tftpy:Read 38 bytes
DEBUG:tftpy:Creating new server context for session key = 192.168.0.79:1029
DEBUG:tftpy:In TftpContextServer.start
DEBUG:tftpy:Set metrics.start_time to 1473355800.83
DEBUG:tftpy:parsing a 38 byte packet
DEBUG:tftpy:opcode is 2
DEBUG:tftpy:in TftpPacketWithOptions.setoptions
DEBUG:tftpy:options: {}
DEBUG:tftpy:setting options hash to: {}
DEBUG:tftpy:in decode: about to iterate buffer counting nulls
DEBUG:tftpy:found a null at length 26, now have 1
DEBUG:tftpy:found a null at length 8, now have 2
DEBUG:tftpy:hopefully found end of mode at length 35
DEBUG:tftpy:about to unpack buffer with format: 26sx8sx
DEBUG:tftpy:unpacking buffer: 'hp-procurve-running-config\x00netascii\x00'
DEBUG:tftpy:set filename to hp-procurve-running-config
DEBUG:tftpy:set mode to netascii
DEBUG:tftpy:decode_options: buffer is: ''
DEBUG:tftpy:size of buffer is 0 bytes
DEBUG:tftpy:size of buffer is zero, returning empty hash
DEBUG:tftpy:in TftpPacketWithOptions.setoptions
DEBUG:tftpy:options: {}
DEBUG:tftpy:setting options hash to: {}
DEBUG:tftpy:in TftpPacketWithOptions.getoptions
DEBUG:tftpy:TftpContextServer.start() - factory returned a WRQ packet: filename = hp-procurve-running-config mode = netascii
DEBUG:tftpy:In TftpStateServerStart.handle
DEBUG:tftpy:Handling a WRQ packet
DEBUG:tftpy:In TftpStateServerRecvWRQ.handle
DEBUG:tftpy:in TftpPacketWithOptions.getoptions
INFO:tftpy:Setting tidport to 1029
DEBUG:tftpy:Setting default options, blksize
DEBUG:tftpy:In sendError, being asked to send error 4
DEBUG:tftpy:encoding ERR packet with format !HH22sx
ERROR:tftpy:Fatal exception thrown from session 192.168.0.79:1029: Only octet transfers are supported at this time.
INFO:tftpy:Currently handling these sessions:
INFO:tftpy: 192.168.0.79:1029 <tftpy.TftpStates.TftpStateServerStart object at 0x7fe72e948390>
DEBUG:tftpy:Looping on all sessions to check for timeouts
DEBUG:tftpy:checking for timeout on session 192.168.0.79:1029 <tftpy.TftpStates.TftpStateServerStart object at 0x7fe72e948390>
DEBUG:tftpy:Iterating deletion list.
INFO:tftpy:
INFO:tftpy:Session 192.168.0.79:1029 complete
DEBUG:tftpy:Gathering up metrics from session before deleting
DEBUG:tftpy:in TftpContext.end
DEBUG:tftpy:Set metrics.end_time to 1473355800.83
DEBUG:tftpy:TftpMetrics.compute: duration is 0.00180196762085
DEBUG:tftpy:TftpMetrics.compute: kbps is 0.0
INFO:tftpy:Transferred 0 bytes in 0.00 seconds
INFO:tftpy:Average rate: 0.00 kbps
INFO:tftpy:0.00 bytes in resent data
INFO:tftpy:0 duplicate packets
DEBUG:tftpy:Deleting session 192.168.0.79:1029
DEBUG:tftpy:Session list is now {}
DEBUG:tftpy:shutdown_immediately is False
DEBUG:tftpy:shutdown_gracefully is False
DEBUG:tftpy:Performing select on this inputlist: [<socket._socketobject object at 0x7fe72f08c980>]

DEBUG:tftpy:Looping on all sessions to check for timeouts
DEBUG:tftpy:Iterating deletion list.
DEBUG:tftpy:shutdown_immediately is False
DEBUG:tftpy:shutdown_gracefully is False
DEBUG:tftpy:Performing select on this inputlist: [<socket._socketobject object at 0x7fe72f08c980>]
DEBUG:tftpy:Looping on all sessions to check for timeouts
DEBUG:tftpy:Iterating deletion list.
DEBUG:tftpy:shutdown_immediately is False
DEBUG:tftpy:shutdown_gracefully is False
DEBUG:tftpy:Performing select on this inputlist: [<socket._socketobject object at 0x7fe72f08c980>]
DEBUG:tftpy:Looping on all sessions to check for timeouts
DEBUG:tftpy:Iterating deletion list.
DEBUG:tftpy:shutdown_immediately is False
DEBUG:tftpy:shutdown_gracefully is False
DEBUG:tftpy:Performing select on this inputlist: [<socket._socketobject object at 0x7fe72f08c980>]
DEBUG:tftpy:Looping on all sessions to check for timeouts
DEBUG:tftpy:Iterating deletion list.
DEBUG:tftpy:shutdown_immediately is False
DEBUG:tftpy:shutdown_gracefully is False
DEBUG:tftpy:Performing select on this inputlist: [<socket._socketobject object at 0x7fe72f08c980>]

@msoulier
Copy link
Owner

msoulier commented May 9, 2018

This was solved in 77af4ea by silencing the exception.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants