I’m trying for the first time pydio (poc) so maybe I’m doing something wrong. I have activated the samba plugin, and in the web interface I can browse any samba shares. It’s working fine. But, the indexation is not working and seems to get stuck.
So I run the indexation with the CLI and I get this error:
[root@pydio-test pydio]# /opt/rh/rh-php56/root/usr/bin/php /usr/share/pydio/cmd.php -u=madko -a=index -r=samba
Please enter the password:
*****************************
Current User is 'madko'
*****************************
Applying action 'index' on workspace Samba (3b683f9zz3ddfbcb960a670e7fa5b81)
<?xml version="1.0" encoding="UTF-8"?><tree ><message type="ERROR">FILE_IS_A_DIRECTORY opening remote file \TEST\SUBDIR\0 -</message></tree>
PHP Fatal error: FILE_IS_A_DIRECTORY opening remote file \TEST\SUBDIR\0 - in /usr/share/pydio/plugins/access.smb/smb.php on line 280
PHP Fatal error: Access to undeclared static property: Pydio\Access\Driver\StreamProvider\SMB\SMBAccessWrapper::$crtZip in /usr/share/pydio/plugins/access.smb/SMBAccessWrapper.php on line 198
Segmentation fault
So I have this directory “\TEST\SUBDIR\0 – TEST”, it seems that spaces in names are a problem ??
I’m using pydio-8.0.1-2.el7.centos.noarch
PS: have ask same question on other pydio forum, no response, then on github, same still no response, then on twitter, same still noone, so I hope I will have some help here. Thanks
I could not reproduce this error on CentOS 7 with windows 2012 Samba share.
Im using pydio-8.0.1-2.el7.centos.noarch as well.
Note: You should launch the indexation process with “apache” user. If you launched it with root, you should delete rm -rf /var/cache/pydio/indexes/* and relaunch this process.
I tried to launch from the GUI and it’s stuck. So that’s why I tried from CLI. And this is how I found that with a basic setup, the indexer segfaulted.
What do you mean windows 2012 Samba share ? Is it a windows server or a samba server (=Linux) ? I’ve got the problem with a Samba server.
Please reset the indexation data by removing /var/cache/pydio/indexes/*
then launch indexaton from GUI in two case:
with cli = enable
CLI = disable
CLI option is in Pydio Settings >> Main Options and please make sure max_execution_time of php.ini is long enough for this process if CLI=disable
I mean a samba share create by windows 2012 (in my case it’s accessible via \FileServer\share on windows)
192.168.2.51 is indeed my pydio server. I’m following the official doc for installation on CentOS, so my php version is from SCL/Epel/REMI somewhere around 5.6.
192.168.2.70 is a new samba server and it’s seems that on this one there is no segfault.
php max_execution_time is 300 as the documentation suggested.
I think I will have to reinstall pydio, it’s now broken again even if I haven’t had the time to do any of your suggestion. I can log in, but can’t switch workspace. It keeps asking me my workspace credential, and go back to the default workspace.
Can’t find any error, just this one :
[Wed Dec 13 07:36:41.365053 2017] [:error] [pid 1211] [client 192.168.2.31:52262] PHP Fatal error: Call to a member function getPref() on null in /usr/share/pydio/plugins/core.notifications/RecentListManager.php on line 59, referer: http://192.168.2.51/pydio/welcome/
Can I clean everything and start again ? or you need more data ?
But I want the credential, the problem is that after entering it, it loads the previous workspace. Then a reclick on the workspace I want, pydio asks again for the credential, but still doesn’t load the workspace. etc this part (at least) was working fine a while ago. I will reinstall this VM, rerun the playbook.
Ok so VM has been recreated and installed the same way as before (using an ansible playbook).
Client : Mozilla/5.0 (X11; Linux x86_64; rv:57.0) Gecko/20100101 Firefox/57.0
Crypto Extension Detected : OpenSSL
Command Line Available : Yes
DOM Enabled : Yes
Exif Enabled : Yes
GD Enabled : Yes
Upload Max Size : 200M
Memory Limit : 128M
Max execution time : 300
Safe Mode : 0
Safe Mode GID : 0
Xml parser enabled : 1
Server OS : Linux
Session Save Path : /var/opt/rh/rh-php56/lib/php/session
Session Save Path Writeable : Yes
PHP Version : 5.6.25
Locale : fr_FR.UTF-8
Directory Separator : /
PHP Opcode Cache extension loaded : Yes
PHP INTL extension loaded : Yes
PHP Output Buffer disabled : Yes
PHP File Uploads enabled : Yes
Magic quotes disabled : Yes
Upload Tmp Dir Writeable : Yes
PHP Upload Max Size : 209715200
PHP Post Max Size : 209715200
Users enabled : Yes
Guest enabled : No
Writeable Folders : [<b>pydio</b>:true]
Zlib Enabled : Yes
Then I activate samba share plugin. And then I create a new workspace with this driver.
I enter IP address : 192.168.2.70 (in my case)
URI: Anonymous
Is it ok ?
Here is my smb.conf :
[Anonymous]
comment = Anonymous File Server Share
path = /srv/samba/anonymous
browsable =yes
writable = yes
guest ok = yes
read only = no
force user = nobody
From my pydio VM access to this samba share is fine :
[root@pydio0 ~]# smbclient //192.168.2.70/Anonymous -U " "%" "
OS=[Windows 6.1] Server=[Samba 4.6.2]
smb: \> dir
. D 0 Sun Dec 10 12:58:57 2017
.. D 0 Sun Dec 10 11:29:22 2017
01 entrants D 0 Sun Dec 10 12:58:56 2017
02 deploiement D 0 Sun Dec 10 11:31:02 2017
03 livraison D 0 Sun Dec 10 11:31:03 2017
pydio D 0 Sun Dec 10 13:00:16 2017
8377344 blocks of size 1024. 6320116 blocks available
smb: \>
But when I try to access this workspace, I don’t see anything. tcpdump shows nothing from pydio. Is it normal ? The workspace appears empty but as if it was working. Trying to create dir/files fails with error “directory/file already exists” (which is false).
SELinux is indeed in permissive mode (just for testing)
No LDAP. Credentials are working fine in smbclient. But have you seen my previous post? Now on fresh install it doesn’t seem to connect to samba anymore…
I’ve made a quick and dirty fix (and a PR on github) to fix that. Now indexation seems to work !!! At least on my samba test server. Will try soon on my production samba server where I was having the segfault.
Thank you for your help
If you have answer about setting anonymous samba share I am still interested.