Neo4j fails to start on containers #3243

Closed
BanzaiMan opened this Issue Feb 17, 2015 · 12 comments

Comments

Projects
None yet
7 participants

@BanzaiMan BanzaiMan added the docker label Feb 17, 2015

BanzaiMan added a commit to travis-ci/docs-travis-ci-com that referenced this issue Feb 17, 2015

@BanzaiMan

This comment has been minimized.

Show comment
Hide comment
@BanzaiMan

BanzaiMan Feb 17, 2015

Member

Added a note to the documentation.

Member

BanzaiMan commented Feb 17, 2015

Added a note to the documentation.

@wwwdata

This comment has been minimized.

Show comment
Hide comment
@wwwdata

wwwdata Mar 27, 2015

what is the status of this? Can this be fixed so that neo4j will start again?

wwwdata commented Mar 27, 2015

what is the status of this? Can this be fixed so that neo4j will start again?

@wwwdata

This comment has been minimized.

Show comment
Hide comment
@wwwdata

wwwdata Mar 30, 2015

if you are going to fix this: In neo4j version 2.2.0, there is authentication. Either deactivate it in the travis image or set a new password for the default neo4j user please. See: http://neo4j.com/docs/stable/security-server.html

wwwdata commented Mar 30, 2015

if you are going to fix this: In neo4j version 2.2.0, there is authentication. Either deactivate it in the travis image or set a new password for the default neo4j user please. See: http://neo4j.com/docs/stable/security-server.html

@srfrnk

This comment has been minimized.

Show comment
Hide comment
@srfrnk

srfrnk Apr 9, 2015

managed to compile working workaround: (10x to node-neo4j)

jdk:
  - oraclejdk7
before_install:
  # install Neo4j locally:
  - wget dist.neo4j.org/neo4j-community-2.2.0-unix.tar.gz
  - tar -xzf neo4j-community-2.2.0-unix.tar.gz
  - sed -i.bak s/dbms.security.auth_enabled=true/dbms.security.auth_enabled=false/g neo4j-community-2.2.0/conf/neo4j-server.properties
  - neo4j-community-2.2.0/bin/neo4j start

Works without sudo , uses newest neo4j version, disabled auth....

srfrnk commented Apr 9, 2015

managed to compile working workaround: (10x to node-neo4j)

jdk:
  - oraclejdk7
before_install:
  # install Neo4j locally:
  - wget dist.neo4j.org/neo4j-community-2.2.0-unix.tar.gz
  - tar -xzf neo4j-community-2.2.0-unix.tar.gz
  - sed -i.bak s/dbms.security.auth_enabled=true/dbms.security.auth_enabled=false/g neo4j-community-2.2.0/conf/neo4j-server.properties
  - neo4j-community-2.2.0/bin/neo4j start

Works without sudo , uses newest neo4j version, disabled auth....

@BanzaiMan

This comment has been minimized.

Show comment
Hide comment
@BanzaiMan

BanzaiMan Apr 9, 2015

Member

@srfrnk Interesting find! We will test your workaround for the next build environment update (June).

Member

BanzaiMan commented Apr 9, 2015

@srfrnk Interesting find! We will test your workaround for the next build environment update (June).

@srfrnk

This comment has been minimized.

Show comment
Hide comment
@srfrnk

srfrnk Apr 9, 2015

10x, idea burrowed from "node-neo4j" at https://github.com/thingdom/node-neo4j/blob/master/.travis.yml
They're using it to test multiple neo4j version but it's good for this issue as well.
Only thing I added was really to disable the authentication to allow for easy testing.

srfrnk commented Apr 9, 2015

10x, idea burrowed from "node-neo4j" at https://github.com/thingdom/node-neo4j/blob/master/.travis.yml
They're using it to test multiple neo4j version but it's good for this issue as well.
Only thing I added was really to disable the authentication to allow for easy testing.

@erickpeirson

This comment has been minimized.

Show comment
Hide comment
@erickpeirson

erickpeirson May 7, 2015

@srfrnk That worked wonderfully, thanks!

@srfrnk That worked wonderfully, thanks!

@srfrnk

This comment has been minimized.

Show comment
Hide comment
@srfrnk

srfrnk May 8, 2015

@erickpeirson great to know :)

srfrnk commented May 8, 2015

@erickpeirson great to know :)

snowblink added a commit to notonthehighstreet/database_cleaner that referenced this issue Jun 8, 2015

snowblink added a commit to notonthehighstreet/database_cleaner that referenced this issue Jun 9, 2015

marclitchfield added a commit to marclitchfield/neoxir that referenced this issue Aug 17, 2015

Get build passing on Travis.
Set up neo4j through the .travis.yml, following workaround described at
travis-ci/travis-ci#3243.

One test was failing: "test commit: many invalid statements
(NeoxirTest.Commit)" because the response returned from neo4j has
changed slightly since the test was originally written. Relaxed the assertion
with a Regex.

@marclitchfield marclitchfield referenced this issue in andreasronge/neoxir Aug 17, 2015

