How to install neo4j on Debian?

1,807 views
Skip to first unread message

iain...@hotmail.co.uk

unread,
Jul 1, 2013, 1:12:31 PM7/1/13
to ne...@googlegroups.com
Hello,

I'm struggling to install neo4j on Debian after following the instructions at debian.neo4j.org.

The instructions are simple and clear, but don't work on my system.

First step is to import the signing key. This seems to work:

root@turing:/home/iain# wget -O - http://debian.neo4j.org/neotechnology.gpg.key | apt-key add -
Resolving debian.neo4j.org... 54.243.157.39
Connecting to debian.neo4j.org|54.243.157.39|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 988 [application/octet-stream]
Saving to: “STDOUT”

100%[======================================>] 988 --.-K/s in 0s

2013-07-01 15:37:06 (88.4 MB/s) - written to stdout [988/988]

OK

The next step is to create an apt source.list file. This fails with an error:

root@turing:/home/iain# echo 'deb http://debian.neo4j.org/repo stable' > /etc/apt/source.list.d/neo4j.list
bash: /etc/apt/source.list.d/neo4j.list: No such file or directory

It turns out that source.list.d doesn't exist yet, so I had to create the directory as well to make it work:

root@turing:/home/iain# mkdir /etc/apt/source.list.d
root@turing:/home/iain# echo 'deb http://debian.neo4j.org/repo stable' > /etc/apt/source.list.d/neo4j.list

The next step is to update the package repository. This is successful, but there is no neo4j output:

root@turing:/home/iain# aptitude update -y
Get:1 http://security.debian.org squeeze/updates Release.gpg [836 B]
Ign http://security.debian.org/ squeeze/updates/main Translation-en
Ign http://security.debian.org/ squeeze/updates/main Translation-en_US
Get:2 http://security.debian.org squeeze/updates Release [86.9 kB]
Get:3 http://security.debian.org squeeze/updates/main Sources [136 kB]
Hit http://ftp.us.debian.org squeeze Release.gpg
Ign http://ftp.us.debian.org/debian/ squeeze/main Translation-en
Ign http://ftp.us.debian.org/debian/ squeeze/main Translation-en_US
Get:4 http://ftp.us.debian.org squeeze-updates Release.gpg [1,571 B]
Ign http://ftp.us.debian.org/debian/ squeeze-updates/main Translation-en
Get:5 http://security.debian.org squeeze/updates/main i386 Packages [411 kB]
Ign http://ftp.us.debian.org/debian/ squeeze-updates/main Translation-en_US
Hit http://ftp.us.debian.org squeeze Release
Get:6 http://ftp.us.debian.org squeeze-updates Release [113 kB]
Hit http://ftp.us.debian.org squeeze/main Sources
Hit http://ftp.us.debian.org squeeze/main i386 Packages
Hit http://ftp.us.debian.org squeeze-updates/main Sources/DiffIndex
Hit http://ftp.us.debian.org squeeze-updates/main i386 Packages/DiffIndex
Get:7 http://ftp.us.debian.org squeeze-updates/main i386 Packages [4,451 B]
Fetched 755 kB in 1s (590 kB/s)

The final step is to install neo4j. This fails because aptitude can't find any neo4j packages:

root@turing:/home/iain# aptitude install neo4j -y
Couldn't find any package whose name or description matched "neo4j"
Couldn't find any package whose name or description matched "neo4j"
No packages will be installed, upgraded, or removed.
0 packages upgraded, 0 newly installed, 0 to remove and 20 not upgraded.
Need to get 0 B of archives. After unpacking 0 B will be used.

Looks like aptitude doesn't know about the neo4j.list file I created.

What are the missing steps to set up neo4j?

I'm running Debian 6.0.7 on a Linode VPS.

Thanks,
Iain

Michael Hunger

unread,
Jul 2, 2013, 3:19:38 AM7/2/13
to ne...@googlegroups.com
What exact debian version are you using?

Seems to have a different setup/layout for apt in /etc/apt than usual.

Can you show the content of /etc/apt too?

find /etc/apt

Michael

--
You received this message because you are subscribed to the Google Groups "Neo4j" group.
To unsubscribe from this group and stop receiving emails from it, send an email to neo4j+un...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Michael Hunger

unread,
Jul 2, 2013, 4:04:02 AM7/2/13
to ne...@googlegroups.com
Can you try to do:

cat /etc/apt/sources.list.d/neo4j/list >> /etc/apt/sources.list
aptitude update
aptitude install neo4j

Thanks

Michael

iain...@hotmail.co.uk

unread,
Jul 2, 2013, 7:56:17 AM7/2/13
to ne...@googlegroups.com
Hi, Michael.

Thanks for getting back to me.

My Debian version is 6.0.7 running on a Linode VPS.

The output of find revealed the first problem to be 'operator error':

"""
iain@turing:~$ find /etc/apt
/etc/apt
/etc/apt/preferences.d
/etc/apt/apt.conf.d
/etc/apt/apt.conf.d/20listchanges
/etc/apt/apt.conf.d/01autoremove
/etc/apt/apt.conf.d/00CDMountPoint
/etc/apt/apt.conf.d/00trustcdrom
/etc/apt/apt.conf.d/70debconf
/etc/apt/sources.list
/etc/apt/trusted.gpg.d
/etc/apt/sources.list~
/etc/apt/listchanges.conf
/etc/apt/sources.list.d
/etc/apt/trusted.gpg~
/etc/apt/trustdb.gpg
/etc/apt/trusted.gpg
/etc/apt/secring.gpg
/etc/apt/source.list.d
/etc/apt/source.list.d/neo4j.list
"""

I was trying to create 'source.list.d' rather than 'sources.list.d'. Also, I missed out a slash at the end of 'stable'. That's what I get for typing rather than copying.

The second command should have been:

"""
root@turing:/home/iain# echo 'deb http://debian.neo4j.org/repo stable/' > /etc/apt/sources.list.d/neo4j.list         
"""

After doing that, the aptitude update retrieved the package info:

"""
root@turing:/home/iain# aptitude update
Hit http://security.debian.org squeeze/updates Release.gpg
Ign http://security.debian.org/ squeeze/updates/main Translation-en
Ign http://security.debian.org/ squeeze/updates/main Translation-en_US
Hit http://security.debian.org squeeze/updates Release
Hit http://security.debian.org squeeze/updates/main Sources
Hit http://security.debian.org squeeze/updates/main i386 Packages
Hit http://ftp.us.debian.org squeeze Release.gpg
Ign http://ftp.us.debian.org/debian/ squeeze/main Translation-en
Ign http://ftp.us.debian.org/debian/ squeeze/main Translation-en_US
Get:1 http://ftp.us.debian.org squeeze-updates Release.gpg [1,571 B]
Ign http://ftp.us.debian.org/debian/ squeeze-updates/main Translation-en
Get:2 http://debian.neo4j.org stable/ Release.gpg [490 B]
Ign http://debian.neo4j.org/repo/ stable/ Translation-en
Ign http://debian.neo4j.org/repo/ stable/ Translation-en_US
Ign http://ftp.us.debian.org/debian/ squeeze-updates/main Translation-en_US
Hit http://ftp.us.debian.org squeeze Release
Get:3 http://debian.neo4j.org stable/ Release [1,479 B]
Get:4 http://ftp.us.debian.org squeeze-updates Release [113 kB]
Get:5 http://debian.neo4j.org stable/ Packages [3,595 B]
Hit http://ftp.us.debian.org squeeze/main Sources
Hit http://ftp.us.debian.org squeeze/main i386 Packages
Hit http://ftp.us.debian.org squeeze-updates/main Sources/DiffIndex
Hit http://ftp.us.debian.org squeeze-updates/main i386 Packages/DiffIndex
Get:6 http://ftp.us.debian.org squeeze-updates/main i386 Packages [4,451 B]
Fetched 125 kB in 1s (88.1 kB/s)

Current status: 6 new [+5].
"""

After all that, I'm still struggling to install neo4j. The installation fails because the neo4j service fails to start.

I found a log file at /var/log/neo4j/console.log. It contains a long list of Java exceptions.

I'm not sure which part of all that will help you debug the problem, so I've shared the complete output and logs below. I hope it's not too much to read through.

What should I try next?

Output of install command:

