eith0s / rutorrent

Automatically exported from code.google.com/p/rutorrent
0 stars 0 forks source link

datadir error on data move php 2gb limit #846

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Hi

In a last days I recompiled php and rtorrent and downloaded latest rutorrent 
from svn (2340).

And I'm getting error while trying to save torrent data into another directory:

---
 sh -c '/usr/bin/rtorrent/bin/php' '/var/www/ui/rutorrent/plugins/datadir/setdir.php' 4AB4A54C8340AA1EA3ED95F9FE43E233F23B1CA2 '/share/Download/rtorrent/downloads' 1 1 0 'rtorrent' & exit 0

---

--- Success ---
 PHP Warning:  rename(/share/MOViES/The.Terminal.2004.720p.HDTV.x264-ESiR/The.Terminal.2004.720p.HDTV.x264-ESiR.mkv): failed to open stream: Value too large for defined data type in /var/www/ui/rutorrent/plugins/datadir/util_rt.php on line 162
PHP Warning:  
rename(/share/MOViES/The.Terminal.2004.720p.HDTV.x264-ESiR/The.Terminal.2004.720
p.HDTV.x264-ESiR.mkv,/share/Download/rtorrent/downloads/The.Terminal.2004.720p.H
DTV.x264-ESiR/The.Terminal.2004.720p.HDTV.x264-ESiR.mkv): Value too large for 
defined data type in /var/www/ui/rutorrent/plugins/datadir/util_rt.php on line 
162
PHP Warning:  
copy(/share/MOViES/The.Terminal.2004.720p.HDTV.x264-ESiR/The.Terminal.2004.720p.
HDTV.x264-ESiR.mkv): failed to open stream: Value too large for defined data 
type in /var/www/ui/rutorrent/plugins/datadir/util_rt.php on line 167

php-config:
/usr/bin/rtorrent/bin/php-config
Usage: /usr/bin/rtorrent/bin/php-config [OPTION]
Options:
  --prefix            [/usr/bin/rtorrent]
  --includes          [-I/usr/bin/rtorrent/include/php -I/usr/bin/rtorrent/include/php/main -I/usr/bin/rtorrent/include/php/TSRM -I/usr/bin/rtorrent/include/php/Zend -I/usr/bin/rtorrent/include/php/ext -I/usr/bin/rtorrent/include/php/ext/date/lib]
  --ldflags           [ -L/usr/bin/rtorrent/lib]
  --libs              [-lcrypt   -lz -lexslt -lresolv -lcrypt -lrt -lt1 -lfreetype -lX11 -lXpm -lpng -lz -ljpeg -lssl -lcrypto -lbz2 -lz -lpcre -lssl -lcrypto -lrt -lm -ldl -lnsl  -lxml2 -lz -liconv -lm -lxml2 -lz -liconv -lm -lxml2 -lz -liconv -lm -lxml2 -lz -liconv -lm -lcrypt -lxml2 -lz -liconv -lm -lxml2 -lz -liconv -lm -lxml2 -lz -liconv -lm -lxml2 -lz -liconv -lm -lxml2 -lz -liconv -lm -lxslt -lxml2 -lz -liconv -lm -lcrypt ]
  --extension-dir     [/usr/bin/rtorrent/lib/php/20090626]
  --include-dir       [/usr/bin/rtorrent/include/php]
  --php-binary        [/usr/bin/rtorrent/bin/php]
  --php-sapis         [cli cgi]
  --configure-options [--prefix=/usr/bin/rtorrent --with-libdir=lib --includedir=/usr/bin/rtorrent/include --with-config-file-path=/usr/bin/rtorrent/etc/php5 --with-config-file-scan-dir=/usr/bin/rtorrent/etc/php5/conf.d --with-layout=GNU --with-pear --enable-calendar --enable-sysvsem --enable-sysvshm --enable-sysvmsg --enable-bcmath --without-gdbm --with-iconv --enable-exif --enable-ftp --enable-mbstring --with-pcre-regex=/usr/bin/rtorrent --enable-shmop --enable-sockets --with-libxml-dir=/usr/bin/rtorrent --with-zlib --with-openssl=/usr/bin/rtorrent --with-openssl-dir=/usr/bin/rtorrent --enable-zip --with-mhash --without-mm --x-libraries=/usr/bin/rtorrent/lib --x-includes=/usr/bin/rtorrent/includes --with-xmlrpc --with-sqlite --enable-soap --with-kerberos=/usr/bin/rtorrent --enable-wddx --with-gettext --with-bz2 --disable-debug --with-pic --with-regex=php --disable-posix --enable-ctype --with-zlib-dir=/usr/bin/rtorrent --enable-dba --enable-dom --enable-xml --enable-xmlreader --enable-rpath --enable-gd-native-ttf --with-jpeg-dir=/usr/bin/rtorrent --with-xpm-dir=/usr/bin/rtorrent --with-png-dir=/usr/bin/rtorrent --with-freetype-dir=/usr/bin/rtorrent --with-ttf=/usr/bin/rtorrent --with-t1lib=/usr/bin/rtorrent --with-xsl=/usr/bin/rtorrent --with-gd --enable-cli --enable-cgi --enable-fastcgi --enable-static --enable-shared]
  --version           [5.3.4]
  --vernum            [50304]

And my system is 32bit.

Can you please help me to fix it?

Thank you!

Original issue reported on code.google.com by elsil...@gmail.com on 21 Aug 2013 at 3:03

GoogleCodeExporter commented 8 years ago
Recompile php with flags
CFLAGS="-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"

Original comment by novik65 on 21 Aug 2013 at 6:31