** Description changed:
Resuming a failed upload crashes with ValueError: I/O operation on
closed file. After this this particular upload is dropped and syncdaemon
believes it is synchronized (IDLE)
- STR:
+ TEST CASE:
1. Grab a file of substantial size (100Mb is ok) which is not yet on Ubuntu
One
2. Put it to ~/Ubuntu One folder
3. Wait until upload starts by looking at u1sdtool --current-transfers
4. Simulate server disconnect/network issue by shutting down network.
5. SD will enter READY state, upload is still queued
6. Connect to network again
Expected results:
SD starts to upload the remaining part of the file
Actual results:
Upload fails completely - AQ_UPLOAD_ERROR, syncdaemon returns to IDLE state.
File is not uploaded to personal storage.
2011-10-12 18:08:52,408 - ubuntuone.SyncDaemon.ActionQueue - ERROR - Upload
share:''
node:'e7469f58-c4b2-4326-932a-25bb2d4f2d18' Upload(share_id="''",
hash="'sha1:580b8902e8e91d9ce038c44d115b67599c5f35ff'", running='False',
node_id="'e7469f58-c4b2-4326-932a-25bb2d4f2d18'",
upload_id="'2d1927b0-4377-5438-a1bc-811596d4ea58'", crc32='1135887907L',
path="'/home/rtg/Ubuntu One/Test/file.ext'", previous_hash="''",
size='1453065906') failure: I/O operation on closed file (traceback follows)
Traceback (most recent call last):
- File
"/usr/lib/python2.7/dist-packages/ubuntuone-client/ubuntuone/syncdaemon/action_queue.py",
line 1370, in run
- result = yield self.running_deferred
+ File
"/usr/lib/python2.7/dist-packages/ubuntuone-client/ubuntuone/syncdaemon/action_queue.py",
line 1370, in run
+ result = yield self.running_deferred
ValueError: I/O operation on closed file
2011-10-12 18:08:52,428 - ubuntuone.SyncDaemon.ActionQueue - DEBUG - Upload
share:''
node:'e7469f58-c4b2-4326-932a-25bb2d4f2d18' Upload(share_id="''",
hash="'sha1:580b8902e8e91d9ce038c44d115b67599c5f35ff'", running='False',
node_id="'e7469f58-c4b2-4326-932a-25bb2d4f2d18'",
upload_id="'2d1927b0-4377-5438-a1bc-811596d4ea58'", crc32='1135887907L',
path="'/home/rtg/Ubuntu One/Test/file.ext'", previous_hash="''",
size='1453065906') cleanup
2011-10-12 18:08:52,428 - ubuntuone.SyncDaemon.ActionQueue - DEBUG - Upload
share:''
node:'e7469f58-c4b2-4326-932a-25bb2d4f2d18' Upload(share_id="''",
hash="'sha1:580b8902e8e91d9ce038c44d115b67599c5f35ff'", running='False',
node_id="'e7469f58-c4b2-4326-932a-25bb2d4f2d18'",
upload_id="'2d1927b0-4377-5438-a1bc-811596d4ea58'", crc32='1135887907L',
path="'/home/rtg/Ubuntu One/Test/file.ext'", previous_hash="''",
size='1453065906') stopping the producer
2011-10-12 18:08:52,789 - ubuntuone.SyncDaemon.EQ - DEBUG - push_event:
AQ_UPLOAD_ERROR, kwargs: {'share_id': '', 'hash':
'sha1:580b8902e8e91d9ce038c44d115b67599c5f35ff', 'node_id':
'e7469f58-c4b2-4326-932a-25bb2d4f2d18', 'error': 'I/O operation on closed file'}
2011-10-12 18:08:52,790 - ubuntuone.SyncDaemon.sync - DEBUG - T:LOCAL:F
f0d9f74a-5251-429a-8df5-f160ae1c6bcb
['root'::'e7469f58-c4b2-4326-932a-25bb2d4f2d18'] ''Ubuntu One/Test/file.ext'' |
EVENT: AQ_UPLOAD_ERROR:{'hash_eq_local_hash': 'T', 'hash_eq_server_hash': 'F',
'not_available': 'F', 'not_authorized': 'F'} with ARGS:('I/O operation on
closed file', 'sha1:580b8902e8e91d9ce038c44d115b67599c5f35ff')
2011-10-12 18:08:52,793 - ubuntuone.SyncDaemon.sync - INFO - T:LOCAL:F
f0d9f74a-5251-429a-8df5-f160ae1c6bcb
['root'::'e7469f58-c4b2-4326-932a-25bb2d4f2d18'] ''Ubuntu One/Test/file.ext'' |
Calling nothing (got AQ_UPLOAD_ERROR:{'hash_eq_local_hash': 'T',
'hash_eq_server_hash': 'F', 'not_available': 'F', 'not_authorized': 'F'})
2011-10-12 18:08:52,794 - ubuntuone.SyncDaemon.sync - DEBUG - T:LOCAL:F
f0d9f74a-5251-429a-8df5-f160ae1c6bcb
['root'::'e7469f58-c4b2-4326-932a-25bb2d4f2d18'] ''Ubuntu One/Test/file.ext'' |
Called nothing
2011-10-12 18:08:52,797 - ubuntuone.SyncDaemon.ActionQueue - DEBUG - Upload
share:''
node:'e7469f58-c4b2-4326-932a-25bb2d4f2d18' Upload(share_id="''",
hash="'sha1:580b8902e8e91d9ce038c44d115b67599c5f35ff'", running='False',
node_id="'e7469f58-c4b2-4326-932a-25bb2d4f2d18'",
upload_id="'2d1927b0-4377-5438-a1bc-811596d4ea58'", crc32='1135887907L',
path="'/home/rtg/Ubuntu One/Test/file.ext'", previous_hash="''",
size='1453065906') semaphore released
2011-10-12 18:08:52,798 - ubuntuone.SyncDaemon.EQ - DEBUG - push_event:
SYS_QUEUE_REMOVED, kwargs: {'command':
<ubuntuone.syncdaemon.action_queue.Upload object at 0x7006500>}
2011-10-12 18:08:52,803 - ubuntuone.SyncDaemon.ActionQueue - DEBUG - Upload
share:''
node:'e7469f58-c4b2-4326-932a-25bb2d4f2d18' Upload(share_id="''",
hash="'sha1:580b8902e8e91d9ce038c44d115b67599c5f35ff'", running='False',
node_id="'e7469f58-c4b2-4326-932a-25bb2d4f2d18'",
upload_id="'2d1927b0-4377-5438-a1bc-811596d4ea58'", crc32='1135887907L',
path="'/home/rtg/Ubuntu One/Test/file.ext'", previous_hash="''",
size='1453065906') pathlock releasing ('', 'home', 'rtg', 'Ubuntu One', 'Test',
'file.ext'); remaining: 0
ProblemType: Bug
DistroRelease: Ubuntu 11.10
Package: ubuntuone-client 2.0.0-0ubuntu2
ProcVersionSignature: Ubuntu 3.0.0-12.20-generic 3.0.4
Uname: Linux 3.0.0-12-generic x86_64
NonfreeKernelModules: nvidia
ApportVersion: 1.23-0ubuntu3
Architecture: amd64
Date: Wed Oct 12 18:14:12 2011
EcryptfsInUse: Yes
InstallationMedia: Ubuntu 10.04 LTS "Lucid Lynx" - Release amd64 (20100429)
PackageArchitecture: all
SourcePackage: ubuntuone-client
UpgradeStatus: Upgraded to oneiric on 2011-08-30 (43 days ago)
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/872924
Title:
Resuming a failed upload crashes with ValueError: I/O operation on
closed file
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntuone-client/+bug/872924/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs