Need help in deploying ERPNext in production server

I am trying to install ERPNext in Digitalocean fresh droplet. But I am not sure how to run the app in production server. I want to run the app through http://demo.reliconindia.net

I followed the following steps (in a fresh Ubuntu 14 (32bit) server):

1. Ran the following command.



2. Then

cd ~
bench init frappe
-bench
cd frappe
-bench
bench
get-app erpnext https://github.com/frappe/erpnext
bench
get-app shopping_cart https://github.com/frappe/shopping-cart
bench
new-site site1.local
bench frappe
install_app erpnext erp1.local
bench frappe
install_app shopping_cart erp1.local

3. Then setup
supervisor

bench setup supervisor
sudo ln
-s pwd/config/supervisor.conf /etc/supervisor/conf.d/frappe.conf

4. Then setup nginx

bench setup nginx
sudo ln
-s pwd/config/nginx.conf /etc/nginx/conf.d/frappe.conf

5. Then I removed the default Nginx site

sudo rm /etc/nginx/sites-enabled/default

6. Then I created a new site

bench frappe install_app erpnext demo.reliconindia.net

7. Re generated config

bench setup nginx

8. Restarted nginx

sudo service nginx restart

9. Changed the default site

bench set-default-site demo.reliconindia.net

Now if try accessing the site http://demo.reliconindia.net, it is saying 502 Bad Gateway

Can anyone help me out?



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/4c5a5e97-7317-4c76-84ce-9c6f7bb38920%40googlegroups.com.

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

Would be great if you repost on developer forum.

Did you reload nginx and supervisor?

On Tue, Aug 19, 2014 at 12:20 PM, Subhra Jyoti Bhuyan
su...@gmail.com wrote:

I am trying to install ERPNext in Digitalocean fresh droplet. But I am not
sure how to run the app in production server. I want to run the app through
http://demo.reliconindia.net

I followed the following steps (in a fresh Ubuntu 14 (32bit) server):

  1. Ran the following command.

wget
https://raw.githubusercontent.com/frappe/bench/master/install_scripts/setup_frappe.sh
sudo bash setup_frappe.sh

  1. Then

cd ~
bench init frappe-bench
cd frappe-bench
bench get-app erpnext https://github.com/frappe/erpnext
bench get-app shopping_cart https://github.com/frappe/shopping-cart
bench new-site site1.local
bench frappe --install_app erpnext erp1.local
bench frappe --install_app shopping_cart erp1.local

  1. Then setup supervisor

bench setup supervisor
sudo ln -s pwd/config/supervisor.conf /etc/supervisor/conf.d/frappe.conf

  1. Then setup nginx

bench setup nginx
sudo ln -s pwd/config/nginx.conf /etc/nginx/conf.d/frappe.conf

  1. Then I removed the default Nginx site

sudo rm /etc/nginx/sites-enabled/default

  1. Then I created a new site

bench frappe --install_app erpnext demo.reliconindia.net

  1. Re generated config

bench setup nginx

  1. Restarted nginx

sudo service nginx restart

  1. Changed the default site

bench set-default-site demo.reliconindia.net

Now if try accessing the site http://demo.reliconindia.net, it is saying 502
Bad Gateway

Can anyone help me out?


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/4c5a5e97-7317-4c76-84ce-9c6f7bb38920%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Pratik
erpnext

On Tue, Aug 19, 2014 at 4:44 PM, Pratik Vyas pd...@gmail.com wrote:

Would be great if you repost on developer forum.

Oh sorry, you already posted on dev forum.

Yes. Restarted both nginx and supervisor.

Did I miss anything?

First how can I check whether it is properly in local or not?

If I run it locally using

bench start

I am getting http://pastebin.com/sZCMJnsj


On Tuesday, 19 August 2014 16:45:36 UTC+5:30, Pratik Vyas wrote:
On Tue, Aug 19, 2014 at 4:44 PM, Pratik Vyas <pd...@gmail.com> wrote:
> Would be great if you repost on developer forum.
>

Oh sorry, you already posted on dev forum.



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/b3a50fcd-7508-44e5-a6a2-c07abdd7e689%40googlegroups.com.

    For more options, visit https://groups.google.com/d/optout.
Hi, just post my experience,

1. if it is a whole new server, please try restart it
2. list your process use 'ps aux' in forum then we can check if necessary command is running or not

thanks,yang

