You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Work around
The solution has been to go to the network tab and set upload speed to automatic. From what I understand of mirall this switches to the old propagator from 1.5.x so there seems to be an issue between our configuration and the new propagator in 1.6+.
Logs
Line 441: 08-27 16:30:37:863 networkjobs.cpp:139 void Mirall::AbstractNetworkJob::slotFinished() 99 "Unable to write"
Line 442: 08-27 16:30:37:863 propagator_qnam.cpp:261 void Mirall::PropagateUploadFileQNAM::slotPutFinished() QUrl( "https://files.planetconn.com/remote.php/webdav/Housing/Johnsonius/2012.04.27 Rent Contract Anexo - Rent Reduction.jpg" ) FINISHED WITH STATUS 99 "Unable to write" QVariant(Invalid) QVariant(Invalid)
Line 444: 08-27 16:30:37:863 syncengine.cpp:634 void Mirall::SyncEngine::slotJobCompleted(const Mirall::SyncFileItem&) "Housing/Johnsonius/2012.04.27 Rent Contract Anexo - Rent Reduction.jpg" 1 "Unable to write"
Line 467: 08-27 16:30:38:023 folder.cpp:656 ** error Strings: ("Unable to write", "Operation canceled", "Operation canceled", "Housing/Johnsonius/2012.02.01 Signed Rent Contract.pdf: Operation canceled", "Housing/Johnsonius/2012.04.27 Rent Contract Anexo - Rent Reduction.jpg: Unable to write", "Housing/Johnsonius/2013-02-07 Incremento IPC Jan Johnsonius.pdf: Operation canceled")
These files never sync until the above work around is put in place, at which time they sync immediately.
The apache logs show 400 errors. We are also logging connection status when response completed (logformat variable %X) and for most of these connections it's showing aborted before the response was completed (X instead of the normal + or -). The times of the connection are not the same but roughly around 30 seconds for most attempts. The number of bytes transferred is different for all of them as are the pid of the worker process handling the request (so not dead worker). Here are some relevant lines from the apache log, these types of messages repeat over and over:
Format is hostname, remote ip, username, connection status (%X), time stamp, request, response before/after redirect, pid/tid, time in s/time in ms, bytes in/bytes out/content bytes out, user agent, unique id.
In this block of 4 entries you see 400 as the response for the first two put requests but they close normally (- after username), the third also has a 400 but the connection is closed before the response is sent (X after username) and then the propfind with a 207 response and a keepalive connection status (the + after the username).
The ownCloud log shows sabredav errors for each upload attempt like the following:
{"app":"webdav","message":"Sabre_DAV_Exception_BadRequest: expected filesize 365582 got 294912","level":4,"time":"2014-08-27 10:37:40"}
Which is consistent with the connection being aborted on the client side.
The filesize messages usually appear when upload was aborted and the server did not get all bytes.
Question would be why the upload aborts in the first place.
Hi, I definitely think it's a mirall 1.6 issue. Today I switched back to mirall 1.5.4 and I was able to sync many files that were always throwing error ("Unable to write" and "expected file size......")
I think the big clue with this is that the transfers work when switching the limit automatically for uploads in the network tab. That has instantly resolved this issue for all users who've had problems. All our users who've had this problem are connecting via links with a max speed of 100mb/s. Users on our LAN are not having this problem. I don't know enough about the differences when using this limiter to know if that's relevant.
08-27 16:30:10:762 networkjobs.cpp:65 void Mirall::AbstractNetworkJob::setTimeout(qint64) 300000
08-27 16:30:10:762 networkjobs.cpp:191 !!! Mirall::PUTFileJob created for QUrl( "https://XXXXX" ) querying "aaaaa.pdf"
[...]
08-27 16:30:37:863 networkjobs.cpp:139 void Mirall::AbstractNetworkJob::slotFinished() 99 "Unable to write"
08-27 16:30:37:863 propagator_qnam.cpp:261 void Mirall::PropagateUploadFileQNAM::slotPutFinished() QUrl( "https://XXXXX/remote.php/webdav/aaaa.jpg" ) FINISHED WITH STATUS 99 "Unable to write" QVariant(Invalid) QVariant(Invalid)
There is a problem after 27 seconds which is slightly less than the client timeout. unable to write may means that the conneciton was reset by the peers.
Could there be a firewall or a proxy that resets the connection?
@scolebrook See above comment about firewall or proxy.
@ogoffart The question remains -- why does this work with the network limited automatically -- thereby going back to the old propagator. If it was a firewall or proxy, I would think that would fail as well???
@ser72@ogoffart I'm checking with our network team to see if there could be any limitations on parallel connections. We have several firewalls and a load balancer between the users and our ownCloud servers so that is definitely worth investigating. Watch this space.
We have a ticket open with our load balancer vendor trying to isolate this issue. Nothing definitive yet. Any news on owncloud/core#11153 being approved for stable6?
Had the same issue with update to OC7.0.2 and win client 1.6.3 - problem resolved when Upload bandwidth was changed to "Limit Automatically". Fixed both Windows and Mac clients. Thanks for the tip!
There are two things related: A server fix ( owncloud/core#11153 ) and a workaround in the client, implemented by commit 2eec85a . The server fix will be backported to oC6 and the client workaround will be released with 1.7.0.
We're currently not planing to do another 1.6.x release of the client.
Activity
ser72 commentedon Aug 27, 2014
Complete Logs on S3 at:
support/github-issues/mirall/2116
ser72 commentedon Aug 27, 2014
Some further information:
The apache logs show 400 errors. We are also logging connection status when response completed (logformat variable %X) and for most of these connections it's showing aborted before the response was completed (X instead of the normal + or -). The times of the connection are not the same but roughly around 30 seconds for most attempts. The number of bytes transferred is different for all of them as are the pid of the worker process handling the request (so not dead worker). Here are some relevant lines from the apache log, these types of messages repeat over and over:
Format is hostname, remote ip, username, connection status (%X), time stamp, request, response before/after redirect, pid/tid, time in s/time in ms, bytes in/bytes out/content bytes out, user agent, unique id.
In this block of 4 entries you see 400 as the response for the first two put requests but they close normally (- after username), the third also has a 400 but the connection is closed before the response is sent (X after username) and then the propfind with a 207 response and a keepalive connection status (the + after the username).
The ownCloud log shows sabredav errors for each upload attempt like the following:
{"app":"webdav","message":"Sabre_DAV_Exception_BadRequest: expected filesize 365582 got 294912","level":4,"time":"2014-08-27 10:37:40"}
Which is consistent with the connection being aborted on the client side.
dragotin commentedon Aug 27, 2014
sorry, but I don't think thats a client problem. @PVince81 does this problem sound familiar to you? thx.
PVince81 commentedon Aug 27, 2014
The filesize messages usually appear when upload was aborted and the server did not get all bytes.
Question would be why the upload aborts in the first place.
IngLP commentedon Aug 28, 2014
Hi, I definitely think it's a mirall 1.6 issue. Today I switched back to mirall 1.5.4 and I was able to sync many files that were always throwing error ("Unable to write" and "expected file size......")
scolebrook commentedon Aug 29, 2014
I think the big clue with this is that the transfers work when switching the limit automatically for uploads in the network tab. That has instantly resolved this issue for all users who've had problems. All our users who've had this problem are connecting via links with a max speed of 100mb/s. Users on our LAN are not having this problem. I don't know enough about the differences when using this limiter to know if that's relevant.
PVince81 commentedon Aug 29, 2014
Could it be related somehow to parallel upload?
guruz commentedon Aug 29, 2014
@PVince81 turning limiting on activates the "old propagator" which uses
libneonfor HTTP. The new one is usingQNetworkAccessManager.The
Unable to writeis an odd one..Probalby coming from http://code.woboq.org/qt5/qtbase/src/network/socket/qnativesocketengine_win.cpp.html#1378
http://code.woboq.org/qt5/qtbase/src/network/socket/qnativesocketengine.cpp.html#262
So the
nativeWritefailed, either because we or the server disconnected.guruz commentedon Aug 29, 2014
CC @ckamm
ogoffart commentedon Aug 29, 2014
There is a problem after 27 seconds which is slightly less than the client timeout.
unable to writemay means that the conneciton was reset by the peers.Could there be a firewall or a proxy that resets the connection?
ser72 commentedon Aug 29, 2014
@scolebrook See above comment about firewall or proxy.
@ogoffart The question remains -- why does this work with the network limited automatically -- thereby going back to the old propagator. If it was a firewall or proxy, I would think that would fail as well???
scolebrook commentedon Aug 29, 2014
@ser72 @ogoffart I'm checking with our network team to see if there could be any limitations on parallel connections. We have several firewalls and a load balancer between the users and our ownCloud servers so that is definitely worth investigating. Watch this space.
17 remaining items
IngLP commentedon Sep 19, 2014
I'm sorry, but i am on Owncloud 7.0.1. But With mirall 1.6.3 the issue seems gone...
scolebrook commentedon Sep 22, 2014
We have a ticket open with our load balancer vendor trying to isolate this issue. Nothing definitive yet. Any news on owncloud/core#11153 being approved for stable6?
ser72 commentedon Sep 24, 2014
@ckamm
Is #11153 back ported to oC6? can we get a patch for this?
ep162 commentedon Sep 30, 2014
Had the same issue with update to OC7.0.2 and win client 1.6.3 - problem resolved when Upload bandwidth was changed to "Limit Automatically". Fixed both Windows and Mac clients. Thanks for the tip!
ckamm commentedon Sep 30, 2014
@ser72 I don't know whether the patch will be backported to oC6. @dragotin We could apply the workaround from #2155 to the 1.6 client.
ser72 commentedon Sep 30, 2014
@ckamm Thanks for the info. A backport would be nice as I have 2 separate users seeing this issue.
dragotin commentedon Sep 30, 2014
There are two things related: A server fix ( owncloud/core#11153 ) and a workaround in the client, implemented by commit 2eec85a . The server fix will be backported to oC6 and the client workaround will be released with 1.7.0.
We're currently not planing to do another 1.6.x release of the client.
ckamm commentedon Oct 8, 2014
@ser72 could you test whether your problem is reproducible with a 1.7 beta client? If it isn't, I think this issue can be closed.
gig13 commentedon Nov 5, 2014
Unable to reproduce with the nightly build.