Register for the iXsystems Community to get an ad-free experience and exclusive discounts in our eBay Store.

Pydio using NGINX, PHP-FPM, and MySQL

Status
Not open for further replies.

Joshua Parker Ruehlig

Wizened Sage
Joined
Dec 5, 2011
Messages
5,949
doesn't fix the situation :(
can perfectly uninstall/install it, but on restarting the jail, nginx is down again with the same error.
that is so strange to me. can you try this.
1) install a new jail
2) pkg upgrade
3) pkg install nginx
4) restart the jail
5) service nginx onestart
 

Scareh

Member
Joined
Jul 31, 2012
Messages
182
root@pydio2:/ # service nginx onestart
Performing sanity check on nginx configuration:
nginx: the configuration file /usr/local/etc/nginx/nginx.conf syntax is ok
nginx: configuration file /usr/local/etc/nginx/nginx.conf test is successful
Starting nginx.
root@pydio2:/ # service nginx status
Cannot 'status' nginx. Set nginx_enable to YES in /etc/rc.conf or use 'onestatus' instead of 'status'.
root@pydio2:/ #
 

Joshua Parker Ruehlig

Wizened Sage
Joined
Dec 5, 2011
Messages
5,949
root@pydio2:/ # service nginx onestart
Performing sanity check on nginx configuration:
nginx: the configuration file /usr/local/etc/nginx/nginx.conf syntax is ok
nginx: configuration file /usr/local/etc/nginx/nginx.conf test is successful
Starting nginx.
root@pydio2:/ # service nginx status
Cannot 'status' nginx. Set nginx_enable to YES in /etc/rc.conf or use 'onestatus' instead of 'status'.
root@pydio2:/ #
so that jail seems fine. not sure why adding mysql/php/pydio would break it.
 

Scareh

Member
Joined
Jul 31, 2012
Messages
182
well its not the "normal" way i do it:

root@pydio2:/ # sysrc nginx_enable="YES"
nginx_enable: -> YES
root@pydio2:/ #
root@pydio2:/ # service status nginx
status does not exist in /etc/rc.d or the local startup
directories (/usr/local/etc/rc.d)
root@pydio2:/ # service nginx start
nginx already running? (pid=94527).
root@pydio2:/ # service nginx restart
Performing sanity check on nginx configuration:
nginx: the configuration file /usr/local/etc/nginx/nginx.conf syntax is ok
nginx: configuration file /usr/local/etc/nginx/nginx.conf test is successful
Stopping nginx.
Waiting for PIDS: 94527.
Performing sanity check on nginx configuration:
nginx: the configuration file /usr/local/etc/nginx/nginx.conf syntax is ok
nginx: configuration file /usr/local/etc/nginx/nginx.conf test is successful
Starting nginx.
root@pydio2:/ # service nginx status
nginx is running as pid 94924.


after I rebooted jail:
root@pydio2:/ # service nginx status
nginx is running as pid 96732.


result is the same though, the nginx stays operational after i reboot the jail :/
 

Joshua Parker Ruehlig

Wizened Sage
Joined
Dec 5, 2011
Messages
5,949
well its not the "normal" way i do it:

root@pydio2:/ # sysrc nginx_enable="YES"
nginx_enable: -> YES
root@pydio2:/ #
root@pydio2:/ # service status nginx
status does not exist in /etc/rc.d or the local startup
directories (/usr/local/etc/rc.d)
root@pydio2:/ # service nginx start
nginx already running? (pid=94527).
root@pydio2:/ # service nginx restart
Performing sanity check on nginx configuration:
nginx: the configuration file /usr/local/etc/nginx/nginx.conf syntax is ok
nginx: configuration file /usr/local/etc/nginx/nginx.conf test is successful
Stopping nginx.
Waiting for PIDS: 94527.
Performing sanity check on nginx configuration:
nginx: the configuration file /usr/local/etc/nginx/nginx.conf syntax is ok
nginx: configuration file /usr/local/etc/nginx/nginx.conf test is successful
Starting nginx.
root@pydio2:/ # service nginx status
nginx is running as pid 94924.


after I rebooted jail:
root@pydio2:/ # service nginx status
nginx is running as pid 96732.


result is the same though, the nginx stays operational after i reboot the jail :/
why don't you just setup pydio in the second, working jail then. sounds like the first one is haunted, lol.
 

Scareh

Member
Joined
Jul 31, 2012
Messages
182
*is confused now*

I installed it like you told me to, in a 2nd jail, reboot that jail after i successfully log in to pydio and, it works.... So the problem isn't there anymore
 

Joshua Parker Ruehlig

Wizened Sage
Joined
Dec 5, 2011
Messages
5,949
*is confused now*

