gotcha / dockerfile-plone

Dockerfile to build a container that runs Plone
2 stars 1 forks source link

Buildout failed. Unable to continue #1

Open natea opened 10 years ago

natea commented 10 years ago

hey Godefroid! I just tried your Plone Dockerfile using the latest Docker 0.7, and encountered this error:

Building Zope/Plone; this takes a while...
Buildout returned an error code: 137; Aborting.
Buildout failed. Unable to continue

Installation has failed.
See the detailed installation log at //install.log
to determine the cause.
2013/12/23 01:50:46 The command [/bin/sh -c /tmp/Plone-4.3.2-UnifiedInstaller/install.sh zeo] returned a non-zero code: 1

Did you ever get it working?

natea commented 10 years ago

I tried to build it in a clean Docker container of base Ubuntu 12.04, and the same error occurred. This time I looked at the install.log file and saw this:

Got Pillow 1.7.8.
Getting distribution for 'lxml==2.3.6'.
Killed
gcc: internal compiler error: Killed (program cc1)
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-4.6/README.Bugs> for instructions.
Building lxml version 2.3.6.
Building without Cython.
Using build configuration of libxslt 1.1.26
Building against libxml2/libxslt in the following directory: /usr/lib/x86_64-linux-gnu
error: Setup script exited with error: command 'gcc' failed with exit status 4

So now I'm running install.sh with the --static-lxml flag, and we'll see how that goes.

natea commented 10 years ago

Nope, that didn't work either:

lxml: Using xslt-config found in /usr/local/Plone/zeocluster/parts/lxml/libxslt/bin/xslt-config.
lxml: Using xml2-config found in /usr/local/Plone/zeocluster/parts/lxml/libxml2/bin/xml2-config.
lxml: Removing dynamic libs from path /usr/local/Plone/zeocluster/parts/lxml/libxslt ...
lxml: Removing dynamic libs from path /usr/local/Plone/zeocluster/parts/lxml/libxml2 ...
lxml: Adding LDFLAGS to prevent underlinking of librt
lxml: Building lxml ...
Killed
gcc: internal compiler error: Killed (program cc1)
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-4.6/README.Bugs> for instructions.
Building lxml version 2.3.6.
Building without Cython.
Using build configuration of libxslt 1.1.28
Building against libxml2/libxslt in one of the following directories:
  /usr/local/Plone/zeocluster/parts/lxml/libxslt/lib
  /usr/local/Plone/zeocluster/parts/lxml/libxml2/lib
error: Setup script exited with error: command 'gcc' failed with exit status 4
natea commented 10 years ago

According to this Stackoverflow post, to avoid this error you need to extend your RAM by creating a swap file: http://stackoverflow.com/questions/18334366/out-of-memory-issue-in-installing-packages-on-ubuntu-server

More info here: https://www.digitalocean.com/community/articles/how-to-add-swap-on-ubuntu-12-04