"""
root@turing:/home/iain# aptitude install neo4j
The following NEW packages will be installed:
  ca-certificates-java{a} daemon{a} dbus{a} default-jre{a} default-jre-headless{a} defoma{a} fontconfig{a}
  fontconfig-config{a} hicolor-icon-theme{a} java-common{a} libaccess-bridge-java{a}
  libaccess-bridge-java-jni{a} libasound2{a} libasyncns0{a} libatk1.0-0{a} libatk1.0-data{a} libavahi-client3{a}
  libavahi-common-data{a} libavahi-common3{a} libcairo2{a} libcups2{a} libdatrie1{a} libdbus-1-3{a} libflac8{a}
  libfont-freetype-perl{a} libfontconfig1{a} libfontenc1{a} libfreetype6{a} libgif4{a} libglib2.0-0{a}
  libglib2.0-data{a} libgtk2.0-0{a} libgtk2.0-bin{a} libgtk2.0-common{a} libice6{a} libjasper1{a} libjpeg62{a}
  liblcms1{a} libnspr4-0d{a} libnss3-1d{a} libogg0{a} libpango1.0-0{a} libpango1.0-common{a} libpixman-1-0{a}
  libpulse0{a} libsm6{a} libsndfile1{a} libthai-data{a} libthai0{a} libtiff4{a} libvorbis0a{a} libvorbisenc2{a}
  libx11-6{a} libx11-data{a} libxau6{a} libxcb-render-util0{a} libxcb-render0{a} libxcb1{a} libxcomposite1{a}
  libxcursor1{a} libxdamage1{a} libxdmcp6{a} libxext6{a} libxfixes3{a} libxfont1{a} libxft2{a} libxi6{a}
  libxinerama1{a} libxrandr2{a} libxrender1{a} libxtst6{a} neo4j openjdk-6-jre{a} openjdk-6-jre-headless{a}
  openjdk-6-jre-lib{a} shared-mime-info{a} ttf-dejavu-core{a} ttf-dejavu-extra{a} tzdata-java{a}
  x-ttcidfont-conf{a} x11-common{a} xfonts-encodings{a} xfonts-utils{a}
0 packages upgraded, 83 newly installed, 0 to remove and 20 not upgraded.
Need to get 0 B/98.8 MB of archives. After unpacking 226 MB will be used.
Do you want to continue? [Y/n/?] Y
Extracting templates from packages: 100%
Preconfiguring packages ...
Selecting previously deselected package daemon.
(Reading database ... 21698 files and directories currently installed.)
Unpacking daemon (from .../daemon_0.6.4-1_i386.deb) ...
Selecting previously deselected package libdbus-1-3.
Unpacking libdbus-1-3 (from .../libdbus-1-3_1.2.24-4+squeeze2_i386.deb) ...
Selecting previously deselected package dbus.
Unpacking dbus (from .../dbus_1.2.24-4+squeeze2_i386.deb) ...
Selecting previously deselected package openjdk-6-jre-lib.
Unpacking openjdk-6-jre-lib (from .../openjdk-6-jre-lib_6b18-1.8.13-0+squeeze2_all.deb) ...
Selecting previously deselected package ca-certificates-java.
Unpacking ca-certificates-java (from .../ca-certificates-java_20100412_all.deb) ...
Selecting previously deselected package tzdata-java.
Unpacking tzdata-java (from .../tzdata-java_2012g-0squeeze1_all.deb) ...
Selecting previously deselected package java-common.
Unpacking java-common (from .../java-common_0.40_all.deb) ...
Selecting previously deselected package libavahi-common-data.
Unpacking libavahi-common-data (from .../libavahi-common-data_0.6.27-2+squeeze1_i386.deb) ...
Selecting previously deselected package libavahi-common3.
Unpacking libavahi-common3 (from .../libavahi-common3_0.6.27-2+squeeze1_i386.deb) ...
Selecting previously deselected package libavahi-client3.
Unpacking libavahi-client3 (from .../libavahi-client3_0.6.27-2+squeeze1_i386.deb) ...
Selecting previously deselected package libcups2.
Unpacking libcups2 (from .../libcups2_1.4.4-7+squeeze3_i386.deb) ...
Selecting previously deselected package liblcms1.
Unpacking liblcms1 (from .../liblcms1_1.18.dfsg-1.2+b3_i386.deb) ...
Selecting previously deselected package libjpeg62.
Unpacking libjpeg62 (from .../libjpeg62_6b1-1_i386.deb) ...
Selecting previously deselected package libnspr4-0d.
Unpacking libnspr4-0d (from .../libnspr4-0d_4.8.6-1_i386.deb) ...
Selecting previously deselected package libnss3-1d.
Unpacking libnss3-1d (from .../libnss3-1d_3.12.8-1+squeeze6_i386.deb) ...
Selecting previously deselected package libfreetype6.
Unpacking libfreetype6 (from .../libfreetype6_2.4.2-2.1+squeeze4_i386.deb) ...
Selecting previously deselected package openjdk-6-jre-headless.
Unpacking openjdk-6-jre-headless (from .../openjdk-6-jre-headless_6b18-1.8.13-0+squeeze2_i386.deb) ...
Selecting previously deselected package default-jre-headless.
Unpacking default-jre-headless (from .../default-jre-headless_1%3a1.6-40_i386.deb) ...
Selecting previously deselected package libasound2.
Unpacking libasound2 (from .../libasound2_1.0.23-2.1_i386.deb) ...
Selecting previously deselected package libgif4.
Unpacking libgif4 (from .../libgif4_4.1.6-9_i386.deb) ...
Selecting previously deselected package libasyncns0.
Unpacking libasyncns0 (from .../libasyncns0_0.3-1.1_i386.deb) ...
Selecting previously deselected package x11-common.
Unpacking x11-common (from .../x11-common_1%3a7.5+8+squeeze1_all.deb) ...
Selecting previously deselected package libice6.
Unpacking libice6 (from .../libice6_2%3a1.0.6-2_i386.deb) ...
Selecting previously deselected package libsm6.
Unpacking libsm6 (from .../libsm6_2%3a1.1.1-1_i386.deb) ...
Selecting previously deselected package libogg0.
Unpacking libogg0 (from .../libogg0_1.2.0~dfsg-1_i386.deb) ...
Selecting previously deselected package libflac8.
Unpacking libflac8 (from .../libflac8_1.2.1-2+b1_i386.deb) ...
Selecting previously deselected package libvorbis0a.
Unpacking libvorbis0a (from .../libvorbis0a_1.3.1-1+squeeze1_i386.deb) ...
Selecting previously deselected package libvorbisenc2.
Unpacking libvorbisenc2 (from .../libvorbisenc2_1.3.1-1+squeeze1_i386.deb) ...
Selecting previously deselected package libsndfile1.
Unpacking libsndfile1 (from .../libsndfile1_1.0.21-3+squeeze1_i386.deb) ...
Selecting previously deselected package libxau6.
Unpacking libxau6 (from .../libxau6_1%3a1.0.6-1_i386.deb) ...
Selecting previously deselected package libxdmcp6.
Unpacking libxdmcp6 (from .../libxdmcp6_1%3a1.0.3-2_i386.deb) ...
Selecting previously deselected package libxcb1.
Unpacking libxcb1 (from .../libxcb1_1.6-1+squeeze1_i386.deb) ...
Selecting previously deselected package libx11-data.
Unpacking libx11-data (from .../libx11-data_2%3a1.3.3-4+squeeze1_all.deb) ...
Selecting previously deselected package libx11-6.
Unpacking libx11-6 (from .../libx11-6_2%3a1.3.3-4+squeeze1_i386.deb) ...
Selecting previously deselected package libxext6.
Unpacking libxext6 (from .../libxext6_2%3a1.1.2-1+squeeze1_i386.deb) ...
Selecting previously deselected package libxi6.
Unpacking libxi6 (from .../libxi6_2%3a1.3-8_i386.deb) ...
Selecting previously deselected package libxtst6.
Unpacking libxtst6 (from .../libxtst6_2%3a1.1.0-3+squeeze1_i386.deb) ...
Selecting previously deselected package libpulse0.
Unpacking libpulse0 (from .../libpulse0_0.9.21-3+squeeze1_i386.deb) ...
Selecting previously deselected package libxrender1.
Unpacking libxrender1 (from .../libxrender1_1%3a0.9.6-1+squeeze1_i386.deb) ...
Selecting previously deselected package libglib2.0-0.
Unpacking libglib2.0-0 (from .../libglib2.0-0_2.24.2-1_i386.deb) ...
Selecting previously deselected package libatk1.0-0.
Unpacking libatk1.0-0 (from .../libatk1.0-0_1.30.0-1_i386.deb) ...
Selecting previously deselected package ttf-dejavu-core.
Unpacking ttf-dejavu-core (from .../ttf-dejavu-core_2.31-1_all.deb) ...
Selecting previously deselected package fontconfig-config.
Unpacking fontconfig-config (from .../fontconfig-config_2.8.0-2.1_all.deb) ...
Selecting previously deselected package libfontconfig1.
Unpacking libfontconfig1 (from .../libfontconfig1_2.8.0-2.1_i386.deb) ...
Selecting previously deselected package libpixman-1-0.
Unpacking libpixman-1-0 (from .../libpixman-1-0_0.16.4-1_i386.deb) ...
Selecting previously deselected package libxcb-render0.
Unpacking libxcb-render0 (from .../libxcb-render0_1.6-1+squeeze1_i386.deb) ...
Selecting previously deselected package libxcb-render-util0.
Unpacking libxcb-render-util0 (from .../libxcb-render-util0_0.3.6-1_i386.deb) ...
Selecting previously deselected package libcairo2.
Unpacking libcairo2 (from .../libcairo2_1.8.10-6_i386.deb) ...
Selecting previously deselected package libgtk2.0-common.
Unpacking libgtk2.0-common (from .../libgtk2.0-common_2.20.1-2_all.deb) ...
Selecting previously deselected package libjasper1.
Unpacking libjasper1 (from .../libjasper1_1.900.1-7+squeeze1_i386.deb) ...
Selecting previously deselected package defoma.
Unpacking defoma (from .../defoma_0.11.11_all.deb) ...
Selecting previously deselected package fontconfig.
Unpacking fontconfig (from .../fontconfig_2.8.0-2.1_i386.deb) ...
Selecting previously deselected package libpango1.0-common.
Unpacking libpango1.0-common (from .../libpango1.0-common_1.28.3-1+squeeze2_all.deb) ...
Selecting previously deselected package libdatrie1.
Unpacking libdatrie1 (from .../libdatrie1_0.2.4-1_i386.deb) ...
Selecting previously deselected package libthai-data.
Unpacking libthai-data (from .../libthai-data_0.1.14-2_all.deb) ...
Selecting previously deselected package libthai0.
Unpacking libthai0 (from .../libthai0_0.1.14-2_i386.deb) ...
Selecting previously deselected package libxft2.
Unpacking libxft2 (from .../libxft2_2.1.14-2_i386.deb) ...
Selecting previously deselected package libpango1.0-0.
Unpacking libpango1.0-0 (from .../libpango1.0-0_1.28.3-1+squeeze2_i386.deb) ...
Selecting previously deselected package libtiff4.
Unpacking libtiff4 (from .../libtiff4_3.9.4-5+squeeze9_i386.deb) ...
Selecting previously deselected package libxfixes3.
Unpacking libxfixes3 (from .../libxfixes3_1%3a4.0.5-1+squeeze1_i386.deb) ...
Selecting previously deselected package libxcomposite1.
Unpacking libxcomposite1 (from .../libxcomposite1_1%3a0.4.2-1_i386.deb) ...
Selecting previously deselected package libxcursor1.
Unpacking libxcursor1 (from .../libxcursor1_1%3a1.1.10-2+squeeze1_i386.deb) ...
Selecting previously deselected package libxdamage1.
Unpacking libxdamage1 (from .../libxdamage1_1%3a1.1.3-1_i386.deb) ...
Selecting previously deselected package libxinerama1.
Unpacking libxinerama1 (from .../libxinerama1_2%3a1.1-3+squeeze1_i386.deb) ...
Selecting previously deselected package libxrandr2.
Unpacking libxrandr2 (from .../libxrandr2_2%3a1.3.0-3+squeeze1_i386.deb) ...
Selecting previously deselected package shared-mime-info.
Unpacking shared-mime-info (from .../shared-mime-info_0.71-4_i386.deb) ...
Selecting previously deselected package libgtk2.0-0.
Unpacking libgtk2.0-0 (from .../libgtk2.0-0_2.20.1-2_i386.deb) ...
Selecting previously deselected package libaccess-bridge-java.
Unpacking libaccess-bridge-java (from .../libaccess-bridge-java_1.26.2-5_all.deb) ...
Selecting previously deselected package libaccess-bridge-java-jni.
Unpacking libaccess-bridge-java-jni (from .../libaccess-bridge-java-jni_1.26.2-5_i386.deb) ...
Selecting previously deselected package openjdk-6-jre.
Unpacking openjdk-6-jre (from .../openjdk-6-jre_6b18-1.8.13-0+squeeze2_i386.deb) ...
Selecting previously deselected package default-jre.
Unpacking default-jre (from .../default-jre_1%3a1.6-40_i386.deb) ...
Selecting previously deselected package hicolor-icon-theme.
Unpacking hicolor-icon-theme (from .../hicolor-icon-theme_0.12-1_all.deb) ...
Selecting previously deselected package libatk1.0-data.
Unpacking libatk1.0-data (from .../libatk1.0-data_1.30.0-1_all.deb) ...
Selecting previously deselected package libfont-freetype-perl.
Unpacking libfont-freetype-perl (from .../libfont-freetype-perl_0.03-1_i386.deb) ...
Selecting previously deselected package libfontenc1.
Unpacking libfontenc1 (from .../libfontenc1_1%3a1.0.5-2_i386.deb) ...
Selecting previously deselected package libglib2.0-data.
Unpacking libglib2.0-data (from .../libglib2.0-data_2.24.2-1_all.deb) ...
Selecting previously deselected package libgtk2.0-bin.
Unpacking libgtk2.0-bin (from .../libgtk2.0-bin_2.20.1-2_all.deb) ...
Selecting previously deselected package libxfont1.
Unpacking libxfont1 (from .../libxfont1_1%3a1.4.1-3_i386.deb) ...
Selecting previously deselected package neo4j.
Unpacking neo4j (from .../archives/neo4j_1.9.1_all.deb) ...
Selecting previously deselected package ttf-dejavu-extra.
Unpacking ttf-dejavu-extra (from .../ttf-dejavu-extra_2.31-1_all.deb) ...
Selecting previously deselected package xfonts-encodings.
Unpacking xfonts-encodings (from .../xfonts-encodings_1%3a1.0.3-1_all.deb) ...
Selecting previously deselected package xfonts-utils.
Unpacking xfonts-utils (from .../xfonts-utils_1%3a7.5+2_i386.deb) ...
Selecting previously deselected package x-ttcidfont-conf.
Unpacking x-ttcidfont-conf (from .../x-ttcidfont-conf_32_all.deb) ...
Processing triggers for man-db ...
Setting up daemon (0.6.4-1) ...
Setting up libdbus-1-3 (1.2.24-4+squeeze2) ...
Setting up dbus (1.2.24-4+squeeze2) ...
Starting system message bus: dbus.
Setting up java-common (0.40) ...
Setting up tzdata-java (2012g-0squeeze1) ...
Setting up libavahi-common-data (0.6.27-2+squeeze1) ...
Setting up libavahi-common3 (0.6.27-2+squeeze1) ...
Setting up libavahi-client3 (0.6.27-2+squeeze1) ...
Setting up libcups2 (1.4.4-7+squeeze3) ...
Setting up liblcms1 (1.18.dfsg-1.2+b3) ...
Setting up libjpeg62 (6b1-1) ...
Setting up libnspr4-0d (4.8.6-1) ...
Setting up libnss3-1d (3.12.8-1+squeeze6) ...
Setting up libfreetype6 (2.4.2-2.1+squeeze4) ...
Setting up libasound2 (1.0.23-2.1) ...
Setting up libgif4 (4.1.6-9) ...
Setting up libasyncns0 (0.3-1.1) ...
Setting up x11-common (1:7.5+8+squeeze1) ...
Setting up libice6 (2:1.0.6-2) ...
Setting up libsm6 (2:1.1.1-1) ...
Setting up libogg0 (1.2.0~dfsg-1) ...
Setting up libflac8 (1.2.1-2+b1) ...
Setting up libvorbis0a (1.3.1-1+squeeze1) ...
Setting up libvorbisenc2 (1.3.1-1+squeeze1) ...
Setting up libsndfile1 (1.0.21-3+squeeze1) ...
Setting up libxau6 (1:1.0.6-1) ...
Setting up libxdmcp6 (1:1.0.3-2) ...
Setting up libxcb1 (1.6-1+squeeze1) ...
Setting up libx11-data (2:1.3.3-4+squeeze1) ...
Setting up libx11-6 (2:1.3.3-4+squeeze1) ...
Setting up libxext6 (2:1.1.2-1+squeeze1) ...
Setting up libxi6 (2:1.3-8) ...
Setting up libxtst6 (2:1.1.0-3+squeeze1) ...
Setting up libpulse0 (0.9.21-3+squeeze1) ...
Setting up libxrender1 (1:0.9.6-1+squeeze1) ...
Setting up libglib2.0-0 (2.24.2-1) ...
Setting up libatk1.0-0 (1.30.0-1) ...
Setting up ttf-dejavu-core (2.31-1) ...
Setting up fontconfig-config (2.8.0-2.1) ...
Setting up libfontconfig1 (2.8.0-2.1) ...
Setting up libpixman-1-0 (0.16.4-1) ...
Setting up libxcb-render0 (1.6-1+squeeze1) ...
Setting up libxcb-render-util0 (0.3.6-1) ...
Setting up libcairo2 (1.8.10-6) ...
Setting up libgtk2.0-common (2.20.1-2) ...
Setting up libjasper1 (1.900.1-7+squeeze1) ...
Setting up defoma (0.11.11) ...
Setting up fontconfig (2.8.0-2.1) ...
Updating font configuration of fontconfig...
Cleaning up category cid..
Cleaning up category truetype..
Cleaning up category type1..
Updating category type1..
Updating category truetype..
Updating category cid..
Regenerating fonts cache... done.
Setting up libpango1.0-common (1.28.3-1+squeeze2) ...
Cleaning up font configuration of pango...
Updating font configuration of pango...
Cleaning up category xfont..
Updating category xfont..
Setting up libdatrie1 (0.2.4-1) ...
Setting up libthai-data (0.1.14-2) ...
Setting up libthai0 (0.1.14-2) ...
Setting up libxft2 (2.1.14-2) ...
Setting up libpango1.0-0 (1.28.3-1+squeeze2) ...
Setting up libtiff4 (3.9.4-5+squeeze9) ...
Setting up libxfixes3 (1:4.0.5-1+squeeze1) ...
Setting up libxcomposite1 (1:0.4.2-1) ...
Setting up libxcursor1 (1:1.1.10-2+squeeze1) ...
Setting up libxdamage1 (1:1.1.3-1) ...
Setting up libxinerama1 (2:1.1-3+squeeze1) ...
Setting up libxrandr2 (2:1.3.0-3+squeeze1) ...
Setting up shared-mime-info (0.71-4) ...
Setting up libgtk2.0-0 (2.20.1-2) ...
Setting up hicolor-icon-theme (0.12-1) ...
Setting up libatk1.0-data (1.30.0-1) ...
Setting up libfont-freetype-perl (0.03-1) ...
Setting up libfontenc1 (1:1.0.5-2) ...
Setting up libglib2.0-data (2.24.2-1) ...
Setting up libgtk2.0-bin (2.20.1-2) ...
Setting up libxfont1 (1:1.4.1-3) ...
Setting up ttf-dejavu-extra (2.31-1) ...
Setting up xfonts-encodings (1:1.0.3-1) ...
Setting up xfonts-utils (1:7.5+2) ...
Setting up x-ttcidfont-conf (32) ...
Updating font configuration of x-ttcidfont-conf...
Cleaning up category cmap..
Cleaning up category cid..
Cleaning up category truetype..
Updating category truetype..
Updating category cid..
Updating category cmap..
Setting up openjdk-6-jre-lib (6b18-1.8.13-0+squeeze2) ...
Setting up openjdk-6-jre-headless (6b18-1.8.13-0+squeeze2) ...
update-alternatives: using /usr/lib/jvm/java-6-openjdk/jre/bin/java to provide /usr/bin/java (java) in auto mode.
update-alternatives: using /usr/lib/jvm/java-6-openjdk/jre/bin/keytool to provide /usr/bin/keytool (keytool) in auto mode.
update-alternatives: using /usr/lib/jvm/java-6-openjdk/jre/bin/pack200 to provide /usr/bin/pack200 (pack200) in auto mode.
update-alternatives: using /usr/lib/jvm/java-6-openjdk/jre/bin/rmid to provide /usr/bin/rmid (rmid) in auto mode.
update-alternatives: using /usr/lib/jvm/java-6-openjdk/jre/bin/rmiregistry to provide /usr/bin/rmiregistry (rmiregistry) in auto mode.
update-alternatives: using /usr/lib/jvm/java-6-openjdk/jre/bin/unpack200 to provide /usr/bin/unpack200 (unpack200) in auto mode.
update-alternatives: using /usr/lib/jvm/java-6-openjdk/jre/bin/orbd to provide /usr/bin/orbd (orbd) in auto mode.
update-alternatives: using /usr/lib/jvm/java-6-openjdk/jre/bin/servertool to provide /usr/bin/servertool (servertool) in auto mode.
update-alternatives: using /usr/lib/jvm/java-6-openjdk/jre/bin/tnameserv to provide /usr/bin/tnameserv (tnameserv) in auto mode.
update-alternatives: using /usr/lib/jvm/java-6-openjdk/jre/lib/jexec to provide /usr/bin/jexec (jexec) in auto mode.
Setting up libaccess-bridge-java (1.26.2-5) ...
Setting up default-jre-headless (1:1.6-40) ...
Setting up ca-certificates-java (20100412) ...
Setting up libaccess-bridge-java-jni (1.26.2-5) ...
Setting up openjdk-6-jre (6b18-1.8.13-0+squeeze2) ...
update-alternatives: using /usr/lib/jvm/java-6-openjdk/jre/bin/javaws to provide /usr/bin/javaws (javaws) in auto mode.
update-alternatives: using /usr/lib/jvm/java-6-openjdk/jre/bin/pluginappletviewer to provide /usr/bin/pluginappletviewer (pluginappletviewer) in auto mode.
update-alternatives: using /usr/lib/jvm/java-6-openjdk/jre/bin/policytool to provide /usr/bin/policytool (policytool) in auto mode.
Setting up default-jre (1:1.6-40) ...
Setting up neo4j (1.9.1) ...
Running in headless (-h) mode
Installing with user neo4j
update-rc.d: using dependency based boot sequencing
WARNING: Max 1024 open files allowed, minimum of 40 000 recommended. See the Neo4j manual.
WARNING! You are using an unsupported Java runtime. Please use Oracle(R) Java(TM) Runtime Environment 7.
Using additional JVM arguments:  -server -XX:+DisableExplicitGC -Dorg.neo4j.server.properties=conf/neo4j-server.properties -Djava.util.logging.config.file=conf/logging.properties -Dlog4j.configuration=file:conf/log4j.properties -XX:+UseConcMarkSweepGC -XX:+CMSClassUnloadingEnabled
Starting Neo4j Server...process [8499]... waiting for server to be ready................................................................................................................................ Failed to start within 120 seconds.
Neo4j Server may have failed to start, please check the logs.
invoke-rc.d: initscript neo4j-service, action "start" failed.
dpkg: error processing neo4j (--configure):
 subprocess installed post-installation script returned error exit status 1
configured to not write apport reports
                                      Errors were encountered while processing:
 neo4j
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install.  Trying to recover:
Setting up neo4j (1.9.1) ...
Running in headless (-h) mode
Installing with user neo4j
neo4j-service already installed.
WARNING: Max 1024 open files allowed, minimum of 40 000 recommended. See the Neo4j manual.
WARNING! You are using an unsupported Java runtime. Please use Oracle(R) Java(TM) Runtime Environment 7.
Using additional JVM arguments:  -server -XX:+DisableExplicitGC -Dorg.neo4j.server.properties=conf/neo4j-server.properties -Djava.util.logging.config.file=conf/logging.properties -Dlog4j.configuration=file:conf/log4j.properties -XX:+UseConcMarkSweepGC -XX:+CMSClassUnloadingEnabled
Starting Neo4j Server...process [9376]... waiting for server to be ready... Failed to start within 120 seconds.
Neo4j Server may have failed to start, please check the logs.
invoke-rc.d: initscript neo4j-service, action "start" failed.
dpkg: error processing neo4j (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 neo4j
"""

Content of /var/log/neo4j/console.log:

"""
root@turing:/home/iain# cat /var/log/neo4j/console.log
7/2/13 11:02:18 AM org.neo4j.server.CommunityBootstrapper WARNING: WARNING! You are using an unsupported Java runtime. Please use Oracle(R) Java(TM) Runtime Environment 7.
7/2/13 11:02:18 AM org.neo4j.server.AbstractNeoServer INFO: Setting startup timeout to: 120000ms based on -1
7/2/13 11:02:18 AM org.neo4j.server.database.Database INFO: Loaded neo4j tuning properties from conf/neo4j.properties
11:02:18.844 [main] WARN  o.neo4j.kernel.EmbeddedGraphDatabase - WARNING! You are using an unsupported Java runtime. Please use Oracle(R) Java(TM) Runtime Environment 7.
java.lang.Throwable
        at org.neo4j.server.InterruptThreadTimer$InterruptThreadTask.run(InterruptThreadTimer.java:52)
        at java.util.TimerThread.mainLoop(Timer.java:534)
        at java.util.TimerThread.run(Timer.java:484)
org.neo4j.kernel.lifecycle.LifecycleException: Component 'org.neo4j.kernel.impl.transaction.XaDataSourceManager@13ec2dd' failed to stop. Please see attached cause exception.
        at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.stop(LifeSupport.java:515)
        at org.neo4j.kernel.lifecycle.LifeSupport.stop(LifeSupport.java:146)
        at org.neo4j.kernel.lifecycle.LifeSupport.start(LifeSupport.java:112)
        at org.neo4j.kernel.InternalAbstractGraphDatabase.run(InternalAbstractGraphDatabase.java:259)
        at org.neo4j.kernel.EmbeddedGraphDatabase.<init>(EmbeddedGraphDatabase.java:106)
        at org.neo4j.graphdb.factory.GraphDatabaseFactory$1.newDatabase(GraphDatabaseFactory.java:88)
        at org.neo4j.graphdb.factory.GraphDatabaseBuilder.newGraphDatabase(GraphDatabaseBuilder.java:207)
        at org.neo4j.server.database.CommunityDatabase.start(CommunityDatabase.java:59)
        at org.neo4j.server.AbstractNeoServer.start(AbstractNeoServer.java:164)
        at org.neo4j.server.Bootstrapper.start(Bootstrapper.java:86)
        at org.neo4j.server.Bootstrapper.main(Bootstrapper.java:49)
Caused by: org.neo4j.kernel.lifecycle.LifecycleException: Component 'org.neo4j.kernel.impl.nioneo.xa.NeoStoreXaDataSource@2af8f5' failed to stop. Please see attached cause exception.
        at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.stop(LifeSupport.java:515)
        at org.neo4j.kernel.lifecycle.LifeSupport.stop(LifeSupport.java:146)
        at org.neo4j.kernel.impl.transaction.XaDataSourceManager.stop(XaDataSourceManager.java:149)
        at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.stop(LifeSupport.java:511)
        ... 10 more
Caused by: java.lang.RuntimeException: java.nio.channels.ClosedByInterruptException
        at org.neo4j.kernel.impl.transaction.xaframework.LogBackedXaDataSource.stop(LogBackedXaDataSource.java:72)
        at org.neo4j.kernel.impl.nioneo.xa.NeoStoreXaDataSource.stop(NeoStoreXaDataSource.java:301)
        at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.stop(LifeSupport.java:511)
        ... 13 more
Caused by: java.nio.channels.ClosedByInterruptException
        at java.nio.channels.spi.AbstractInterruptibleChannel.end(AbstractInterruptibleChannel.java:201)
        at sun.nio.ch.FileChannelImpl.write(FileChannelImpl.java:694)
        at org.neo4j.kernel.impl.transaction.xaframework.DirectMappedLogBuffer.writeOut(DirectMappedLogBuffer.java:159)
        at org.neo4j.kernel.impl.transaction.xaframework.DirectMappedLogBuffer.force(DirectMappedLogBuffer.java:172)
        at org.neo4j.kernel.impl.transaction.xaframework.XaLogicalLog.releaseCurrentLogFile(XaLogicalLog.java:675)
        at org.neo4j.kernel.impl.transaction.xaframework.XaLogicalLog.close(XaLogicalLog.java:700)
        at org.neo4j.kernel.impl.transaction.xaframework.LogBackedXaDataSource.stop(LogBackedXaDataSource.java:68)
        ... 15 more
org.neo4j.kernel.lifecycle.LifecycleException: Component 'org.neo4j.kernel.extension.KernelExtensions@1a4181c' was successfully initialized, but failed to start. Please see attached cause exception.
        at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:497)
        at org.neo4j.kernel.lifecycle.LifeSupport.start(LifeSupport.java:104)
        at org.neo4j.kernel.InternalAbstractGraphDatabase.run(InternalAbstractGraphDatabase.java:259)
        at org.neo4j.kernel.EmbeddedGraphDatabase.<init>(EmbeddedGraphDatabase.java:106)
        at org.neo4j.graphdb.factory.GraphDatabaseFactory$1.newDatabase(GraphDatabaseFactory.java:88)
        at org.neo4j.graphdb.factory.GraphDatabaseBuilder.newGraphDatabase(GraphDatabaseBuilder.java:207)
        at org.neo4j.server.database.CommunityDatabase.start(CommunityDatabase.java:59)
        at org.neo4j.server.AbstractNeoServer.start(AbstractNeoServer.java:164)
        at org.neo4j.server.Bootstrapper.start(Bootstrapper.java:86)
        at org.neo4j.server.Bootstrapper.main(Bootstrapper.java:49)
Caused by: org.neo4j.kernel.lifecycle.LifecycleException: Component 'org.neo4j.index.lucene.LuceneKernelExtension@7bfc04' was successfully initialized, but failed to start. Please see attached cause exception.
        at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:497)
        at org.neo4j.kernel.lifecycle.LifeSupport.start(LifeSupport.java:104)
        at org.neo4j.kernel.extension.KernelExtensions.start(KernelExtensions.java:113)
        at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:491)
        ... 9 more
Caused by: org.neo4j.kernel.lifecycle.LifecycleException: Component 'org.neo4j.index.impl.lucene.LuceneDataSource@1aa0a15' was successfully initialized, but failed to start. Please see attached cause exception.
        at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:497)
        at org.neo4j.kernel.lifecycle.LifeSupport.bringToState(LifeSupport.java:404)
        at org.neo4j.kernel.lifecycle.LifeSupport.add(LifeSupport.java:318)
        at org.neo4j.kernel.impl.transaction.XaDataSourceManager.registerDataSource(XaDataSourceManager.java:196)
        at org.neo4j.index.lucene.LuceneKernelExtension.start(LuceneKernelExtension.java:86)
        at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:491)
        ... 12 more
Caused by: java.lang.RuntimeException: java.nio.channels.ClosedByInterruptException
        at org.neo4j.kernel.impl.index.IndexProviderStore.<init>(IndexProviderStore.java:85)
        at org.neo4j.index.impl.lucene.LuceneDataSource.newIndexStore(LuceneDataSource.java:299)
        at org.neo4j.index.impl.lucene.LuceneDataSource.start(LuceneDataSource.java:223)
        at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:491)
        ... 17 more
Caused by: java.nio.channels.ClosedByInterruptException
        at java.nio.channels.spi.AbstractInterruptibleChannel.end(AbstractInterruptibleChannel.java:201)
        at sun.nio.ch.FileChannelImpl.position(FileChannelImpl.java:313)
        at org.neo4j.kernel.impl.index.IndexProviderStore.write(IndexProviderStore.java:169)
        at org.neo4j.kernel.impl.index.IndexProviderStore.create(IndexProviderStore.java:153)
        at org.neo4j.kernel.impl.index.IndexProviderStore.<init>(IndexProviderStore.java:61)
        ... 20 more
7/2/13 11:04:26 AM org.neo4j.server.database.Database SEVERE: Failed to start database.
7/2/13 11:04:26 AM org.neo4j.server.CommunityBootstrapper SEVERE:
org.neo4j.server.ServerStartupException: Startup took longer than 120000ms, and was stopped. You can disable this behavior by setting 'org.neo4j.server.startup_timeout' to 0. Error code: 1
        at org.neo4j.server.AbstractNeoServer.start(AbstractNeoServer.java:201)
        at org.neo4j.server.Bootstrapper.start(Bootstrapper.java:86)
        at org.neo4j.server.Bootstrapper.main(Bootstrapper.java:49)
7/2/13 11:04:26 AM org.neo4j.server.CommunityBootstrapper SEVERE: Failed to start Neo Server on port [7474]
7/2/13 11:04:28 AM org.neo4j.server.CommunityBootstrapper WARNING: WARNING! You are using an unsupported Java runtime. Please use Oracle(R) Java(TM) Runtime Environment 7.
7/2/13 11:04:28 AM org.neo4j.server.AbstractNeoServer INFO: Setting startup timeout to: 120000ms based on -1
Detected incorrectly shut down database, performing recovery..
11:04:29.139 [main] WARN  o.neo4j.kernel.EmbeddedGraphDatabase - WARNING! You are using an unsupported Java runtime. Please use Oracle(R) Java(TM) Runtime Environment 7.
7/2/13 11:04:29 AM org.neo4j.server.CommunityBootstrapper SEVERE:
java.lang.RuntimeException: org.neo4j.kernel.lifecycle.LifecycleException: Component 'org.neo4j.kernel.extension.KernelExtensions@1bb326c' was successfully initialized, but failed to start. Please see attached cause exception.
        at org.neo4j.kernel.InternalAbstractGraphDatabase.run(InternalAbstractGraphDatabase.java:281)
        at org.neo4j.kernel.EmbeddedGraphDatabase.<init>(EmbeddedGraphDatabase.java:106)
        at org.neo4j.graphdb.factory.GraphDatabaseFactory$1.newDatabase(GraphDatabaseFactory.java:88)
        at org.neo4j.graphdb.factory.GraphDatabaseBuilder.newGraphDatabase(GraphDatabaseBuilder.java:207)
        at org.neo4j.kernel.impl.recovery.StoreRecoverer.recover(StoreRecoverer.java:114)
        at org.neo4j.server.preflight.PerformRecoveryIfNecessary.run(PerformRecoveryIfNecessary.java:59)
        at org.neo4j.server.preflight.PreFlightTasks.run(PreFlightTasks.java:70)
        at org.neo4j.server.AbstractNeoServer.runPreflightTasks(AbstractNeoServer.java:280)
        at org.neo4j.server.AbstractNeoServer.start(AbstractNeoServer.java:160)
        at org.neo4j.server.Bootstrapper.start(Bootstrapper.java:86)
        at org.neo4j.server.Bootstrapper.main(Bootstrapper.java:49)
Caused by: org.neo4j.kernel.lifecycle.LifecycleException: Component 'org.neo4j.kernel.extension.KernelExtensions@1bb326c' was successfully initialized, but failed to start. Please see attached cause exception.
        at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:497)
        at org.neo4j.kernel.lifecycle.LifeSupport.start(LifeSupport.java:104)
        at org.neo4j.kernel.InternalAbstractGraphDatabase.run(InternalAbstractGraphDatabase.java:259)
        ... 10 more
Caused by: org.neo4j.kernel.lifecycle.LifecycleException: Component 'org.neo4j.index.lucene.LuceneKernelExtension@1818f80' was successfully initialized, but failed to start. Please see attached cause exception.
        at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:497)
        at org.neo4j.kernel.lifecycle.LifeSupport.start(LifeSupport.java:104)
        at org.neo4j.kernel.extension.KernelExtensions.start(KernelExtensions.java:113)
        at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:491)
        ... 12 more
Caused by: org.neo4j.kernel.lifecycle.LifecycleException: Component 'org.neo4j.index.impl.lucene.LuceneDataSource@1128f5a' was successfully initialized, but failed to start. Please see attached cause exception.
        at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:497)
        at org.neo4j.kernel.lifecycle.LifeSupport.bringToState(LifeSupport.java:404)
        at org.neo4j.kernel.lifecycle.LifeSupport.add(LifeSupport.java:318)
        at org.neo4j.kernel.impl.transaction.XaDataSourceManager.registerDataSource(XaDataSourceManager.java:196)
        at org.neo4j.index.lucene.LuceneKernelExtension.start(LuceneKernelExtension.java:86)
        at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:491)
        ... 15 more
Caused by: org.neo4j.kernel.impl.storemigration.UpgradeNotAllowedByConfigurationException: Index version (managed by /var/lib/neo4j/data/graph.db/index/lucene-store.db) has changed and cannot be upgraded unless allow_store_upgrade=true is supplied in the configuration
        at org.neo4j.kernel.impl.index.IndexProviderStore.readRecordsWithNullDefaults(IndexProviderStore.java:133)
        at org.neo4j.kernel.impl.index.IndexProviderStore.<init>(IndexProviderStore.java:65)
        at org.neo4j.index.impl.lucene.LuceneDataSource.newIndexStore(LuceneDataSource.java:299)
        at org.neo4j.index.impl.lucene.LuceneDataSource.start(LuceneDataSource.java:223)
        at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:491)
        ... 20 more
7/2/13 11:04:29 AM org.neo4j.server.CommunityBootstrapper SEVERE: Failed to start Neo Server on port [7474]
7/2/13 11:06:29 AM org.neo4j.server.CommunityBootstrapper WARNING: WARNING! You are using an unsupported Java runtime. Please use Oracle(R) Java(TM) Runtime Environment 7.
7/2/13 11:06:29 AM org.neo4j.server.AbstractNeoServer INFO: Setting startup timeout to: 120000ms based on -1
7/2/13 11:06:29 AM org.neo4j.server.database.Database INFO: Loaded neo4j tuning properties from conf/neo4j.properties
11:06:29.743 [main] WARN  o.neo4j.kernel.EmbeddedGraphDatabase - WARNING! You are using an unsupported Java runtime. Please use Oracle(R) Java(TM) Runtime Environment 7.
java.lang.Throwable
        at org.neo4j.server.InterruptThreadTimer$InterruptThreadTask.run(InterruptThreadTimer.java:52)
        at java.util.TimerThread.mainLoop(Timer.java:534)
        at java.util.TimerThread.run(Timer.java:484)
org.neo4j.kernel.lifecycle.LifecycleException: Component 'org.neo4j.kernel.impl.transaction.XaDataSourceManager@122c9df' failed to stop. Please see attached cause exception.
        at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.stop(LifeSupport.java:515)
        at org.neo4j.kernel.lifecycle.LifeSupport.stop(LifeSupport.java:146)
        at org.neo4j.kernel.lifecycle.LifeSupport.start(LifeSupport.java:112)
        at org.neo4j.kernel.InternalAbstractGraphDatabase.run(InternalAbstractGraphDatabase.java:259)
        at org.neo4j.kernel.EmbeddedGraphDatabase.<init>(EmbeddedGraphDatabase.java:106)
        at org.neo4j.graphdb.factory.GraphDatabaseFactory$1.newDatabase(GraphDatabaseFactory.java:88)
        at org.neo4j.graphdb.factory.GraphDatabaseBuilder.newGraphDatabase(GraphDatabaseBuilder.java:207)
        at org.neo4j.server.database.CommunityDatabase.start(CommunityDatabase.java:59)
        at org.neo4j.server.AbstractNeoServer.start(AbstractNeoServer.java:164)
        at org.neo4j.server.Bootstrapper.start(Bootstrapper.java:86)
        at org.neo4j.server.Bootstrapper.main(Bootstrapper.java:49)
Caused by: org.neo4j.kernel.lifecycle.LifecycleException: Component 'org.neo4j.kernel.impl.nioneo.xa.NeoStoreXaDataSource@33c658' failed to stop. Please see attached cause exception.
        at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.stop(LifeSupport.java:515)
        at org.neo4j.kernel.lifecycle.LifeSupport.stop(LifeSupport.java:146)
        at org.neo4j.kernel.impl.transaction.XaDataSourceManager.stop(XaDataSourceManager.java:149)
        at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.stop(LifeSupport.java:511)
        ... 10 more
Caused by: java.lang.RuntimeException: java.nio.channels.ClosedByInterruptException
        at org.neo4j.kernel.impl.transaction.xaframework.LogBackedXaDataSource.stop(LogBackedXaDataSource.java:72)
        at org.neo4j.kernel.impl.nioneo.xa.NeoStoreXaDataSource.stop(NeoStoreXaDataSource.java:301)
        at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.stop(LifeSupport.java:511)
        ... 13 more
Caused by: java.nio.channels.ClosedByInterruptException
        at java.nio.channels.spi.AbstractInterruptibleChannel.end(AbstractInterruptibleChannel.java:201)
        at sun.nio.ch.FileChannelImpl.write(FileChannelImpl.java:694)
        at org.neo4j.kernel.impl.transaction.xaframework.DirectMappedLogBuffer.writeOut(DirectMappedLogBuffer.java:159)
        at org.neo4j.kernel.impl.transaction.xaframework.DirectMappedLogBuffer.force(DirectMappedLogBuffer.java:172)
        at org.neo4j.kernel.impl.transaction.xaframework.XaLogicalLog.releaseCurrentLogFile(XaLogicalLog.java:675)
        at org.neo4j.kernel.impl.transaction.xaframework.XaLogicalLog.close(XaLogicalLog.java:700)
        at org.neo4j.kernel.impl.transaction.xaframework.LogBackedXaDataSource.stop(LogBackedXaDataSource.java:68)
        ... 15 more
org.neo4j.kernel.lifecycle.LifecycleException: Component 'org.neo4j.kernel.extension.KernelExtensions@c789fb' was successfully initialized, but failed to start. Please see attached cause exception.
        at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:497)
        at org.neo4j.kernel.lifecycle.LifeSupport.start(LifeSupport.java:104)
        at org.neo4j.kernel.InternalAbstractGraphDatabase.run(InternalAbstractGraphDatabase.java:259)
        at org.neo4j.kernel.EmbeddedGraphDatabase.<init>(EmbeddedGraphDatabase.java:106)
        at org.neo4j.graphdb.factory.GraphDatabaseFactory$1.newDatabase(GraphDatabaseFactory.java:88)
        at org.neo4j.graphdb.factory.GraphDatabaseBuilder.newGraphDatabase(GraphDatabaseBuilder.java:207)
        at org.neo4j.server.database.CommunityDatabase.start(CommunityDatabase.java:59)
        at org.neo4j.server.AbstractNeoServer.start(AbstractNeoServer.java:164)
        at org.neo4j.server.Bootstrapper.start(Bootstrapper.java:86)
        at org.neo4j.server.Bootstrapper.main(Bootstrapper.java:49)
Caused by: org.neo4j.kernel.lifecycle.LifecycleException: Component 'org.neo4j.index.lucene.LuceneKernelExtension@d337d3' was successfully initialized, but failed to start. Please see attached cause exception.
        at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:497)
        at org.neo4j.kernel.lifecycle.LifeSupport.start(LifeSupport.java:104)
        at org.neo4j.kernel.extension.KernelExtensions.start(KernelExtensions.java:113)
        at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:491)
        ... 9 more
Caused by: org.neo4j.kernel.lifecycle.LifecycleException: Component 'org.neo4j.index.impl.lucene.LuceneDataSource@17050f5' was successfully initialized, but failed to start. Please see attached cause exception.
        at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:497)
        at org.neo4j.kernel.lifecycle.LifeSupport.bringToState(LifeSupport.java:404)
        at org.neo4j.kernel.lifecycle.LifeSupport.add(LifeSupport.java:318)
        at org.neo4j.kernel.impl.transaction.XaDataSourceManager.registerDataSource(XaDataSourceManager.java:196)
        at org.neo4j.index.lucene.LuceneKernelExtension.start(LuceneKernelExtension.java:86)
        at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:491)
        ... 12 more
Caused by: java.lang.RuntimeException: java.nio.channels.ClosedByInterruptException
        at org.neo4j.kernel.impl.index.IndexProviderStore.<init>(IndexProviderStore.java:85)
        at org.neo4j.index.impl.lucene.LuceneDataSource.newIndexStore(LuceneDataSource.java:299)
        at org.neo4j.index.impl.lucene.LuceneDataSource.start(LuceneDataSource.java:223)
        at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:491)
        ... 17 more
Caused by: java.nio.channels.ClosedByInterruptException
        at java.nio.channels.spi.AbstractInterruptibleChannel.end(AbstractInterruptibleChannel.java:201)
        at sun.nio.ch.FileChannelImpl.read(FileChannelImpl.java:170)
        at org.neo4j.kernel.impl.index.IndexProviderStore.readRecordsWithNullDefaults(IndexProviderStore.java:130)
        at org.neo4j.kernel.impl.index.IndexProviderStore.<init>(IndexProviderStore.java:65)
        ... 20 more
7/2/13 11:08:37 AM org.neo4j.server.database.Database SEVERE: Failed to start database.
7/2/13 11:08:37 AM org.neo4j.server.CommunityBootstrapper SEVERE:
org.neo4j.server.ServerStartupException: Startup took longer than 120000ms, and was stopped. You can disable this behavior by setting 'org.neo4j.server.startup_timeout' to 0. Error code: 1
        at org.neo4j.server.AbstractNeoServer.start(AbstractNeoServer.java:201)
        at org.neo4j.server.Bootstrapper.start(Bootstrapper.java:86)
        at org.neo4j.server.Bootstrapper.main(Bootstrapper.java:49)
7/2/13 11:08:37 AM org.neo4j.server.CommunityBootstrapper SEVERE: Failed to start Neo Server on port [7474]
7/2/13 11:08:39 AM org.neo4j.server.CommunityBootstrapper WARNING: WARNING! You are using an unsupported Java runtime. Please use Oracle(R) Java(TM) Runtime Environment 7.
7/2/13 11:08:40 AM org.neo4j.server.AbstractNeoServer INFO: Setting startup timeout to: 120000ms based on -1
Detected incorrectly shut down database, performing recovery..
11:08:40.267 [main] WARN  o.neo4j.kernel.EmbeddedGraphDatabase - WARNING! You are using an unsupported Java runtime. Please use Oracle(R) Java(TM) Runtime Environment 7.
7/2/13 11:08:41 AM org.neo4j.server.CommunityBootstrapper SEVERE:
java.lang.RuntimeException: org.neo4j.kernel.lifecycle.LifecycleException: Component 'org.neo4j.kernel.extension.KernelExtensions@118cb3a' was successfully initialized, but failed to start. Please see attached cause exception.
        at org.neo4j.kernel.InternalAbstractGraphDatabase.run(InternalAbstractGraphDatabase.java:281)
        at org.neo4j.kernel.EmbeddedGraphDatabase.<init>(EmbeddedGraphDatabase.java:106)
        at org.neo4j.graphdb.factory.GraphDatabaseFactory$1.newDatabase(GraphDatabaseFactory.java:88)
        at org.neo4j.graphdb.factory.GraphDatabaseBuilder.newGraphDatabase(GraphDatabaseBuilder.java:207)
        at org.neo4j.kernel.impl.recovery.StoreRecoverer.recover(StoreRecoverer.java:114)
        at org.neo4j.server.preflight.PerformRecoveryIfNecessary.run(PerformRecoveryIfNecessary.java:59)
        at org.neo4j.server.preflight.PreFlightTasks.run(PreFlightTasks.java:70)
        at org.neo4j.server.AbstractNeoServer.runPreflightTasks(AbstractNeoServer.java:280)
        at org.neo4j.server.AbstractNeoServer.start(AbstractNeoServer.java:160)
        at org.neo4j.server.Bootstrapper.start(Bootstrapper.java:86)
        at org.neo4j.server.Bootstrapper.main(Bootstrapper.java:49)
Caused by: org.neo4j.kernel.lifecycle.LifecycleException: Component 'org.neo4j.kernel.extension.KernelExtensions@118cb3a' was successfully initialized, but failed to start. Please see attached cause exception.
        at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:497)
        at org.neo4j.kernel.lifecycle.LifeSupport.start(LifeSupport.java:104)
        at org.neo4j.kernel.InternalAbstractGraphDatabase.run(InternalAbstractGraphDatabase.java:259)
        ... 10 more
Caused by: org.neo4j.kernel.lifecycle.LifecycleException: Component 'org.neo4j.index.lucene.LuceneKernelExtension@8beff2' was successfully initialized, but failed to start. Please see attached cause exception.
        at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:497)
        at org.neo4j.kernel.lifecycle.LifeSupport.start(LifeSupport.java:104)
        at org.neo4j.kernel.extension.KernelExtensions.start(KernelExtensions.java:113)
        at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:491)
        ... 12 more
Caused by: org.neo4j.kernel.lifecycle.LifecycleException: Component 'org.neo4j.index.impl.lucene.LuceneDataSource@dc9065' was successfully initialized, but failed to start. Please see attached cause exception.
        at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:497)
        at org.neo4j.kernel.lifecycle.LifeSupport.bringToState(LifeSupport.java:404)
        at org.neo4j.kernel.lifecycle.LifeSupport.add(LifeSupport.java:318)
        at org.neo4j.kernel.impl.transaction.XaDataSourceManager.registerDataSource(XaDataSourceManager.java:196)
        at org.neo4j.index.lucene.LuceneKernelExtension.start(LuceneKernelExtension.java:86)
        at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:491)
        ... 15 more
Caused by: org.neo4j.kernel.impl.storemigration.UpgradeNotAllowedByConfigurationException: Index version (managed by /var/lib/neo4j/data/graph.db/index/lucene-store.db) has changed and cannot be upgraded unless allow_store_upgrade=true is supplied in the configuration
        at org.neo4j.kernel.impl.index.IndexProviderStore.readRecordsWithNullDefaults(IndexProviderStore.java:133)
        at org.neo4j.kernel.impl.index.IndexProviderStore.<init>(IndexProviderStore.java:65)
        at org.neo4j.index.impl.lucene.LuceneDataSource.newIndexStore(LuceneDataSource.java:299)
        at org.neo4j.index.impl.lucene.LuceneDataSource.start(LuceneDataSource.java:223)
        at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:491)
        ... 20 more
7/2/13 11:08:41 AM org.neo4j.server.CommunityBootstrapper SEVERE: Failed to start Neo Server on port [7474]
"""