I installed it like you told me to, in a 2nd jail, reboot that jail after i successfully log in to pydio and, it works.... So the problem isn't there anymore
glad it's working. as for the 1st jail issues, I'd blame Canada, lol.
 

Tyler_2015

Newbie
Joined
Oct 4, 2015
Messages
1
I was finally able to get the system almost completely all up and running after playing around with various guides on this platform... The info is al little outdated.
I have it installed on FreeNas 9.3.1 and no errors finally... Only issue I am having is that the desktop sync will not connect to the server, it keeps saying ;
  • Server not found (404), is it up and has it Pydio installed ?
Clearly the server is installed as it is running on the web interface... Anyone have any idea what I would be missing out on here?
All I have done so far is setup all of the steps in the above guide plus some additional ones from another guide as the server had errors in the initial run check, slowly but surely I was able to get rid of all the errors.

Still cannot see why I cannot get the desktop sync to work I'm sure it's something too easy!
 

Joshua Parker Ruehlig

Wizened Sage
Joined
Dec 5, 2011
Messages
5,949
I was finally able to get the system almost completely all up and running after playing around with various guides on this platform... The info is al little outdated.
I have it installed on FreeNas 9.3.1 and no errors finally... Only issue I am having is that the desktop sync will not connect to the server, it keeps saying ;
  • Server not found (404), is it up and has it Pydio installed ?
Clearly the server is installed as it is running on the web interface... Anyone have any idea what I would be missing out on here?
All I have done so far is setup all of the steps in the above guide plus some additional ones from another guide as the server had errors in the initial run check, slowly but surely I was able to get rid of all the errors.

Still cannot see why I cannot get the desktop sync to work I'm sure it's something too easy!
What's out of date?
 

Delivereath

Member
Joined
Mar 5, 2014
Messages
36
Hi,

Installed pydio on a jail following your guide, but when reaching the point where I have to open the pydio web page, I get the following error popup on my web browser : "error loading pydio.min.js?v=##VERSION_NUMBER##:Pydio is not defined"

I guess I should receive 6.0.8 instead of "VERSION_NUMBER" in the error message.

Any idea ?
 

Joshua Parker Ruehlig

Wizened Sage
Joined
Dec 5, 2011
Messages
5,949
Hi,

Installed pydio on a jail following your guide, but when reaching the point where I have to open the pydio web page, I get the following error popup on my web browser : "error loading pydio.min.js?v=##VERSION_NUMBER##:pydio is not defined"

I guess I should receive 6.0.8 instead of "VERSION_NUMBER" in the error message.

Any idea ?
strange, this is when you browse to /pydio? you might want to ask on the pydio forum as well, but I have a feeling you might just have done a step wrong as it had worked for others before.
 

mrhanman

Neophyte
Joined
Jul 23, 2015
Messages
6
strange, this is when you browse to /pydio? you might want to ask on the pydio forum as well, but I have a feeling you might just have done a step wrong as it had worked for others before.
I'm getting the same error. The only deviation I made from your instructions was to use version 6.2.0. I searched on the pydio forums, but saw no reference to the issue.
 

Joshua Parker Ruehlig

Wizened Sage
Joined
Dec 5, 2011
Messages
5,949
I'm getting the same error. The only deviation I made from your instructions was to use version 6.2.0. I searched on the pydio forums, but saw no reference to the issue.
as pydio 6.2.0 is so new you should actually post something in their forum. you might be the first person hitting this issue.I haven't updated my pydio install yet but will look into the changelog before I do.
 

mrhanman

Neophyte
Joined
Jul 23, 2015
Messages
6
as pydio 6.2.0 is so new you should actually post something in their forum. you might be the first person hitting this issue.I haven't updated my pydio install yet but will look into the changelog before I do.
I went ahead and started over with 6.0.8, and I still got the error when first passing the system test, but after reloading the page it went on through normally. I haven't tested everything yet, but it seems to be working so far.
 

Delivereath

Member
Joined
Mar 5, 2014
Messages
36
I asked on the pydio forum and here is the reply I got :
"
This guide will not be working as is when deploying from source (here getting tar.gz directly from github).
Instead of grabbing the source and moving into core/src/ , get the prepared package from the main COMMUNITY page here (link to sourceforge).
In 6.2.0, we added a js grunt compilation step that must be run on the source."

After replacing the source with the package from sourceforge, it worked.
 

Joshua Parker Ruehlig

Wizened Sage
Joined
Dec 5, 2011
Messages
5,949
I asked on the pydio forum and here is the reply I got :
"
This guide will not be working as is when deploying from source (here getting tar.gz directly from github).
Instead of grabbing the source and moving into core/src/ , get the prepared package from the main COMMUNITY page here (link to sourceforge).
In 6.2.0, we added a js grunt compilation step that must be run on the source."