在 2014年8月19日星期二UTC+8下午2时50分47秒,Subhra Jyoti Bhuyan写道:
I am trying to install ERPNext in Digitalocean fresh droplet. But I am not sure how to run the app in production server. I want to run the app through http://demo.reliconindia.net

I followed the following steps (in a fresh Ubuntu 14 (32bit) server):

1. Ran the following command.



2. Then

cd ~
bench init frappe
-bench
cd frappe
-bench
bench
get-app erpnext https://github.com/frappe/erpnext
bench
get-app shopping_cart https://github.com/frappe/shopping-cart
bench
new-site site1.local
bench frappe
--install_app erpnext erp1.local
bench frappe
--install_app shopping_cart erp1.local

3. Then setup
supervisor

bench setup supervisor
sudo ln
-s `pwd`/config/supervisor.conf /etc/supervisor/conf.d/frappe.conf

4. Then setup nginx

bench setup nginx
sudo ln
-s `pwd`/config/nginx.conf /etc/nginx/conf.d/frappe.conf

5. Then I removed the default Nginx site

sudo rm /etc/nginx/sites-enabled/default

6. Then I created a new site

bench frappe --install_app erpnext demo.reliconindia.net

7. Re generated config

bench setup nginx

8. Restarted nginx

sudo service nginx restart

9. Changed the default site

bench set-default-site demo.reliconindia.net

Now if try accessing the site http://demo.reliconindia.net, it is saying 502 Bad Gateway

Can anyone help me out?



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/9957439a-b6e1-4d62-8db1-158620f0edad%40googlegroups.com.

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

Thanks for the reply.

I restarted the server and ran the command 'ps aux', it is showing these processes.

On Wednesday, 20 August 2014 11:05:01 UTC+5:30, Y Y wrote:
Hi, just post my experience,

1. if it is a whole new server, please try restart it
2. list your process use 'ps aux' in forum then we can check if necessary command is running or not

thanks,yang

在 2014年8月19日星期二UTC+8下午2时50分47秒,Subhra Jyoti Bhuyan写道:
I am trying to install ERPNext in Digitalocean fresh droplet. But I am not sure how to run the app in production server. I want to run the app through http://demo.reliconindia.net

I followed the following steps (in a fresh Ubuntu 14 (32bit) server):

1. Ran the following command.



2. Then

cd ~
bench init frappe
-bench
cd frappe
-bench
bench
get-app erpnext https://github.com/frappe/erpnext
bench
get-app shopping_cart https://github.com/frappe/shopping-cart
bench
new-site site1.local
bench frappe
--install_app erpnext erp1.local
bench frappe
--install_app shopping_cart erp1.local

3. Then setup
supervisor

bench setup supervisor
sudo ln
-s `pwd`/config/supervisor.conf /etc/supervisor/conf.d/frappe.conf

4. Then setup nginx

bench setup nginx
sudo ln
-s `pwd`/config/nginx.conf /etc/nginx/conf.d/frappe.conf

5. Then I removed the default Nginx site

sudo rm /etc/nginx/sites-enabled/default

6. Then I created a new site

bench frappe --install_app erpnext demo.reliconindia.net

7. Re generated config

bench setup nginx

8. Restarted nginx

sudo service nginx restart

9. Changed the default site

bench set-default-site demo.reliconindia.net

Now if try accessing the site http://demo.reliconindia.net, it is saying 502 Bad Gateway

Can anyone help me out?



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/f630b5be-4421-4cf5-8810-5374ba3b7514%40googlegroups.com.

    For more options, visit https://groups.google.com/d/optout.
to clarify, your local server, it was using old bench, they offered new bench.

your demo site, please help do following 2 things:
1. post your current nginx.conf in forum
2. try use sudo supervisorctl restart all to see if return any error.

thanks, yang



在 2014年8月20日星期三UTC+8下午1时53分38秒,Subhra Jyoti Bhuyan写道:
Hi,

Thanks for the reply.

I restarted the server and ran the command 'ps aux', it is showing these processes.

On Wednesday, 20 August 2014 11:05:01 UTC+5:30, Y Y wrote:
Hi, just post my experience,

1. if it is a whole new server, please try restart it
2. list your process use 'ps aux' in forum then we can check if necessary command is running or not

thanks,yang

在 2014年8月19日星期二UTC+8下午2时50分47秒,Subhra Jyoti Bhuyan写道:
I am trying to install ERPNext in Digitalocean fresh droplet. But I am not sure how to run the app in production server. I want to run the app through http://demo.reliconindia.net