Thanks!

iain...@hotmail.co.uk

unread,
Jul 3, 2013, 12:35:46 PM7/3/13
to ne...@googlegroups.com
I worked around the 'index version has changed' issue, but the installation still fails with a timeout?

How can I stop the installation from failing with a timeout?

I found the index version has changed' issue in the console.log file:

"""
Caused by: org.neo4j.kernel.impl.storemigration.UpgradeNotAllowedByConfigurationException: Index version (managed by /var/lib/neo4j/data/graph.db/index/lucene-store.db) has changed and cannot be upgraded unless allow_store_upgrade=true is supplied in the configuration
at org.neo4j.kernel.impl.index.IndexProviderStore.readRecordsWithNullDefaults(IndexProviderStore.java:133)
at org.neo4j.kernel.impl.index.IndexProviderStore.<init>(IndexProviderStore.java:65)
at org.neo4j.index.impl.lucene.LuceneDataSource.newIndexStore(LuceneDataSource.java:299)
at org.neo4j.index.impl.lucene.LuceneDataSource.start(LuceneDataSource.java:223)
at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:491)
... 20 more
"""

There is a config file /etc/neo4j/neo4j.properties. It contains two lines that look like this:

"""
# Enable this to be able to upgrade a store from 1.4 -> 1.5 or 1.4 -> 1.6
# allow_store_upgrade=true
"""