After replacing the source with the package from sourceforge, it worked.
great, I'll edit the guide!
 

jayH

Neophyte
Joined
Oct 10, 2015
Messages
4
I can't seem to figure out what I'm doing wrong. I created a jail called pydio. I created a dataset /mnt/******/pydio. I assigned the storage for the jail to the dataset pointing to destination /mnt/pydio in the jail. I followed the steps and when I get here:

service nginx start && service php-fpm start && service mysql-server start

I get this error:

root@pydio:/ # service nginx start && service php-fpm start && service mysql-ser
ver start
Performing sanity check on nginx configuration:
nginx: [emerg] location "^/pydio/(?:\.|conf|data/(?:cache|files|logs|personal|pl
ugins|tmp)|plugins/editor.zoho/agent/files)" is outside location "/pydio" in /us
r/local/etc/nginx/nginx.conf:22
nginx: configuration file /usr/local/etc/nginx/nginx.conf test failed
Starting nginx.
nginx: [emerg] location "^/pydio/(?:\.|conf|data/(?:cache|files|logs|personal|pl
ugins|tmp)|plugins/editor.zoho/agent/files)" is outside location "/pydio" in /us
r/local/etc/nginx/nginx.conf:22
/usr/local/etc/rc.d/nginx: WARNING: failed to start nginx

I even deleted the jail and created another thinking I may have missed something. I got the exact same result.

Any help to see what I'm missing would be appreciated.

Jay
 

Joshua Parker Ruehlig

Wizened Sage
Joined
Dec 5, 2011
Messages
5,949
I can't seem to figure out what I'm doing wrong. I created a jail called pydio. I created a dataset /mnt/******/pydio. I assigned the storage for the jail to the dataset pointing to destination /mnt/pydio in the jail. I followed the steps and when I get here:

service nginx start && service php-fpm start && service mysql-server start

I get this error:

root@pydio:/ # service nginx start && service php-fpm start && service mysql-ser
ver start
Performing sanity check on nginx configuration:
nginx: [emerg] location "^/pydio/(?:\.|conf|data/(?:cache|files|logs|personal|pl
ugins|tmp)|plugins/editor.zoho/agent/files)" is outside location "/pydio" in /us
r/local/etc/nginx/nginx.conf:22
nginx: configuration file /usr/local/etc/nginx/nginx.conf test failed
Starting nginx.
nginx: [emerg] location "^/pydio/(?:\.|conf|data/(?:cache|files|logs|personal|pl
ugins|tmp)|plugins/editor.zoho/agent/files)" is outside location "/pydio" in /us
r/local/etc/nginx/nginx.conf:22
/usr/local/etc/rc.d/nginx: WARNING: failed to start nginx

I even deleted the jail and created another thinking I may have missed something. I got the exact same result.

Any help to see what I'm missing would be appreciated.

Jay
Redoing your jail is a waste of time, you should read the error and try fixing it.
In this case you didn't edit your nginx.conf exactly as specified so I would check there for errors.
 

Lessbones

Junior Member
Joined
Oct 17, 2016
Messages
22
Hi all--

I've been running pydio gonna freenas system for the last year, and I've been (mostly) loving it. However, I've consistently had problems with upload file sizes, and ive never been able to get the power.fs Zip creation to work-- two things that are essential for having a really useful system in my case--

I set everything up according to the guide at pydio.com, but it's getting pretty outdated, and it required a LOT of tweaking to get it to a usable state--

I recently came across this thread, and everything in this instruction set seems much simpler, plus it's using updated PHP etc. over the pydio guides--

however I'm getting caught up with 403 Forbidden errors at the end of the guide. I've followed everything to a T when I've been able, although a couple steps have not worked properly:

--linking the cert file at the end of the first step gives a "file already exists" error, which I have ignored and moved forward...

--the php-fpm.conf file, taken from the "production" version, contains no instances of "listen" as it's installed... I've tried tacking on
the lines listed at the bottom since there doesn't seem to be anything relevant to replave, but that didn't work. So next I tried grabbing the php-fpm.conf file I've been using for my partly-working system, and while I was able to now connect to the jail IP, I'm getting a 503 Bad Gateway...

I feel like I'm missing something fairly obvious here, but any help would be much appreciated... thanks

edit: running freenas 9.10 and using the newest pydio 6.5.5 source
 

Joshua Parker Ruehlig

Wizened Sage
Joined
Dec 5, 2011
Messages
5,949
linking the file is probably no longer needed with more recent versions of the freebsd jail template. so you are fine ignoring it.

there is no "production" version of php-fpm.conf
the listen line should be in there
Code:
cat /usr/local/etc/php-fpm.conf.default | grep listen


I assume the error you are hitting is because php isn't listening where nginx expects it.
 
Last edited:
Status
Not open for further replies.
Top