Closed drzax closed 11 years ago
Hey @drzax
Here's what happened:
Starting Neo4j Server...process [3671]... 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.
What's in the /var/log/neo4j/console.log file?
I also got a similar issue.... here's the output of my /var/log/neo4j/console.log file -
10/17/13 8:16:41 PM org.neo4j.server.CommunityBootstrapper WARNING: WARNING! You are using an unsupported Java runtime. Please use Oracle(R) Java(TM) Runtime Environment 7. 10/17/13 8:16:42 PM org.neo4j.server.AbstractNeoServer INFO: Setting startup timeout to: 120000ms based on -1 10/17/13 8:16:42 PM org.neo4j.server.database.Database SEVERE: Failed to start database. 10/17/13 8:16:42 PM org.neo4j.server.CommunityBootstrapper SEVERE: Bad value '-3M' for setting 'neostore.propertystore.db.strings.mapped_memory': value does not match expression:\d+[kmgKMG]? 10/17/13 8:16:42 PM org.neo4j.server.CommunityBootstrapper SEVERE: Failed to start Neo Server on port [7474]
With puppet, for me and the OP, the problem is that the http://jce_policy-6.zip/ url doesn't work, I think:
notice: /Stage[main]/Neo4j::Java/Exec[install OAB repo]/returns: [x] Downloading jce_policy-6.zip : failed notice: /Stage[main]/Neo4j::Java/Exec[install OAB repo]/returns: [i] Showing the last 5 lines from the logfile (/var/tmp/oab-java.sh.log)... notice: /Stage[main]/Neo4j::Java/Exec[install OAB repo]/returns: [x] Downloading jce_policy-6.zip : --2013-10-16 08:12:34-- http://jce_policy-6.zip/ notice: /Stage[main]/Neo4j::Java/Exec[install OAB repo]/returns: Resolving jce_policy-6.zip (jce_policy-6.zip)... failed: Name or service not known. notice: /Stage[main]/Neo4j::Java/Exec[install OAB repo]/returns: wget: unable to resolve host address `jce_policy-6.zip' notice: /Stage[main]/Neo4j::Java/Exec[install OAB repo]/returns14187's retcode: 4 notice: /Stage[main]/Neo4j::Java/Exec[install OAB repo]/returns: failed
Hey @pranaydoshi, could you perhaps open another issue? Your issue may not be the same as @drzax's: maybe there are two issues. Thanks!
Sure
I think there probably are two issues. One issue when accepting Oracle's licence agreement an one when not.
In the case of not accepting Oracles licence agreement:
As you point out, @simpsonjulian, neo4j didn't start. I have presumed that was due to earlier problems in the process. Namely:
err: /Stage[main]/Neo4j::Ubuntu/Package[neo4j]/ensure: change from purged to present failed: Execution of '/usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold install neo4j' returned 100: Reading package lists...
I think this then cascades through the process to result in:
Errors were encountered while processing:
neo4j
E: Sub-process /usr/bin/dpkg returned an error code (1)
The content of /var/log/neo4j/console.log
:
root@neo4j:~# cat /var/log/neo4j/console.log
10/17/13 10:14:15 PM org.neo4j.server.CommunityBootstrapper WARNING: WARNING! You are using an unsupported Java runtime. Please use Oracle(R) Java(TM) Runtime Environment 7.
10/17/13 10:14:15 PM org.neo4j.server.AbstractNeoServer INFO: Setting startup timeout to: 120000ms based on -1
10/17/13 10:14:15 PM org.neo4j.server.database.Database SEVERE: Failed to start database.
10/17/13 10:14:15 PM org.neo4j.server.CommunityBootstrapper SEVERE: Bad value '-6M' for setting 'neostore.propertystore.db.strings.mapped_memory': value does not match expression:\d+[kmgKMG]?
10/17/13 10:14:15 PM org.neo4j.server.CommunityBootstrapper SEVERE: Failed to start Neo Server on port [7474]
There are also quite a few warnings about strange looking security certificate errors. e.g:
Warning: there was a problem reading the certificate file /etc/ssl/certs/EBG_Elektronik_Sertifika_Hizmet_Sa??lay??c??s??.pem. Message:
/etc/ssl/certs/EBG_Elektronik_Sertifika_Hizmet_Sa??lay??c??s??.pem (No such file or directory)
I'll try and reproduce this asap.
How much ram does the VM have?
512MB
Okay. Can you show me /etc/neo4j/neo4j.properties please?
root@neo4j:~# cat /etc/neo4j/neo4j.properties
# Default values for the low-level graph engine
#neostore.nodestore.db.mapped_memory=25M
#neostore.relationshipstore.db.mapped_memory=50M
#neostore.propertystore.db.mapped_memory=90M
#neostore.propertystore.db.strings.mapped_memory=130M
#neostore.propertystore.db.arrays.mapped_memory=130M
# Enable this to be able to upgrade a store from 1.4 -> 1.5 or 1.4 -> 1.6
#allow_store_upgrade=true
# Enable this to specify a parser other than the default one. 1.5, 1.6, 1.7 are available
#cypher_parser_version=1.6
# Keep logical logs, helps debugging but uses more disk space, enabled for
# legacy reasons To limit space needed to store historical logs use values such
# as: "7 days" or "100M size" instead of "true"
keep_logical_logs=true
# Autoindexing
# Enable auto-indexing for nodes, default is false
#node_auto_indexing=true
# The node property keys to be auto-indexed, if enabled
#node_keys_indexable=name,age
# Enable auto-indexing for relationships, default is false
#relationship_auto_indexing=true
# The relationship property keys to be auto-indexed, if enabled
#relationship_keys_indexable=name,age
I bumped the memory to 2GB in case that was an issue, but got the same result.
How much free memory do you have on the machine?
I baked in a minimum 1GB heap size into this puppet module.
By the time you've taken into account the default heap size, mapped memory for I/O (which is what's in the config file) and all, I think you might be short on RAM.
The module is now fixed and deploys neo4j 1.9.4 on AWS.
I'd be happy to take the memorysize_mb fact and derive some of the configuration values from that, but run out of time today. PR's welcome.
I'm thinking that I'll probably rely on some of the puppetlabs modules in future, like stdlib, in case anybody wants to submit a PR.
@simpsonjulian—It looks like there definitely was a memory issue. Bumped to 4GB and init.pp
applies cleanly.
Thank you for your assistance. Much appreciated.
No problem, @drzax - enjoy walking the graph!
I'm getting an error running the
init.pp
The output below is from the second attempt to run puppet apply. First attempt using the
go
script has the same outcome (but obviously a more verbose log). I've chosen not to accept the Oracle license in this instance, but I also get an error when accepting the agreement.Running on a clean Digital Ocean Ubuntu 12.04 x64 VM.