Koozali.org: home of the SME Server

Pydio and Windows Share

Offline Bud

  • *
  • 487
  • +0/-0
Pydio and Windows Share
« 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

Offline Daniel B.

  • *
  • 1,700
  • +0/-0
    • Firewall Services, la sécurité des réseaux
Re: Pydio and Windows Share
« Reply #1 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
C'est la fin du monde !!! :lol:

Offline Bud

  • *
  • 487
  • +0/-0
Re: Pydio and Windows Share
« Reply #2 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


Offline Daniel B.

  • *
  • 1,700
  • +0/-0
    • Firewall Services, la sécurité des réseaux
Re: Pydio and Windows Share
« Reply #3 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)
C'est la fin du monde !!! :lol:

Offline Bud

  • *
  • 487
  • +0/-0
Re: Pydio and Windows Share
« Reply #4 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  :-)
« Last Edit: March 03, 2018, 04:44:46 PM by Bud »

Offline Daniel B.

  • *
  • 1,700
  • +0/-0
    • Firewall Services, la sécurité des réseaux
Re: Pydio and Windows Share
« Reply #5 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
C'est la fin du monde !!! :lol:

Offline Bud

  • *
  • 487
  • +0/-0
Re: Pydio and Windows Share
« Reply #6 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?

Offline ReetP

  • *
  • 3,963
  • +6/-0
Re: Pydio and Windows Share
« Reply #7 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
...
1. Read the Manual
2. Read the Wiki
3. Don't ask for support on Unsupported versions of software
4. I have a job, wife, and kids and do this in my spare time. If you want something fixed, please help.

Bugs are easier than you think: http://wiki.contribs.org/Bugzilla_Help

If you love SME and don't want to lose it, join in: http://wiki.contribs.org/Koozali_Foundation

Offline Bud

  • *
  • 487
  • +0/-0
Re: Pydio and Windows Share
« Reply #8 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?

Offline ReetP

  • *
  • 3,963
  • +6/-0
Re: Pydio and Windows Share
« Reply #9 on: March 03, 2018, 07:22:16 PM »
Start here:

https://wiki.contribs.org/Pydio

Work forwards.... :-)
...
1. Read the Manual
2. Read the Wiki
3. Don't ask for support on Unsupported versions of software
4. I have a job, wife, and kids and do this in my spare time. If you want something fixed, please help.

Bugs are easier than you think: http://wiki.contribs.org/Bugzilla_Help

If you love SME and don't want to lose it, join in: http://wiki.contribs.org/Koozali_Foundation

Offline Daniel B.

  • *
  • 1,700
  • +0/-0
    • Firewall Services, la sécurité des réseaux
Re: Pydio and Windows Share
« Reply #10 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
C'est la fin du monde !!! :lol:

Offline Bud

  • *
  • 487
  • +0/-0
Re: Pydio and Windows Share
« Reply #11 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

Offline Daniel B.

  • *
  • 1,700
  • +0/-0
    • Firewall Services, la sécurité des réseaux
Re: Pydio and Windows Share
« Reply #12 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
C'est la fin du monde !!! :lol:

Offline Bud

  • *
  • 487
  • +0/-0
Re: Pydio and Windows Share
« Reply #13 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



Offline Daniel B.

  • *
  • 1,700
  • +0/-0
    • Firewall Services, la sécurité des réseaux
Re: Pydio and Windows Share
« Reply #14 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
C'est la fin du monde !!! :lol: