erpnext on digitalocean

493 views
Skip to first unread message

Vivek

unread,
Nov 19, 2013, 4:03:31 AM11/19/13
to erpnext-dev...@googlegroups.com
Hi , 

       I am testing erpnext installation on a digital ocean droplet. I simply ran the installation script and everything ran successfully. Now I tried connecting to erpnext using the droplet ip + port number. I am being given an error. Is there steps that am missing here? 

rushabh

unread,
Nov 19, 2013, 4:44:05 AM11/19/13
to erpnext-dev...@googlegroups.com
What is the error you are getting ?

There was a bug installed a few minutes back - its resolved now.

Vivek

unread,
Nov 19, 2013, 7:27:11 AM11/19/13
to erpnext-dev...@googlegroups.com

It just says "Ops Google chrome could not connect to 163.128.....:port"

Anand Doshi

unread,
Nov 19, 2013, 11:07:00 AM11/19/13
to erpnext-dev...@googlegroups.com
Check if you can run this on your server
curl localhost:port
--
Note:
 
If you are posting an issue,
1. 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.
2. Paste your code at http://pastebin.com or http://gist.github.com and send only the URL via email
3. 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...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Vivek

unread,
Nov 20, 2013, 1:07:22 AM11/20/13
to erpnext-dev...@googlegroups.com
Hi , it says couldn't connect to host . 




Vivek

unread,
Nov 20, 2013, 2:03:43 AM11/20/13
to erpnext-dev...@googlegroups.com
Hi , which server gets installed with this script? apache or ngix? Cause I dont see any service running for either of them.

Vivek

unread,
Nov 20, 2013, 2:13:49 AM11/20/13
to erpnext-dev...@googlegroups.com
Hi , ok I recreated a droplet and tried again , it works now. 

ankit chiplunkar

unread,
May 21, 2014, 10:59:47 AM5/21/14
to erpnext-dev...@googlegroups.com
Hello All,

I am trying installing frappe on digitalocean using ubuntu 14.04 32-bit.
I am getting error while the system tries to install mysql-python
Here is the error log for the same. : https://gist.github.com/anonymous/18db61ebe00729f66a53
As you can see that the problem starts from line 178 (when mysql-python starts installing).

I have installed frappe-bench on my laptop with same configurations and it works like a charm.

Pratik Vyas

unread,
May 21, 2014, 11:13:23 AM5/21/14
to erpnext-dev...@googlegroups.com

Hi Ankit,

try `sudo apt-get install libssl-dev libcrypto++-dev` and run the
installation command again.

Will add this to bench readme.

--
Note:
 
If you are posting an issue,
1. 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.
2. Paste your code at http://pastebin.com or http://gist.github.com and send only the URL via email
3. 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...@googlegroups.com.

ankit chiplunkar

unread,
May 21, 2014, 1:13:56 PM5/21/14
to erpnext-dev...@googlegroups.com
Hello Pratik,

On running the given command I can install erpnext, I have subsequently:
1. Installed supervisor
2. Installed ngnix
3. updated respective frappe.conf files in etc
4. also run the following command "/root/frappe-bench/env/bin/frappe --serve erpnext.hostname --sites_path /root/frappe-bench/sites"

But am getting same error as OP here is what my IP and the command curl localhost:port says https://gist.github.com/anonymous/0395b57e38f28d4fd853

Thanks in advance. :)

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

Pratik Vyas

unread,
May 21, 2014, 1:15:29 PM5/21/14
to erpnext-dev...@googlegroups.com
On Wed, May 21, 2014 at 10:43 PM, ankit chiplunkar
<ankitch...@gmail.com> wrote:
> Hello Pratik,
>
> On running the given command I can install erpnext, I have subsequently:
> 1. Installed supervisor
> 2. Installed ngnix
> 3. updated respective frappe.conf files in etc
> 4. also run the following command "/root/frappe-bench/env/bin/frappe --serve
> erpnext.hostname --sites_path /root/frappe-bench/sites"
>
> But am getting same error as OP here is what my IP and the command curl
> localhost:port says https://gist.github.com/anonymous/0395b57e38f28d4fd853
>

You will need to reload nginx and supervisor

