Thanks to you I’ve solved my problem, I didn’t see Gunicorn as an autonomous application. Now I have Nginx + gunicorn + postgreSQL + sync working all together.
Next step, the documentation ;) Btw : I didn’t work already on SSL implementation, but it’s on the todo-list. [cid:[email protected]] Robin Aleman Apprentice engineer – Software integration Customer Integration & Support EQUANT France – Sophia Antipolis +00 33 4 92 96 64 48<tel:04%2092%2096%2064%2048> [email protected]<mailto:[email protected]> From: Randall Leeds [mailto:[email protected]] Sent: Tuesday, July 08, 2014 20:50 To: ALEMAN Robin SCE/ID ITS Cc: [email protected] Subject: Re: Sync 1.1 + nginx + Gunicorn I don't know what the mozsync script is because I've just been lurking and haven't run my own environment yet. If it's written in Python it could be that you just need to run it using the python from your virtual environment. Given that you pass the paster on the command line, though, I'm surprised, as it seems like that would get executed as a new process. Again, I'd have to look at the mozsync script. Aside: you should use bin/gunicorn --paste <.ini file> instead of paster as Gunicorn will handle SIGHUP reloads for hot code upgrades better that way. On Tue, Jul 8, 2014 at 9:57 AM, <[email protected]<mailto:[email protected]>> wrote: Hi sync-dev, I’m stuck by an issue with Nginx + gunicorn for sync 1.1 : When I start Sync server with the command : # Su mozsync –c ‘/home/mozsync/server-full/bin/paster serve /home/mozsync/server-full/production.ini’ I have the error : File “/home/mozsync/server-full/local/python2.7/site-packages/pkg_resources.py”, line 639, in resolve Raise DistributionNotFound(req) Pkg_resources.DistributionNotFound: gunicorn As it’s said in the documentation : My production.ini (development.ini in official documentation) file is : [server:main] use = egg:gunicorn host = 127.0.0.1 port = 5000 workers = 2 timeout = 60 I’ve installed gunicorn : Cd /home/mozsync/server-full bin/easy_install gunicorn I had the same error as described here : https://github.com/benoitc/gunicorn/issues/788 As I’m not a python specialist, my understanding of the issue is limited. Does someone have a suggestion how to solve or at least try to understand why the gunicorn is not found ? [cid:[email protected]] Robin Aleman Apprentice engineer – Software integration Customer Integration & Support EQUANT France – Sophia Antipolis +00 33 4 92 96 64 48<tel:04%2092%2096%2064%2048> [email protected]<mailto:[email protected]> _________________________________________________________________________________________________________________________ Ce message et ses pieces jointes peuvent contenir des informations confidentielles ou privilegiees et ne doivent donc pas etre diffuses, exploites ou copies sans autorisation. Si vous avez recu ce message par erreur, veuillez le signaler a l'expediteur et le detruire ainsi que les pieces jointes. Les messages electroniques etant susceptibles d'alteration, Orange decline toute responsabilite si ce message a ete altere, deforme ou falsifie. Merci. This message and its attachments may contain confidential or privileged information that may be protected by law; they should not be distributed, used or copied without authorisation. If you have received this email in error, please notify the sender and delete this message and its attachments. As emails may be altered, Orange is not liable for messages that have been modified, changed or falsified. Thank you. _______________________________________________ Sync-dev mailing list [email protected]<mailto:[email protected]> https://mail.mozilla.org/listinfo/sync-dev _________________________________________________________________________________________________________________________ Ce message et ses pieces jointes peuvent contenir des informations confidentielles ou privilegiees et ne doivent donc pas etre diffuses, exploites ou copies sans autorisation. Si vous avez recu ce message par erreur, veuillez le signaler a l'expediteur et le detruire ainsi que les pieces jointes. Les messages electroniques etant susceptibles d'alteration, Orange decline toute responsabilite si ce message a ete altere, deforme ou falsifie. Merci. This message and its attachments may contain confidential or privileged information that may be protected by law; they should not be distributed, used or copied without authorisation. If you have received this email in error, please notify the sender and delete this message and its attachments. As emails may be altered, Orange is not liable for messages that have been modified, changed or falsified. Thank you.
_______________________________________________ Sync-dev mailing list [email protected] https://mail.mozilla.org/listinfo/sync-dev

