-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
NC16.0.3 Upload fails with files 2GiB in 32bit instances (again) #16431
Comments
Same issue here on Odroid HC2: MOVE /remote.php/dav/uploads/xxx/web-file-upload-31c5297bca63498f17fedc95638e6c6f-1563389990100/.file 2-Using a webdav client (cyberduck, transmit...) i can't upload it, file chucking bug... i have to force trashbin:cleanup to delete it |
cc @nextcloud/server-triage |
@kesselb May I ask why this issue was closed? I didn't see a strong resemblance in the issues you linked. |
Same as #15095. You tried to disable |
@kesselb I disabled both mod_reqtimeout and http2. Still getting an error message and the upload fails [webdav] Fatal: Sabre\DAV\Exception\BadRequest: expected filesize 2147483647 got 1025335296 at <>
PUT /remote.php/webdav/Lightroom.7z |
Confirmed for 17: #17485 |
Partial solution (file uploaded, but was truncated to 2GiB):
|
Thanks for digging @delfer 👍 You could try to
: int there, in your above patch and return $count without the typecast.
|
@kesselb thank you for help. File is still truncated to 2GiB
|
It can be fixed only by changes in PHP image. docker-library/php#901 |
Fixed by docker-library/php#901 |
nextcloud/docker ✔️ Probably they need to recompile php with the flags Thanks @delfer for the research 👍 |
already there nextcloud/nextcloudpi#948 |
Okay with you to close this issue then? @nachoparker @F1orian |
I am not sure, rebuilding PHP is not always feasible, so if NC doesn't do anything about it the bug is going to remain there. Ideally this would be worked around as it has been in the past. |
We probably could write some own storage adapter Perhaps https://wiki.php.net/rfc/bigint will make it's way to php sometime. |
@kesselb |
Tested the above code on my rpi3 (with nextcloudpi) and were able to write files > 2147483647. Have you tried the above patch? Is there a way to figure out if php is compiled with |
This code:
Command On Pi3 PHP compiled without flags after writing 2147483647 bytes writes 0 bytes every call. When compiled with flags - it writes as much bytes as in argument. |
Above code writes a
Changed your code like above and run it again: Writes a
|
@kesselb can you please check |
Yesterday I opened bug #18720 which was referenced to this one. What's funny is that I can upload/download anything below 4GB, not just 2GB as this bug reports. (dockerized Nextcloud on RPI4). Or am I just missing something? |
Did you fix it? Having the same problem |
Nope, never got it to work on 32bit raspbian. I have, however, switched to Manjaro which is fully 64bit. Nextcloud is running on it flawlessly |
Thank your for your answer. Guess I'll tinker around a bit then. Cheers! |
Hi, also run into the trunction issue on a armhf odroid hc1 and just wanted to share my configuration, as it might help to solve this. Versions
Upload of a ~3.5GB is fine at browser level, but the following erros occurs later
Nextcloud is behind a Anything else that could be useful? |
hi guys, i have the same problem and i can't resolve it :( Hardware: Raspberry pi4 2gb I already changed the php.ini settings, request timeout in apache, etc.. I saw that it was resolved in nextcloud 13, so it may be possible to fix it again? A cloud solution with a 2gb upload limit would be strange... :( |
get ubuntu. it's fully 64bit. it's a little heavier, but very similar to raspbian. |
I saw your comment about Manjaro, and I was thinking about changing OS for 64 bit. But I still have to confirm, that everything I use works well on ubuntu too (pihole, smtp, etc..) BTW I'm still hoping to figure it out for Raspbian, as I did put a lot of energy in my current solution 😄 Speaking of Raspbian, Rpi OS 64 bit is still in a very early stage, I would not risk it for a daily use yet. I did a little search, but didn't find the issue where uploading more than 2gb was solved in NC13 for 32 bit devices. I hope to find something in that version to get our problem solved again. |
I spent the last 2 days fixing this problem. The result was:
Regarding the original nextcloud problem, the solution will be around php changes between version 7.2 and 7.3. I'll not dig deeper into this now, i'll stick with my owncloud for a while. I'll be happy to come back to nextcloud, if the problem will be solved :) |
That's a bummer to hear. Ubuntu did feel a little heavier for rpi4, slower logins, services running by default that I didn't need, and the darn disks would never spin down... but I didn't have any major issues on it. I reverted to manjaro and its fast and I think the community is really good, including the upstream arch linux one. |
Hey! What is the status here? |
Hi, |
I wouldn't count on the Nextcloud team to fix this as 32bit OSes are slowly dying out and there are higher priorities than working on 32bit-related bugs. Thankfully you have a handful of fully 64bit OSes to replace Raspbian with (I presume you're running Raspbian). |
Yeah, unfortunately, I think I'll close this as wontfix. :/ |
Should tell this to lots of user that build/bought Pi based offers around nextcloud. Maybe we should update requierments or catch the exception... |
I am running a fully 64bit OS on my RPI. Nobody said you're stuck with 32bit if you bought a RPI. |
Ok if you have a recent pi. There are also alternate boards. |
I had the same problem on PI. Switching to arm64 and changing the PHP version to 8.0 fixed it. |
NextCloudPi 1.15.0, NC16.0.3, Odroid HC2. Tested by uploading a 5GiB file through the web interface.
I know this was fixed by using chunking in NC13 but it is back now.
I can see the file being fully uploaded and then reconstructed in the destination folder (increasing size until full size).
Then the interface fails with this error and the file gets removed
NCP ticket
nextcloud/nextcloudpi#948
The text was updated successfully, but these errors were encountered: