Koozali.org: home of the SME Server

Obsolete Releases => SME 9.x Contribs => Topic started by: Bud on March 03, 2018, 05:50:18 AM

Title: Pydio and Windows Share
Post by: Bud on March 03, 2018, 05:50:18 AM
guy please can you help

i have a windows share mounted on a sme 9.2 server ie:
cd /mnt
mkdir w10test
mount -t cifs -o username=user,password=yourpassword //mywindowsmachineIP/work ./w10test

the share is working without any problems

i have installed the pydio contrib and want to access the windows share ie: " work "
the reason for pydio is that i need to " preview " files before i download them ie: picture files or word/excel docs

quetions
1. can this be done with pydio?
2. if so how do i "add" the share to pydio
3. will i be able to access pydio via the wan?

any help greatly appreciated
Title: Re: Pydio and Windows Share
Post by: Daniel B. on March 03, 2018, 08:43:41 AM
In order:
Yes
Yes, but you need to use the shared folder contrib, not an ibay
Yes
Title: Re: Pydio and Windows Share
Post by: Bud on March 03, 2018, 03:07:59 PM
Daniel B. thank you for your reply

i have installed the " shared folder " contrib

if my windows share is " work " and i have created a mount in the sme 9.2 server ie:
cd /mnt
mkdir w10test
mount -t cifs -o username=user,password=yourpassword //mywindowsmachineIP/work ./w10test

how do i do a " folder share " to the windows " work " share?

also when i try to login to Pydio ie:

" http://mysmeserverip/pydio " i get the following error

Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, admin@mysmeserver.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

any ideas what i can do to resolve the issue

Title: Re: Pydio and Windows Share
Post by: Daniel B. on March 03, 2018, 03:14:45 PM
Create a new shared folder, enable smb access, and pydio (from the panel in the server-manager). Then use this share instead of your work ibay. As for the error, you'll have to look at your logs (/var/log/messages and /var/log/httpd/error_log)
Title: Re: Pydio and Windows Share
Post by: Bud on March 03, 2018, 04:40:06 PM
Daniel B. thank you however i need more information

so if i have a windows share on a windows computer called " work " and it is shared with the group everyone and i have issued the following via ssh:
cd /mnt
mkdir w10test
mount -t cifs -o username=user,password=yourpassword //mywindowsmachineIP/work ./w10test

when i go to the " Shared Folders " Contrib what do i place under the following options:

1. Shared folder name = ?
2. SMB Access = Enabled, Browsable
3. Retention time = Unlimited
4. Web Access = ?
5. WebDav support = ?
6. Force secure connections = ?
7. Indexes = Enabled
8. Dynamic content execution (PHP, CGI, SSI) = ?
9. Pydio Access = Enabled

How does this link to the windows " work " share ?

/var/log/httpd/error_log
[Sat Mar 03 17:29:16 2018] [notice] FastCGI: process manager initialized (pid 14695)
[Sat Mar 03 17:42:00 2018] [error] [client 192.168.0.246] (2)No such file or directory: FastCGI: failed to connect to server "/var/www/php-cgi-bin/phppydio-wrapper": connect() failed
[Sat Mar 03 17:42:00 2018] [error] [client 192.168.0.246] FastCGI: incomplete headers (0 bytes) received from server "/var/www/php-cgi-bin/phppydio-wrapper"


sorry for the noob questions  :-)
Title: Re: Pydio and Windows Share
Post by: Daniel B. on March 03, 2018, 04:50:14 PM
Copy the content of your work share into the shared folder. That'll be far easier, more secure, and with better performance than mounting your share on sme. For your php issue, I guess you have the wrong version of smeserver-webapps-common. You need the x86_64 version
Title: Re: Pydio and Windows Share
Post by: Bud on March 03, 2018, 05:11:21 PM
Daniel B.

ok i understand, thank you

how and where do i get the smeserver-webapps-common x86_64 version to install?
Title: Re: Pydio and Windows Share
Post by: ReetP on March 03, 2018, 05:18:31 PM
Always read the wiki....

https://wiki.contribs.org/Webapps-common

Unfortunately this contrib is not in the smecontribs repo
Title: Re: Pydio and Windows Share
Post by: Bud on March 03, 2018, 05:24:08 PM
ReetP thank you

Package smeserver-webapps-common-0.3.2-1.el6.fws.x86_64 already installed and latest version
Nothing to do

just need to get pydio working.

any ideas?
Title: Re: Pydio and Windows Share
Post by: ReetP on March 03, 2018, 07:22:16 PM
Start here:

