Uploads via upload folder eventually stall out, so that
either a file uploading is not actively transfering, or
the current uploads is blank, yet there are still
numerous items in the upload queue.
From the wipy.exe.log
Traceback (most recent call last):
File "WiPy\utilities.pyc", line 146, in modified
ZeroDivisionError: float division
Traceback (most recent call last):
File "WiPy\utilities.pyc", line 146, in modified
ZeroDivisionError: float division
Traceback (most recent call last):
File "WiPy\utilities.pyc", line 131, in modified
ZeroDivisionError: float division
Traceback (most recent call last):
File "WiPy\utilities.pyc", line 131, in modified
ZeroDivisionError: float division
Traceback (most recent call last):
File "WiPy\utilities.pyc", line 146, in modified
ZeroDivisionError: float division
Traceback (most recent call last):
File "WiPy\utilities.pyc", line 131, in modified
ZeroDivisionError: float division
Traceback (most recent call last):
File "WiPy\utilities.pyc", line 131, in modified
ZeroDivisionError: float division
Traceback (most recent call last):
File "WiPy\utilities.pyc", line 131, in modified
ZeroDivisionError: float division
Logged In: YES
user_id=961114
Fixed. It will be in the next release. To fix the problem
immediately, open the library.zip file in the WiPy
directory, delete the utilities.pyc that is there, and
replace it with the attached one. Make sure you don't
compress it, as then WiPy won't run at all.
Logged In: YES
user_id=1134244
Is there supposed to be a file attached? And thanks for the
quick response!
Fix for ZeroDivisionError
Logged In: YES
user_id=961114
I forgot to check the box to attach the file last time.
Sorry about that. I've reopened the bug, please let me know
if this fixes the issue. Thanks.
Logged In: YES
user_id=1134244
Put the new file into use and it still ended up hanging on
me. This looks to be the iteresting bit of the log. Let me
know if you need more. WiPy is running on a win2k server
sp4 if that helps.
2004-10-07 05:22:08,055 INFO: Finished uploading: Upload:
O:\Music\Full Albums\Generations Past\Pink Floyd\(1979) The
Wall\Disc 01\06.Mother.mp3 -> /Afterworld/Music
Library/Uploads/Pink Floyd/(1979) The Wall/Disc 01/06.Mother.mp3
2004-10-07 05:22:08,065 INFO: Queues saved
2004-10-07 05:22:08,065 DEBUG: _put called, queue length 21,
next item upload Upload: O:\Music\Full Albums\Generations
Past\Pink Floyd\(1979) The Wall\Disc 01\07.Goodbye Blue
Sky.mp3 -> /Afterworld/Music Library/Uploads/Pink
Floyd/(1979) The Wall/Disc 01/07.Goodbye Blue Sky.mp3
2004-10-07 05:22:08,075 DEBUG: Sending put message for
transfer: Upload: O:\Music\Full Albums\Generations Past\Pink
Floyd\(1979) The Wall\Disc 01\07.Goodbye Blue Sky.mp3 ->
/Afterworld/Music Library/Uploads/Pink Floyd/(1979) The
Wall/Disc 01/07.Goodbye Blue Sky.mp3
2004-10-07 05:22:08,075 DEBUG: Sending command to server:
PUT /Afterworld/Music Library/Uploads/Pink Floyd/(1979) The
Wall/Disc 01/07.Goodbye Blue
Sky.mp327120013341c8683cda7ab4fca7b53cba96eff16b13594b
2004-10-07 05:22:08,075 DEBUG: _put called, but currently
uploading 1 files
2004-10-07 05:22:08,286 DEBUG: Server response: 400
/Afterworld/Music Library/Uploads/Pink Floyd/(1979) The
Wall/Disc 01/07.Goodbye Blue
Sky.mp3098a899a46987d5f591a1787aefb591c6d8e6b646
2004-10-07 05:22:08,286 INFO: Your upload of
/Afterworld/Music Library/Uploads/Pink Floyd/(1979) The
Wall/Disc 01/07.Goodbye Blue Sky.mp3 is ready
2004-10-07 05:22:08,345 DEBUG: Opening file for upload:
Upload: O:\Music\Full Albums\Generations Past\Pink
Floyd\(1979) The Wall\Disc 01\07.Goodbye Blue Sky.mp3 ->
/Afterworld/Music Library/Uploads/Pink Floyd/(1979) The
Wall/Disc 01/07.Goodbye Blue Sky.mp3
2004-10-07 05:22:08,355 DEBUG: Connecting to transfer socket
2004-10-07 05:22:08,657 DEBUG: Sending transfer request for
upload: Upload: O:\Music\Full Albums\Generations Past\Pink
Floyd\(1979) The Wall\Disc 01\07.Goodbye Blue Sky.mp3 ->
/Afterworld/Music Library/Uploads/Pink Floyd/(1979) The
Wall/Disc 01/07.Goodbye Blue Sky.mp3
2004-10-07 05:22:08,657 INFO: Starting upload of Upload:
O:\Music\Full Albums\Generations Past\Pink Floyd\(1979) The
Wall\Disc 01\07.Goodbye Blue Sky.mp3 -> /Afterworld/Music
Library/Uploads/Pink Floyd/(1979) The Wall/Disc
01/07.Goodbye Blue Sky.mp3 at offset 0
2004-10-07 05:23:15,092 INFO: Finished uploading: Upload:
O:\Music\Full Albums\Generations Past\Pink Floyd\(1979) The
Wall\Disc 01\07.Goodbye Blue Sky.mp3 -> /Afterworld/Music
Library/Uploads/Pink Floyd/(1979) The Wall/Disc
01/07.Goodbye Blue Sky.mp3
2004-10-07 05:23:15,101 INFO: Queues saved
2004-10-07 05:23:15,101 DEBUG: _put called, queue length 20,
next item upload Upload: O:\Music\Full Albums\Generations
Past\Pink Floyd\(1979) The Wall\Disc 01\08.Empty Spaces.mp3
-> /Afterworld/Music Library/Uploads/Pink Floyd/(1979) The
Wall/Disc 01/08.Empty Spaces.mp3
2004-10-07 05:23:15,111 DEBUG: Sending put message for
transfer: Upload: O:\Music\Full Albums\Generations Past\Pink
Floyd\(1979) The Wall\Disc 01\08.Empty Spaces.mp3 ->
/Afterworld/Music Library/Uploads/Pink Floyd/(1979) The
Wall/Disc 01/08.Empty Spaces.mp3
2004-10-07 05:23:15,111 DEBUG: Sending command to server:
PUT /Afterworld/Music Library/Uploads/Pink Floyd/(1979) The
Wall/Disc 01/08.Empty
Spaces.mp320512070626b670530a88d689510f1b7bb7fd59fd62acff
2004-10-07 05:23:15,111 DEBUG: _put called, but currently
uploading 1 files
2004-10-07 05:23:15,302 DEBUG: Server response: 400
/Afterworld/Music Library/Uploads/Pink Floyd/(1979) The
Wall/Disc 01/08.Empty
Spaces.mp3028402063b7d32f97f2de0383a8504f23daeda429
2004-10-07 05:23:15,302 INFO: Your upload of
/Afterworld/Music Library/Uploads/Pink Floyd/(1979) The
Wall/Disc 01/08.Empty Spaces.mp3 is ready
2004-10-07 05:23:15,362 DEBUG: Opening file for upload:
Upload: O:\Music\Full Albums\Generations Past\Pink
Floyd\(1979) The Wall\Disc 01\08.Empty Spaces.mp3 ->
/Afterworld/Music Library/Uploads/Pink Floyd/(1979) The
Wall/Disc 01/08.Empty Spaces.mp3
2004-10-07 05:23:15,362 DEBUG: Connecting to transfer socket
2004-10-07 05:23:30,374 ERROR: Upload connection closed
Traceback (most recent call last):
File "wire.pyc", line 1206, in _sendfile
File "<string>", line 1, in connect
timeout: timed out
2004-10-07 05:23:30,434 INFO: Queues saved
2004-10-07 05:23:30,434 DEBUG: _put called, queue length 20,
next item upload Upload: O:\Music\Full Albums\Generations
Past\Pink Floyd\(1979) The Wall\Disc 01\08.Empty Spaces.mp3
-> /Afterworld/Music Library/Uploads/Pink Floyd/(1979) The
Wall/Disc 01/08.Empty Spaces.mp3
2004-10-07 05:23:30,444 DEBUG: Sending put message for
transfer: Upload: O:\Music\Full Albums\Generations Past\Pink
Floyd\(1979) The Wall\Disc 01\08.Empty Spaces.mp3 ->
/Afterworld/Music Library/Uploads/Pink Floyd/(1979) The
Wall/Disc 01/08.Empty Spaces.mp3
2004-10-07 05:23:30,444 DEBUG: Sending command to server:
PUT /Afterworld/Music Library/Uploads/Pink Floyd/(1979) The
Wall/Disc 01/08.Empty
Spaces.mp320512070626b670530a88d689510f1b7bb7fd59fd62acff
2004-10-07 05:23:30,444 DEBUG: _put called, but currently
uploading 1 files
2004-10-07 05:23:30,694 DEBUG: Server response: 523 Queue
Limit Exceeded
2004-10-07 05:23:30,724 WARNING: Received unrecognized
message from server
2004-10-07 05:25:04,829 DEBUG: Pinging server
2004-10-07 05:25:04,829 DEBUG: Sending command to server: PING
2004-10-07 05:25:04,920 DEBUG: Server response: 202 Pong
2004-10-07 05:25:04,920 DEBUG: Received pong in response to ping
2004-10-07 05:33:34,542 DEBUG: Server response:
304 17110sk[ninja]
2004-10-07 05:33:34,562 DEBUG: User 17 status has changed
2004-10-07 05:35:04,832 DEBUG: Pinging server
2004-10-07 05:35:04,832 DEBUG: Sending command to server: PING
2004-10-07 05:35:05,092 DEBUG: Server response: 202 Pong
2004-10-07 05:35:05,092 DEBUG: Received pong in response to ping
2004-10-07 05:45:04,835 DEBUG: Pinging server
2004-10-07 05:45:04,835 DEBUG: Sending command to server: PING
Logged In: YES
user_id=1134244
With further use, the one stall after updating to the new
file seems to be a fluke, two+ weeks of use without stalling
problems now.
Logged In: YES
user_id=1134244
Spoke too soon, should have knocked on wood, had a large
series of folder downloads stall out on me. And my logging
is still set to verbose, yet i don't see anything
interesting in it, one moment its downloading, and then
nothing more, just pings.
Logged In: YES
user_id=961114
I've found the cause of the problem. It doesn't retry to
connect to the transfer port if the initial connection times
out. Instead, it assumes the transfer fails and sends
another put request. However, that put you past your upload
queue limit and stopped the transfer process.
I can add some code to retry the initial transfer
connection, but if it continues to fail, there isn't much I
can do. The Wired protocol doesn't currently have a command
that a user can send to the server to cancel a transfer. I
suppose I could set it to disconnect and reconnect on Queue
Limit Exceeded messages, which should give you new server
queues. Do you think that would work?
In the meantime, you just have to wait for the server to
timeout the initial file transfer (I'm not sure what the
default limit is in the official Wired server, for py-wired
it's 60 seconds) and then run the following code in the RPC
dialog:
# for uploads
wire._put()
# for downloads
wire._get()
Logged In: YES
user_id=1134244
Thanks for sluething it out, and as long as the server side
queue limit resets when you reconnect, i dont see why not.
Thanks again for all the work.