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:
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.
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:
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-25bb2d4f2d 18' Upload( share_id= "''", hash="' sha1:580b8902e8 e91d9ce038c44d1 15b67599c5f35ff '", running='False', node_id= "'e7469f58- c4b2-4326- 932a-25bb2d4f2d 18'", upload_ id="'2d1927b0- 4377-5438- a1bc-811596d4ea 58'", crc32=' 1135887907L' , path="' /home/rtg/ Ubuntu One/Test/ file.ext' ", previous_hash="''", size='1453065906') failure: I/O operation on closed file (traceback follows) python2. 7/dist- packages/ ubuntuone- client/ ubuntuone/ syncdaemon/ action_ queue.py" , line 1370, in run deferred SyncDaemon. ActionQueue - DEBUG - Upload share:'' node:'e7469f58- c4b2-4326- 932a-25bb2d4f2d 18' Upload( share_id= "''", hash="' sha1:580b8902e8 e91d9ce038c44d1 15b67599c5f35ff '", running='False', node_id= "'e7469f58- c4b2-4326- 932a-25bb2d4f2d 18'", upload_ id="'2d1927b0- 4377-5438- a1bc-811596d4ea 58'", crc32=' 1135887907L' , path="' /home/rtg/ Ubuntu One/Test/ file.ext' ", previous_hash="''", size='1453065906') cleanup SyncDaemon. ActionQueue - DEBUG - Upload share:'' node:'e7469f58- c4b2-4326- 932a-25bb2d4f2d 18' Upload( share_id= "''", hash="' sha1:580b8902e8 e91d9ce038c44d1 15b67599c5f35ff '", running='False', node_id= "'e7469f58- c4b2-4326- 932a-25bb2d4f2d 18'", upload_ id="'2d1927b0- 4377-5438- a1bc-811596d4ea 58'", crc32=' 1135887907L' , path="' /home/rtg/ Ubuntu One/Test/ file.ext' ", previous_hash="''", size='1453065906') stopping the producer SyncDaemon. EQ - DEBUG - push_event: AQ_UPLOAD_ERROR, kwargs: {'share_id': '', 'hash': 'sha1:580b8902e 8e91d9ce038c44d 115b67599c5f35f f', 'node_id': 'e7469f58- c4b2-4326- 932a-25bb2d4f2d 18', 'error': 'I/O operation on closed file'} SyncDaemon. sync - DEBUG - T:LOCAL:F f0d9f74a- 5251-429a- 8df5-f160ae1c6b cb ['root' ::'e7469f58- c4b2-4326- 932a-25bb2d4f2d 18'] ''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:580b8902e 8e91d9ce038c44d 115b67599c5f35f f') SyncDaemon. sync - INFO - T:LOCAL:F f0d9f74a- 5251-429a- 8df5-f160ae1c6b cb ['root' ::'e7469f58- c4b2-4326- 932a-25bb2d4f2d 18'] ''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'}) SyncDaemon. sync - DEBUG - T:LOCAL:F f0d9f74a- 5251-429a- 8df5-f160ae1c6b cb ['root' ::'e7469f58- c4b2-4326- 932a-25bb2d4f2d 18'] ''Ubuntu One/Test/file.ext'' | Called nothing SyncDaemon. ActionQueue - DEBUG - Upload share:'' node:'e7469f58- c4b2-4326- 932a-25bb2d4f2d 18' Upload( share_id= "''", hash="' sha1:580b8902e8 e91d9ce038c44d1 15b67599c5f35ff '", running='False', node_id= "'e7469f58- c4b2-4326- 932a-25bb2d4f2d 18'", upload_ id="'2d1927b0- 4377-5438- a1bc-811596d4ea 58'", crc32=' 1135887907L' , path="' /home/rtg/ Ubuntu One/Test/ file.ext' ", previous_hash="''", size='1453065906') semaphore released SyncDaemon. EQ - DEBUG - push_event: SYS_QUEUE_REMOVED, kwargs: {'command': <ubuntuone. syncdaemon. action_ queue.Upload object at 0x7006500>} SyncDaemon. ActionQueue - DEBUG - Upload share:'' node:'e7469f58- c4b2-4326- 932a-25bb2d4f2d 18' Upload( share_id= "''", hash="' sha1:580b8902e8 e91d9ce038c44d1 15b67599c5f35ff '", running='False', node_id= "'e7469f58- c4b2-4326- 932a-25bb2d4f2d 18'", upload_ id="'2d1927b0- 4377-5438- a1bc-811596d4ea 58'", 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
Traceback (most recent call last):
File "/usr/lib/
result = yield self.running_
ValueError: I/O operation on closed file
2011-10-12 18:08:52,428 - ubuntuone.
2011-10-12 18:08:52,428 - ubuntuone.
2011-10-12 18:08:52,789 - ubuntuone.
2011-10-12 18:08:52,790 - ubuntuone.
2011-10-12 18:08:52,793 - ubuntuone.
2011-10-12 18:08:52,794 - ubuntuone.
2011-10-12 18:08:52,797 - ubuntuone.
2011-10-12 18:08:52,798 - ubuntuone.
2011-10-12 18:08:52,803 - ubuntuone.
ProblemType: Bug ature: Ubuntu 3.0.0-12.20-generic 3.0.4 dules: nvidia ture: all
DistroRelease: Ubuntu 11.10
Package: ubuntuone-client 2.0.0-0ubuntu2
ProcVersionSign
Uname: Linux 3.0.0-12-generic x86_64
NonfreeKernelMo
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)
PackageArchitec
SourcePackage: ubuntuone-client
UpgradeStatus: Upgraded to oneiric on 2011-08-30 (43 days ago)