Almost ready to implement erpnext

Hi, very happy to be able to start bench... from terminal...but supervisord config its been a nightmare.
Could you please assist me on this:
ro...@vps [~]# service supervisord start
Starting supervisord:
Error: Another program is already listening on a port that one of our HTTP servers is configured to use.  Shut this program down first before starting supervisord.
For help, use /usr/bin/supervisord -h
frappe:frappe-web                RUNNING   pid 3137, uptime 1:11:55
frappe:frappe-worker             RUNNING   pid 3136, uptime 1:11:55
frappe:frappe-workerbeat         RUNNING   pid 3138, uptime 1:11:55

I'm using port 8000.

I appreciate your help,
Camilo Correa



Note:

 

If you are posting an issue,

 

  1. ERPNext is a free and open source software and support is given on this forum by a team (https://frappe.io/webnotes). So please consider donating if you find this forum useful (https://frappe.io/buy). Even a small amount would be helpful.
  2. We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication.
  3. Paste your code at http://pastebin.com or http://gist.github.com and send only the URL via email
  4. For sending images, use http://imgur.com or other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.

     

    End of Note



    You received this message because you are subscribed to the Google Groups "ERPNext Developer Forum" group.

    To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer-forum+un…@googlegroups.com.

    To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/ead70909-6dd6-4e9e-a238-44dc18e19155%40googlegroups.com.

    For more options, visit https://groups.google.com/d/optout.
Hi Camilo,

I think you should find out first what process is listening on that port then unlink it

----
Sunil
Partner for ERPNext

On Monday, September 15, 2014 2:22:24 AM UTC+5:30, Camilo wrote:
Hi, very happy to be able to start bench... from terminal...but supervisord config its been a nightmare.
Could you please assist me on this:
ro...@vps [~]# service supervisord start
Starting supervisord:
Error: Another program is already listening on a port that one of our HTTP servers is configured to use.  Shut this program down first before starting supervisord.
For help, use /usr/bin/supervisord -h
frappe:frappe-web                RUNNING   pid 3137, uptime 1:11:55
frappe:frappe-worker             RUNNING   pid 3136, uptime 1:11:55
frappe:frappe-workerbeat         RUNNING   pid 3138, uptime 1:11:55

I'm using port 8000.

I appreciate your help,
Camilo Correa



Note:

 

If you are posting an issue,

 

  1. ERPNext is a free and open source software and support is given on this forum by a team (https://frappe.io/webnotes). So please consider donating if you find this forum useful (https://frappe.io/buy). Even a small amount would be helpful.
  2. We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication.
  3. Paste your code at http://pastebin.com or http://gist.github.com and send only the URL via email
  4. For sending images, use http://imgur.com or other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.

     

    End of Note



    You received this message because you are subscribed to the Google Groups "ERPNext Developer Forum" group.

    To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer-forum+un…@googlegroups.com.

    To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/4a6283f0-859d-4a38-b808-1698198ae00b%40googlegroups.com.

    For more options, visit https://groups.google.com/d/optout.

On Mon, Sep 15, 2014 at 2:22 AM, Camilo ca...@gmail.com wrote:

Hi, very happy to be able to start bench… from terminal…but supervisord
config its been a nightmare.
Could you please assist me on this:
ro…@vps [~]# service supervisord start
Starting supervisord:
Error: Another program is already listening on a port that one of our HTTP
servers is configured to use. Shut this program down first before starting
supervisord.
For help, use /usr/bin/supervisord -h
frappe:frappe-web RUNNING pid 3137, uptime 1:11:55
frappe:frappe-worker RUNNING pid 3136, uptime 1:11:55
frappe:frappe-workerbeat RUNNING pid 3138, uptime 1:11:55

I’m using port 8000.

I appreciate your help,
Camilo Correa


Note:

If you are posting an issue,

  1. ERPNext is a free and open source software and support is given on this
    forum by a team (https://frappe.io/webnotes). So please consider donating if
    you find this forum useful (https://frappe.io/buy). Even a small amount
    would be helpful.
  2. We should be able to replicate it at our end. So please give us as much
    information as you can. Please see it from the point of view of the person
    receiving the communication.
  3. Paste your code at http://pastebin.com or http://gist.github.com and send
    only the URL via email
  4. For sending images, use http://imgur.com or other similar services. Do
    not send images as attachments. Links are good. Same goes for any file you
    are going to send.

End of Note

You received this message because you are subscribed to the Google Groups
“ERPNext Developer Forum” group.
To unsubscribe from this group and stop receiving emails from it, send an
email to erpnext-developer-forum+un...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/erpnext-developer-forum/ead70909-6dd6-4e9e-a238-44dc18e19155%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Hi Camilo,

By any chance, are you trying to run bench start after setting up supervisor?

Thanks,

Pratik
erpnext

I did a lot...I think I did this also in order to check if 'bench start' was still working after setting up supervisor ... something wrong with it?
Thank you!

On Monday, September 15, 2014 7:53:27 AM UTC+2, Pratik Vyas wrote:
On Mon, Sep 15, 2014 at 2:22 AM, Camilo <ca...@gmail.com> wrote:
> Hi, very happy to be able to start bench... from terminal...but supervisord
> config its been a nightmare.
> Could you please assist me on this:
> ro...@vps [~]# service supervisord start
> Starting supervisord:
> Error: Another program is already listening on a port that one of our HTTP
> servers is configured to use.  Shut this program down first before starting
> supervisord.
> For help, use /usr/bin/supervisord -h
> frappe:frappe-web                RUNNING   pid 3137, uptime 1:11:55
> frappe:frappe-worker             RUNNING   pid 3136, uptime 1:11:55
> frappe:frappe-workerbeat         RUNNING   pid 3138, uptime 1:11:55
>
> I'm using port 8000.
>
> I appreciate your help,
> Camilo Correa
>
> --
> Note:
>
> If you are posting an issue,
>
> 1. ERPNext is a free and open source software and support is given on this
> forum by a team (https://frappe.io/webnotes). So please consider donating if
> you find this forum useful (https://frappe.io/buy). Even a small amount
> would be helpful.
> 2. We should be able to replicate it at our end. So please give us as much
> information as you can. Please see it from the point of view of the person
> receiving the communication.
> 3. Paste your code at http://pastebin.com or http://gist.github.com and send
> only the URL via email
> 4. For sending images, use http://imgur.com or other similar services. Do
> not send images as attachments. Links are good. Same goes for any file you
> are going to send.
>
> End of Note
> ---
> You received this message because you are subscribed to the Google Groups
> "ERPNext Developer Forum" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to erpnext-developer-forum+un...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/erpnext-developer-forum/ead70909-6dd6-4e9e-a238-44dc18e19155%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

Hi Camilo,

By any chance, are you trying to run `bench start` after setting up supervisor?

Thanks,
--
Pratik
erpnext



Note:

 

If you are posting an issue,

 

  1. ERPNext is a free and open source software and support is given on this forum by a team (https://frappe.io/webnotes). So please consider donating if you find this forum useful (https://frappe.io/buy). Even a small amount would be helpful.
  2. We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication.
  3. Paste your code at http://pastebin.com or http://gist.github.com and send only the URL via email
  4. For sending images, use http://imgur.com or other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.

     

    End of Note



    You received this message because you are subscribed to the Google Groups "ERPNext Developer Forum" group.

    To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer-forum+un…@googlegroups.com.

    To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/d36a5945-215e-4b39-9bc9-4189d8e0b89c%40googlegroups.com.

    For more options, visit https://groups.google.com/d/optout.
Hi Sunil,
I run 'netstat -tulpn' and see no conflicts...
Thank you!

On Monday, September 15, 2014 5:25:50 AM UTC+2, Sunil Kumar wrote:
Hi Camilo,

I think you should find out first what process is listening on that port then unlink it

----
Sunil
Partner for ERPNext

On Monday, September 15, 2014 2:22:24 AM UTC+5:30, Camilo wrote:
Hi, very happy to be able to start bench... from terminal...but supervisord config its been a nightmare.
Could you please assist me on this:
ro...@vps [~]# service supervisord start
Starting supervisord:
Error: Another program is already listening on a port that one of our HTTP servers is configured to use.  Shut this program down first before starting supervisord.
For help, use /usr/bin/supervisord -h
frappe:frappe-web                RUNNING   pid 3137, uptime 1:11:55
frappe:frappe-worker             RUNNING   pid 3136, uptime 1:11:55
frappe:frappe-workerbeat         RUNNING   pid 3138, uptime 1:11:55

I'm using port 8000.

I appreciate your help,
Camilo Correa



Note:

 

If you are posting an issue,

 

  1. ERPNext is a free and open source software and support is given on this forum by a team (https://frappe.io/webnotes). So please consider donating if you find this forum useful (https://frappe.io/buy). Even a small amount would be helpful.
  2. We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication.
  3. Paste your code at http://pastebin.com or http://gist.github.com and send only the URL via email
  4. For sending images, use http://imgur.com or other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.

     

    End of Note



    You received this message because you are subscribed to the Google Groups "ERPNext Developer Forum" group.

    To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer-forum+un…@googlegroups.com.

    To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/7ec7819b-e0df-4854-8610-65965c427a5c%40googlegroups.com.

    For more options, visit https://groups.google.com/d/optout.

On Mon, Sep 15, 2014 at 12:40 PM, Camilo ca...@gmail.com wrote:

I did a lot…I think I did this also in order to check if ‘bench start’ was
still working after setting up supervisor … something wrong with it?
Thank you!

Alright, I think it’s not clear in the documentation. Supervisor is a
replacement for bench start. So, supervisor starts the bench
processes and so that you don’t have to run bench start to bring up
the service. Also, next step for you would be setting up nginx.

Thanks,

Pratik
erpnext

Pratik, since apache is running on my server I was trying to run ngnix on 8080 or 8000. May this be the problem? Should I try to setup nginx only? I was very proud as 'bench start' was doing the job. Then, I understand the funktion of supervisord and started to setup it, but no success. I'm really not an expert but like to look inside erpnext, implement it and offer it to others.
The supervisord.conf file bench is providing is just a part to be included in supervisord.conf. Am I right? Attached my config file, just in case...please take a look, since I'm realy not sure what I was doing...
Thank you Pratik,
I appreciate your support a lot!
Camilo





On Monday, September 15, 2014 9:44:03 AM UTC+2, Pratik Vyas wrote:
On Mon, Sep 15, 2014 at 12:40 PM, Camilo <ca...@gmail.com> wrote:
> I did a lot...I think I did this also in order to check if 'bench start' was
> still working after setting up supervisor ... something wrong with it?
> Thank you!
>

Alright, I think it's not clear in the documentation. Supervisor is a
replacement for `bench start`. So, supervisor starts the bench
processes and so that you don't have to run `bench start` to bring up
the service. Also, next step for you would be setting up nginx.

Thanks,
--
Pratik
erpnext



Note:

 

If you are posting an issue,

 

  1. ERPNext is a free and open source software and support is given on this forum by a team (https://frappe.io/webnotes). So please consider donating if you find this forum useful (https://frappe.io/buy). Even a small amount would be helpful.
  2. We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication.
  3. Paste your code at http://pastebin.com or http://gist.github.com and send only the URL via email
  4. For sending images, use http://imgur.com or other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.

     

    End of Note



    You received this message because you are subscribed to the Google Groups "ERPNext Developer Forum" group.

    To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer-forum+un…@googlegroups.com.

    To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/f868c0eb-886c-4daa-8ad8-31892d1a75f0%40googlegroups.com.

    For more options, visit https://groups.google.com/d/optout.

On Mon, Sep 15, 2014 at 2:52 PM, Camilo ca...@gmail.com wrote:

Pratik, since apache is running on my server I was trying to run ngnix on
8080 or 8000. May this be the problem? Should I try to setup nginx only? I
was very proud as ‘bench start’ was doing the job. Then, I understand the
funktion of supervisord and started to setup it, but no success. I’m really
not an expert but like to look inside erpnext, implement it and offer it to
others.
The supervisord.conf file bench is providing is just a part to be included
in supervisord.conf. Am I right? Attached my config file, just in
case…please take a look, since I’m realy not sure what I was doing…
Thank you Pratik,
I appreciate your support a lot!
Camilo

Hi Camilo,

The bench can generate a config that you want.

bench config serve_default_site off
bench config dns_multitenant off
bench set-nginx-port {your-site} 8765
bench setup nginx

This should generate an nginx that doesn’t listen on port 80. You can
regenerate supervisor config by running bench setup supervisor

You have to link the config files in the correct config dirs of
nginx/supervisor for it to take effect.

Thanks,

Pratik
ERPNext

Great Pratik, I will do it, but
I already setup Multitenant and created a second site...
Same procedure anyways?
I appreciate,
Camilo


On Monday, September 15, 2014 1:05:56 PM UTC+2, Pratik Vyas wrote:
On Mon, Sep 15, 2014 at 2:52 PM, Camilo <ca...@gmail.com> wrote:
> Pratik, since apache is running on my server I was trying to run ngnix on
> 8080 or 8000. May this be the problem? Should I try to setup nginx only? I
> was very proud as 'bench start' was doing the job. Then, I understand the
> funktion of supervisord and started to setup it, but no success. I'm really
> not an expert but like to look inside erpnext, implement it and offer it to
> others.
> The supervisord.conf file bench is providing is just a part to be included
> in supervisord.conf. Am I right? Attached my config file, just in
> case...please take a look, since I'm realy not sure what I was doing...
> Thank you Pratik,
> I appreciate your support a lot!
> Camilo
>
>

Hi Camilo,

The bench can generate a config that you want.

```
bench config serve_default_site off
bench config dns_multitenant off
bench set-nginx-port {your-site} 8765
bench setup nginx
```

This should generate an nginx that doesn't listen on port 80. You can
regenerate supervisor config by running `bench setup supervisor`

You have to link the config files in the correct config dirs of
nginx/supervisor for it to take effect.

https://github.com/frappe/bench/#production-deployment

Thanks,
--
Pratik
ERPNext



Note:

 

If you are posting an issue,

 

  1. ERPNext is a free and open source software and support is given on this forum by a team (https://frappe.io/webnotes). So please consider donating if you find this forum useful (https://frappe.io/buy). Even a small amount would be helpful.
  2. We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication.
  3. Paste your code at http://pastebin.com or http://gist.github.com and send only the URL via email
  4. For sending images, use http://imgur.com or other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.

     

    End of Note



    You received this message because you are subscribed to the Google Groups "ERPNext Developer Forum" group.

    To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer-forum+un…@googlegroups.com.

    To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/5dad8e93-3c0c-4d0c-83ae-5d5cd4012b1d%40googlegroups.com.

    For more options, visit https://groups.google.com/d/optout.

On Mon, Sep 15, 2014 at 4:55 PM, Camilo ca...@gmail.com wrote:

Great Pratik, I will do it, but
I already setup Multitenant and created a second site…
Same procedure anyways?
I appreciate,
Camilo

Yes (port based multitenant system)

Pratik,
by {your-site} you mean the first site installed as {site1.local} or my first domain?

bench set-nginx-port site1.local 8765 
bench set-nginx-port hydrocarbon-americas.com 8765 

I appreciate a lot and would love to be able to take part on the conf there on Sept. 25. Not possible jet but nextERP.conf
Sincerely,
Camilo

On Monday, September 15, 2014 1:05:56 PM UTC+2, Pratik Vyas wrote:
On Mon, Sep 15, 2014 at 2:52 PM, Camilo <ca...@gmail.com> wrote:
> Pratik, since apache is running on my server I was trying to run ngnix on
> 8080 or 8000. May this be the problem? Should I try to setup nginx only? I
> was very proud as 'bench start' was doing the job. Then, I understand the
> funktion of supervisord and started to setup it, but no success. I'm really
> not an expert but like to look inside erpnext, implement it and offer it to
> others.
> The supervisord.conf file bench is providing is just a part to be included
> in supervisord.conf. Am I right? Attached my config file, just in
> case...please take a look, since I'm realy not sure what I was doing...
> Thank you Pratik,
> I appreciate your support a lot!
> Camilo
>
>

Hi Camilo,

The bench can generate a config that you want.

```
bench config serve_default_site off
bench config dns_multitenant off
bench set-nginx-port {your-site} 8765
bench setup nginx
```

This should generate an nginx that doesn't listen on port 80. You can
regenerate supervisor config by running `bench setup supervisor`

You have to link the config files in the correct config dirs of
nginx/supervisor for it to take effect.

https://github.com/frappe/bench/#production-deployment

Thanks,
--
Pratik
ERPNext



Note:

 

If you are posting an issue,

 

  1. ERPNext is a free and open source software and support is given on this forum by a team (https://frappe.io/webnotes). So please consider donating if you find this forum useful (https://frappe.io/buy). Even a small amount would be helpful.
  2. We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication.
  3. Paste your code at http://pastebin.com or http://gist.github.com and send only the URL via email
  4. For sending images, use http://imgur.com or other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.

     

    End of Note



    You received this message because you are subscribed to the Google Groups "ERPNext Developer Forum" group.

    To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer-forum+un…@googlegroups.com.

    To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/3ab04845-4f41-4523-9b14-a8df21ef662d%40googlegroups.com.

    For more options, visit https://groups.google.com/d/optout.
Also a question about this command line:
 sudo ln -s `pwd`/config/supervisor.conf /etc/supervisor/conf.d/frappe.conf

Since the easy_install put supervisord.conf on /etc/supervisord.conf

So it would be:
sudo ln -s `pwd`/config/supervisor.conf /etc/frappe.conf (OK???)

And, may not be relevant, but your conf file name, supervisor.conf should not be supervisord.conf ??
Sorry, I'm realy confused about this addresses...
Looking other instructions I have seen the dir: /etc/supervisord/conf.d/

I appreciate,
best,
Camilo



On Monday, September 15, 2014 4:02:49 PM UTC+2, Camilo wrote:
Pratik,
by {your-site} you mean the first site installed as {site1.local} or my first domain?

bench set-nginx-port site1.local 8765 
bench set-nginx-port hydrocarbon-americas.com 8765 

I appreciate a lot and would love to be able to take part on the conf there on Sept. 25. Not possible jet but nextERP.conf
Sincerely,
Camilo

On Monday, September 15, 2014 1:05:56 PM UTC+2, Pratik Vyas wrote:
On Mon, Sep 15, 2014 at 2:52 PM, Camilo <ca...@gmail.com> wrote:
> Pratik, since apache is running on my server I was trying to run ngnix on
> 8080 or 8000. May this be the problem? Should I try to setup nginx only? I
> was very proud as 'bench start' was doing the job. Then, I understand the
> funktion of supervisord and started to setup it, but no success. I'm really
> not an expert but like to look inside erpnext, implement it and offer it to
> others.
> The supervisord.conf file bench is providing is just a part to be included
> in supervisord.conf. Am I right? Attached my config file, just in
> case...please take a look, since I'm realy not sure what I was doing...
> Thank you Pratik,
> I appreciate your support a lot!
> Camilo
>
>

Hi Camilo,

The bench can generate a config that you want.

```
bench config serve_default_site off
bench config dns_multitenant off
bench set-nginx-port {your-site} 8765
bench setup nginx
```

This should generate an nginx that doesn't listen on port 80. You can
regenerate supervisor config by running `bench setup supervisor`

You have to link the config files in the correct config dirs of
nginx/supervisor for it to take effect.

https://github.com/frappe/bench/#production-deployment

Thanks,
--
Pratik
ERPNext



Note:

 

If you are posting an issue,

 

  1. ERPNext is a free and open source software and support is given on this forum by a team (https://frappe.io/webnotes). So please consider donating if you find this forum useful (https://frappe.io/buy). Even a small amount would be helpful.
  2. We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication.
  3. Paste your code at http://pastebin.com or http://gist.github.com and send only the URL via email
  4. For sending images, use http://imgur.com or other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.

     

    End of Note



    You received this message because you are subscribed to the Google Groups "ERPNext Developer Forum" group.

    To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer-forum+un…@googlegroups.com.

    To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/6930c247-6de7-495d-969e-0797a86c39c1%40googlegroups.com.

    For more options, visit https://groups.google.com/d/optout.
NGNIX TALKING TO ME!!!!!: 

502 Bad Gateway


Allways near of supervisor to work. Thank you! 
Camilo

On Monday, September 15, 2014 5:09:06 PM UTC+2, Camilo wrote:
Also a question about this command line:
 sudo ln -s `pwd`/config/supervisor.conf /etc/supervisor/conf.d/frappe.conf

Since the easy_install put supervisord.conf on /etc/supervisord.conf

So it would be:
sudo ln -s `pwd`/config/supervisor.conf /etc/frappe.conf (OK???)

And, may not be relevant, but your conf file name, supervisor.conf should not be supervisord.conf ??
Sorry, I'm realy confused about this addresses...
Looking other instructions I have seen the dir: /etc/supervisord/conf.d/

I appreciate,
best,
Camilo



On Monday, September 15, 2014 4:02:49 PM UTC+2, Camilo wrote:
Pratik,
by {your-site} you mean the first site installed as {site1.local} or my first domain?

bench set-nginx-port site1.local 8765 
bench set-nginx-port hydrocarbon-americas.com 8765 

I appreciate a lot and would love to be able to take part on the conf there on Sept. 25. Not possible jet but nextERP.conf
Sincerely,
Camilo

On Monday, September 15, 2014 1:05:56 PM UTC+2, Pratik Vyas wrote:
On Mon, Sep 15, 2014 at 2:52 PM, Camilo <ca...@gmail.com> wrote:
> Pratik, since apache is running on my server I was trying to run ngnix on
> 8080 or 8000. May this be the problem? Should I try to setup nginx only? I
> was very proud as 'bench start' was doing the job. Then, I understand the
> funktion of supervisord and started to setup it, but no success. I'm really
> not an expert but like to look inside erpnext, implement it and offer it to
> others.
> The supervisord.conf file bench is providing is just a part to be included
> in supervisord.conf. Am I right? Attached my config file, just in
> case...please take a look, since I'm realy not sure what I was doing...
> Thank you Pratik,
> I appreciate your support a lot!
> Camilo
>
>

Hi Camilo,

The bench can generate a config that you want.

```
bench config serve_default_site off
bench config dns_multitenant off
bench set-nginx-port {your-site} 8765
bench setup nginx
```

This should generate an nginx that doesn't listen on port 80. You can
regenerate supervisor config by running `bench setup supervisor`

You have to link the config files in the correct config dirs of
nginx/supervisor for it to take effect.

https://github.com/frappe/bench/#production-deployment

Thanks,
--
Pratik
ERPNext



Note:

 

If you are posting an issue,

 

  1. ERPNext is a free and open source software and support is given on this forum by a team (https://frappe.io/webnotes). So please consider donating if you find this forum useful (https://frappe.io/buy). Even a small amount would be helpful.
  2. We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication.
  3. Paste your code at http://pastebin.com or http://gist.github.com and send only the URL via email
  4. For sending images, use http://imgur.com or other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.

     

    End of Note



    You received this message because you are subscribed to the Google Groups "ERPNext Developer Forum" group.

    To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer-forum+un…@googlegroups.com.

    To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/0f61a3fa-4fd0-4213-9dae-612e2c72b842%40googlegroups.com.

    For more options, visit https://groups.google.com/d/optout.

Are processes running?
supervisorctl status
Log?
tail -n50 frappe-bench/logs/web.error.log

On Mon, Sep 15, 2014 at 11:14 PM, Camilo ca...@gmail.com wrote:

NGNIX TALKING TO ME!!!:

502 Bad Gateway

Allways near of supervisor to work. Thank you!
Camilo

On Monday, September 15, 2014 5:09:06 PM UTC+2, Camilo wrote:

Also a question about this command line:
sudo ln -s pwd/config/supervisor.conf
/etc/supervisor/conf.d/frappe.conf

Since the easy_install put supervisord.conf on /etc/supervisord.conf

So it would be:
sudo ln -s pwd/config/supervisor.conf /etc/frappe.conf (OK???)

And, may not be relevant, but your conf file name, supervisor.conf should
not be supervisord.conf ??
Sorry, I’m realy confused about this addresses…
Looking other instructions I have seen the dir: /etc/supervisord/conf.d/

I appreciate,
best,
Camilo

On Monday, September 15, 2014 4:02:49 PM UTC+2, Camilo wrote:

Pratik,
by {your-site} you mean the first site installed as {site1.local} or my
first domain?

bench set-nginx-port site1.local 8765
bench set-nginx-port hydrocarbon-americas.com 8765

I appreciate a lot and would love to be able to take part on the conf
there on Sept. 25. Not possible jet but nextERP.conf
Sincerely,
Camilo

On Monday, September 15, 2014 1:05:56 PM UTC+2, Pratik Vyas wrote:

On Mon, Sep 15, 2014 at 2:52 PM, Camilo ca...@gmail.com wrote:

Pratik, since apache is running on my server I was trying to run ngnix
on
8080 or 8000. May this be the problem? Should I try to setup nginx
only? I
was very proud as ‘bench start’ was doing the job. Then, I understand
the
funktion of supervisord and started to setup it, but no success. I’m
really
not an expert but like to look inside erpnext, implement it and offer
it to
others.
The supervisord.conf file bench is providing is just a part to be
included
in supervisord.conf. Am I right? Attached my config file, just in
case…please take a look, since I’m realy not sure what I was
doing…
Thank you Pratik,
I appreciate your support a lot!
Camilo

Hi Camilo,

The bench can generate a config that you want.

bench config serve_default_site off
bench config dns_multitenant off
bench set-nginx-port {your-site} 8765
bench setup nginx

This should generate an nginx that doesn’t listen on port 80. You can
regenerate supervisor config by running bench setup supervisor

You have to link the config files in the correct config dirs of
nginx/supervisor for it to take effect.

GitHub - frappe/bench: CLI to manage Multi-tenant deployments for Frappe apps

Thanks,

Pratik
ERPNext


Note:

If you are posting an issue,

  1. ERPNext is a free and open source software and support is given on this
    forum by a team (https://frappe.io/webnotes). So please consider donating if
    you find this forum useful (https://frappe.io/buy). Even a small amount
    would be helpful.
  2. We should be able to replicate it at our end. So please give us as much
    information as you can. Please see it from the point of view of the person
    receiving the communication.
  3. Paste your code at http://pastebin.com or http://gist.github.com and send
    only the URL via email
  4. For sending images, use http://imgur.com or other similar services. Do
    not send images as attachments. Links are good. Same goes for any file you
    are going to send.

End of Note

You received this message because you are subscribed to the Google Groups
“ERPNext Developer Forum” group.
To unsubscribe from this group and stop receiving emails from it, send an
email to erpnext-developer-forum+un...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/erpnext-developer-forum/0f61a3fa-4fd0-4213-9dae-612e2c72b842%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.


Pratik
erpnext


frappe:frappe-web                RUNNING   pid 5915, uptime 0:01:54
frappe:frappe-worker             RUNNING   pid 5914, uptime 0:01:54
frappe:frappe-workerbeat         RUNNING   pid 5916, uptime 0:01:54

Thanks!

On Monday, September 15, 2014 8:07:58 PM UTC+2, Pratik Vyas wrote:
Are processes running?
`supervisorctl status`
Log?
tail -n50 frappe-bench/logs/web.error.log

On Mon, Sep 15, 2014 at 11:14 PM, Camilo <ca...@gmail.com> wrote:
> NGNIX TALKING TO ME!!!!!:
>
> 502 Bad Gateway
>
>
> Allways near of supervisor to work. Thank you!
> Camilo
>
> On Monday, September 15, 2014 5:09:06 PM UTC+2, Camilo wrote:
>>
>> Also a question about this command line:
>>  sudo ln -s `pwd`/config/supervisor.conf
>> /etc/supervisor/conf.d/frappe.conf
>>
>> Since the easy_install put supervisord.conf on /etc/supervisord.conf
>>
>> So it would be:
>> sudo ln -s `pwd`/config/supervisor.conf /etc/frappe.conf (OK???)
>>
>> And, may not be relevant, but your conf file name, supervisor.conf should
>> not be supervisord.conf ??
>> Sorry, I'm realy confused about this addresses...
>> Looking other instructions I have seen the dir: /etc/supervisord/conf.d/
>>
>> I appreciate,
>> best,
>> Camilo
>>
>>
>>
>> On Monday, September 15, 2014 4:02:49 PM UTC+2, Camilo wrote:
>>>
>>> Pratik,
>>> by {your-site} you mean the first site installed as {site1.local} or my
>>> first domain?
>>>
>>> bench set-nginx-port site1.local 8765
>>> bench set-nginx-port hydrocarbon-americas.com 8765
>>>
>>> I appreciate a lot and would love to be able to take part on the conf
>>> there on Sept. 25. Not possible jet but nextERP.conf
>>> Sincerely,
>>> Camilo
>>>
>>> On Monday, September 15, 2014 1:05:56 PM UTC+2, Pratik Vyas wrote:
>>>>
>>>> On Mon, Sep 15, 2014 at 2:52 PM, Camilo <ca...@gmail.com> wrote:
>>>> > Pratik, since apache is running on my server I was trying to run ngnix
>>>> > on
>>>> > 8080 or 8000. May this be the problem? Should I try to setup nginx
>>>> > only? I
>>>> > was very proud as 'bench start' was doing the job. Then, I understand
>>>> > the
>>>> > funktion of supervisord and started to setup it, but no success. I'm
>>>> > really
>>>> > not an expert but like to look inside erpnext, implement it and offer
>>>> > it to
>>>> > others.
>>>> > The supervisord.conf file bench is providing is just a part to be
>>>> > included
>>>> > in supervisord.conf. Am I right? Attached my config file, just in
>>>> > case...please take a look, since I'm realy not sure what I was
>>>> > doing...
>>>> > Thank you Pratik,
>>>> > I appreciate your support a lot!
>>>> > Camilo
>>>> >
>>>> >
>>>>
>>>> Hi Camilo,
>>>>
>>>> The bench can generate a config that you want.
>>>>
>>>> ```
>>>> bench config serve_default_site off
>>>> bench config dns_multitenant off
>>>> bench set-nginx-port {your-site} 8765
>>>> bench setup nginx
>>>> ```
>>>>
>>>> This should generate an nginx that doesn't listen on port 80. You can
>>>> regenerate supervisor config by running `bench setup supervisor`
>>>>
>>>> You have to link the config files in the correct config dirs of
>>>> nginx/supervisor for it to take effect.
>>>>
>>>> https://github.com/frappe/bench/#production-deployment
>>>>
>>>> Thanks,
>>>> --
>>>> Pratik
>>>> ERPNext
>
> --
> Note:
>
> If you are posting an issue,
>
> 1. ERPNext is a free and open source software and support is given on this
> forum by a team (https://frappe.io/webnotes). So please consider donating if
> you find this forum useful (https://frappe.io/buy). Even a small amount
> would be helpful.
> 2. We should be able to replicate it at our end. So please give us as much
> information as you can. Please see it from the point of view of the person
> receiving the communication.
> 3. Paste your code at http://pastebin.com or http://gist.github.com and send
> only the URL via email
> 4. For sending images, use http://imgur.com or other similar services. Do
> not send images as attachments. Links are good. Same goes for any file you
> are going to send.
>
> End of Note
> ---
> You received this message because you are subscribed to the Google Groups
> "ERPNext Developer Forum" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to erpnext-developer-forum+un...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/erpnext-developer-forum/0f61a3fa-4fd0-4213-9dae-612e2c72b842%40googlegroups.com.
>
> For more options, visit https://groups.google.com/d/optout.



--
Pratik
erpnext



Note:

 

If you are posting an issue,

 

  1. ERPNext is a free and open source software and support is given on this forum by a team (https://frappe.io/webnotes). So please consider donating if you find this forum useful (https://frappe.io/buy). Even a small amount would be helpful.
  2. We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication.
  3. Paste your code at http://pastebin.com or http://gist.github.com and send only the URL via email
  4. For sending images, use http://imgur.com or other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.

     

    End of Note



    You received this message because you are subscribed to the Google Groups "ERPNext Developer Forum" group.

    To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer-forum+un…@googlegroups.com.

    To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/e7dd6828-0f7e-4cb0-bdb7-be7e3fdca649%40googlegroups.com.

    For more options, visit https://groups.google.com/d/optout.
Exception KeyError: KeyError(47283097993728,) in <module 'threading' from '/usr/local/lib/python2.7/threading.pyc'> ignored

No idea...something I can do?
Appreciate,
Camilo

On Monday, September 15, 2014 8:07:58 PM UTC+2, Pratik Vyas wrote:
Are processes running?
`supervisorctl status`
Log?
tail -n50 frappe-bench/logs/web.error.log

On Mon, Sep 15, 2014 at 11:14 PM, Camilo <ca...@gmail.com> wrote:
> NGNIX TALKING TO ME!!!!!:
>
> 502 Bad Gateway
>
>
> Allways near of supervisor to work. Thank you!
> Camilo
>
> On Monday, September 15, 2014 5:09:06 PM UTC+2, Camilo wrote:
>>
>> Also a question about this command line:
>>  sudo ln -s `pwd`/config/supervisor.conf
>> /etc/supervisor/conf.d/frappe.conf
>>
>> Since the easy_install put supervisord.conf on /etc/supervisord.conf
>>
>> So it would be:
>> sudo ln -s `pwd`/config/supervisor.conf /etc/frappe.conf (OK???)
>>
>> And, may not be relevant, but your conf file name, supervisor.conf should
>> not be supervisord.conf ??
>> Sorry, I'm realy confused about this addresses...
>> Looking other instructions I have seen the dir: /etc/supervisord/conf.d/
>>
>> I appreciate,
>> best,
>> Camilo
>>
>>
>>
>> On Monday, September 15, 2014 4:02:49 PM UTC+2, Camilo wrote:
>>>
>>> Pratik,
>>> by {your-site} you mean the first site installed as {site1.local} or my
>>> first domain?
>>>
>>> bench set-nginx-port site1.local 8765
>>> bench set-nginx-port hydrocarbon-americas.com 8765
>>>
>>> I appreciate a lot and would love to be able to take part on the conf
>>> there on Sept. 25. Not possible jet but nextERP.conf
>>> Sincerely,
>>> Camilo
>>>
>>> On Monday, September 15, 2014 1:05:56 PM UTC+2, Pratik Vyas wrote:
>>>>
>>>> On Mon, Sep 15, 2014 at 2:52 PM, Camilo <ca...@gmail.com> wrote:
>>>> > Pratik, since apache is running on my server I was trying to run ngnix
>>>> > on
>>>> > 8080 or 8000. May this be the problem? Should I try to setup nginx
>>>> > only? I
>>>> > was very proud as 'bench start' was doing the job. Then, I understand
>>>> > the
>>>> > funktion of supervisord and started to setup it, but no success. I'm
>>>> > really
>>>> > not an expert but like to look inside erpnext, implement it and offer
>>>> > it to
>>>> > others.
>>>> > The supervisord.conf file bench is providing is just a part to be
>>>> > included
>>>> > in supervisord.conf. Am I right? Attached my config file, just in
>>>> > case...please take a look, since I'm realy not sure what I was
>>>> > doing...
>>>> > Thank you Pratik,
>>>> > I appreciate your support a lot!
>>>> > Camilo
>>>> >
>>>> >
>>>>
>>>> Hi Camilo,
>>>>
>>>> The bench can generate a config that you want.
>>>>
>>>> ```
>>>> bench config serve_default_site off
>>>> bench config dns_multitenant off
>>>> bench set-nginx-port {your-site} 8765
>>>> bench setup nginx
>>>> ```
>>>>
>>>> This should generate an nginx that doesn't listen on port 80. You can
>>>> regenerate supervisor config by running `bench setup supervisor`
>>>>
>>>> You have to link the config files in the correct config dirs of
>>>> nginx/supervisor for it to take effect.
>>>>
>>>> https://github.com/frappe/bench/#production-deployment
>>>>
>>>> Thanks,
>>>> --
>>>> Pratik
>>>> ERPNext
>
> --
> Note:
>
> If you are posting an issue,
>
> 1. ERPNext is a free and open source software and support is given on this
> forum by a team (https://frappe.io/webnotes). So please consider donating if
> you find this forum useful (https://frappe.io/buy). Even a small amount
> would be helpful.
> 2. We should be able to replicate it at our end. So please give us as much
> information as you can. Please see it from the point of view of the person
> receiving the communication.
> 3. Paste your code at http://pastebin.com or http://gist.github.com and send
> only the URL via email
> 4. For sending images, use http://imgur.com or other similar services. Do
> not send images as attachments. Links are good. Same goes for any file you
> are going to send.
>
> End of Note
> ---
> You received this message because you are subscribed to the Google Groups
> "ERPNext Developer Forum" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to erpnext-developer-forum+un...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/erpnext-developer-forum/0f61a3fa-4fd0-4213-9dae-612e2c72b842%40googlegroups.com.
>
> For more options, visit https://groups.google.com/d/optout.



--
Pratik
erpnext



Note:

 

If you are posting an issue,

 

  1. ERPNext is a free and open source software and support is given on this forum by a team (https://frappe.io/webnotes). So please consider donating if you find this forum useful (https://frappe.io/buy). Even a small amount would be helpful.
  2. We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication.
  3. Paste your code at http://pastebin.com or http://gist.github.com and send only the URL via email
  4. For sending images, use http://imgur.com or other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.

     

    End of Note



    You received this message because you are subscribed to the Google Groups "ERPNext Developer Forum" group.

    To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer-forum+un…@googlegroups.com.

    To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/84e6a320-286c-45d3-a826-0c482183b19f%40googlegroups.com.

    For more options, visit https://groups.google.com/d/optout.
Two of them:

Exception KeyError: KeyError(46928062566912,) in <module 'threading' from '/usr/local/lib/python2.7/threading.pyc'> ignored
Exception KeyError: KeyError(47283097993728,) in <module 'threading' from '/usr/local/lib/python2.7/threading.pyc'> ignored

On Monday, September 15, 2014 8:07:58 PM UTC+2, Pratik Vyas wrote:
Are processes running?
`supervisorctl status`
Log?
tail -n50 frappe-bench/logs/web.error.log

On Mon, Sep 15, 2014 at 11:14 PM, Camilo <ca...@gmail.com> wrote:
> NGNIX TALKING TO ME!!!!!:
>
> 502 Bad Gateway
>
>
> Allways near of supervisor to work. Thank you!
> Camilo
>
> On Monday, September 15, 2014 5:09:06 PM UTC+2, Camilo wrote:
>>
>> Also a question about this command line:
>>  sudo ln -s `pwd`/config/supervisor.conf
>> /etc/supervisor/conf.d/frappe.conf
>>
>> Since the easy_install put supervisord.conf on /etc/supervisord.conf
>>
>> So it would be:
>> sudo ln -s `pwd`/config/supervisor.conf /etc/frappe.conf (OK???)
>>
>> And, may not be relevant, but your conf file name, supervisor.conf should
>> not be supervisord.conf ??
>> Sorry, I'm realy confused about this addresses...
>> Looking other instructions I have seen the dir: /etc/supervisord/conf.d/
>>
>> I appreciate,
>> best,
>> Camilo
>>
>>
>>
>> On Monday, September 15, 2014 4:02:49 PM UTC+2, Camilo wrote:
>>>
>>> Pratik,
>>> by {your-site} you mean the first site installed as {site1.local} or my
>>> first domain?
>>>
>>> bench set-nginx-port site1.local 8765
>>> bench set-nginx-port hydrocarbon-americas.com 8765
>>>
>>> I appreciate a lot and would love to be able to take part on the conf
>>> there on Sept. 25. Not possible jet but nextERP.conf
>>> Sincerely,
>>> Camilo
>>>
>>> On Monday, September 15, 2014 1:05:56 PM UTC+2, Pratik Vyas wrote:
>>>>
>>>> On Mon, Sep 15, 2014 at 2:52 PM, Camilo <ca...@gmail.com> wrote:
>>>> > Pratik, since apache is running on my server I was trying to run ngnix
>>>> > on
>>>> > 8080 or 8000. May this be the problem? Should I try to setup nginx
>>>> > only? I
>>>> > was very proud as 'bench start' was doing the job. Then, I understand
>>>> > the
>>>> > funktion of supervisord and started to setup it, but no success. I'm
>>>> > really
>>>> > not an expert but like to look inside erpnext, implement it and offer
>>>> > it to
>>>> > others.
>>>> > The supervisord.conf file bench is providing is just a part to be
>>>> > included
>>>> > in supervisord.conf. Am I right? Attached my config file, just in
>>>> > case...please take a look, since I'm realy not sure what I was
>>>> > doing...
>>>> > Thank you Pratik,
>>>> > I appreciate your support a lot!
>>>> > Camilo
>>>> >
>>>> >
>>>>
>>>> Hi Camilo,
>>>>
>>>> The bench can generate a config that you want.
>>>>
>>>> ```
>>>> bench config serve_default_site off
>>>> bench config dns_multitenant off
>>>> bench set-nginx-port {your-site} 8765
>>>> bench setup nginx
>>>> ```
>>>>
>>>> This should generate an nginx that doesn't listen on port 80. You can
>>>> regenerate supervisor config by running `bench setup supervisor`
>>>>
>>>> You have to link the config files in the correct config dirs of
>>>> nginx/supervisor for it to take effect.
>>>>
>>>> https://github.com/frappe/bench/#production-deployment
>>>>
>>>> Thanks,
>>>> --
>>>> Pratik
>>>> ERPNext
>
> --
> Note:
>
> If you are posting an issue,
>
> 1. ERPNext is a free and open source software and support is given on this
> forum by a team (https://frappe.io/webnotes). So please consider donating if
> you find this forum useful (https://frappe.io/buy). Even a small amount
> would be helpful.
> 2. We should be able to replicate it at our end. So please give us as much
> information as you can. Please see it from the point of view of the person
> receiving the communication.
> 3. Paste your code at http://pastebin.com or http://gist.github.com and send
> only the URL via email
> 4. For sending images, use http://imgur.com or other similar services. Do
> not send images as attachments. Links are good. Same goes for any file you
> are going to send.
>
> End of Note
> ---
> You received this message because you are subscribed to the Google Groups
> "ERPNext Developer Forum" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to erpnext-developer-forum+un...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/erpnext-developer-forum/0f61a3fa-4fd0-4213-9dae-612e2c72b842%40googlegroups.com.
>
> For more options, visit https://groups.google.com/d/optout.



--
Pratik
erpnext



Note:

 

If you are posting an issue,

 

  1. ERPNext is a free and open source software and support is given on this forum by a team (https://frappe.io/webnotes). So please consider donating if you find this forum useful (https://frappe.io/buy). Even a small amount would be helpful.
  2. We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication.
  3. Paste your code at http://pastebin.com or http://gist.github.com and send only the URL via email
  4. For sending images, use http://imgur.com or other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.

     

    End of Note



    You received this message because you are subscribed to the Google Groups "ERPNext Developer Forum" group.

    To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer-forum+un…@googlegroups.com.

    To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/a6348178-3b1c-4283-9f72-34aa387edc41%40googlegroups.com.

    For more options, visit https://groups.google.com/d/optout.
Pratik,

I installed Python2.7 but the system shows still Python 2.6.6
I think it has something to do with it but I don't know the solution yet. Any idea?
Thank you,
Camilo

On Monday, September 15, 2014 8:07:58 PM UTC+2, Pratik Vyas wrote:
Are processes running?
`supervisorctl status`
Log?
tail -n50 frappe-bench/logs/web.error.log

On Mon, Sep 15, 2014 at 11:14 PM, Camilo <ca...@gmail.com> wrote:
> NGNIX TALKING TO ME!!!!!:
>
> 502 Bad Gateway
>
>
> Allways near of supervisor to work. Thank you!
> Camilo
>
> On Monday, September 15, 2014 5:09:06 PM UTC+2, Camilo wrote:
>>
>> Also a question about this command line:
>>  sudo ln -s `pwd`/config/supervisor.conf
>> /etc/supervisor/conf.d/frappe.conf
>>
>> Since the easy_install put supervisord.conf on /etc/supervisord.conf
>>
>> So it would be:
>> sudo ln -s `pwd`/config/supervisor.conf /etc/frappe.conf (OK???)
>>
>> And, may not be relevant, but your conf file name, supervisor.conf should
>> not be supervisord.conf ??
>> Sorry, I'm realy confused about this addresses...
>> Looking other instructions I have seen the dir: /etc/supervisord/conf.d/
>>
>> I appreciate,
>> best,
>> Camilo
>>
>>
>>
>> On Monday, September 15, 2014 4:02:49 PM UTC+2, Camilo wrote:
>>>
>>> Pratik,
>>> by {your-site} you mean the first site installed as {site1.local} or my
>>> first domain?
>>>
>>> bench set-nginx-port site1.local 8765
>>> bench set-nginx-port hydrocarbon-americas.com 8765
>>>
>>> I appreciate a lot and would love to be able to take part on the conf
>>> there on Sept. 25. Not possible jet but nextERP.conf
>>> Sincerely,
>>> Camilo
>>>
>>> On Monday, September 15, 2014 1:05:56 PM UTC+2, Pratik Vyas wrote:
>>>>
>>>> On Mon, Sep 15, 2014 at 2:52 PM, Camilo <ca...@gmail.com> wrote:
>>>> > Pratik, since apache is running on my server I was trying to run ngnix
>>>> > on
>>>> > 8080 or 8000. May this be the problem? Should I try to setup nginx
>>>> > only? I
>>>> > was very proud as 'bench start' was doing the job. Then, I understand
>>>> > the
>>>> > funktion of supervisord and started to setup it, but no success. I'm
>>>> > really
>>>> > not an expert but like to look inside erpnext, implement it and offer
>>>> > it to
>>>> > others.
>>>> > The supervisord.conf file bench is providing is just a part to be
>>>> > included
>>>> > in supervisord.conf. Am I right? Attached my config file, just in
>>>> > case...please take a look, since I'm realy not sure what I was
>>>> > doing...
>>>> > Thank you Pratik,
>>>> > I appreciate your support a lot!
>>>> > Camilo
>>>> >
>>>> >
>>>>
>>>> Hi Camilo,
>>>>
>>>> The bench can generate a config that you want.
>>>>
>>>> ```
>>>> bench config serve_default_site off
>>>> bench config dns_multitenant off
>>>> bench set-nginx-port {your-site} 8765
>>>> bench setup nginx
>>>> ```
>>>>
>>>> This should generate an nginx that doesn't listen on port 80. You can
>>>> regenerate supervisor config by running `bench setup supervisor`
>>>>
>>>> You have to link the config files in the correct config dirs of
>>>> nginx/supervisor for it to take effect.
>>>>
>>>> https://github.com/frappe/bench/#production-deployment
>>>>
>>>> Thanks,
>>>> --
>>>> Pratik
>>>> ERPNext
>
> --
> Note:
>
> If you are posting an issue,
>
> 1. ERPNext is a free and open source software and support is given on this
> forum by a team (https://frappe.io/webnotes). So please consider donating if
> you find this forum useful (https://frappe.io/buy). Even a small amount
> would be helpful.
> 2. We should be able to replicate it at our end. So please give us as much
> information as you can. Please see it from the point of view of the person
> receiving the communication.
> 3. Paste your code at http://pastebin.com or http://gist.github.com and send
> only the URL via email
> 4. For sending images, use http://imgur.com or other similar services. Do
> not send images as attachments. Links are good. Same goes for any file you
> are going to send.
>
> End of Note
> ---
> You received this message because you are subscribed to the Google Groups
> "ERPNext Developer Forum" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to erpnext-developer-forum+un...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/erpnext-developer-forum/0f61a3fa-4fd0-4213-9dae-612e2c72b842%40googlegroups.com.
>
> For more options, visit https://groups.google.com/d/optout.



--
Pratik
erpnext



Note:

 

If you are posting an issue,

 

  1. ERPNext is a free and open source software and support is given on this forum by a team (https://frappe.io/webnotes). So please consider donating if you find this forum useful (https://frappe.io/buy). Even a small amount would be helpful.
  2. We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication.
  3. Paste your code at http://pastebin.com or http://gist.github.com and send only the URL via email
  4. For sending images, use http://imgur.com or other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.

     

    End of Note



    You received this message because you are subscribed to the Google Groups "ERPNext Developer Forum" group.

    To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer-forum+un…@googlegroups.com.

    To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/b19adc23-5b5d-4cd5-a854-4fa830e031e2%40googlegroups.com.

    For more options, visit https://groups.google.com/d/optout.
Hello Camilo,

I think issue is with your server configuration. Otherwise ERPNext installation for production/development is just a 5 min job.

I would say, try once DigitalOcean, amazon, Google. I'm sure your ERPNext experience will be smooth.

----
Sunil
Partner for ERPNext 

On Tuesday, September 16, 2014 12:38:10 AM UTC+5:30, Camilo wrote:
Pratik,

I installed Python2.7 but the system shows still Python 2.6.6
I think it has something to do with it but I don't know the solution yet. Any idea?
Thank you,
Camilo

On Monday, September 15, 2014 8:07:58 PM UTC+2, Pratik Vyas wrote:
Are processes running?
`supervisorctl status`
Log?
tail -n50 frappe-bench/logs/web.error.log

On Mon, Sep 15, 2014 at 11:14 PM, Camilo <ca...@gmail.com> wrote:
> NGNIX TALKING TO ME!!!!!:
>
> 502 Bad Gateway
>
>
> Allways near of supervisor to work. Thank you!
> Camilo
>
> On Monday, September 15, 2014 5:09:06 PM UTC+2, Camilo wrote:
>>
>> Also a question about this command line:
>>  sudo ln -s `pwd`/config/supervisor.conf
>> /etc/supervisor/conf.d/frappe.conf
>>
>> Since the easy_install put supervisord.conf on /etc/supervisord.conf
>>
>> So it would be:
>> sudo ln -s `pwd`/config/supervisor.conf /etc/frappe.conf (OK???)
>>
>> And, may not be relevant, but your conf file name, supervisor.conf should
>> not be supervisord.conf ??
>> Sorry, I'm realy confused about this addresses...
>> Looking other instructions I have seen the dir: /etc/supervisord/conf.d/
>>
>> I appreciate,
>> best,
>> Camilo
>>
>>
>>
>> On Monday, September 15, 2014 4:02:49 PM UTC+2, Camilo wrote:
>>>
>>> Pratik,
>>> by {your-site} you mean the first site installed as {site1.local} or my
>>> first domain?
>>>
>>> bench set-nginx-port site1.local 8765
>>> bench set-nginx-port hydrocarbon-americas.com 8765
>>>
>>> I appreciate a lot and would love to be able to take part on the conf
>>> there on Sept. 25. Not possible jet but nextERP.conf
>>> Sincerely,
>>> Camilo
>>>
>>> On Monday, September 15, 2014 1:05:56 PM UTC+2, Pratik Vyas wrote:
>>>>
>>>> On Mon, Sep 15, 2014 at 2:52 PM, Camilo <ca...@gmail.com> wrote:
>>>> > Pratik, since apache is running on my server I was trying to run ngnix
>>>> > on
>>>> > 8080 or 8000. May this be the problem? Should I try to setup nginx
>>>> > only? I
>>>> > was very proud as 'bench start' was doing the job. Then, I understand
>>>> > the
>>>> > funktion of supervisord and started to setup it, but no success. I'm
>>>> > really
>>>> > not an expert but like to look inside erpnext, implement it and offer
>>>> > it to
>>>> > others.
>>>> > The supervisord.conf file bench is providing is just a part to be
>>>> > included
>>>> > in supervisord.conf. Am I right? Attached my config file, just in
>>>> > case...please take a look, since I'm realy not sure what I was
>>>> > doing...
>>>> > Thank you Pratik,
>>>> > I appreciate your support a lot!
>>>> > Camilo
>>>> >
>>>> >
>>>>
>>>> Hi Camilo,
>>>>
>>>> The bench can generate a config that you want.
>>>>
>>>> ```
>>>> bench config serve_default_site off
>>>> bench config dns_multitenant off
>>>> bench set-nginx-port {your-site} 8765
>>>> bench setup nginx
>>>> ```
>>>>
>>>> This should generate an nginx that doesn't listen on port 80. You can
>>>> regenerate supervisor config by running `bench setup supervisor`
>>>>
>>>> You have to link the config files in the correct config dirs of
>>>> nginx/supervisor for it to take effect.
>>>>
>>>> https://github.com/frappe/bench/#production-deployment
>>>>
>>>> Thanks,
>>>> --
>>>> Pratik
>>>> ERPNext
>
> --
> Note:
>
> If you are posting an issue,
>
> 1. ERPNext is a free and open source software and support is given on this
> forum by a team (https://frappe.io/webnotes). So please consider donating if
> you find this forum useful (https://frappe.io/buy). Even a small amount
> would be helpful.
> 2. We should be able to replicate it at our end. So please give us as much
> information as you can. Please see it from the point of view of the person
> receiving the communication.
> 3. Paste your code at http://pastebin.com or http://gist.github.com and send
> only the URL via email
> 4. For sending images, use http://imgur.com or other similar services. Do
> not send images as attachments. Links are good. Same goes for any file you
> are going to send.
>
> End of Note
> ---
> You received this message because you are subscribed to the Google Groups
> "ERPNext Developer Forum" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to erpnext-developer-forum+un...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/erpnext-developer-forum/0f61a3fa-4fd0-4213-9dae-612e2c72b842%40googlegroups.com.
>
> For more options, visit https://groups.google.com/d/optout.



--
Pratik
erpnext



Note:

 

If you are posting an issue,

 

  1. ERPNext is a free and open source software and support is given on this forum by a team (https://frappe.io/webnotes). So please consider donating if you find this forum useful (https://frappe.io/buy). Even a small amount would be helpful.
  2. We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication.
  3. Paste your code at http://pastebin.com or http://gist.github.com and send only the URL via email
  4. For sending images, use http://imgur.com or other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.

     

    End of Note



    You received this message because you are subscribed to the Google Groups "ERPNext Developer Forum" group.

    To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer-forum+un…@googlegroups.com.

    To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/3f480769-0cc8-4689-9ad3-96c8f617c002%40googlegroups.com.

    For more options, visit https://groups.google.com/d/optout.

On Mon, Sep 15, 2014 at 11:51 PM, Camilo ca...@gmail.com wrote:

Two of them:

Exception KeyError: KeyError(46928062566912,) in <module ‘threading’ from
‘/usr/local/lib/python2.7/threading.pyc’> ignored
Exception KeyError: KeyError(47283097993728,) in <module ‘threading’ from
‘/usr/local/lib/python2.7/threading.pyc’> ignored

Gunicorn is using Python 2.7 (evident from the traceback). Can you try
restarting the processes?

sudo supervisorctl restart frappe:

Thanks,

Pratik
erpnext