[FIX] Folder size always 2GB

Ask all your questions regarding OC 6.x Please read the Support Forum Rules
Forum rules
ownCloud 6.x reached end of life and is officially unsupported. For details see Wiki page.

Please upgrade your ownCloud.
ngj
Newbie
Posts: 5
Joined: Wed Dec 19, 2012 4:31 pm

Re: [FIX] Folder size always 2GB

Postby ngj » Tue Dec 24, 2013 1:30 am

MiguelDomingues wrote:SOLUTION:
My solution is to modify 3 files in the source, instead of using a cast operation (int) or the intval function, force a type conversion.


I had this problem on my 32-bit Debian 7 installation, and your solution fixed it. Thanks! Did you manage to create an issue on GitHub to attract the developers' attention to this?

MiguelDomingues
Beginner
Posts: 13
Joined: Thu Dec 19, 2013 3:45 pm
ownCloud version: 6.0.0a
Webserver: Apache
Database: MySQL
OS: Linux
PHP version: 5.3.3

Re: [FIX] Folder size always 2GB

Postby MiguelDomingues » Sat Dec 28, 2013 9:16 pm

I've added a link to this topic in the following issue:
https://github.com/owncloud/core/issues/6535

User avatar
martinma
Beginner
Posts: 38
Joined: Sun Sep 08, 2013 1:24 pm
Webserver: nginx
Database: MySQL
OS: Linux
PHP version: 5.4.4

Re: [FIX] Folder size always 2GB

Postby martinma » Mon Dec 30, 2013 1:28 am

Miguel, you are the man! Problem fixed :-)

I hope this is implemented in one of the next owncloud releases.

Best regards

Martin

hagensieker
Beginner
Posts: 41
Joined: Thu Dec 26, 2013 4:22 am
ownCloud version: 6.0.2
Webserver: Apache
Database: SQLite
OS: Linux
PHP version: 5.5

Re: [FIX] Folder size always 2GB

Postby hagensieker » Mon Dec 30, 2013 1:45 am

I tried changing the files in the original post and my server wouldn't respond after that. Did you that succeeded in doing this delete and re-upload the file as suggested?

I only have one folder that has more than 2GB in it and I added a bunch of files to it (and then deleted them) and now it seems to be calculating correctly. The MAC client still shows my overall usage at 2GB even though I'm considerably beyond that. I'll try again by downloading the files, modifying them and uploading them again.

MiguelDomingues
Beginner
Posts: 13
Joined: Thu Dec 19, 2013 3:45 pm
ownCloud version: 6.0.0a
Webserver: Apache
Database: MySQL
OS: Linux
PHP version: 5.3.3

Re: [FIX] Folder size always 2GB

Postby MiguelDomingues » Tue Dec 31, 2013 2:11 am

I've found another problem... The sync client would not download those large files but fortunately there is a way to fix it :)
Check the end of the first post, the details are there.

Best.

MiguelDomingues
Beginner
Posts: 13
Joined: Thu Dec 19, 2013 3:45 pm
ownCloud version: 6.0.0a
Webserver: Apache
Database: MySQL
OS: Linux
PHP version: 5.3.3

Re: [FIX] Folder size always 2GB

Postby MiguelDomingues » Tue Dec 31, 2013 2:12 pm

Sync client is not able to download >2GB files, I'm trying to find out where the problem is.

MiguelDomingues
Beginner
Posts: 13
Joined: Thu Dec 19, 2013 3:45 pm
ownCloud version: 6.0.0a
Webserver: Apache
Database: MySQL
OS: Linux
PHP version: 5.3.3

Re: [FIX] Folder size always 2GB

Postby MiguelDomingues » Tue Dec 31, 2013 2:38 pm

I think the problem is in the 32bit PHP older versions.
However, in my case with Cyberduck (WebDAV client) it correctly downloads the file. My desktop client (Mac) is the one not working well.

PVince81
Beginner
Posts: 10
Joined: Sun Nov 24, 2013 6:38 pm
ownCloud version: 8.0.2
Webserver: Apache
Database: MySQL
OS: Linux
Location: Stuttgart, Germany

Re: [FIX] Folder size always 2GB

Postby PVince81 » Tue Jan 07, 2014 11:17 am

Can you guys confirm whether you're all using PHP 5.3.3 ?
I suppose this issue only happens when using PHP 5.3.3 on 32-bit systems.

I have PHP 5.4.20 and the problem doesn't occur.

MiguelDomingues
Beginner
Posts: 13
Joined: Thu Dec 19, 2013 3:45 pm
ownCloud version: 6.0.0a
Webserver: Apache
Database: MySQL
OS: Linux
PHP version: 5.3.3

Re: [FIX] Folder size always 2GB

Postby MiguelDomingues » Tue Feb 04, 2014 3:31 pm

php 5.3.3 here

MiguelDomingues
Beginner
Posts: 13
Joined: Thu Dec 19, 2013 3:45 pm
ownCloud version: 6.0.0a
Webserver: Apache
Database: MySQL
OS: Linux
PHP version: 5.3.3

Re: [FIX] Folder size always 2GB

Postby MiguelDomingues » Fri Feb 07, 2014 12:08 am

After updating my owncloud installation I've lost the changes I've made, so I decided to create a script to automatically fix things up.
All you need to do is create a file with the contents below (SSH to your server and then use: nano /some/path/owcloud-cast-fix.sh)
Make sure you edit the second line with the full path to your owncloud web directory.
Then execute the script with: sh /some/path/owcloud-cast-fix.sh
It will apply the fix to all files.

IMPORTANT: Your owncloud folder CANNOT be inside the owncloud web dir!!!

USE THIS AT YOUR OWN RISK!!!


Code: Select all

#!/bin/bash
startdirectory="/path/to/owncloud"
searchterm="(int)"
replaceterm="0+"
echo "Starting..."
for file in $(grep -l -R $searchterm $startdirectory)
   do
        sed -e "s/$searchterm/$replaceterm/ig" $file > /tmp/tempfile.tmp
        mv /tmp/tempfile.tmp $file
        echo "Fixing: " $file
done
echo "Done!"


  • Similar Topics
    Replies
    Views
    Last post

Return to “ownCloud Community Edition 6.x”

Who is online

Users browsing this forum: No registered users and 1 guest