Merged

Get build passing on Travis. #2

skalee added a commit to skalee/database_cleaner that referenced this issue Mar 31, 2016

Fix Neo4j in Travis builds
Currently Neo4j refuses to run in Travis' container-based architecture.

See this: travis-ci/travis-ci#3243

@skalee skalee referenced this issue in DatabaseCleaner/database_cleaner Apr 2, 2016

Merged

Fix Neo4j in Travis builds #433

@rhblind

This comment has been minimized.

Show comment
Hide comment
@rhblind

rhblind Jul 6, 2016

Not really applicable for the issue description, but I just had a little struggle with this myself, and the easiest solution was to change the Travis environment to the new Trusty beta. Then you can just use the default neo4j travis service.

services:
  - neo4j

Just thought I should mention it...

rhblind commented Jul 6, 2016

Not really applicable for the issue description, but I just had a little struggle with this myself, and the easiest solution was to change the Travis environment to the new Trusty beta. Then you can just use the default neo4j travis service.

services:
  - neo4j

Just thought I should mention it...

@markmssd

This comment has been minimized.

Show comment
Hide comment
@markmssd

markmssd Jul 30, 2017

Just gonna leave my .travis.yml here if it can help someone...

language: node_js,

node_js:
  - 8

jdk:
  # Needed for local Neo4j 2.0+
  - oraclejdk8

services:
  # Also works, but can't specify version...
  # - neo4j

env:
  # Test across multiple versions of Neo4j:
  - NEO4J_VERSION="3.3.0-alpha04"
  - NEO4J_VERSION="3.2.2"
  - NEO4J_VERSION="3.1.4"

cache:
  directories:
    - node_modules

before_install:
  # Install Neo4j locally:
  - wget dist.neo4j.org/neo4j-community-$NEO4J_VERSION-unix.tar.gz
  - tar -xzf neo4j-community-$NEO4J_VERSION-unix.tar.gz
  - neo4j-community-$NEO4J_VERSION/bin/neo4j start
  # HACK need to change the password initially; changing it and then reverting:
  - sleep 10  # give Neo4J some time to start
  - curl -v POST http://neo4j:neo4j@localhost:7474/user/neo4j/password -d"password=neo4j2"
  - curl -v POST http://neo4j:neo4j2@localhost:7474/user/neo4j/password -d"password=neo4j"

script:
  - npm install
  - npm run build
  - npm run test

Just gonna leave my .travis.yml here if it can help someone...

language: node_js,

node_js:
  - 8

jdk:
  # Needed for local Neo4j 2.0+
  - oraclejdk8

services:
  # Also works, but can't specify version...
  # - neo4j

env:
  # Test across multiple versions of Neo4j:
  - NEO4J_VERSION="3.3.0-alpha04"
  - NEO4J_VERSION="3.2.2"
  - NEO4J_VERSION="3.1.4"

cache:
  directories:
    - node_modules

before_install:
  # Install Neo4j locally:
  - wget dist.neo4j.org/neo4j-community-$NEO4J_VERSION-unix.tar.gz
  - tar -xzf neo4j-community-$NEO4J_VERSION-unix.tar.gz
  - neo4j-community-$NEO4J_VERSION/bin/neo4j start
  # HACK need to change the password initially; changing it and then reverting:
  - sleep 10  # give Neo4J some time to start
  - curl -v POST http://neo4j:neo4j@localhost:7474/user/neo4j/password -d"password=neo4j2"
  - curl -v POST http://neo4j:neo4j2@localhost:7474/user/neo4j/password -d"password=neo4j"

script:
  - npm install
  - npm run build
  - npm run test
@jexp

This comment has been minimized.

Show comment
Hide comment
@jexp

jexp Sep 27, 2017

Can't we just use the Neo4j Docker instances for Travis?
There is a full set of official docker images for neo4j

hub.docker.com/_/neo4j

jexp commented Sep 27, 2017

Can't we just use the Neo4j Docker instances for Travis?
There is a full set of official docker images for neo4j

hub.docker.com/_/neo4j

@stale

This comment has been minimized.

Show comment
Hide comment
@stale

stale bot Apr 13, 2018

Thanks for contributing to this issue. As it has been 90 days since the last activity, we are automatically closing the issue. This is often because the request was already solved in some way and it just wasn't updated or it's no longer applicable. If that's not the case, please do feel free to either reopen this issue or open a new one. We'll gladly take a look again! You can read more here: https://blog.travis-ci.com/2018-03-09-closing-old-issues

stale bot commented Apr 13, 2018

Thanks for contributing to this issue. As it has been 90 days since the last activity, we are automatically closing the issue. This is often because the request was already solved in some way and it just wasn't updated or it's no longer applicable. If that's not the case, please do feel free to either reopen this issue or open a new one. We'll gladly take a look again! You can read more here: https://blog.travis-ci.com/2018-03-09-closing-old-issues

@stale stale bot added the stale label Apr 13, 2018

@stale stale bot closed this Apr 16, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment