Folder size counter limited to 2Gb OC 6.0.0a
I have uploaded 76G of data on my server but all folders report a maximum size of 2Gb even though there is a lot more stored on them (since all sub folders also report a max size of 2Gb.) using OC 6.0.0a on linux hosting package with PHP 5.5. Encryption plugin is enabled. Data were originaly stored on google with encryption from box cryptor, so they were also encrypted before upload to the server. browser : firefox 25
Please report the issue template: https://raw.github.com/owncloud/core/master/issue_template.md
Do you also have a screenshot of the 2 gb displayed in the UI ? Does the size also appear as 2 GB when accessing it through webdav ?
I also have this bug.
WebDAV shows 0 Byte size for such files bigger than 2GB. WebDAV does not show a directory size.
Using MySQL 5.5.25
Actually the file is more than 3GB
@bernic @windaishi Thanks a lot for reporting issues back to us!
We need some more information to properly support you with your issue!
Can I ask you to follow our guidelines for submitting bugs as described here: https://github.com/owncloud/core/blob/master/CONTRIBUTING.md
Thanks a lot!
What exactly do you need? Unfortunately i cant tell you how to reproduce, but it happened to me on 2 different systems, both Owncloud 6.0.0a, Windows, MySQL 5.5.25, PHP 5.4.22 and apache 2.2 or apache 2.4. Neither the owncloud log nor webservers or mysql log shows something interessting, but i can post it anyway
Warning PHP PDOStatement::execute(): Error reading result set's header at D:\www\owncloud\3rdparty\doctrine\dbal\lib\Doctrine\DBAL\Statement.php#138 2013-12-22T18:29:40+00:00
Warning PHP PDOStatement::execute(): MySQL server has gone away at D:\www\owncloud\3rdparty\doctrine\dbal\lib\Doctrine\DBAL\Statement.php#138 2013-12-22T18:29:40+00:00
Error hook error while running hook (OCA\Files_Versions\Hooks::write_hook): An exception occurred while executing 'SELECT * FROM `oc_file_map` WHERE `logic_path` LIKE ?': SQLSTATE[70100]: <<Unknown error>>: 1317 Query execution was interrupted 2013-12-22T18:29:40+00:00
Warning core Login failed: user 'Körn' , wrong password, IP:set log_authfailip=true in conf 2013-12-22T16:56:05+00:00
Warning PHP filemtime(): stat failed for E:\ownCloud/admin/files/sofortupload/20131221-012817-2-.jpg at D:\www\owncloud\lib\private\files\storage\mappedlocal.php#135 2013-12-22T15:47:09+00:00
Warning PHP copy(E:\ownCloud/admin/files/sofortupload/20131221-012817-2-.jpg): failed to open stream: No such file or directory at D:\www\owncloud\lib\private\files\storage\mappedlocal.php#188 2013-12-22T15:47:09+00:00
Warning PHP filesize(): stat failed for E:\ownCloud/admin/files/sofortupload/20131221-012817-2-.jpg at D:\www\owncloud\lib\private\files\storage\mappedlocal.php#117 2013-12-22T15:47:09+00:00
Warning PHP filemtime(): stat failed for E:\ownCloud/admin/files/sofortupload/20131221-012738-2-.jpg at D:\www\owncloud\lib\private\files\storage\mappedlocal.php#135 2013-12-22T15:47:06+00:00
Warning PHP copy(E:\ownCloud/admin/files/sofortupload/20131221-012738-2-.jpg): failed to open stream: No such file or directory at D:\www\owncloud\lib\private\files\storage\mappedlocal.php#188 2013-12-22T15:47:06+00:00
Warning PHP filesize(): stat failed for E:\ownCloud/admin/files/sofortupload/20131221-012738-2-.jpg at D:\www\owncloud\lib\private\files\storage\mappedlocal.php#117 2013-12-22T15:47:06+00:00
Error core OC\Tags::getFavorites, exception: Could not find category "_$!<Favorite>!$_" 2013-12-21T16:06:16+00:00
Fatal core Unable to parse OCS content 2013-12-21T15:29:02+00:00
Fatal core Unable to parse OCS content 2013-12-21T15:28:14+00:00
Warning core Authentication cookie rejected for user admin 2013-12-21T14:52:26+00:00
Warning core Authentication cookie rejected for user admin 2013-12-21T00:21:00+00:00
Warning core Authentication cookie rejected for user admin 2013-12-21T00:20:50+00:00
Warning PHP file_get_contents(E:\ownCloud/admin/files/entwicklung/projekte/tstools/htdocs/include/fun.inc.php): failed to open stream: No such file or directory at D:\www\owncloud\lib\private\files\storage\mappedlocal.php#153 2013-12-20T22:42:35+00:00
Warning PHP filemtime(): stat failed for E:\ownCloud/admin/files/entwicklung/projekte/tstools/htdocs/include/fun.inc.php at D:\www\owncloud\lib\private\files\storage\mappedlocal.php#135 2013-12-20T22:42:35+00:00
Warning PHP call_user_func() expects parameter 1 to be a valid callback, first array member is not a valid class name or object at D:\www\owncloud\lib\private\backgroundjob\legacy\queuedjob.php#16 2013-12-20T22:20:35+00:00
Warning PHP call_user_func() expects parameter 1 to be a valid callback, first array member is not a valid class name or object at D:\www\owncloud\lib\private\backgroundjob\legacy\queuedjob.php#16 2013-12-20T22:20:35+00:00
Warning PHP call_user_func() expects parameter 1 to be a valid callback, first array member is not a valid class name or object at D:\www\owncloud\lib\private\backgroundjob\legacy\queuedjob.php#16 2013-12-20T22:20:32+00:00
Warning PHP call_user_func() expects parameter 1 to be a valid callback, first array member is not a valid class name or object at D:\www\owncloud\lib\private\backgroundjob\legacy\queuedjob.php#16 2013-12-20T22:20:32+00:00
Warning PHP call_user_func() expects parameter 1 to be a valid callback, first array member is not a valid class name or object at D:\www\owncloud\lib\private\backgroundjob\legacy\queuedjob.php#16
Also note that the synchronising client on Windows 8 reports that I only use 2G out of the 500Gb . When uploding more files 2G remains constant, instead the 500Gb decrease. So after I uploaded 75Gb of data it reports I have used 2Gb out of 425 Gb
Please check this: http://forum.owncloud.org/viewtopic.php?f=26&t=18676 In my server it worked, it fixed the folder size and the quota usage.
This problem is related to the 32bit PHP and cast (int) operations. It has nothing to do with big files, the problem is when the combined size of the files inside a folder exceeds 2GB.
I can reproduce this on my system. I just posted on the owncloud mailing list on this. http://mail.kde.org/pipermail/owncloud/2013-December/011417.html
MDomingues, I checked and applied the patches in that forum post, as well as applying the patch here: https://github.com/owncloud/core/pull/5365
However, when the files are encrypted, I'm still getting wrong folder sizes. I guess this is a new issue thus I need to open a new bug report. (this happens independent of 2gb limits)
I can confirm this bug.
Expected behaviour
The folder size should be reported correct by the webinterface and the sync client.
Actual behaviour
With my 32bit php the folder size is displayed as 2 GB (but there is more used). Tested 64 bit: not affected.
Steps to reproduce
- install owncloud with a 32 bit system
- upload more than 2 GB of data; compare bottom line of files root (> 2 GB) with personal page (webinterface) or sync client ( = 2 GB)
Server configuration
Operating system: Debian 7 (raspberryPi)
Web server: nginx
Database: mysql
PHP version: 5.4.4
ownCloud version: 6.0.0a
Updated from an older ownCloud or fresh install: update from 5.0; update from 4.5
Are you using external storage, if yes which one: local
Client configuration
Browser: sync client, Firefox, IE
Operating system: Windows and Debian 7
The fix explained in http://forum.owncloud.org/viewtopic.php?p=49804#p49804 by Miguel fixed the issue for me.
this issue is still present in the lattest version of owncloud 6.0.1 I would be nice if it could be fixed so we do not have to fix it ourselves using Miguel explanations, everytime we upgrade
Regards
There is a pull request starting to rott :wink: https://github.com/owncloud/core/pull/5365
@bernic @blackm @erenoglu @MDomingues @windaishi can I ask you to test that pull request and let us know if that works? Once this pull request has been properly tested we can merge it and backport the fix to the branch stable6 and release it with the next bug fix release.
Thanks a lot!
Considering https://github.com/owncloud/core/issues/6535#issuecomment-31039526, Apache may be the limiting factor as well, here. With #5365 most of the 32-bit issues seem to be gone on Raspbian for me using nginx + php5-fpm.
The original problem "Folder size counter limited to 2Gb OC 6.0.0a" should have been fixed by #5365