amoswood / puppet-neo4j Goto Github PK
View Code? Open in Web Editor NEWA puppet module to install and configure a Neo4j server or HA cluster of servers.
A puppet module to install and configure a Neo4j server or HA cluster of servers.
I can't install can't neo4j on ubuntu 14.04 server with a following error:
==> default: Error: Could not set 'file' on ensure: No such file or directory - /opt/neo4j/neo4j-community-2.1.5/conf/neo4j.properties20141026-1275-14525ma.lock at 179:/tmp/vagrant-puppet-3/modules-0/concat/manifests/init.pp
==> default: Error: Could not set 'file' on ensure: No such file or directory - /opt/neo4j/neo4j-community-2.1.5/conf/neo4j.properties20141026-1275-14525ma.lock at 179:/tmp/vagrant-puppet-3/modules-0/concat/manifests/init.pp
==> default: Wrapped exception:
==> default: No such file or directory - /opt/neo4j/neo4j-community-2.1.5/conf/neo4j.properties20141026-1275-14525ma.lock
==> default: Error: /Stage[main]/Neo4j/Concat[/opt/neo4j/neo4j-community-2.1.5/conf/neo4j.properties]/File[/opt/neo4j/neo4j-community-2.1.5/conf/neo4j.properties]/ensure: change from absent to file failed: Could not set 'file' on ensure: No such file or directory - /opt/neo4j/neo4j-community-2.1.5/conf/neo4j.properties20141026-1275-14525ma.lock at 179:/tmp/vagrant-puppet-3/modules-0/concat/manifests/init.pp
I use following virtualboxin my Vagrant script - https://oss-binaries.phusionpassenger.com/vagrant/boxes/latest/ubuntu-14.04-amd64-vbox.box
and Puppet script for provision:
class { 'neo4j' :
version => '2.1.5',
auth_ensure => present,
auth_admin_user => 'admin',
auth_admin_password => 'admin',
}
I have added my Vagrant/Puppet project here http://www.filedropper.com/ubuntuserver14
What I'm doing wrong ? Thanks!
Puppet fails to initialize the server with the error:
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 -Xms1024m -Xmx1024m
Starting Neo4j Server...process [1642]... waiting for server to be ready.. Failed to start within 120 seconds.
Neo4j Server may have failed to start, please check the logs.
Need to also change these settings upon provisioning?
After a clean installation of puppet I found that I was missing the puppetlabs-concat module but it's not delcared as dependency on this module:
root@ip-172-31-24-24:~# gem install puppet -v '~> 3.8'
Fetching: facter-2.4.4.gem (100%)
Fetching: json_pure-1.8.2.gem (100%)
Fetching: hiera-1.3.4.gem (100%)
Fetching: puppet-3.8.1.gem (100%)
Successfully installed facter-2.4.4
Successfully installed json_pure-1.8.2
Successfully installed hiera-1.3.4
Successfully installed puppet-3.8.1
4 gems installed
Installing ri documentation for facter-2.4.4...
Installing ri documentation for json_pure-1.8.2...
Installing ri documentation for hiera-1.3.4...
Installing ri documentation for puppet-3.8.1...
Installing RDoc documentation for facter-2.4.4...
Installing RDoc documentation for json_pure-1.8.2...
Installing RDoc documentation for hiera-1.3.4...
Installing RDoc documentation for puppet-3.8.1...
root@ip-172-31-24-24:~#
root@ip-172-31-24-24:~# puppet module install amosjwood-neo4j
Notice: Preparing to install into /etc/puppet/modules ...
Notice: Created target directory /etc/puppet/modules
Notice: Downloading from https://forgeapi.puppetlabs.com ...
Notice: Installing -- do not interrupt ...
/etc/puppet/modules
└─┬ amosjwood-neo4j (v1.0.2)
└── puppetlabs-stdlib (v4.7.0)
root@ip-172-31-24-24:/etc/puppet/manifests# puppet apply site.pp
Warning: Config file /etc/puppet/hiera.yaml not found, using Hiera defaults
Warning: Scope(Class[Neo4j]): Ignoring the cache_memory_ratio value due to version being '2.1.2'.
Error: Puppet::Parser::AST::Resource failed with error ArgumentError: Invalid resource type concat at /etc/puppet/modules/neo4j/manifests/init.pp:182 on node ip-172-31-24-24.us-west-2.compute.internal
Error: Puppet::Parser::AST::Resource failed with error ArgumentError: Invalid resource type concat at /etc/puppet/modules/neo4j/manifests/init.pp:182 on node ip-172-31-24-24.us-west-2.compute.internal
root@ip-172-31-24-24:/etc/puppet/modules# puppet module install puppetlabs-concat
Notice: Preparing to install into /etc/puppet/modules ...
Notice: Downloading from https://forgeapi.puppetlabs.com ...
Notice: Installing -- do not interrupt ...
/etc/puppet/modules
└─┬ puppetlabs-concat (v1.2.4)
└── puppetlabs-stdlib (v4.7.0)
...
Notice: /Stage[main]/Neo4j/Exec[wget neo4j-community-2.1.2.tgz]/returns: executed successfully
Notice: /Stage[main]/Neo4j/File[/opt/neo4j/data]/ensure: created
The site.pp is just a declaration of the class.
Quick issue: the URL listed for the project on the forge page (https://forge.puppetlabs.com/amosjwood/neo4j ) is giving a 404. (The URL listed is "https://forge.puppetlabs.com/amosjwood/(https://forge.puppetlabs.com/amosjwood/amosjwood-neo4j)")
I was able to find the project GitHub page through the "issues" link, however. :-P
It would be lovely to have a setting that puts the logs in a defined place, overwrite the defaults
Withouth the option: allow_remote_connections => false , there is no transparent way to set the ip, although the server says it runs on localhost you need to dig through the logs to find the ip that is beeing set
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.