--
Pratik
erpnext

ankit chiplunkar

unread,
May 21, 2014, 1:36:09 PM5/21/14
to erpnext-dev...@googlegroups.com
I was able to reload Supervisor successfully
but reloading nginx gave the following error

* Reloading nginx configuration nginx                                                                                                   [fail] 

Regards,

Pratik Vyas

unread,
May 21, 2014, 2:15:22 PM5/21/14
to erpnext-dev...@googlegroups.com
On Wed, May 21, 2014 at 11:06 PM, ankit chiplunkar
<ankitch...@gmail.com> wrote:
> I was able to reload Supervisor successfully
> but reloading nginx gave the following error
>
> * Reloading nginx configuration nginx
> [fail]
>

See if it's running
`service nginx start`
or check config
`service nginx configtest`

> Regards,
>
> On Wednesday, 21 May 2014 22:45:29 UTC+5:30, Pratik Vyas wrote:
>>
>> On Wed, May 21, 2014 at 10:43 PM, ankit chiplunkar
>> <ankitch...@gmail.com> wrote:
>> > Hello Pratik,
>> >
>> > On running the given command I can install erpnext, I have subsequently:
>> > 1. Installed supervisor
>> > 2. Installed ngnix
>> > 3. updated respective frappe.conf files in etc
>> > 4. also run the following command "/root/frappe-bench/env/bin/frappe
>> > --serve
>> > erpnext.hostname --sites_path /root/frappe-bench/sites"
>> >
>> > But am getting same error as OP here is what my IP and the command curl
>> > localhost:port says
>> > https://gist.github.com/anonymous/0395b57e38f28d4fd853
>> >
>>
>> You will need to reload nginx and supervisor
>>
>> --
>> Pratik
>> erpnext
>
> --
> Note:
>
> If you are posting an issue,
> 1. 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.
> 2. Paste your code at http://pastebin.com or http://gist.github.com and send
> only the URL via email
> 3. 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...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/erpnext-developer-forum/c5f8dbe0-0773-48b1-abd9-c29bb953f137%40googlegroups.com.
>
> For more options, visit https://groups.google.com/d/optout.



--
Pratik
erpnext

ankit chiplunkar

unread,
May 21, 2014, 3:21:01 PM5/21/14
to erpnext-dev...@googlegroups.com
the service is running but "service nginx start" shows no log and the command "service nginx configtest" shows 
* Testing nginx configuration                                           [fail]

I have in the meantime rebuild the droplet and installed everything again the error persists.
I have copied the configuration files using following commands
  • cp config/nginx.conf /etc/nginx/conf.d/frappe.conf
  • cp config/supervisor.conf /etc/supervisor/conf.d/frappe.conf

Regards,

Maxwell Morais

unread,
May 21, 2014, 3:54:52 PM5/21/14
to erpnext-dev...@googlegroups.com
Maybe you need remove this file link "/etc/nginx/sites-available/default"


To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/42b6da98-b2f0-433f-a2ad-639b83a00f57%40googlegroups.com.

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



--

Best Regards.

Maxwell Morais
Python Developer powered by Webnotes framework <3

Pratik Vyas

unread,
May 21, 2014, 3:56:54 PM5/21/14
to erpnext-dev...@googlegroups.com
On Thu, May 22, 2014 at 1:24 AM, Maxwell Morais
<max.mor...@gmail.com> wrote:
> Maybe you need remove this file link "/etc/nginx/sites-available/default"
>
>

Yes, looks like it comes in the way, just faced that on a Ubuntu 13.10
installation.

Thanks,
--
Pratik
erpnext

ankit chiplunkar

unread,
May 22, 2014, 5:29:12 AM5/22/14
to erpnext-dev...@googlegroups.com
Thanks a lot for your help, 
It sort of worked i.e. the IP became alive but ERP is not working properly here is what is looks like. : http://imgur.com/ZQNGXLc
I cannot login or access ERPNext in any way. 

Regards,

Pratik Vyas

