@odlan opened this Issue on October 23rd 2017

Piwik 3.2.0

This is the system where Piwik run
df -T

shell

I have no NFS system, but Piwik think so

piwik_nfs_error

@Findus23 commented on October 23rd 2017 Member

Hi,

Can you check the following:

  • df -T -t nfs
    It should return df: no file systems processed or something similar
  • If you are allowing the exec function in PHP
  • If you are allowing the shell_exec function in PHP

The only thing I can think of is that this check fails
https://github.com/piwik/piwik/blob/3.x-dev/core/Filesystem.php#L147
because the locale is not English and for whatever reason returns more than one line.

@odlan commented on October 23rd 2017

Hi

  • user<a class='mention' href='https://github.com/diskstation'>@diskstation</a>:~# df -T -t nfs
    df: no file systems processed

  • df -T -t nfs /volume1/web/piwik/tmp/sessions 2>&1
    Filesystem Type 1K-blocks Used Available Use% Mounted on
    - - 3732213600 857454592 2874759008 23% /volume1/web

Locale is "en_US.utf8"

@Findus23 commented on October 23rd 2017 Member

df -T -t nfs /volume1/web/piwik/tmp/sessions 2>&1
Filesystem Type 1K-blocks Used Available Use% Mounted on
- - 3732213600 857454592 2874759008 23% /volume1/web

That's odd. Can you try if any parameter causes df to not show that filesystem when filtering for nfs.

Which df are you using? The GNU one or something else?

What does df --version return

@odlan commented on October 23rd 2017

df --version
df (GNU coreutils) 8.24
Copyright (C) 2015 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by Torbjörn Granlund, David MacKenzie, and Paul Eggert.

but
df -T /volume1/
/dev/vg1000/lv btrfs 3732213600 857643756 2874569844 23% /volume1

and

df -T -t ntfs /volume1/
df: no file systems processed

@odlan commented on October 23rd 2017
Powered by GitHub Issue Mirror