https://wiki.contribs.org/Pydio

Work forwards.... :-)
Title: Re: Pydio and Windows Share
Post by: Daniel B. on March 03, 2018, 07:28:35 PM
Did you ran signal-event post-upgrade && signal-event reboot after installation of smeserver-webapps-common ? It's needed for all the PHP FPM stack to be started
Title: Re: Pydio and Windows Share
Post by: Bud on March 05, 2018, 09:55:54 PM
Daniel B.

yes i have done signal-event post-upgrade && signal-event reboot

i have uninstalled and reinstalled pydio

output from /var/log/httpd/error_log
[Mon Mar 05 22:45:52 2018] [error] [client 192.168.0.246] (2)No such file or directory: FastCGI: failed to connect to server "/var/www/php-cgi-bin/phppydio-wrapper": connect() failed
[Mon Mar 05 22:45:52 2018] [error] [client 192.168.0.246] FastCGI: incomplete headers (0 bytes) received from server "/var/www/php-cgi-bin/phppydio-wrapper"
[Mon Mar 05 22:45:56 2018] [error] [client 192.168.0.246] (2)No such file or directory: FastCGI: failed to connect to server "/var/www/php-cgi-bin/phppydio-wrapper": connect() failed
[Mon Mar 05 22:45:56 2018] [error] [client 192.168.0.246] FastCGI: incomplete headers (0 bytes) received from server "/var/www/php-cgi-bin/phppydio-wrapper"
[Mon Mar 05 22:46:03 2018] [error] [client 192.168.0.246] (2)No such file or directory: FastCGI: failed to connect to server "/var/www/php-cgi-bin/phppydio-wrapper": connect() failed
[Mon Mar 05 22:46:03 2018] [error] [client 192.168.0.246] FastCGI: incomplete headers (0 bytes) received from server "/var/www/php-cgi-bin/phppydio-wrapper"

what to do?
thanks for trying to help, much appreciated
Title: Re: Pydio and Windows Share
Post by: Daniel B. on March 05, 2018, 10:00:56 PM
Looks like the PHP fpm pools are not started. Can you check

/etc/init.d/php56-php-fpm status
ps aux | grep pydio
ll /var/run/php-fpm
Title: Re: Pydio and Windows Share
Post by: Bud on March 05, 2018, 11:05:04 PM
Daniel B.

output

[root@sme ~]# /etc/init.d/php56-php-fpm status
php-fpm (pid  2381) is running...
[root@sme ~]# ps aux | grep pydio
root      3637  0.0  0.0 103320   860 pts/0    S+   00:03   0:00 grep pydio
[root@sme ~]# ll /var/run/php-fpm
total 16
-rw-r--r-- 1 root root 4 Mar  5 23:58 php56-fpm.pid
srw-rw---- 1 root www  0 Mar  5 23:58 php56.sock
-rw-r--r-- 1 root root 4 Mar  5 23:58 php70-fpm.pid
srw-rw---- 1 root www  0 Mar  5 23:58 php70.sock
-rw-r--r-- 1 root root 4 Mar  5 23:58 php71-fpm.pid
srw-rw---- 1 root www  0 Mar  5 23:58 php71.sock
-rw-r--r-- 1 root root 4 Mar  5 23:58 php-fpm.pid
srw-rw---- 1 root www  0 Mar  5 23:58 php.sock


Title: Re: Pydio and Windows Share
Post by: Daniel B. on March 05, 2018, 11:13:36 PM
There should be a php56-pydio pool running too, which is not the case here. Maybe you're missing a signal-event webapps-update
Title: Re: Pydio and Windows Share
Post by: Bud on March 05, 2018, 11:33:11 PM
Daniel B.

[root@sme ~]# signal-event webapps-update
[root@sme ~]# /etc/init.d/php56-php-fpm status
php-fpm (pid  4267) is running...
[root@sme ~]# ps aux | grep pydio
root      4291  0.0  0.0 103320   860 pts/0    S+   00:31   0:00 grep pydio
[root@sme ~]# ll /var/run/php-fpm
total 16
-rw-r--r-- 1 root root 4 Mar  6 00:30 php56-fpm.pid
srw-rw---- 1 root www  0 Mar  5 23:58 php56.sock
-rw-r--r-- 1 root root 4 Mar  6 00:30 php70-fpm.pid
srw-rw---- 1 root www  0 Mar  5 23:58 php70.sock
-rw-r--r-- 1 root root 4 Mar  6 00:30 php71-fpm.pid
srw-rw---- 1 root www  0 Mar  5 23:58 php71.sock
-rw-r--r-- 1 root root 4 Mar  6 00:30 php-fpm.pid
srw-rw---- 1 root www  0 Mar  5 23:58 php.sock