When I uncomment the second line and try to install again, the UpgradeNotAllowedByConfigurationException does not occur.

The installation still fails with a timeout.

Michael Hunger

unread,
Jul 3, 2013, 3:53:55 PM7/3/13
to ne...@googlegroups.com
What version are you upgrading from and to?

Michael

iain...@hotmail.co.uk

unread,
Jul 4, 2013, 5:08:37 AM7/4/13
to ne...@googlegroups.com
I'm installing version 1.9.1 from scratch. I've never installed neo4j before on my machine.

iain...@hotmail.co.uk

unread,
Jul 4, 2013, 6:37:09 AM7/4/13
to ne...@googlegroups.com
Now the failure to start is apparently a NullPointerException.

I think this started happening since I set the allow_store_upgrade configuration, but I only noticed the new message this morning.

Here is the console.log output from the most recent invocation of 'aptitude install neo4j':

"""
7/4/13 10:31:59 AM org.neo4j.server.CommunityBootstrapper WARNING: WARNING! You are using an unsupported Java runtime. Please use Oracle(R) Java(TM) Runtime Environment 7.
7/4/13 10:31:59 AM org.neo4j.server.AbstractNeoServer INFO: Setting startup timeout to: 120000ms based on -1

Detected incorrectly shut down database, performing recovery..
10:32:00.054 [main] WARN o.neo4j.kernel.EmbeddedGraphDatabase - WARNING! You are using an unsupported Java runtime. Please use Oracle(R) Java(TM) Runtime Environment 7.
7/4/13 10:32:00 AM org.neo4j.server.CommunityBootstrapper SEVERE:
java.lang.RuntimeException: org.neo4j.kernel.lifecycle.LifecycleException: Component 'org.neo4j.kernel.extension.KernelExtensions@1ff713e' was successfully initialized, but failed to start. Please see attached cause exception.

at org.neo4j.kernel.InternalAbstractGraphDatabase.run(InternalAbstractGraphDatabase.java:281)
at org.neo4j.kernel.EmbeddedGraphDatabase.<init>(EmbeddedGraphDatabase.java:106)
at org.neo4j.graphdb.factory.GraphDatabaseFactory$1.newDatabase(GraphDatabaseFactory.java:88)
at org.neo4j.graphdb.factory.GraphDatabaseBuilder.newGraphDatabase(GraphDatabaseBuilder.java:207)
at org.neo4j.kernel.impl.recovery.StoreRecoverer.recover(StoreRecoverer.java:114)
at org.neo4j.server.preflight.PerformRecoveryIfNecessary.run(PerformRecoveryIfNecessary.java:59)
at org.neo4j.server.preflight.PreFlightTasks.run(PreFlightTasks.java:70)
at org.neo4j.server.AbstractNeoServer.runPreflightTasks(AbstractNeoServer.java:280)
at org.neo4j.server.AbstractNeoServer.start(AbstractNeoServer.java:160)
at org.neo4j.server.Bootstrapper.start(Bootstrapper.java:86)
at org.neo4j.server.Bootstrapper.main(Bootstrapper.java:49)
Caused by: org.neo4j.kernel.lifecycle.LifecycleException: Component 'org.neo4j.kernel.extension.KernelExtensions@1ff713e' was successfully initialized, but failed to start. Please see attached cause exception.

at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:497)
at org.neo4j.kernel.lifecycle.LifeSupport.start(LifeSupport.java:104)
at org.neo4j.kernel.InternalAbstractGraphDatabase.run(InternalAbstractGraphDatabase.java:259)
... 10 more
Caused by: org.neo4j.kernel.lifecycle.LifecycleException: Component 'org.neo4j.index.lucene.LuceneKernelExtension@754c30' was successfully initialized, but failed to start. Please see attached cause exception.

at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:497)
at org.neo4j.kernel.lifecycle.LifeSupport.start(LifeSupport.java:104)
at org.neo4j.kernel.extension.KernelExtensions.start(KernelExtensions.java:113)
at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:491)
... 12 more
Caused by: org.neo4j.kernel.lifecycle.LifecycleException: Component 'org.neo4j.index.impl.lucene.LuceneDataSource@152f96c' was successfully initialized, but failed to start. Please see attached cause exception.

at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:497)
at org.neo4j.kernel.lifecycle.LifeSupport.bringToState(LifeSupport.java:404)
at org.neo4j.kernel.lifecycle.LifeSupport.add(LifeSupport.java:318)
at org.neo4j.kernel.impl.transaction.XaDataSourceManager.registerDataSource(XaDataSourceManager.java:196)
at org.neo4j.index.lucene.LuceneKernelExtension.start(LuceneKernelExtension.java:86)
at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:491)
... 15 more
Caused by: java.lang.NullPointerException
at org.neo4j.kernel.impl.index.IndexProviderStore.<init>(IndexProviderStore.java:66)

at org.neo4j.index.impl.lucene.LuceneDataSource.newIndexStore(LuceneDataSource.java:299)
at org.neo4j.index.impl.lucene.LuceneDataSource.start(LuceneDataSource.java:223)
at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:491)
  ... 20 more
7/4/13 10:32:00 AM org.neo4j.server.CommunityBootstrapper SEVERE: Failed to start Neo Server on port [7474]

Michael Hunger

unread,
Jul 4, 2013, 6:40:22 AM7/4/13
to ne...@googlegroups.com
Ian,

I tried to reproduce your problem, but was unable to.

Can you try to start from a blank slate

apt-get remove --purge neo4j 

And then try again?

If you have a new setup there shouldn't be an existing database so there should also be no upgrade necessary.

Thanks a lot and sorry for the issues you run into. If you are in London please come to the next meetup and get a free beer on us.

Cheers

Michael

iain...@hotmail.co.uk

unread,
Jul 4, 2013, 11:10:27 AM7/4/13
to ne...@googlegroups.com
I used your command to try to purge all neo4j files from my machine:

"""
iain@turing:~$ sudo apt-get remove --purge neo4j
[sudo] password for iain:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
  neo4j*
0 upgraded, 0 newly installed, 1 to remove and 20 not upgraded.
1 not fully installed or removed.
After this operation, 57.8 MB disk space will be freed.
Do you want to continue [Y/n]? Y
(Reading database ... 23537 files and directories currently installed.)
Removing neo4j ...
ERROR: Neo4j Server not running
Running in headless (-h) mode
Installing with user neo4j
update-rc.d: using dependency based boot sequencing
Neo4j Server was running as user "neo4j", which remains.
Purging configuration files for neo4j ...
dpkg: warning: while removing neo4j, directory '/var/lib/neo4j/data' not empty so not removed.
dpkg: warning: while removing neo4j, directory '/var/lib/neo4j' not empty so not removed.
Processing triggers for man-db ...
"""

Unfortunately it looks like the purge operation missed some things. The process left behind the user neo4j, and the directories /var/lib/neo4j and /var/lib/neo4j/data.

I logged in as root and used these commands to perform the final cleanup:

"""
root@turing:/home/iain# userdel --force neo4j
root@turing:/home/iain# rm -rf /var/lib/neo4j/data
root@turing:/home/iain# rm -rf /var/lib/neo4j
"""

To check the user is gone, I searched the password file for 'neo4j':

"""
root@turing:/home/iain# cat /etc/passwd | grep neo4j
"""

No output means the user is gone.

To check the directories are gone, I listed the files in the higher directory:

"""
root@turing:/home/iain# ls /var/lib/neo4j
ls: cannot access /var/lib/neo4j: No such file or directory
"""

Error output means the directories are gone.

The deb package itself is still stored in the package cache:

"""
root@turing:/home/iain# find /var/cache/apt/archives | grep neo4j
/var/cache/apt/archives/neo4j_1.9.1_all.deb
"""

I try again to install the package using apt-get:

"""
root@turing:/home/iain# apt-get install neo4j
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
  neo4j