unread,
May 22, 2014, 8:11:57 AM5/22/14
to erpnext-dev...@googlegroups.com
On Thu, May 22, 2014 at 2:59 PM, ankit chiplunkar
<ankitch...@gmail.com> wrote:
> Thanks a lot for your help,
> It sort of worked i.e. the IP became alive but ERP is not working properly
> here is what is looks like. : http://imgur.com/ZQNGXLc
> I cannot login or access ERPNext in any way.
>
Almost there, looks like a permission issue.

can you run `sudo chmod o+x /home/erpnext` and `sudo chmod o+r /home/erpnext` ?
> Regards,
>
>
> On Thursday, 22 May 2014 01:26:54 UTC+5:30, Pratik Vyas wrote:
>>
>> On Thu, May 22, 2014 at 1:24 AM, Maxwell Morais
>> <max.mor...@gmail.com> wrote:
>> > Maybe you need remove this file link
>> > "/etc/nginx/sites-available/default"
>> >
>> >
>>
>> Yes, looks like it comes in the way, just faced that on a Ubuntu 13.10
>> installation.
>>
>> Thanks,
>> --
>> Pratik
>> erpnext
>
> --
> Note:
>
> If you are posting an issue,
> 1. 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.
> 2. Paste your code at http://pastebin.com or http://gist.github.com and send
> only the URL via email
> 3. 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...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/erpnext-developer-forum/c80571fe-8e24-4534-b2d0-23c258283818%40googlegroups.com.

ankit chiplunkar

unread,
May 22, 2014, 10:03:10 AM5/22/14
to erpnext-dev...@googlegroups.com


On Thursday, 22 May 2014 17:41:57 UTC+5:30, Pratik Vyas wrote:
On Thu, May 22, 2014 at 2:59 PM, ankit chiplunkar
<ankitch...@gmail.com> wrote:
> Thanks a lot for your help,
> It sort of worked i.e. the IP became alive but ERP is not working properly
> here is what is looks like. : http://imgur.com/ZQNGXLc
> I cannot login or access ERPNext in any way.
>
Almost there, looks like a permission issue.

can you run `sudo chmod o+x /home/erpnext` and `sudo chmod o+r /home/erpnext` ?

No there is no file named erpnext in my home directory

1. I did go into "/frappe-bench/apps/erpnext" and "/frappe-bench/apps/erpnext/erpnext" these files already have the required permissions
2. I also went into the mysql folder "/var/lib/mysql" and gave erpnext and all the other files inside erpnext the required permissions there.
3. I reloaded supervisor and nginx again, still the IP looks like this  http://imgur.com/ZQNGXLc 
 

Pratik Vyas

unread,
May 22, 2014, 1:10:39 PM5/22/14
to erpnext-dev...@googlegroups.com
> 2. I also went into the mysql folder "/var/lib/mysql" and gave erpnext and
> all the other files inside erpnext the required permissions there.

I recommend reverting mysql data files to owned and readable by mysql
for security reasons (as this is un related to the problem you're
trying to solve).

> 3. I reloaded supervisor and nginx again, still the IP looks like this
> http://imgur.com/ZQNGXLc
>
What do the nginx error logs say?

Thanks,
--
Pratik
erpnext

ankit chiplunkar

unread,
May 22, 2014, 5:02:11 PM5/22/14
to erpnext-dev...@googlegroups.com
It finally works!!! :)


On Thursday, 22 May 2014 22:40:39 UTC+5:30, Pratik Vyas wrote:
> 2. I also went into the mysql folder "/var/lib/mysql" and gave erpnext and
> all the other files inside erpnext the required permissions there.

I recommend reverting mysql data files to owned and readable by mysql
for security reasons (as this is un related to the problem you're
trying to solve).

Have reverted back the permissions, thanks. 

> 3. I reloaded supervisor and nginx again, still the IP looks like this
> http://imgur.com/ZQNGXLc
>
What do the nginx error logs say?

The error logs say permission denied. Here is the link for the same : https://gist.github.com/ankitchiplunkar/ca35463426b8b905ff47 
I did a little more digging, and individual files in  "/root/frappe-bench/sites/assets" & "/root/frappe-bench/sites/erpnext.ArChSh" didn't have o+x,o+r access, have changed them and it orks.

Thanks a lot for your support.
Thanks,
--
Pratik
erpnext
Reply all
Reply to author
Forward
0 new messages