cyclestreets / nominatim-install

Bash script to install Nominatim
67 stars 31 forks source link

Docker image fails to build #27

Open bisoldi opened 9 years ago

bisoldi commented 9 years ago

When trying to build the Docker image, the build fails with a host of errors throughout the build process, see below.

Note, I realize the JVM error might be related to Issue #22 however I can't do much about the swap space or the .profile configuration during the build process.

Any help in being able to build nominatim, either standalone or Docker would be appreciated!

invoke-rc.d: policy-rc.d denied execution of start. update-initramfs: deferring update (trigger activated)


invoke-rc.d: unknown initscript, /etc/init.d/systemd-logind not found. invoke-rc.d: policy-rc.d denied execution of start.


Error: Could not create the Java Virtual Machine. Error: A fatal exception has occurred. Program will exit. Error occurred during initialization of VM Could not reserve enough space for object heap ignoring dump failure


(gconftool-2:5064): GConf-WARNING **: Client failed to connect to the D-BUS daemon: Unable to autolaunch a dbus-daemon without a $DISPLAY for X11

mvl22 commented 9 years ago

@melvinzhang Are you able to advise?

melvinzhang commented 9 years ago

@mvl22 sure, will look into it. @bisoldi can you paste your .config.sh file in this issue so that we can replicate the problem? Do change the password and other sensitive info to something else first.

melvinzhang commented 9 years ago

https://github.com/cyclestreets/nominatim-install/commit/779027f7291b5ad445bf7e993c8bd07be412b24e + https://github.com/cyclestreets/nominatim-install/pull/28 is able to build the image successfully using .config.sh modified from .config.sh.template as follows.

diff .config.sh .config.sh.template
19c19
< password=123456
---
> password=
26c26
< includeWikipedia=
---
> includeWikipedia=yes

Had to disable wikipedia to avoid running out of memory.