I followed the following steps (in a fresh Ubuntu 14 (32bit) server):

1. Ran the following command.



2. Then

cd ~
bench init frappe
-bench
cd frappe
-bench
bench
get-app erpnext https://github.com/frappe/erpnext
bench
get-app shopping_cart https://github.com/frappe/shopping-cart
bench
new-site site1.local
bench frappe
--install_app erpnext erp1.local
bench frappe
--install_app shopping_cart erp1.local

3. Then setup
supervisor

bench setup supervisor
sudo ln
-s `pwd`/config/supervisor.conf /etc/supervisor/conf.d/frappe.conf

4. Then setup nginx

bench setup nginx
sudo ln
-s `pwd`/config/nginx.conf /etc/nginx/conf.d/frappe.conf

5. Then I removed the default Nginx site

sudo rm /etc/nginx/sites-enabled/default

6. Then I created a new site

bench frappe --install_app erpnext demo.reliconindia.net

7. Re generated config

bench setup nginx

8. Restarted nginx

sudo service nginx restart

9. Changed the default site

bench set-default-site demo.reliconindia.net

Now if try accessing the site http://demo.reliconindia.net, it is saying 502 Bad Gateway

Can anyone help me out?



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/3d3f4a0b-5f9b-4531-a1ef-ccba9ec87b18%40googlegroups.com.

    For more options, visit https://groups.google.com/d/optout.
I rebuilt the server and followed exactly these steps http://subhra.me/installing-erpnext-in-digitalocean-server/

Now if I do 'curl http://0.0.0.0:8000', I am getting 'curl: (7) Failed to connect to 0.0.0.0 port 8000: Connection refused'

If I do 'curl http://0.0.0.0:80', I am getting this.

I think the app is not running properly in local server itself.

My current process list (after rebooting the server) is this.

Have not setup the server for production yet after rebuilding.


On Wednesday, 20 August 2014 12:32:10 UTC+5:30, Y Y wrote:
to clarify, your local server, it was using old bench, they offered new bench.

your demo site, please help do following 2 things:
1. post your current nginx.conf in forum
2. try use sudo supervisorctl restart all to see if return any error.

thanks, yang



在 2014年8月20日星期三UTC+8下午1时53分38秒,Subhra Jyoti Bhuyan写道:
Hi,

Thanks for the reply.

I restarted the server and ran the command 'ps aux', it is showing these processes.

On Wednesday, 20 August 2014 11:05:01 UTC+5:30, Y Y wrote:
Hi, just post my experience,

1. if it is a whole new server, please try restart it
2. list your process use 'ps aux' in forum then we can check if necessary command is running or not

thanks,yang

在 2014年8月19日星期二UTC+8下午2时50分47秒,Subhra Jyoti Bhuyan写道:
I am trying to install ERPNext in Digitalocean fresh droplet. But I am not sure how to run the app in production server. I want to run the app through http://demo.reliconindia.net

I followed the following steps (in a fresh Ubuntu 14 (32bit) server):

1. Ran the following command.



2. Then

cd ~
bench init frappe
-bench
cd frappe
-bench
bench
get-app erpnext https://github.com/frappe/erpnext
bench
get-app shopping_cart https://github.com/frappe/shopping-cart
bench
new-site site1.local
bench frappe
--install_app erpnext erp1.local
bench frappe
--install_app shopping_cart erp1.local

3. Then setup
supervisor

bench setup supervisor
sudo ln
-s `pwd`/config/supervisor.conf /etc/supervisor/conf.d/frappe.conf

4. Then setup nginx

bench setup nginx
sudo ln
-s `pwd`/config/nginx.conf /etc/nginx/conf.d/frappe.conf

5. Then I removed the default Nginx site

sudo rm /etc/nginx/sites-enabled/default

6. Then I created a new site

bench frappe --install_app erpnext demo.reliconindia.net

7. Re generated config

bench setup nginx

8. Restarted nginx

sudo service nginx restart

9. Changed the default site

bench set-default-site demo.reliconindia.net

Now if try accessing the site http://demo.reliconindia.net, it is saying 502 Bad Gateway

Can anyone help me out?



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/3ae297e4-3ff8-4a1d-899a-a62bda40fe07%40googlegroups.com.

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