0 upgraded, 1 newly installed, 0 to remove and 20 not upgraded.
Need to get 0 B/37.5 MB of archives.
After this operation, 57.8 MB of additional disk space will be used.
Selecting previously deselected package neo4j.
(Reading database ... 22080 files and directories currently installed.)
Unpacking neo4j (from .../archives/neo4j_1.9.1_all.deb) ...
Processing triggers for man-db ...
Setting up neo4j (1.9.1) ...
Adding system user `neo4j' (UID 106) ...
Adding new user `neo4j' (UID 106) with group `nogroup' ...
Not creating home directory `/var/lib/neo4j'.
Running in headless (-h) mode
Installing with user neo4j
update-rc.d: using dependency based boot sequencing
WARNING: Max 1024 open files allowed, minimum of 40 000 recommended. See the Neo4j manual.
Using additional JVM arguments:  -server -XX:+DisableExplicitGC -Dorg.neo4j.server.properties=conf/neo4j-server.properties -Djava.util.logging.config.file=conf/logging.properties -Dlog4j.configuration=file:conf/log4j.properties -XX:+UseConcMarkSweepGC -XX:+CMSClassUnloadingEnabled
Starting Neo4j Server...process [13434]... waiting for server to be ready................................................................................................................................. Failed to start within 120 seconds.
Neo4j Server may have failed to start, please check the logs.
invoke-rc.d: initscript neo4j-service, action "start" failed.
dpkg: error processing neo4j (--configure):
 subprocess installed post-installation script returned error exit status 1
configured to not write apport reports
                                      Errors were encountered while processing:
 neo4j
E: Sub-process /usr/bin/dpkg returned an error code (1)
"""

The command produces the same error as before: "Failed to start within 120 seconds".

To inspect more detailed error information, I cat the console log file:

"""
root@turing:/home/iain# cat /var/log/neo4j/console.log
7/4/13 2:25:20 PM org.neo4j.server.CommunityBootstrapper WARNING: WARNING! You are using an unsupported Java runtime. Please use Oracle(R) Java(TM) Runtime Environment 7.
7/4/13 2:25:21 PM org.neo4j.server.AbstractNeoServer INFO: Setting startup timeout to: 120000ms based on -1
7/4/13 2:25:21 PM org.neo4j.server.database.Database INFO: Loaded neo4j tuning properties from conf/neo4j.properties
14:25:21.192 [main] WARN  o.neo4j.kernel.EmbeddedGraphDatabase - WARNING! You are using an unsupported Java runtime. Please use Oracle(R) Java(TM) Runtime Environment 7.
java.lang.Throwable
        at org.neo4j.server.InterruptThreadTimer$InterruptThreadTask.run(InterruptThreadTimer.java:52)
        at java.util.TimerThread.mainLoop(Timer.java:555)
        at java.util.TimerThread.run(Timer.java:505)
org.neo4j.kernel.lifecycle.LifecycleException: Component 'org.neo4j.kernel.impl.transaction.XaDataSourceManager@144f891' failed to stop. Please see attached cause exception.
        at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.stop(LifeSupport.java:515)
        at org.neo4j.kernel.lifecycle.LifeSupport.stop(LifeSupport.java:146)
        at org.neo4j.kernel.lifecycle.LifeSupport.start(LifeSupport.java:112)
        at org.neo4j.kernel.InternalAbstractGraphDatabase.run(InternalAbstractGraphDatabase.java:259)
        at org.neo4j.kernel.EmbeddedGraphDatabase.<init>(EmbeddedGraphDatabase.java:106)
        at org.neo4j.graphdb.factory.GraphDatabaseFactory$1.newDatabase(GraphDatabaseFactory.java:88)
        at org.neo4j.graphdb.factory.GraphDatabaseBuilder.newGraphDatabase(GraphDatabaseBuilder.java:207)
        at org.neo4j.server.database.CommunityDatabase.start(CommunityDatabase.java:59)
        at org.neo4j.server.AbstractNeoServer.start(AbstractNeoServer.java:164)
        at org.neo4j.server.Bootstrapper.start(Bootstrapper.java:86)
        at org.neo4j.server.Bootstrapper.main(Bootstrapper.java:49)
Caused by: org.neo4j.kernel.lifecycle.LifecycleException: Component 'org.neo4j.kernel.impl.nioneo.xa.NeoStoreXaDataSource@7de4fe' failed to stop. Please see attached cause exception.
        at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.stop(LifeSupport.java:515)
        at org.neo4j.kernel.lifecycle.LifeSupport.stop(LifeSupport.java:146)
        at org.neo4j.kernel.impl.transaction.XaDataSourceManager.stop(XaDataSourceManager.java:149)
        at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.stop(LifeSupport.java:511)
        ... 10 more
Caused by: java.lang.RuntimeException: java.nio.channels.ClosedByInterruptException
        at org.neo4j.kernel.impl.transaction.xaframework.LogBackedXaDataSource.stop(LogBackedXaDataSource.java:72)
        at org.neo4j.kernel.impl.nioneo.xa.NeoStoreXaDataSource.stop(NeoStoreXaDataSource.java:301)
        at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.stop(LifeSupport.java:511)
        ... 13 more
Caused by: java.nio.channels.ClosedByInterruptException
        at java.nio.channels.spi.AbstractInterruptibleChannel.end(AbstractInterruptibleChannel.java:202)
        at sun.nio.ch.FileChannelImpl.write(FileChannelImpl.java:705)
        at org.neo4j.kernel.impl.transaction.xaframework.DirectMappedLogBuffer.writeOut(DirectMappedLogBuffer.java:159)
        at org.neo4j.kernel.impl.transaction.xaframework.DirectMappedLogBuffer.force(DirectMappedLogBuffer.java:172)
        at org.neo4j.kernel.impl.transaction.xaframework.XaLogicalLog.releaseCurrentLogFile(XaLogicalLog.java:675)
        at org.neo4j.kernel.impl.transaction.xaframework.XaLogicalLog.close(XaLogicalLog.java:700)
        at org.neo4j.kernel.impl.transaction.xaframework.LogBackedXaDataSource.stop(LogBackedXaDataSource.java:68)
        ... 15 more
org.neo4j.kernel.lifecycle.LifecycleException: Component 'org.neo4j.kernel.extension.KernelExtensions@5cd46b' was successfully initialized, but failed to start. Please see attached cause exception.
        at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:497)
        at org.neo4j.kernel.lifecycle.LifeSupport.start(LifeSupport.java:104)
        at org.neo4j.kernel.InternalAbstractGraphDatabase.run(InternalAbstractGraphDatabase.java:259)
        at org.neo4j.kernel.EmbeddedGraphDatabase.<init>(EmbeddedGraphDatabase.java:106)
        at org.neo4j.graphdb.factory.GraphDatabaseFactory$1.newDatabase(GraphDatabaseFactory.java:88)
        at org.neo4j.graphdb.factory.GraphDatabaseBuilder.newGraphDatabase(GraphDatabaseBuilder.java:207)
        at org.neo4j.server.database.CommunityDatabase.start(CommunityDatabase.java:59)
        at org.neo4j.server.AbstractNeoServer.start(AbstractNeoServer.java:164)
        at org.neo4j.server.Bootstrapper.start(Bootstrapper.java:86)
        at org.neo4j.server.Bootstrapper.main(Bootstrapper.java:49)
Caused by: org.neo4j.kernel.lifecycle.LifecycleException: Component 'org.neo4j.index.lucene.LuceneKernelExtension@1fe55fd' was successfully initialized, but failed to start. Please see attached cause exception.
        at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:497)
        at org.neo4j.kernel.lifecycle.LifeSupport.start(LifeSupport.java:104)
        at org.neo4j.kernel.extension.KernelExtensions.start(KernelExtensions.java:113)
        at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:491)
        ... 9 more
Caused by: org.neo4j.kernel.lifecycle.LifecycleException: Component 'org.neo4j.index.impl.lucene.LuceneDataSource@1938cc2' was successfully initialized, but failed to start. Please see attached cause exception.
        at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:497)
        at org.neo4j.kernel.lifecycle.LifeSupport.bringToState(LifeSupport.java:404)
        at org.neo4j.kernel.lifecycle.LifeSupport.add(LifeSupport.java:318)
        at org.neo4j.kernel.impl.transaction.XaDataSourceManager.registerDataSource(XaDataSourceManager.java:196)
        at org.neo4j.index.lucene.LuceneKernelExtension.start(LuceneKernelExtension.java:86)
        at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:491)
        ... 12 more
Caused by: java.lang.RuntimeException: java.nio.channels.ClosedByInterruptException
        at org.neo4j.kernel.impl.index.IndexProviderStore.<init>(IndexProviderStore.java:85)
        at org.neo4j.index.impl.lucene.LuceneDataSource.newIndexStore(LuceneDataSource.java:299)
        at org.neo4j.index.impl.lucene.LuceneDataSource.start(LuceneDataSource.java:223)
        at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:491)
        ... 17 more
Caused by: java.nio.channels.ClosedByInterruptException
        at java.nio.channels.spi.AbstractInterruptibleChannel.end(AbstractInterruptibleChannel.java:202)
        at sun.nio.ch.FileChannelImpl.position(FileChannelImpl.java:277)
        at org.neo4j.kernel.impl.index.IndexProviderStore.write(IndexProviderStore.java:169)
        at org.neo4j.kernel.impl.index.IndexProviderStore.create(IndexProviderStore.java:153)
        at org.neo4j.kernel.impl.index.IndexProviderStore.<init>(IndexProviderStore.java:61)
        ... 20 more
7/4/13 2:27:29 PM org.neo4j.server.database.Database SEVERE: Failed to start database.
7/4/13 2:27:29 PM org.neo4j.server.CommunityBootstrapper SEVERE:
org.neo4j.server.ServerStartupException: Startup took longer than 120000ms, and was stopped. You can disable this behavior by setting 'org.neo4j.server.startup_timeout' to 0. Error code: 1
        at org.neo4j.server.AbstractNeoServer.start(AbstractNeoServer.java:201)
        at org.neo4j.server.Bootstrapper.start(Bootstrapper.java:86)
        at org.neo4j.server.Bootstrapper.main(Bootstrapper.java:49)
7/4/13 2:27:29 PM org.neo4j.server.CommunityBootstrapper SEVERE: Failed to start Neo Server on port [7474]
"""

Looks like now the ultimate cause is a ClosedByInterruptException.

The very first log message is a warning that Neo4j is using and unsupported JVM:

"""
7/4/13 2:25:20 PM org.neo4j.server.CommunityBootstrapper WARNING: WARNING! You are using an unsupported Java runtime. Please use Oracle(R) Java(TM) Runtime Environment 7.
"""

I already installed Oracle Java as the default JVM. OpenJDK is still installed. It looks like Neo4j is ignoring Oracle Java and is using OpenJDK.

Could it fail because Neo4j is using the unsupported JVM? Should I force it to use Oracle Java? How do I do that?

The penultimate log message is a ServerStartupException:

"""
7/4/13 2:27:29 PM org.neo4j.server.CommunityBootstrapper SEVERE:
org.neo4j.server.ServerStartupException: Startup took longer than 120000ms, and was stopped. You can disable this behavior by setting 'org.neo4j.server.startup_timeout' to 0. Error code: 1
"""

It says I can disable the startup timeout behavior.

Could it fail because my machine should wait longer than 120 seconds for the service to start? Should I disable the timeout behavior? How do I do that?

apt-get outputs a warning about the open file limit:

"""
WARNING: Max 1024 open files allowed, minimum of 40 000 recommended. See the Neo4j manual.
"""

Could it fail because there the open file limit is too low? Should I increase the limit? How do I do that?

I'm only slightly more familiar with Linux than I am with Neo4j, so I appreciate your patience!

Next time I'm in London I'll drop in and say hello.

Jim Webber

unread,
Jul 4, 2013, 11:24:28 AM7/4/13
to ne...@googlegroups.com
Hi Ian,

For playing around with Neo4j (as opposed to production uses) I often just download the gzipped tarball from neo4j.org, unpack it, and run neo4j server from my shell (bin/neoj4 start). That avoids a lot of sys admin.

Jim

iain...@hotmail.co.uk

unread,
Jul 4, 2013, 2:22:55 PM7/4/13
to ne...@googlegroups.com
Hi, Jim!

Thanks for the tip. I've already got Neo4j running on my Windows workstation. It was as easy as you describe.

Here's my attempt to do the same on my VPS.

Purge the neo4j installation using the same procedure as before.

Download the neo4j 1.9.1 archive to my home directory:

"""
Resolving dist.neo4j.org... 178.236.4.60
Connecting to dist.neo4j.org|178.236.4.60|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 37512748 (36M) [application/x-tar]
Saving to: “neo4j-community-1.9.1-unix.tar.gz”

100%[======================================>] 37,512,748  30.5M/s   in 1.2s

2013-07-04 17:21:53 (30.5 MB/s) - “neo4j-community-1.9.1-unix.tar.gz” saved [37512748/37512748]
"""

Extract the archive:

root@turing:/home/iain# unp neo4j-community-1.9.1-unix.tar.gz
neo4j-community-1.9.1/
[...]
neo4j-community-1.9.1/doc/manual/UPGRADE.txt

I've truncated the output to the first and last line only. The process extracted several hundred files.

Change to the neo4j directory:

"""
root@turing:/home/iain# cd neo4j-community-1.9.1
"""

Start the neo4j server using Jim's command:

"""
root@turing:/home/iain/neo4j-community-1.9.1# ./bin/neo4j start
WARNING: Max 1024 open files allowed, minimum of 40 000 recommended. See the Neo4j manual.
Using additional JVM arguments:  -server -XX:+DisableExplicitGC -Dorg.neo4j.server.properties=conf/neo4j-server.properties -Djava.util.logging.config.file=conf/logging.properties -Dlog4j.configuration=file:conf/log4j.properties -XX:+UseConcMarkSweepGC -XX:+CMSClassUnloadingEnabled
Starting Neo4j Server...process [15148]... waiting for server to be ready................................................................................................................................. Failed to start within 120 seconds.
Neo4j Server may have failed to start, please check the logs.
"""

The process fails with the same error as before: "Failed to start within 120 seconds".

This time I found the log file in data/log/console.log:

"""
root@turing:/home/iain/neo4j-community-1.9.1# cat data/log/console.log
7/4/13 5:25:02 PM org.neo4j.server.CommunityBootstrapper WARNING: WARNING! You are using an unsupported Java runtime. Please use Oracle(R) Java(TM) Runtime Environment 7.
7/4/13 5:25:03 PM org.neo4j.server.AbstractNeoServer INFO: Setting startup timeout to: 120000ms based on -1
7/4/13 5:25:03 PM org.neo4j.server.database.Database INFO: Loaded neo4j tuning properties from conf/neo4j.properties
17:25:03.459 [main] WARN  o.neo4j.kernel.EmbeddedGraphDatabase - WARNING! You are using an unsupported Java runtime. Please use Oracle(R) Java(TM) Runtime Environment 7.
java.lang.Throwable
        at org.neo4j.server.InterruptThreadTimer$InterruptThreadTask.run(InterruptThreadTimer.java:52)
        at java.util.TimerThread.mainLoop(Timer.java:555)
        at java.util.TimerThread.run(Timer.java:505)
org.neo4j.kernel.lifecycle.LifecycleException: Component 'org.neo4j.kernel.impl.transaction.XaDataSourceManager@15243ff' failed to stop. Please see attached cause exception.
        at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.stop(LifeSupport.java:515)
        at org.neo4j.kernel.lifecycle.LifeSupport.stop(LifeSupport.java:146)
        at org.neo4j.kernel.lifecycle.LifeSupport.start(LifeSupport.java:112)
        at org.neo4j.kernel.InternalAbstractGraphDatabase.run(InternalAbstractGraphDatabase.java:259)
        at org.neo4j.kernel.EmbeddedGraphDatabase.<init>(EmbeddedGraphDatabase.java:106)
        at org.neo4j.graphdb.factory.GraphDatabaseFactory$1.newDatabase(GraphDatabaseFactory.java:88)
        at org.neo4j.graphdb.factory.GraphDatabaseBuilder.newGraphDatabase(GraphDatabaseBuilder.java:207)
        at org.neo4j.server.database.CommunityDatabase.start(CommunityDatabase.java:59)
        at org.neo4j.server.AbstractNeoServer.start(AbstractNeoServer.java:164)
        at org.neo4j.server.Bootstrapper.start(Bootstrapper.java:86)
        at org.neo4j.server.Bootstrapper.main(Bootstrapper.java:49)
Caused by: org.neo4j.kernel.lifecycle.LifecycleException: Component 'org.neo4j.kernel.impl.nioneo.xa.NeoStoreXaDataSource@1b5e706' failed to stop. Please see attached cause exception.
        at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.stop(LifeSupport.java:515)
        at org.neo4j.kernel.lifecycle.LifeSupport.stop(LifeSupport.java:146)
        at org.neo4j.kernel.impl.transaction.XaDataSourceManager.stop(XaDataSourceManager.java:149)
        at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.stop(LifeSupport.java:511)
        ... 10 more
Caused by: java.lang.RuntimeException: java.nio.channels.ClosedByInterruptException
        at org.neo4j.kernel.impl.transaction.xaframework.LogBackedXaDataSource.stop(LogBackedXaDataSource.java:72)
        at org.neo4j.kernel.impl.nioneo.xa.NeoStoreXaDataSource.stop(NeoStoreXaDataSource.java:301)
        at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.stop(LifeSupport.java:511)
        ... 13 more
Caused by: java.nio.channels.ClosedByInterruptException
        at java.nio.channels.spi.AbstractInterruptibleChannel.end(AbstractInterruptibleChannel.java:202)
        at sun.nio.ch.FileChannelImpl.write(FileChannelImpl.java:705)
        at org.neo4j.kernel.impl.transaction.xaframework.DirectMappedLogBuffer.writeOut(DirectMappedLogBuffer.java:159)
        at org.neo4j.kernel.impl.transaction.xaframework.DirectMappedLogBuffer.force(DirectMappedLogBuffer.java:172)
        at org.neo4j.kernel.impl.transaction.xaframework.XaLogicalLog.releaseCurrentLogFile(XaLogicalLog.java:675)
        at org.neo4j.kernel.impl.transaction.xaframework.XaLogicalLog.close(XaLogicalLog.java:700)
        at org.neo4j.kernel.impl.transaction.xaframework.LogBackedXaDataSource.stop(LogBackedXaDataSource.java:68)
        ... 15 more
org.neo4j.kernel.lifecycle.LifecycleException: Component 'org.neo4j.kernel.extension.KernelExtensions@f9f94' was successfully initialized, but failed to start. Please see attached cause exception.
        at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:497)
        at org.neo4j.kernel.lifecycle.LifeSupport.start(LifeSupport.java:104)
        at org.neo4j.kernel.InternalAbstractGraphDatabase.run(InternalAbstractGraphDatabase.java:259)
        at org.neo4j.kernel.EmbeddedGraphDatabase.<init>(EmbeddedGraphDatabase.java:106)
        at org.neo4j.graphdb.factory.GraphDatabaseFactory$1.newDatabase(GraphDatabaseFactory.java:88)
        at org.neo4j.graphdb.factory.GraphDatabaseBuilder.newGraphDatabase(GraphDatabaseBuilder.java:207)
        at org.neo4j.server.database.CommunityDatabase.start(CommunityDatabase.java:59)
        at org.neo4j.server.AbstractNeoServer.start(AbstractNeoServer.java:164)
        at org.neo4j.server.Bootstrapper.start(Bootstrapper.java:86)
        at org.neo4j.server.Bootstrapper.main(Bootstrapper.java:49)
Caused by: org.neo4j.kernel.lifecycle.LifecycleException: Component 'org.neo4j.index.lucene.LuceneKernelExtension@5c9252' was successfully initialized, but failed to start. Please see attached cause exception.
        at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:497)
        at org.neo4j.kernel.lifecycle.LifeSupport.start(LifeSupport.java:104)
        at org.neo4j.kernel.extension.KernelExtensions.start(KernelExtensions.java:113)
        at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:491)
        ... 9 more
Caused by: org.neo4j.kernel.lifecycle.LifecycleException: Component 'org.neo4j.index.impl.lucene.LuceneDataSource@c0d6e5' was successfully initialized, but failed to start. Please see attached cause exception.
        at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:497)
        at org.neo4j.kernel.lifecycle.LifeSupport.bringToState(LifeSupport.java:404)
        at org.neo4j.kernel.lifecycle.LifeSupport.add(LifeSupport.java:318)
        at org.neo4j.kernel.impl.transaction.XaDataSourceManager.registerDataSource(XaDataSourceManager.java:196)
        at org.neo4j.index.lucene.LuceneKernelExtension.start(LuceneKernelExtension.java:86)
        at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:491)
        ... 12 more
Caused by: java.lang.RuntimeException: java.nio.channels.ClosedByInterruptException
        at org.neo4j.kernel.impl.index.IndexProviderStore.<init>(IndexProviderStore.java:85)
        at org.neo4j.index.impl.lucene.LuceneDataSource.newIndexStore(LuceneDataSource.java:299)
        at org.neo4j.index.impl.lucene.LuceneDataSource.start(LuceneDataSource.java:223)
        at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:491)
        ... 17 more
Caused by: java.nio.channels.ClosedByInterruptException
        at java.nio.channels.spi.AbstractInterruptibleChannel.end(AbstractInterruptibleChannel.java:202)
        at sun.nio.ch.FileChannelImpl.position(FileChannelImpl.java:277)
        at org.neo4j.kernel.impl.index.IndexProviderStore.write(IndexProviderStore.java:169)
        at org.neo4j.kernel.impl.index.IndexProviderStore.create(IndexProviderStore.java:153)
        at org.neo4j.kernel.impl.index.IndexProviderStore.<init>(IndexProviderStore.java:61)
        ... 20 more
7/4/13 5:27:11 PM org.neo4j.server.database.Database SEVERE: Failed to start database.
7/4/13 5:27:11 PM org.neo4j.server.CommunityBootstrapper SEVERE:
org.neo4j.server.ServerStartupException: Startup took longer than 120000ms, and was stopped. You can disable this behavior by setting 'org.neo4j.server.startup_timeout' to 0. Error code: 1
        at org.neo4j.server.AbstractNeoServer.start(AbstractNeoServer.java:201)
        at org.neo4j.server.Bootstrapper.start(Bootstrapper.java:86)
        at org.neo4j.server.Bootstrapper.main(Bootstrapper.java:49)
7/4/13 5:27:11 PM org.neo4j.server.CommunityBootstrapper SEVERE: Failed to start Neo Server on port [7474]
"""

The ultimate cause is apparently the same as before: ClosedByInterruptException.

So, I'm left with the same questions:

Should I disable the timeout behavior? How?
Should I increase the open file limit? How?
Should I force Neo4j to use Oracle Java? How?

Jim Webber

unread,
Jul 4, 2013, 4:55:00 PM7/4/13
to ne...@googlegroups.com
Hey Ian,

That's a weird thing indeed.

> Should I disable the timeout behavior? How?

No, it's there because sometimes the server doesn't start up in a reasonable time for some reason.

> Should I increase the open file limit? How?

Yes, see something like: http://www.cyberciti.biz/faq/linux-increase-the-maximum-number-of-open-files/

> Should I force Neo4j to use Oracle Java? How?

That'll require an Oracle Java install on your box. See:

http://docs.oracle.com/javase/7/docs/webnotes/install/linux/linux-jdk.html

Make sure your JAVA_HOME is pointing to the right installation.

Once those potential issues are out of your way, I'd be interested to see if the timeouts persist (especially since I spent the day on Ubuntu VMs pretty happily doing what I described earlier).

Jim

iain...@hotmail.co.uk

unread,
Jul 5, 2013, 1:43:07 PM7/5/13
to ne...@googlegroups.com
Thanks for the link.

Here are the steps I followed for the file limit problem.

Inspect the system-wide file descriptor limit using sysctl:

"""
iain@turing:~$ sudo sysctl fs.file-max
fs.file-max = 102420
"""

The system-wide limit is already set above 40000.

Inspect my user-level file descriptor limits using ulimit:

"""
iain@turing:~$ ulimit -Hn
1024
iain@turing:~$ ulimit -Sn
1024
"""

The hard limit and the soft limit are both set to 1024. This is the same number that neo4j quotes in warnings like this:


"""
WARNING: Max 1024 open files allowed, minimum of 40 000 recommended. See the Neo4j manual.
"""

Use nano to edit the limits.conf file that controls these values:

"""
iain@turing:~$ sudo nano /etc/security/limits.conf
"""

On my machine the file contained no uncommented lines.

Add these lines to the file:

"""
# An attempt to fix neo4j failure to start.
# It issues warnings like this before failing:
# WARNING: Max 1024 open files allowed, minimum of 40 000 recommended.
iain soft nofile 40000
iain hard nofile 40000
"""

Log out and log back in again.

Use ulimit to check my user-level file descriptor limits again:

"""
iain@turing:~$ ulimit -Hn
40000
iain@turing:~$ ulimit -Sn
40000
"""

The limits have increased to 40000.

Here are the steps I followed for the Oracle Java problem.

Inspect the value of JAVA_HOME using the echo command:

"""
iain@turing:~$ echo $JAVA_HOME
/usr/lib/jvm/java-7-oracle
"""

JAVA_HOME is set to the directory in which Oracle Java is installed.

I already installed Oracle Java by following this guide: http://www.webupd8.org/2012/06/how-to-install-oracle-java-7-in-debian.html

Yet I see a line like this in the log every time I try to start the server:

"""
7/5/13 9:26:27 AM org.neo4j.server.CommunityBootstrapper WARNING: WARNING! You are using an unsupported Java runtime. Please use Oracle(R) Java(TM) Runtime Environment 7.
"""

Now I have dealt with the issues. I extract a fresh copy of neo4j using the same procedure as before.

I try to start neo4j:

"""
iain@turing:~/neo4j-community-1.9.1$ ./bin/neo4j start

Using additional JVM arguments: -server -XX:+DisableExplicitGC -Dorg.neo4j.server.properties=conf/neo4j-server.properties -Djava.util.logging.config.file=conf/logging.properties -Dlog4j.configuration=file:conf/log4j.properties -XX:+UseConcMarkSweepGC -XX:+CMSClassUnloadingEnabled
Starting Neo4j Server...WARNING: not changing user
process [22615]... waiting for server to be ready............................................................................................................................... Failed to start within 120 seconds.

Neo4j Server may have failed to start, please check the logs.
"""

Neo4j failed to start again after 120 seconds.

There is a new warning:

"""
Starting Neo4j Server...WARNING: not changing user
"""

I'm not sure what this means. Does Neo4j try to run under a different user when I start it like this?

Here is the content of the console.log file:

"""
iain@turing:~/neo4j-community-1.9.1$ cat data/log/console.log
7/5/13 5:31:17 PM org.neo4j.server.CommunityBootstrapper WARNING: WARNING! You are using an unsupported Java runtime. Please use Oracle(R) Java(TM) Runtime Environment 7.
7/5/13 5:31:18 PM org.neo4j.server.AbstractNeoServer INFO: Setting startup timeout to: 120000ms based on -1
7/5/13 5:31:18 PM org.neo4j.server.database.Database INFO: Loaded neo4j tuning properties from conf/neo4j.properties
17:31:18.434 [main] WARN o.neo4j.kernel.EmbeddedGraphDatabase - WARNING! You are using an unsupported Java runtime. Please use Oracle(R) Java(TM) Runtime Environment 7.

java.lang.Throwable
at org.neo4j.server.InterruptThreadTimer$InterruptThreadTask.run(InterruptThreadTimer.java:52)
at java.util.TimerThread.mainLoop(Timer.java:555)
at java.util.TimerThread.run(Timer.java:505)
org.neo4j.kernel.lifecycle.LifecycleException: Component 'org.neo4j.kernel.impl.transaction.XaDataSourceManager@f295e2' failed to stop. Please see attached cause exception.

at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.stop(LifeSupport.java:515)
at org.neo4j.kernel.lifecycle.LifeSupport.stop(LifeSupport.java:146)
at org.neo4j.kernel.lifecycle.LifeSupport.start(LifeSupport.java:112)
at org.neo4j.kernel.InternalAbstractGraphDatabase.run(InternalAbstractGraphDatabase.java:259)
at org.neo4j.kernel.EmbeddedGraphDatabase.<init>(EmbeddedGraphDatabase.java:106)
at org.neo4j.graphdb.factory.GraphDatabaseFactory$1.newDatabase(GraphDatabaseFactory.java:88)
at org.neo4j.graphdb.factory.GraphDatabaseBuilder.newGraphDatabase(GraphDatabaseBuilder.java:207)
at org.neo4j.server.database.CommunityDatabase.start(CommunityDatabase.java:59)
at org.neo4j.server.AbstractNeoServer.start(AbstractNeoServer.java:164)
at org.neo4j.server.Bootstrapper.start(Bootstrapper.java:86)
at org.neo4j.server.Bootstrapper.main(Bootstrapper.java:49)
Caused by: org.neo4j.kernel.lifecycle.LifecycleException: Component 'org.neo4j.kernel.impl.nioneo.xa.NeoStoreXaDataSource@23c750' failed to stop. Please see attached cause exception.

at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.stop(LifeSupport.java:515)
at org.neo4j.kernel.lifecycle.LifeSupport.stop(LifeSupport.java:146)
at org.neo4j.kernel.impl.transaction.XaDataSourceManager.stop(XaDataSourceManager.java:149)
at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.stop(LifeSupport.java:511)
... 10 more
Caused by: java.lang.RuntimeException: java.nio.channels.ClosedByInterruptException
at org.neo4j.kernel.impl.transaction.xaframework.LogBackedXaDataSource.stop(LogBackedXaDataSource.java:72)
at org.neo4j.kernel.impl.nioneo.xa.NeoStoreXaDataSource.stop(NeoStoreXaDataSource.java:301)
at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.stop(LifeSupport.java:511)
... 13 more
Caused by: java.nio.channels.ClosedByInterruptException
at java.nio.channels.spi.AbstractInterruptibleChannel.end(AbstractInterruptibleChannel.java:202)
at sun.nio.ch.FileChannelImpl.write(FileChannelImpl.java:705)
at org.neo4j.kernel.impl.transaction.xaframework.DirectMappedLogBuffer.writeOut(DirectMappedLogBuffer.java:159)
at org.neo4j.kernel.impl.transaction.xaframework.DirectMappedLogBuffer.force(DirectMappedLogBuffer.java:172)
at org.neo4j.kernel.impl.transaction.xaframework.XaLogicalLog.releaseCurrentLogFile(XaLogicalLog.java:675)
at org.neo4j.kernel.impl.transaction.xaframework.XaLogicalLog.close(XaLogicalLog.java:700)
at org.neo4j.kernel.impl.transaction.xaframework.LogBackedXaDataSource.stop(LogBackedXaDataSource.java:68)
... 15 more
org.neo4j.kernel.lifecycle.LifecycleException: Component 'org.neo4j.kernel.extension.KernelExtensions@b0f6ef' was successfully initialized, but failed to start. Please see attached cause exception.

at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:497)
at org.neo4j.kernel.lifecycle.LifeSupport.start(LifeSupport.java:104)
at org.neo4j.kernel.InternalAbstractGraphDatabase.run(InternalAbstractGraphDatabase.java:259)
at org.neo4j.kernel.EmbeddedGraphDatabase.<init>(EmbeddedGraphDatabase.java:106)
at org.neo4j.graphdb.factory.GraphDatabaseFactory$1.newDatabase(GraphDatabaseFactory.java:88)
at org.neo4j.graphdb.factory.GraphDatabaseBuilder.newGraphDatabase(GraphDatabaseBuilder.java:207)
at org.neo4j.server.database.CommunityDatabase.start(CommunityDatabase.java:59)
at org.neo4j.server.AbstractNeoServer.start(AbstractNeoServer.java:164)
at org.neo4j.server.Bootstrapper.start(Bootstrapper.java:86)
at org.neo4j.server.Bootstrapper.main(Bootstrapper.java:49)
Caused by: org.neo4j.kernel.lifecycle.LifecycleException: Component 'org.neo4j.index.lucene.LuceneKernelExtension@9c686f' was successfully initialized, but failed to start. Please see attached cause exception.

at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:497)
at org.neo4j.kernel.lifecycle.LifeSupport.start(LifeSupport.java:104)
at org.neo4j.kernel.extension.KernelExtensions.start(KernelExtensions.java:113)
at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:491)
... 9 more
Caused by: org.neo4j.kernel.lifecycle.LifecycleException: Component 'org.neo4j.index.impl.lucene.LuceneDataSource@6dd488' was successfully initialized, but failed to start. Please see attached cause exception.

at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:497)
at org.neo4j.kernel.lifecycle.LifeSupport.bringToState(LifeSupport.java:404)
at org.neo4j.kernel.lifecycle.LifeSupport.add(LifeSupport.java:318)
at org.neo4j.kernel.impl.transaction.XaDataSourceManager.registerDataSource(XaDataSourceManager.java:196)
at org.neo4j.index.lucene.LuceneKernelExtension.start(LuceneKernelExtension.java:86)
at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:491)
... 12 more
Caused by: java.lang.RuntimeException: java.nio.channels.ClosedByInterruptException
at org.neo4j.kernel.impl.index.IndexProviderStore.<init>(IndexProviderStore.java:85)
at org.neo4j.index.impl.lucene.LuceneDataSource.newIndexStore(LuceneDataSource.java:299)
at org.neo4j.index.impl.lucene.LuceneDataSource.start(LuceneDataSource.java:223)
at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:491)
... 17 more
Caused by: java.nio.channels.ClosedByInterruptException
at java.nio.channels.spi.AbstractInterruptibleChannel.end(AbstractInterruptibleChannel.java:202)
at sun.nio.ch.FileChannelImpl.position(FileChannelImpl.java:277)
at org.neo4j.kernel.impl.index.IndexProviderStore.write(IndexProviderStore.java:169)
at org.neo4j.kernel.impl.index.IndexProviderStore.create(IndexProviderStore.java:153)
at org.neo4j.kernel.impl.index.IndexProviderStore.<init>(IndexProviderStore.java:61)
... 20 more
7/5/13 5:33:26 PM org.neo4j.server.database.Database SEVERE: Failed to start database.
7/5/13 5:33:26 PM org.neo4j.server.CommunityBootstrapper SEVERE:

org.neo4j.server.ServerStartupException: Startup took longer than 120000ms, and was stopped. You can disable this behavior by setting 'org.neo4j.server.startup_timeout' to 0. Error code: 1
at org.neo4j.server.AbstractNeoServer.start(AbstractNeoServer.java:201)
at org.neo4j.server.Bootstrapper.start(Bootstrapper.java:86)
at org.neo4j.server.Bootstrapper.main(Bootstrapper.java:49)
7/5/13 5:33:26 PM org.neo4j.server.CommunityBootstrapper SEVERE: Failed to start Neo Server on port [7474]
"""

Again, I see the warning about an unsupported JVM, but Oracle Java is surely my default JVM.

Again, the ultimate cause of failure was a ClosedByInterruptException.

But hey, at least I no longer get a warning about file limits!

Any ideas on how to progress?

I'll not beck able to check into this thread again until next week. I look forward to any advice you might have.

Thanks for your help!

Jim Webber

unread,
Jul 6, 2013, 7:11:46 AM7/6/13
to ne...@googlegroups.com
Hey Ian,

Wow, that's a humdinger. Julian Simpson's had a brief look at it, and his conclusion is that we need to dig more. So we'll dig next week!

Jim

iain...@hotmail.co.uk

unread,
Jul 11, 2013, 8:53:25 AM7/11/13
to ne...@googlegroups.com
I'm back!

Thanks for talking a look, Julian.

Where would you like to dig?

If you suggest some commands I can run them and come back with the output.

Johannes Mockenhaupt

unread,
Oct 23, 2013, 3:28:38 PM10/23/13
to ne...@googlegroups.com
Hi Ian,

I ran into a similar set of exceptions, maybe even the exact same ones using a fresh Neo4j download. Turned out to be a network problem. I had the hostname mapped against eth0 which was down (I remove the ethernet module for it, to work around a kernel bug that drains the battery in suspend mode). After either bringing eth0 back up or removing the mapping from hostname to eth0's IP, Neo4j started up again just fine. So my guess is that Neo4j (or the embedded jetty server) tries to resolve the hostname (despite binding against localhost), timing out and then failing with a semi-random exception that covers up the actual problem. Maybe that's a starting point where to look if you still have that problem. Or for the next guy, who like me, ends up here with the same problem.

Johannes
(Apologies if this is a double post - I'm having an argument with Groups and it ain't pretty)

Iain Elder

unread,
Oct 25, 2013, 5:03:36 AM10/25/13
to ne...@googlegroups.com
Hi Johannes,

Thanks for the feedback. Not sure how the VM's networking was configured. The instance no longer exists.

If I find some time away from other projects, I'll bring up another VM and see if I can:
  (a) reproduce my problem and
  (b) fix it with your advice.

Cheers,

Iain Elder
iain...@hotmail.co.uk
07714160586



Date: Wed, 23 Oct 2013 12:28:38 -0700
From: goo...@jotomo.de
To: ne...@googlegroups.com
Subject: Re: [Neo4j] How to install neo4j on Debian?
--
You received this message because you are subscribed to a topic in the Google Groups "Neo4j" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/neo4j/BNOdOChrEKI/unsubscribe.
To unsubscribe from this group and all its topics, send an email to neo4j+un...@googlegroups.com.

Jonathan Rees

unread,
Aug 4, 2015, 4:06:25 AM8/4/15
to Neo4j
Wondering whatever became of this topic. There was no resolution at the time. I'm having what appears to be the exact same problem now (timeout during startup). It's especially puzzling because I've set up neo4j a dozen times before now with no problem, and I can't figure out what's different this time. Anyhow, did you ever learn anything about startup timeouts?
Jonathan

Michael Hunger

unread,
Aug 5, 2015, 7:46:26 AM8/5/15
to ne...@googlegroups.com
if you run bin/neo4j console does it also happen?

and when neo is not running does bin/neo4j-shell -path data/graph.db work?

Michael
Am 04.08.2015 um 00:59 schrieb Jonathan Rees <jonath...@gmail.com>:

Wondering whatever became of this topic. There was no resolution at the time. I'm having what appears to be the exact same problem now (timeout during startup). It's especially puzzling because I've set up neo4j a dozen times before now with no problem, and I can't figure out what's different this time. Anyhow, did you ever learn anything about startup timeouts?
Jonathan


--
You received this message because you are subscribed to the Google Groups "Neo4j" group.
To unsubscribe from this group and stop receiving emails from it, send an email to neo4j+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Jonathan A Rees

unread,
Aug 5, 2015, 11:42:16 AM8/5/15
to ne...@googlegroups.com
Thanks for getting back to me!  The situation is very easy to replicate; it doesn't depend on any of my project's software or data. I start with a mostly fresh EC2 jessie debian system, install Java 8 from jessie-backports, fire up a completely fresh and empty neo4j, and it fails.

The problem still happens with 'bin/neo4j console'.

And it also happens with 'bin/neo4j-shell -path data/graph.db'.

And it also happens when I use a copy of a graph.db that had worked previously.

I can't run neo4j version 2 because of incompatible changes.

I've done this setup before, successfully, about ten times. The differences (that I can think of) were: before, the AWS instances were initialized with wheezy instead of jessie, and then upgraded to jessie; and before I used java 8 from 'unstable', while now I'm using the backport (since the backport didn't exist earlier). So if the question is whether it's a Java 7 / Java 8 issue, I don't think so, since I've done so many successful neo4j installs with Java 8; but it's conceivable that there is a difference between the unstable version I used before and the backport I'm using now. Seems quite far-fetched though.

Here is the shell transcript showing the failure in its various forms:


The neo4j distribution comes from here:


Any hints welcome. I'm not a neo4j expert, I'm just trying to get some software I inherited to work.
Jonathan

--
You received this message because you are subscribed to a topic in the Google Groups "Neo4j" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/neo4j/BNOdOChrEKI/unsubscribe.
To unsubscribe from this group and all its topics, send an email to neo4j+un...@googlegroups.com.

Michael Hunger

unread,
Aug 8, 2015, 6:10:44 PM8/8/15
to ne...@googlegroups.com
Jonathan,

I saw several things in your setup

1. Neo4j 1.9.x is outdated by at least two years afaik it was meant to run with Java 7 max only

2. you have to upgrade your store from 1.9 -> 2.0 -> 2.1 -> 2.2 (best by starting a :

bin/neo4j-shell with -config neo4j.properties -path path/to/db

where neo4j.properties contains an line with allow_store_upgrade=true

HTH Michael

Jonathan A Rees

unread,
Aug 9, 2015, 5:47:44 PM8/9/15
to ne...@googlegroups.com
Thanks for looking into this. After further experiments I have determined that this problem has nothing to do with the choice of neo4j version. It seems to arise when (a) java 8 is installed before java 7, and (b) gcc is installed. In this situation, initialization times out even with the latest neo4j, and with either java 8 or java 7 (doing update-java-alternatives and setting JAVA_HOME to select java 7).

I will try to work around the problem by installing java 7 first. Having done this, neo4j 1.9.x works just fine with java 8.

We cannot switch to neo4j 2.x because our plugins were developed against neo4j 1.x and incompatible changes to the neo4j API break the plugins.

Jonathan A Rees

unread,
Aug 10, 2015, 11:06:13 AM8/10/15
to ne...@googlegroups.com

OK, that hypothesis isn't quite right. I just provisioned an EC2 server with Debian jessie, installed gcc, openjdk 7, and neo4j 2.2.3, and got the same behavior (timeout during initialization). So I am still stuck.  I'll try to whittle this down to the minimal sequence of commands so you can try it for yourself.  Jonathan

admin@ot27:~/neo4j-community-2.2.3$ tail -30 data/log/console.log
at sun.nio.ch.FileChannelImpl.write(FileChannelImpl.java:210)
at org.neo4j.io.fs.StoreFileChannel.write(StoreFileChannel.java:153)
at org.neo4j.kernel.impl.transaction.log.PhysicalLogVersionedStoreChannel.write(PhysicalLogVersionedStoreChannel.java:112)
at org.neo4j.kernel.impl.transaction.log.PhysicalWritableLogChannel.emptyBufferIntoChannelAndClearIt(PhysicalWritableLogChannel.java:75)
at org.neo4j.kernel.impl.transaction.log.PhysicalWritableLogChannel.close(PhysicalWritableLogChannel.java:179)
at org.neo4j.kernel.impl.transaction.log.PhysicalLogFile.stop(PhysicalLogFile.java:121)
at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.stop(LifeSupport.java:527)
... 17 more
2015-08-10 14:55:33.085+0000 ERROR [org.neo4j]: Chained lifecycle exception Component 'org.neo4j.server.security.auth.AuthManager@7f81581b' was successfully initialized, but failed to start. Please see attached cause exception.
org.neo4j.kernel.lifecycle.LifecycleException: Component 'org.neo4j.server.security.auth.AuthManager@7f81581b' was successfully initialized, but failed to start. Please see attached cause exception.
at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:513)
at org.neo4j.kernel.lifecycle.LifeSupport.start(LifeSupport.java:115)
at org.neo4j.server.AbstractNeoServer.start(AbstractNeoServer.java:203)
at org.neo4j.server.Bootstrapper.start(Bootstrapper.java:117)
at org.neo4j.server.Bootstrapper.main(Bootstrapper.java:69)
Caused by: java.nio.channels.ClosedByInterruptException
at java.nio.channels.spi.AbstractInterruptibleChannel.end(AbstractInterruptibleChannel.java:202)
at sun.nio.ch.FileChannelImpl.write(FileChannelImpl.java:210)
at java.nio.channels.Channels.writeFullyImpl(Channels.java:78)
at java.nio.channels.Channels.writeFully(Channels.java:101)
at java.nio.channels.Channels.access$000(Channels.java:61)
at java.nio.channels.Channels$1.write(Channels.java:174)
at java.nio.file.Files.write(Files.java:3097)
at org.neo4j.server.security.auth.FileUserRepository.saveUsersToFile(FileUserRepository.java:198)
at org.neo4j.server.security.auth.FileUserRepository.create(FileUserRepository.java:99)
at org.neo4j.server.security.auth.AuthManager.newUser(AuthManager.java:95)
at org.neo4j.server.security.auth.AuthManager.start(AuthManager.java:62)
at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:507)
... 4 more
2015-08-10 14:55:33.085+0000 INFO  [API] Successfully shutdown Neo4j Server.

Jonathan A Rees

unread,
Aug 10, 2015, 12:57:16 PM8/10/15
to ne...@googlegroups.com
gcc was a red herring - the problem is the 'hostname' command (which was getting run in the same script that installed gcc).  Here is how to reproduce the problem:

  - provision debian jessie ami-818eb7b1
  - copy neo4j-community-2.2.3-unix.tar.gz to the instance
  - sudo apt-get update
  - sudo apt-get install openjdk-7-jdk lsof
  - tar xzf neo*.gz
  - *3/bin/neo4j start
      WORKS JUST FINE.
  - *3/bin/neo4j stop
  - sudo hostname 52.27.195.157
  - *3/bin/neo4j start
      INITIALIZATION TIMEOUT.  Yes, this is a bogus argument to 'hostname', but why should that matter?
  And now there's no way to un-wedge it:
  - sudo hostname x4.opentreeoflife.org
  - *3/bin/neo4j start
    INITIALIZATION TIMEOUT.

So now I have to provision a new instance, because I can't figure out how to repair this one. I have not yet verified that giving a correct argument to 'hostname' fixes the problem, but that is next.

Jonathan A Rees

unread,
Aug 10, 2015, 5:17:24 PM8/10/15
to ne...@googlegroups.com
I re-ran the exact same experiment, but this time I entered a valid DNS hostname for the EC2 instance instead of an IP address. No change; I still can't get neo4j to start.

That is, using neo4j is exclusive with setting the hostname.  That seems like a pretty serious neo4j bug to me.

Can anyone suggest a workaround?

Jonathan

admin@ip-172-30-0-113:~$ sudo apt-get update
sudo: unable to resolve host ip-172-30-0-113
Get:1 http://cloudfront.debian.net jessie InRelease [134 kB]
[...]
Reading package lists... Done
admin@ip-172-30-0-113:~$ sudo apt-get install openjdk-7-jdk lsof
sudo: unable to resolve host ip-172-30-0-113
Reading package lists... Done
Building dependency tree       
Reading state information... Done
[...]
done.
done.
admin@ip-172-30-0-113:~$ tar xzf neo*.gz
admin@ip-172-30-0-113:~$ *3/bin/neo4j start
Starting Neo4j Server...WARNING: not changing user
process [8611]... waiting for server to be ready....... OK.
admin@ip-172-30-0-113:~$ *3/bin/neo4j stop
Stopping Neo4j Server [8611].... done
admin@ip-172-30-0-113:~$ sudo hostname x5.opentreeoflife.org
sudo: unable to resolve host ip-172-30-0-113
admin@ip-172-30-0-113:~$ ping `hostname`
PING x5.opentreeoflife.org (52.27.211.1) 56(84) bytes of data.
64 bytes from ec2-52-27-211-1.us-west-2.compute.amazonaws.com (52.27.211.1): icmp_seq=1 ttl=63 time=0.398 ms
64 bytes from ec2-52-27-211-1.us-west-2.compute.amazonaws.com (52.27.211.1): icmp_seq=2 ttl=63 time=0.450 ms
  C-c C-c
--- x5.opentreeoflife.org ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1001ms
rtt min/avg/max/mdev = 0.398/0.424/0.450/0.026 ms
admin@ip-172-30-0-113:~$ *3/bin/neo4j start
Starting Neo4j Server...WARNING: not changing user
process [8879]... waiting for server to be ready................................................................................................................................... Failed to start within 120 seconds.
Neo4j Server may have failed to start, please check the logs.
admin@ip-172-30-0-113:~$ 

Jonathan A Rees

unread,
Aug 10, 2015, 5:27:09 PM8/10/15
to ne...@googlegroups.com
Maybe 'hostname' is not how you set the host name?  ... researching ...

Lasse Westh-Nielsen

unread,
Aug 11, 2015, 3:06:34 AM8/11/15
to Neo4j User
Jonathan, did you check out http://debian.neo4j.org/?

Jonathan A Rees

unread,
Aug 11, 2015, 11:59:50 AM8/11/15
to ne...@googlegroups.com
Thanks for the pointer. We are stuck at neo4j 1.9.x due to incompatible changes in the neo4j Java API.

Jonathan A Rees

unread,
Aug 11, 2015, 12:08:45 PM8/11/15
to ne...@googlegroups.com
michael.neo said on slack: "did you try to configure neo4j-server.properties to set the webserver.address to 0.0.0.0 ?"

Well, I hadn't tried that, since it never would have occurred to me to do so. But it turns out it solves the problem.

A different solution is to add the host name to /etc/hosts. It turns out the 'hostname' command isn't sufficient for setting the host name, even if the name resolves via DNS.

I can't help feeling that the difficulty in debugging this - it took me over a week (off and on) and eight EC2 instances - suggests possible improvements in neo4j. For example, there could be more information in the logs detailing what it's trying to do, or neo4j could make itself immune to whatever pointless operation was causing the timeout.

Michael Hunger

unread,
Aug 12, 2015, 6:37:48 AM8/12/15
to ne...@googlegroups.com
It is really weird as it seems that the default hostname doesn't correctly resolve to localhost in the instances that you chose?

Neo4j by default only binds to localhost for security reasons.

Perhaps it changed in the debian distribution ?

--

Michael Hunger

unread,
Aug 12, 2015, 6:40:20 AM8/12/15
to ne...@googlegroups.com
Jonathan if you haven't can you raise an issue on the neo4j repo stating which changes in the behavior we should make?

Please also add the steps to reproduce it there, so that we can fix it.

Thanks a ton, and sorry for the frustration :(
Reply all
Reply to author
Forward
0 new messages