really need to get this working
thanks for your help, much appreciated.
Title: Re: Pydio and Windows Share
Post by: Daniel B. on March 06, 2018, 08:26:12 AM
Well, you should have a template /etc/e-smith/templates/etc/php-fpm.d/www.conf/25Pydio which should create a php56-pydio section in /etc/opt/remi/php56/php-fpm.d/www.conf. Check if it's the case. If it's not, check /var/log/messages while signal-event webapps-update is running in case there's an error.
Title: Re: Pydio and Windows Share
Post by: Bud on March 06, 2018, 09:11:26 AM
Daniel B.

you should have a template /etc/e-smith/templates/etc/php-fpm.d/www.conf/25Pydio - yes it is there
which should create a php56-pydio section in /etc/opt/remi/php56/php-fpm.d/www.conf - yes it is there


signal-event webapps-update /var/log/messages
Mar  6 10:08:14 mdes esmith::event[13672]: Processing event: webapps-update
Mar  6 10:08:14 mdes esmith::event[13672]: Running event handler: /etc/e-smith/events/webapps-update/S02webapps-update-crl
Mar  6 10:08:14 mdes esmith::event[13672]: S02webapps-update-crl=action|Event|webapps-update|Action|S02webapps-update-crl|Start|1520323694 353164|End|1520323694 391970|Elapsed|0.038806
Mar  6 10:08:14 mdes esmith::event[13672]: Running event handler: /etc/e-smith/events/webapps-update/S03webapps-update-certs
Mar  6 10:08:14 mdes esmith::event[13672]: S03webapps-update-certs=action|Event|webapps-update|Action|S03webapps-update-certs|Start|1520323694 392439|End|1520323694 395246|Elapsed|0.002807
Mar  6 10:08:14 mdes esmith::event[13672]: Running event handler: /etc/e-smith/events/actions/generic_template_expand
Mar  6 10:08:14 mdes esmith::event[13672]: expanding /etc/crontab
Mar  6 10:08:14 mdes esmith::event[13672]: expanding /etc/php-fpm.conf
Mar  6 10:08:14 mdes esmith::event[13672]: expanding /etc/php.ini
Mar  6 10:08:14 mdes esmith::event[13672]: expanding /etc/my.cnf
Mar  6 10:08:14 mdes esmith::event[13672]: expanding /etc/httpd/conf/httpd.conf
Mar  6 10:08:14 mdes esmith::event[13672]: expanding /etc/pydio/bootstrap_plugins.php
Mar  6 10:08:14 mdes esmith::event[13672]: expanding /etc/pydio/bootstrap_repositories.php
Mar  6 10:08:14 mdes esmith::event[13672]: expanding /etc/sysconfig/php-fpm
Mar  6 10:08:14 mdes esmith::event[13672]: expanding /etc/php-fpm.d/custom.conf
Mar  6 10:08:14 mdes esmith::event[13672]: expanding /etc/php-fpm.d/www.conf
Mar  6 10:08:14 mdes esmith::event[13672]: expanding /etc/php-fpm.d/shares.conf
Mar  6 10:08:14 mdes esmith::event[13672]: expanding /etc/opt/remi/php71/php-fpm.conf
Mar  6 10:08:14 mdes esmith::event[13672]: expanding /etc/opt/remi/php71/sysconfig/php-fpm
Mar  6 10:08:14 mdes esmith::event[13672]: expanding /etc/opt/remi/php71/php-fpm.d/custom.conf
Mar  6 10:08:14 mdes esmith::event[13672]: expanding /etc/opt/remi/php71/php-fpm.d/www.conf
Mar  6 10:08:14 mdes esmith::event[13672]: expanding /etc/opt/remi/php71/php-fpm.d/shares.conf
Mar  6 10:08:14 mdes esmith::event[13672]: expanding /etc/opt/remi/php70/php-fpm.conf
Mar  6 10:08:14 mdes esmith::event[13672]: expanding /etc/opt/remi/php70/sysconfig/php-fpm
Mar  6 10:08:14 mdes esmith::event[13672]: expanding /etc/opt/remi/php70/php-fpm.d/custom.conf
Mar  6 10:08:14 mdes esmith::event[13672]: expanding /etc/opt/remi/php70/php-fpm.d/www.conf
Mar  6 10:08:14 mdes esmith::event[13672]: expanding /etc/opt/remi/php70/php-fpm.d/shares.conf
Mar  6 10:08:14 mdes esmith::event[13672]: expanding /etc/e-smith/sql/init/pydio
Mar  6 10:08:14 mdes esmith::event[13672]: expanding /etc/logrotate.d/php-fpm
Mar  6 10:08:14 mdes esmith::event[13672]: expanding /var/cache/pydio/first_run_passed
Mar  6 10:08:14 mdes esmith::event[13672]: expanding /var/cache/pydio/admin_counted
Mar  6 10:08:14 mdes esmith::event[13672]: expanding /var/cache/pydio/diag_result.php
Mar  6 10:08:14 mdes esmith::event[13672]: expanding /var/lib/pydio/plugins/auth.serial/roles.ser
Mar  6 10:08:14 mdes esmith::event[13672]: expanding /var/lib/pydio/plugins/auth.serial/users.ser
Mar  6 10:08:14 mdes esmith::event[13672]: expanding /var/lib/pydio/plugins/boot.conf/bootstrap.json
Mar  6 10:08:15 mdes esmith::event[13672]: expanding /var/lib/pydio/plugins/conf.serial/plugins_configs.ser
Mar  6 10:08:15 mdes esmith::event[13672]: expanding /opt/remi/php56/root/etc/php-fpm.conf
Mar  6 10:08:15 mdes esmith::event[13672]: expanding /opt/remi/php56/root/etc/sysconfig/php-fpm
Mar  6 10:08:15 mdes esmith::event[13672]: expanding /opt/remi/php56/root/etc/php-fpm.d/custom.conf
Mar  6 10:08:15 mdes esmith::event[13672]: expanding /opt/remi/php56/root/etc/php-fpm.d/www.conf
Mar  6 10:08:15 mdes esmith::event[13672]: expanding /opt/remi/php56/root/etc/php-fpm.d/shares.conf
Mar  6 10:08:15 mdes esmith::event[13672]: generic_template_expand=action|Event|webapps-update|Action|generic_template_expand|Start|1520323694 395677|End|1520323695 70989|Elapsed|0.675312
Mar  6 10:08:15 mdes esmith::event[13672]: Running event handler: /etc/e-smith/events/webapps-update/S85pydio-user-rights
Mar  6 10:08:15 mdes esmith::event[13672]: S85pydio-user-rights=action|Event|webapps-update|Action|S85pydio-user-rights|Start|1520323695 71338|End|1520323695 168095|Elapsed|0.096757
Mar  6 10:08:15 mdes esmith::event[13672]: Running event handler: /etc/e-smith/events/actions/adjust-services
Mar  6 10:08:15 mdes esmith::event[13672]: adjusting non-supervised php70-php-fpm (reload)
Mar  6 10:08:15 mdes php70-fpm[13699]: [NOTICE] configuration file /etc/opt/remi/php70/php-fpm.conf test is successful
Mar  6 10:08:15 mdes esmith::event[13672]: Reloading php-fpm: [NOTICE] configuration file /etc/opt/remi/php70/php-fpm.conf test is successful
Mar  6 10:08:15 mdes esmith::event[13672]: 
Mar  6 10:08:15 mdes php70-fpm[4219]: [NOTICE] Reloading in progress ...
Mar  6 10:08:15 mdes esmith::event[13672]: #033[60G[#033[0;32m  OK  #033[0;39m]#015
Mar  6 10:08:15 mdes php70-fpm[4219]: [NOTICE] reloading: execvp("/opt/remi/php70/root/usr/sbin/php-fpm", {"/opt/remi/php70/root/usr/sbin/php-fpm", "--daemonize"})
Mar  6 10:08:15 mdes esmith::event[13672]: adjusting non-supervised mysql.init (start)
Mar  6 10:08:15 mdes php70-fpm[13725]: [NOTICE] using inherited socket fd=7, "/var/run/php-fpm/php70.sock"
Mar  6 10:08:15 mdes php70-fpm[13725]: [NOTICE] fpm is running, pid 13725
Mar  6 10:08:15 mdes php70-fpm[13725]: [NOTICE] ready to handle connections
Mar  6 10:08:15 mdes esmith::event[13672]: Loading pydio into mysql #033[60G[#033[0;32m  OK  #033[0;39m]#015
Mar  6 10:08:15 mdes esmith::event[13672]: adjusting non-supervised php71-php-fpm (reload)
Mar  6 10:08:15 mdes php71-fpm[13743]: [NOTICE] configuration file /etc/opt/remi/php71/php-fpm.conf test is successful
Mar  6 10:08:15 mdes esmith::event[13672]: Reloading php-fpm: [NOTICE] configuration file /etc/opt/remi/php71/php-fpm.conf test is successful
Mar  6 10:08:15 mdes esmith::event[13672]: 
Mar  6 10:08:15 mdes php71-fpm[4243]: [NOTICE] Reloading in progress ...
Mar  6 10:08:15 mdes esmith::event[13672]: #033[60G[#033[0;32m  OK  #033[0;39m]#015
Mar  6 10:08:15 mdes php71-fpm[4243]: [NOTICE] reloading: execvp("/opt/remi/php71/root/usr/sbin/php-fpm", {"/opt/remi/php71/root/usr/sbin/php-fpm", "--daemonize"})
Mar  6 10:08:15 mdes esmith::event[13672]: adjusting non-supervised php-fpm (reload)
Mar  6 10:08:15 mdes php71-fpm[13759]: [NOTICE] using inherited socket fd=7, "/var/run/php-fpm/php71.sock"
Mar  6 10:08:15 mdes php71-fpm[13759]: [NOTICE] fpm is running, pid 13759
Mar  6 10:08:15 mdes php71-fpm[13759]: [NOTICE] ready to handle connections
Mar  6 10:08:15 mdes php-fpm[13758]: [NOTICE] configuration file /etc/php-fpm.conf test is successful
Mar  6 10:08:15 mdes esmith::event[13672]: Reloading php-fpm: [NOTICE] configuration file /etc/php-fpm.conf test is successful
Mar  6 10:08:15 mdes esmith::event[13672]: 
Mar  6 10:08:15 mdes php-fpm[4262]: [NOTICE] Reloading in progress ...
Mar  6 10:08:15 mdes esmith::event[13672]: #033[60G[#033[0;32m  OK  #033[0;39m]#015
Mar  6 10:08:15 mdes php-fpm[4262]: [NOTICE] reloading: execvp("/usr/sbin/php-fpm", {"/usr/sbin/php-fpm", "--daemonize"})
Mar  6 10:08:15 mdes esmith::event[13672]: adjusting non-supervised php56-php-fpm (reload)
Mar  6 10:08:15 mdes php-fpm[13778]: [NOTICE] using inherited socket fd=7, "/var/run/php-fpm/php.sock"
Mar  6 10:08:15 mdes php-fpm[13778]: [NOTICE] fpm is running, pid 13778
Mar  6 10:08:15 mdes php-fpm[13778]: [NOTICE] ready to handle connections
Mar  6 10:08:15 mdes php56-fpm[13777]: [NOTICE] configuration file /opt/remi/php56/root/etc/php-fpm.conf test is successful
Mar  6 10:08:15 mdes esmith::event[13672]: Reloading php-fpm: [NOTICE] configuration file /opt/remi/php56/root/etc/php-fpm.conf test is successful
Mar  6 10:08:15 mdes esmith::event[13672]: 
Mar  6 10:08:15 mdes php56-fpm[4267]: [NOTICE] Reloading in progress ...
Mar  6 10:08:15 mdes php56-fpm[4267]: [NOTICE] reloading: execvp("/opt/remi/php56/root/usr/sbin/php-fpm", {"/opt/remi/php56/root/usr/sbin/php-fpm", "--daemonize"})
Mar  6 10:08:15 mdes esmith::event[13672]: #033[60G[#033[0;32m  OK  #033[0;39m]#015
Mar  6 10:08:15 mdes esmith::event[13672]: adjusting supervised httpd-e-smith (sigusr1)
Mar  6 10:08:15 mdes esmith::event[13672]: adjusting supervised httpd-e-smith (up)
Mar  6 10:08:15 mdes esmith::event[13672]: adjust-services=action|Event|webapps-update|Action|adjust-services|Start|1520323695 168597|End|1520323695 705668|Elapsed|0.537071
Mar  6 10:08:15 mdes php56-fpm[13783]: [NOTICE] using inherited socket fd=8, "/var/run/php-fpm/php56.sock"
Mar  6 10:08:15 mdes php56-fpm[13783]: [NOTICE] fpm is running, pid 13783
Mar  6 10:08:15 mdes php56-fpm[13783]: [NOTICE] ready to handle connections
Title: Re: Pydio and Windows Share
Post by: Daniel B. on March 06, 2018, 09:15:16 AM
What about the other checks ? Do you have the template I mentionned ? And do you have a php56-pydio section in /etc/opt/remi/php56/php-fpm.d/www.conf (or /opt/remi/php56/root/etc/php-fpm.d/www.conf which should be the same file)