Right after updating Neo4j from 2.0.1 to 2.1.1, I got this error:
Starting Neo4j Server failed: Startup failed due to preflight task
[class org.neo4j.server.preflight.PerformUpgradeIfNecessary]: Unable
to upgrade database
(Windows Vista x64)
While store upgrades are not required for the 2.1 update, it may help if you make the following configuration changes.
In the neo4j.properties configuration file, uncomment the second line below.
# Enable this to be able to upgrade a store from an older version
#allow_store_upgrade=true
Make sure you backup your database folder before proceeding to restart the database.
Related
I have a jenkin scheduled job that calls Spoon ETL . On some days the job fails due to database connection error with SQL server as well as postgresql . I have tried running it by clearing cache as well as deleting database cache file. The error message is,
Error connecting to database: (using class net.sourceforge.jtds.jdbc.Driver)
It seems like the driver is out of date. Found a solution here: https://communities.bmc.com/docs/DOC-109113
In summary it says:
CAUSE:
Issue is with JDBC 3.0 driver for Microsoft SQL Server (http://jtds.sourceforge.net/). The platform upgrade replaced the current driver with an older driver.
SOLUTION:
1- Download most recent driver from here: https://sourceforge.net/projects/jtds/files/jtds/
2- Copy file to PATH\TO\data-integration\lib
3- Delete existing driver.
Note* DO NOT JUST RENAME IT. If you just rename it, it will work in Spoon but not when you launch the job in AI.
I need to connect with gremlin to my Neo4j 3.3.0 CE instance.
On my gremlin console I had executed this command:
gremlin> :install org.apache.tinkerpop neo4j-gremlin 3.3.0
to install the necessary plugin.
Trying to open the graphdb with this:
gremlin> graph = Neo4jGraph.open("/home/user/neo4j-community-3.3.0/data/databases/graph.db")
I have this error:
Caused by: org.neo4j.kernel.impl.storemigration.UpgradeNotAllowedByConfigurationException: Failed to start Neo4j with an older data store version. To enable automatic upgrade, please set configuration parameter "allow_store_upgrade=true"
at org.neo4j.kernel.impl.storemigration.ConfigMapUpgradeConfiguration.checkConfigurationAllowsAutomaticUpgrade(ConfigMapUpgradeConfiguration.java:39)
at org.neo4j.kernel.impl.storemigration.StoreUpgrader.migrateIfNeeded(StoreUpgrader.java:135)
at org.neo4j.kernel.NeoStoreDataSource.upgradeStore(NeoStoreDataSource.java:636)
at org.neo4j.kernel.NeoStoreDataSource.start(NeoStoreDataSource.java:527)
at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:452)
I have Neo4J 3.3.0 and I install the 3.3.0 neo4j-gremlin plugin. Wich version of the plugin I must install to connect to my 3.3.0 neo4j instance?
I must upgrade the store?
Thanks
The last released version of the tinkerpop (3.3.0) support is for Neo4j 3.2.3, so it won't work with a newer store. (The version numbers can be misleading)
You can try to build the 3.3 branch of https://github.com/neo4j-contrib/neo4j-tinkerpop-api-impl/tree/3.3 locally and use that resulting jar.
I regularly use Neo4J Browser on http://localhost:7474/browser/. However, yesterday I used the java driver to connect to Neo4J and execute queries. Since then, I'm unable to login to Neo4J Browser.
I start Neo4J from the terminal (I'm on ubuntu) using sudo neo4j start, and this is the output -
% sudo neo4j start
Active database: graph.db
Directories in use:
home: /var/lib/neo4j
config: /etc/neo4j
logs: /var/log/neo4j
plugins: /var/lib/neo4j/plugins
import: /var/lib/neo4j/import
data: /var/lib/neo4j/data
certificates: /var/lib/neo4j/certificates
run: /var/run/neo4j
Starting Neo4j.
WARNING: Max 1024 open files allowed, minimum of 40000 recommended. See the Neo4j manual.
/usr/share/neo4j/bin/neo4j: line 411: /var/run/neo4j/neo4j.pid: No such file or directory
Then, I visit localhost:7474, which gives me the :server connect screen, but as soon as I enter the password, I get this error -
ServiceUnavailable: WebSocket connection failure. Due to security constraints in your web browser, the reason for the failure is not available to this Neo4j Driver. Please use your browsers development console to determine the root cause of the failure. Common reasons include the database being
Screenshot -
Normally, the only authentication fields are "Username" and "Password". I don't think I've seen the "Host" field in there before.
I searched for this error, and came across a question with similar error and an article on the Neo4J KB that says -
In Neo4j 3.0 and its implementation of the Bolt protocol, if a remote browser connects to Neo4j (http://:7474) and attempts to authenticate, the following error may be encountered:
But I don't think this situation applies here.
How can I fix this?
As logisima pointed out, neo4j is not compatible with Java 9. You can install multiple versions of Java and use environment variables to swap between them. For instance on MacOS you might have these two lines in your .bash_profile
export JAVA_HOME=$(/usr/libexec/java_home)
export JAVA8_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home
The first line gets your normally installed java home and the second points to the older java8 location.
Then before starting your neo4j instance, execute for example:
export JAVA_HOME=$JAVA8_HOME
$NEO4J_HOME/bin/neo4j start
I was given a graph db I must open with Neo4j. Installed community version Neo4j-2.2.0-M02 on Win7 Ultimate laptop successfully. When I tried to start the server, after pointing to the graph db, I get the following error:
Starting Neo4j Server failed:
Component org.neo4j.server.database.LifecycleManagingDatabase#325ce05c was successfully initialized, but failed to start. Please see attached cause exception.
Logged in as windows local admin. Windows FWall is off. There's no antivirus SW installed on the machine. Local admin has full perms on entire root drive. When I point to the default db, Neo4j server starts normally and I can browse http://localhost:7474/ without a problem.
Any lead will be appreciated.
The aforementioned error message was the result of using a Neo4j version different to the one the graph db was originally developed. In particular, the original graph db was developed in ver 2.0.4 Community that due to my lack of knowledge I was trying to run on an installation of Neo4j ver. 2.2.0-M02 (for development only).
The code owner enlightened me to the fact and an attempt to bring up the graph db on ver. 2.0.4 Community was successful.
Thanks for your support.
Delete the folder "c:\Users\Yourname\MyDocuments\Neo4j"
I removed the plugins that were loaded from <NEO4J_HOME>/plugins as they were also loaded from under <DATABASE_HOME>/plugins
I've manage to deploy my Grails app on my local pc on Tomcat and database is on MySql server but I cant manage to do it on remote server in the same enviroment.
This is the begining of stacktrace:
java.lang.UnsupportedClassVersionError: org/codehaus/groovy/grails/plugins/springsecurity/SpringSecurityUtils : Unsupported major.minor version 51.0 (unable to load class org.codehaus.groovy.grails.plugins.springsecurity.SpringSecurityUtils)
Either use the same JVM version on the server as you are using on your local pc OR use a higher version on the server. Typically, that should solve your problem
You're compiling and running with different JVM versions.
The JDK version on your computer should be the same that is installed on the remote server.