jdel / sspks

A very simple Synology Package Server, reverse engineered from the official Synology package repository and SynoCommunity.
GNU General Public License v3.0
254 stars 64 forks source link

disk_free_space(): Value too large for defined data type #52

Closed itn3rd77 closed 6 years ago

itn3rd77 commented 6 years ago

After uploading Simple SPK Server to my hoster strato.de I got the following Warning popping up.

Warning: disk_free_space(): Value too large for defined data type in /mnt/web211/b3/65/54228465/htdocs/spk/lib/SSpkS/Package/Package.php on line 199 Warning: disk_free_space(): Value too large for defined data type in /mnt/web211/b3/65/54228465/htdocs/spk/lib/SSpkS/Package/Package.php on line 199 Warning: disk_free_space(): Value too large for defined data type in /mnt/web211/b3/65/54228465/htdocs/spk/lib/SSpkS/Package/Package.php on line 199 Warning: disk_free_space(): Value too large for defined data type in /mnt/web211/b3/65/54228465/htdocs/spk/lib/SSpkS/Package/Package.php on line 199 Warning: disk_free_space(): Value too large for defined data type in /mnt/web211/b3/65/54228465/htdocs/spk/lib/SSpkS/Package/Package.php on line 199 Warning: disk_free_space(): Value too large for defined data type in /mnt/web211/b3/65/54228465/htdocs/spk/lib/SSpkS/Package/Package.php on line 199 Warning: disk_free_space(): Value too large for defined data type in /mnt/web211/b3/65/54228465/htdocs/spk/lib/SSpkS/Package/Package.php on line 199 

This seems to be a know for problem with some hosting providers especially strato.de. Other projects also struggled with this e.g. https://github.com/owncloud/core/issues/18886.

As there seems no reliable way to determine the free space in that case, I would suggest to ignore the error and proceed as there is no logging available (AFAIK).

I will come up with a pull request soon.

jdel commented 6 years ago

@itn3rd77 Until this is merged, I invite you to try out gosspks.

I completely rewrote sspks in go a couple of months ago.

Some of the benefits are:

It has a couple of drawbacks though:

Quick start guide:

curl -sL https://bintray.com/jdel/gosspks/download_file?file_path=gosspks-linux-amd64 -o ~/gosspks-cmd
chmod +x ~/gosspks-cmd
./gosspks-cmd --packages /path/to/packages