I followed the exactly same steps (http://subhra.me/installing-erpnext-in-digitalocean-server/) in my desktop (ubuntu 14), local setup is working fine.

On Wednesday, 20 August 2014 13:01:52 UTC+5:30, Subhra Jyoti Bhuyan wrote:

I rebuilt the server and followed exactly these steps http://subhra.me/installing-erpnext-in-digitalocean-server/

Now if I do ‘curl http://0.0.0.0:8000’, I am getting 'curl: (7) Failed to connect to 0.0.0.0 port 8000: Connection refused’

If I do ‘curl http://0.0.0.0:80’, I am getting this.

I think the app is not running properly in local server itself.

My current process list (after rebooting the server) is this.

Have not setup the server for production yet after rebuilding.


On Wednesday, 20 August 2014 12:32:10 UTC+5:30, Y Y wrote:
to clarify, your local server, it was using old bench, they offered new bench.

your demo site, please help do following 2 things:
1. post your current nginx.conf in forum
2. try use sudo supervisorctl restart all to see if return any error.

thanks, yang



在 2014年8月20日星期三UTC+8下午1时53分38秒,Subhra Jyoti Bhuyan写道:
Hi,

Thanks for the reply.

I restarted the server and ran the command ‘ps aux’, it is showing these processes.

On Wednesday, 20 August 2014 11:05:01 UTC+5:30, Y Y wrote:
Hi, just post my experience,

1. if it is a whole new server, please try restart it
2. list your process use ‘ps aux’ in forum then we can check if necessary command is running or not

thanks,yang

在 2014年8月19日星期二UTC+8下午2时50分47秒,Subhra Jyoti Bhuyan写道:
I am trying to install ERPNext in Digitalocean fresh droplet. But I am not sure how to run the app in production server. I want to run the app through http://demo.reliconindia.net

I followed the following steps (in a fresh Ubuntu 14 (32bit) server):

1. Ran the following command.



2. Then

cd ~
bench init frappe
-bench
cd frappe
-bench
bench
get-app erpnext https://github.com/frappe/erpnext
bench
get-app shopping_cart https://github.com/frappe/shopping-cart
bench
new-site site1.local
bench frappe
install_app erpnext erp1.local
bench frappe
install_app shopping_cart erp1.local

3. Then setup
supervisor

bench setup supervisor
sudo ln
-s pwd/config/supervisor.conf /etc/supervisor/conf.d/frappe.conf

4. Then setup nginx

bench setup nginx
sudo ln
-s pwd/config/nginx.conf /etc/nginx/conf.d/frappe.conf

5. Then I removed the default Nginx site

sudo rm /etc/nginx/sites-enabled/default

6. Then I created a new site

bench frappe install_app erpnext demo.reliconindia.net

7. Re generated config

bench setup nginx

8. Restarted nginx

sudo service nginx restart

9. Changed the default site

bench set-default-site demo.reliconindia.net

Now if try accessing the site http://demo.reliconindia.net, it is saying 502 Bad Gateway

Can anyone help me out?



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/53483bc4-76e0-45ed-a62d-866e3c8d9c89%40googlegroups.com.

    For more options, visit https://groups.google.com/d/optout.
Managed to deploy the erp in production server. Thanks.

On Wednesday, 20 August 2014 13:04:01 UTC+5:30, Subhra Jyoti Bhuyan wrote:
I followed the exactly same steps (http://subhra.me/installing-erpnext-in-digitalocean-server/) in my desktop (ubuntu 14), local setup is working fine.

On Wednesday, 20 August 2014 13:01:52 UTC+5:30, Subhra Jyoti Bhuyan wrote:
I rebuilt the server and followed exactly these steps http://subhra.me/installing-erpnext-in-digitalocean-server/

Now if I do 'curl http://0.0.0.0:8000', I am getting 'curl: (7) Failed to connect to 0.0.0.0 port 8000: Connection refused'

If I do 'curl http://0.0.0.0:80', I am getting this.

I think the app is not running properly in local server itself.

My current process list (after rebooting the server) is this.

Have not setup the server for production yet after rebuilding.


On Wednesday, 20 August 2014 12:32:10 UTC+5:30, Y Y wrote:
to clarify, your local server, it was using old bench, they offered new bench.

your demo site, please help do following 2 things:
1. post your current nginx.conf in forum
2. try use sudo supervisorctl restart all to see if return any error.

thanks, yang



在 2014年8月20日星期三UTC+8下午1时53分38秒,Subhra Jyoti Bhuyan写道:
Hi,

Thanks for the reply.

I restarted the server and ran the command 'ps aux', it is showing these processes.

On Wednesday, 20 August 2014 11:05:01 UTC+5:30, Y Y wrote:
Hi, just post my experience,

1. if it is a whole new server, please try restart it
2. list your process use 'ps aux' in forum then we can check if necessary command is running or not

thanks,yang

在 2014年8月19日星期二UTC+8下午2时50分47秒,Subhra Jyoti Bhuyan写道:
I am trying to install ERPNext in Digitalocean fresh droplet. But I am not sure how to run the app in production server. I want to run the app through http://demo.reliconindia.net

I followed the following steps (in a fresh Ubuntu 14 (32bit) server):

1. Ran the following command.



2. Then

cd ~
bench init frappe
-bench
cd frappe
-bench
bench
get-app erpnext https://github.com/frappe/erpnext
bench
get-app shopping_cart https://github.com/frappe/shopping-cart
bench
new-site site1.local
bench frappe
--install_app erpnext erp1.local
bench frappe
--install_app shopping_cart erp1.local

3. Then setup
supervisor

bench setup supervisor
sudo ln
-s `pwd`/config/supervisor.conf /etc/supervisor/conf.d/frappe.conf

4. Then setup nginx

bench setup nginx
sudo ln
-s `pwd`/config/nginx.conf /etc/nginx/conf.d/frappe.conf

5. Then I removed the default Nginx site

sudo rm /etc/nginx/sites-enabled/default

6. Then I created a new site

bench frappe --install_app erpnext demo.reliconindia.net

7. Re generated config

bench setup nginx

8. Restarted nginx

sudo service nginx restart

9. Changed the default site

bench set-default-site demo.reliconindia.net

Now if try accessing the site http://demo.reliconindia.net, it is saying 502 Bad Gateway

Can anyone help me out?



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/0f526350-1306-40cc-af09-73966a90c426%40googlegroups.com.

    For more options, visit https://groups.google.com/d/optout.
Working now? what's issue then?

在 2014年8月21日星期四UTC+8下午1时23分46秒,Subhra Jyoti Bhuyan写道:
Managed to deploy the erp in production server. Thanks.

On Wednesday, 20 August 2014 13:04:01 UTC+5:30, Subhra Jyoti Bhuyan wrote:
I followed the exactly same steps (http://subhra.me/installing-erpnext-in-digitalocean-server/) in my desktop (ubuntu 14), local setup is working fine.

On Wednesday, 20 August 2014 13:01:52 UTC+5:30, Subhra Jyoti Bhuyan wrote:
I rebuilt the server and followed exactly these steps http://subhra.me/installing-erpnext-in-digitalocean-server/

Now if I do 'curl http://0.0.0.0:8000', I am getting 'curl: (7) Failed to connect to 0.0.0.0 port 8000: Connection refused'

If I do 'curl http://0.0.0.0:80', I am getting this.

I think the app is not running properly in local server itself.

My current process list (after rebooting the server) is this.

Have not setup the server for production yet after rebuilding.


On Wednesday, 20 August 2014 12:32:10 UTC+5:30, Y Y wrote:
to clarify, your local server, it was using old bench, they offered new bench.

your demo site, please help do following 2 things:
1. post your current nginx.conf in forum
2. try use sudo supervisorctl restart all to see if return any error.

thanks, yang



在 2014年8月20日星期三UTC+8下午1时53分38秒,Subhra Jyoti Bhuyan写道:
Hi,

Thanks for the reply.

I restarted the server and ran the command 'ps aux', it is showing these processes.

On Wednesday, 20 August 2014 11:05:01 UTC+5:30, Y Y wrote:
Hi, just post my experience,

1. if it is a whole new server, please try restart it
2. list your process use 'ps aux' in forum then we can check if necessary command is running or not

thanks,yang

在 2014年8月19日星期二UTC+8下午2时50分47秒,Subhra Jyoti Bhuyan写道:
I am trying to install ERPNext in Digitalocean fresh droplet. But I am not sure how to run the app in production server. I want to run the app through http://demo.reliconindia.net

I followed the following steps (in a fresh Ubuntu 14 (32bit) server):

1. Ran the following command.



2. Then

cd ~
bench init frappe
-bench
cd frappe
-bench
bench
get-app erpnext https://github.com/frappe/erpnext
bench
get-app shopping_cart https://github.com/frappe/shopping-cart
bench
new-site site1.local
bench frappe
--install_app erpnext erp1.local
bench frappe
--install_app shopping_cart erp1.local

3. Then setup
supervisor

bench setup supervisor
sudo ln
-s `pwd`/config/supervisor.conf /etc/supervisor/conf.d/frappe.conf

4. Then setup nginx

bench setup nginx
sudo ln
-s `pwd`/config/nginx.conf /etc/nginx/conf.d/frappe.conf

5. Then I removed the default Nginx site

sudo rm /etc/nginx/sites-enabled/default

6. Then I created a new site

bench frappe --install_app erpnext demo.reliconindia.net

7. Re generated config

bench setup nginx

8. Restarted nginx

sudo service nginx restart

9. Changed the default site

bench set-default-site demo.reliconindia.net

Now if try accessing the site http://demo.reliconindia.net, it is saying 502 Bad Gateway

Can anyone help me out?



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/d0188c7f-aaf7-4f0b-82b5-6f8bf6c6f883%40googlegroups.com.

    For more options, visit https://groups.google.com/d/optout.
No idea. Rebuilt the server and started from the beginning again.

On Thursday, 21 August 2014 13:48:55 UTC+5:30, Y Y wrote:
Working now? what's issue then?

在 2014年8月21日星期四UTC+8下午1时23分46秒,Subhra Jyoti Bhuyan写道:
Managed to deploy the erp in production server. Thanks.

On Wednesday, 20 August 2014 13:04:01 UTC+5:30, Subhra Jyoti Bhuyan wrote:
I followed the exactly same steps (http://subhra.me/installing-erpnext-in-digitalocean-server/) in my desktop (ubuntu 14), local setup is working fine.

On Wednesday, 20 August 2014 13:01:52 UTC+5:30, Subhra Jyoti Bhuyan wrote:
I rebuilt the server and followed exactly these steps http://subhra.me/installing-erpnext-in-digitalocean-server/

Now if I do 'curl http://0.0.0.0:8000', I am getting 'curl: (7) Failed to connect to 0.0.0.0 port 8000: Connection refused'

If I do 'curl http://0.0.0.0:80', I am getting this.

I think the app is not running properly in local server itself.

My current process list (after rebooting the server) is this.

Have not setup the server for production yet after rebuilding.


On Wednesday, 20 August 2014 12:32:10 UTC+5:30, Y Y wrote:
to clarify, your local server, it was using old bench, they offered new bench.

your demo site, please help do following 2 things:
1. post your current nginx.conf in forum
2. try use sudo supervisorctl restart all to see if return any error.

thanks, yang



在 2014年8月20日星期三UTC+8下午1时53分38秒,Subhra Jyoti Bhuyan写道:
Hi,

Thanks for the reply.

I restarted the server and ran the command 'ps aux', it is showing these processes.

On Wednesday, 20 August 2014 11:05:01 UTC+5:30, Y Y wrote:
Hi, just post my experience,

1. if it is a whole new server, please try restart it
2. list your process use 'ps aux' in forum then we can check if necessary command is running or not

thanks,yang

在 2014年8月19日星期二UTC+8下午2时50分47秒,Subhra Jyoti Bhuyan写道:
I am trying to install ERPNext in Digitalocean fresh droplet. But I am not sure how to run the app in production server. I want to run the app through http://demo.reliconindia.net

I followed the following steps (in a fresh Ubuntu 14 (32bit) server):

1. Ran the following command.



2. Then

cd ~
bench init frappe
-bench
cd frappe
-bench
bench
get-app erpnext https://github.com/frappe/erpnext
bench
get-app shopping_cart https://github.com/frappe/shopping-cart
bench
new-site site1.local
bench frappe
--install_app erpnext erp1.local
bench frappe
--install_app shopping_cart erp1.local

3. Then setup
supervisor

bench setup supervisor
sudo ln
-s `pwd`/config/supervisor.conf /etc/supervisor/conf.d/frappe.conf

4. Then setup nginx

bench setup nginx
sudo ln
-s `pwd`/config/nginx.conf /etc/nginx/conf.d/frappe.conf

5. Then I removed the default Nginx site

sudo rm /etc/nginx/sites-enabled/default

6. Then I created a new site

bench frappe --install_app erpnext demo.reliconindia.net

7. Re generated config

bench setup nginx

8. Restarted nginx

sudo service nginx restart

9. Changed the default site

bench set-default-site demo.reliconindia.net

Now if try accessing the site http://demo.reliconindia.net, it is saying 502 Bad Gateway

Can anyone help me out?



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/0053b238-abf2-475c-a8f0-ff819a7abebb%40googlegroups.com.

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