Frappe Bench install errors on Digital Ocean Ubuntu 14.04 64bit

241 views
Skip to first unread message

fbdystang

unread,
Jun 4, 2014, 5:52:31 PM6/4/14
to erpnext-dev...@googlegroups.com
Hi,

I am trying to get ERPNext 4 up and running.

I noticed others with similar but somewhat different issues:

https://groups.google.com/forum/?pli=1#!topic/erpnext-developer-forum/wqqBlUx0ntA

and

https://groups.google.com/forum/?pli=1#!topic/erpnext-developer-forum/AZgE-u1BjNI

I have installed a working version of Frappe Bench on my laptop through virtualbox. No issues. Then I used the same method on Digital Ocean with the Frappe Bench install script found here:

https://github.com/frappe/frappe-bench

Trying this install script on Digital Ocean with Ubuntu 14.04 64bit does not work. I tried multiple times and received these same errors in attached pip.log and also shown here:

http://tny.cz/6874c729

I also noticed the following folders missing from Frappe Bench directory:
  • celery
  • celerybeat
  • celeryd
  • celeryd-multi
  • csscapture
  • csscombine
  • cssparse
  • frappe

So I obviously cannot launch frappe-bench. What am I doing wrong? Is there a fix?

Please advise,

fbdystang
pip.log

Anand Doshi

unread,
Jun 4, 2014, 11:13:55 PM6/4/14
to ERPNext Developer's Forum
Try this:
sudo apt-get install libxml2 libxslt libxml2-dev libxslt-dev


and run install.sh again as instructed in frappe-bench

-Anand.


--
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/2f349cde-8d62-44b7-ad09-b34b0633a9e1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Anand Doshi

unread,
Jun 4, 2014, 11:17:25 PM6/4/14
to ERPNext Developer's Forum
fbdystang, let us know if it works out, so that we can update the readme in frappe-bench.

Thanks,
Anand.

fbdystang

unread,
Jun 5, 2014, 12:49:31 AM6/5/14
to erpnext-dev...@googlegroups.com
Anand,

This did not work. Ubuntu was unable to find libxslt to install it. Maybe we only need libxslt-dev and not libxslt? Here is the pip.log file:

https://gist.github.com/anonymous/2be0d74633551398a9bd

Near the bottom I now see this error:

error: command 'x86_64-linux-gnu-gcc' failed with exit status 4

Please advise.

Thanks,

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

Anand Doshi

unread,
Jun 5, 2014, 1:31:41 AM6/5/14
to erpnext-dev...@googlegroups.com
Follow the instructions on the link I sent in the previous mail. See if it works. 

Sent from my phone
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/12380431-4baf-4727-aea7-60716ab9f208%40googlegroups.com.

Pratik Vyas

unread,
Jun 5, 2014, 1:36:14 AM6/5/14
to erpnext-dev...@googlegroups.com
On Thu, Jun 5, 2014 at 10:19 AM, 'fbdystang' via ERPNext Developer
Forum <erpnext-dev...@googlegroups.com> wrote:
> Anand,
>
> This did not work. Ubuntu was unable to find libxslt to install it. Maybe we
> only need libxslt-dev and not libxslt? Here is the pip.log file:
>
> https://gist.github.com/anonymous/2be0d74633551398a9bd
>
> Near the bottom I now see this error:
>
> error: command 'x86_64-linux-gnu-gcc' failed with exit status 4
>

Is it the $5 droplet by any chance? ")x86_64-linux-gnu-gcc: internal
compiler error: Killed (program cc1" indicates that it ran out of
memory.

> Please advise.
>
> Thanks,
>
> fbdystang
>
--
Pratik
erpnext

fbdystang

unread,
Jun 6, 2014, 2:56:48 AM6/6/14
to erpnext-dev...@googlegroups.com
All,

Ok, I did get this to work on Digital Ocean. The issue was that Digital Ocean doesn't allocate a swap space by default. The frappe-bench install script worked flawlessly after I allocated the 2G swap space. Here are the steps in case anyone else is running into the same problem:

Spin up (or rebuild) the droplet

Allocate 2GB swap space as shown here:
https://www.digitalocean.com/community/articles/how-to-add-swap-on-ubuntu-14-04

sudo apt-get install nmon     (this is for me as I am used to monitoring over the command line)

Follow procedure to install frappe-bench install script as shown here:
https://github.com/frappe/frappe-bench

Now, after these
  • Install nginx and supervisor
  • cp config/nginx.conf /etc/nginx/conf.d/frappe.conf
  • cp config/supervisor.conf /etc/supervisor/conf.d/frappe.conf

I issued:

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

My frappe-bench install was running but I could not see it. Port 80 revealed the "Welcome to nginx!" screen, and port 8000 revealed nothing.

Update: I just had to wait longer for nginx to fully reload. It took several minutes, but all seems to be working well now.

Hope this helps someone else.

Thanks,

fbdystang

Pratik Vyas

unread,
Jun 6, 2014, 3:03:39 AM6/6/14
to erpnext-dev...@googlegroups.com
On Fri, Jun 6, 2014 at 12:26 PM, 'fbdystang' via ERPNext Developer
Forum <erpnext-dev...@googlegroups.com> wrote:
> All,
>
> Ok, I did get this to work on Digital Ocean. The issue was that Digital
> Ocean doesn't allocate a swap space by default. The frappe-bench install
> script worked flawlessly after I allocated the 2G swap space. Here are the
> steps in case anyone else is running into the same problem:
>
> Spin up (or rebuild) the droplet
>
> Allocate 2GB swap space as shown here:
> https://www.digitalocean.com/community/articles/how-to-add-swap-on-ubuntu-14-04
>
> sudo apt-get install nmon (this is for me as I am used to monitoring
> over the command line)
>
> Follow procedure to install frappe-bench install script as shown here:
> https://github.com/frappe/frappe-bench
>
> Now, after these
>
> Install nginx and supervisor
> cp config/nginx.conf /etc/nginx/conf.d/frappe.conf
> cp config/supervisor.conf /etc/supervisor/conf.d/frappe.conf
>
> I issued:
>
> sudo rm /etc/nginx/sites-enabled/default
>
> My frappe-bench install was running but I could not see it. Port 80 revealed
> the "Welcome to nginx!" screen, and port 8000 revealed nothing.
>
> Update: I just had to wait longer for nginx to fully reload. It took several
> minutes, but all seems to be working well now.
>

Great! Glad it worked. We should make a wiki page in frappe-bench for
Digital Ocean installation.

Thanks,
--
Pratik
erpnext

fbdystang

unread,
Jun 6, 2014, 3:35:12 AM6/6/14
to erpnext-dev...@googlegroups.com
Pratik,

If I get enough time tomorrow I'll type up all the steps to do so. My little way of giving back to a great project. Would that be useful?

Thanks,

fbdystang

Pratik Vyas

unread,
Jun 6, 2014, 4:12:38 AM6/6/14
to erpnext-dev...@googlegroups.com
On Fri, Jun 6, 2014 at 1:05 PM, 'fbdystang' via ERPNext Developer
Forum <erpnext-dev...@googlegroups.com> wrote:
> Pratik,
>
> If I get enough time tomorrow I'll type up all the steps to do so. My little
> way of giving back to a great project. Would that be useful?
>
> Thanks,
>
> fbdystang

Sure! It would be a nice contribution :)

--
Pratik
erpnext

ankit chiplunkar

unread,
Jun 6, 2014, 8:37:27 AM6/6/14
to erpnext-dev...@googlegroups.com
Here is a detailed step-by-step instruction for installing on digitralocean

https://docs.google.com/document/d/1Ks_dmwbD0Ay3z59JEjuUsDyr7oj5snygpNzl0Uik1Ys/edit?usp=sharing

Rushabh Mehta

unread,
Jun 6, 2014, 9:43:25 AM6/6/14
to erpnext-dev...@googlegroups.com
Great - can you add it to the wiki so that it is searchable

--
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/dda6302b-ba43-4965-a2e9-4f6dbee06fef%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages