Neo4j community edition in read-only mode - neo4j

I'm trying to make the config flag dbms.read_only=true working with Neo4j community edition (I know there are user roles in the enterprise, but I'm not wealthy enough for their expensive fees).
I've done this:
Created a database as read/write, using Neo4j Desktop (v1.1.8) under Mac and 3.4.5 as database engine.
Populated it with just a few nodes
Stopped, set dbms.read_only=true and restarted
At the last step, the server logs shows the error: "UnsupportedOperationException: Can't create index writer in read only mode" and shuts down. So, is that option really (still) working?

Neo4j Desktop is meant for usage with Enterprise Edition (you do get an individual license for usage for dev purposes only), not Community Edition.
I believe there's an issue with dbms.read_only=true and running via Neo4j Desktop, but there isn't any problem using the server deployment of Neo4j Community edition and using that setting.
My advice would be to download the community edition from Neo4j and use that directly rather than going through Neo4j Desktop.

Related

Neo4j Enterprise VM Version 3.5 Database Transfer

I upload Neo4j Enterprise VM Version 3.5 to my Azure account. So right now I am using Neo4j in the Azure. 
I created before my database in the local desktop edition and I want to transfer it to Remote one (Neo4j Enterprise VM Version 3.5)  which is in Azure . 
However I couldnt find a way to do it. There is no option in Neo4j Enterprise VM Version 3.5 to put my graph.db zip file.
Someone can help to how transfer my local database to remote one ?
Thanks
The documented way to transfer a neo4j DB is to use:
The neo4j-admin dump command on the originating machine to create a dump file.
The neo4j-admin load command on the destination machine to fill a fresh DB from that dump file.
Refer to the documentation for more details.

How to start the Community Edition in Neo4j Desktop?

I would like to use Neo4j to learn how graph databases work and make some experiences with my own datasets. According to that and since Neo4j claims to be open source I've downloaded the Windows Neo4j Desktop version, but every project and database initialized shows the "Enterprise" attribute which means that I just initialized the Enterprise edition.
Any idea how to setup a project and a database based on the community edition?
Solved it. If you dont setup path variables you have enter the bin directory via cmd and type "neo4j.bat install-service" and then neo4j.bat to start the database-server. The officiall installation instructions should have those details.
just open a commandline in the bin folder. There you execute the command "neo4j.bat console" which creates a local server, that you then reach via localhost:7474.
The neo4j Download Center allows you to choose between downloading the Enterprise Edition, the Community Edition, and the Desktop.

Its lock file has been locked by another process - Neo4j Embedded

I am developing a embedded application of the Neo4j and I try run this but I get this error:
Store and its lock file has been locked by another process:
/home/dev/neo4j-community-2.3.2/data/graph.db/store_lock. Please
ensure no other process is using this database, and that the directory
is writable (required even for read-only access)
I know that is because the neo4j server application is running and it lock the directory to writable for another application.
But I want run both, the neo4j server with browser studio and my embedded application.
I am use the community edition 2.3.2 in Linux.
How can I do it?
It is possible in enterprise version?
Thanks
On the very same directory you can only run at most one instance at a given time.
Enterprise edition enables master-slave replication, so the graph.db is folder is propagated from master to slave instance. This would be an option for you.
I assume you want to access you embedded instance via the browser. See this blog post http://graphaware.com/neo4j/2014/11/21/neo4j-browser-with-embedded.html - be aware this one is based on 2.1 - as far as I remember in 2.3 some things have changed since then.

Neo4j 2.1.1 concern - consistency check of community edition db

Following on from the information found in the blog post titled 'Neo4j 2.1.2 – Maintenance Release', I thought I should check the consistency of a database that has been upgraded to Neo4j 2.1.1.
My set up: Neo4j community edition running on Windows Server 2012 R2 - the binary distribution running as a Windows service (NOT the windows desktop launcher executable).
In the blog post it talks about using the backup tool included with the enterprise version of Neo4j so I have downloaded an evaluation copy (2.1.4) so have access to Neo4jBackup.bat. I cannot however, get a backup to run. No matter what I try I get
Couldn't connect to '127.0.0.1:6362'
or a variation thereof.
I am running
.\bin\Neo4jBackup.bat -from localhost -to D:\DataBackups\Neo4j\check
I have tried specifying a port, specifying IP address, using single://localhost. After consulting the manual more closely I have also amended my config to add
# Enable online backups to be taken from this database.
online_backup_enabled=true
# Port to listen to for incoming backup requests.
online_backup_server=127.0.0.1:6362
Still I receive the same error. I am clearly being a moron. What am I doing wrong? Help!
The question boils down to 'how do I back up a community edition database as alluded to in this Neo4j blog post?
OK so yes. I am a moron. It just came to me. You need to open the database with the enterprise edition!
For anyone who is overcome with a moment of stupidity, like me
Copy the database you wish to check (graph.db by default) to the data directory of your evaluation copy of Neo4j
Start up Neo4j (you may or may not need a store upgrade)
Run .\bin\Neo4jBackup.bat -from localhost -to [your desired backup location]
Sit back and await the results
Feel free to mock/throw rotten vegetables etc at me....! :)
Starting with the 2.1 line (somewhere around 2.1.5 I think) the consistency checker was moved from the enterprise edition to the community edition. It is therefore now possible to check a DB with the community edition too. In the root of the neo4j server directory run:
java -cp 'lib/*' org.neo4j.consistency.ConsistencyCheckTool data/graph.db
Note that this is not an offical API (it's undocumented).

Installation error with Neo4j enterprise edition 2.0.0

I am a developer at a company. We started using Neo4j recently. We have been using Neo4j community editions till now. We use Amazon as our cloud. We put up the neo database onto cloud and we are using ubuntu instance for this. I was able to put Neo4j community editions onto the cloud till now and put data on it. We have now bought the enterprise edition of Neo4j (Neo4j Enterprise edition 2.0.0) . I am trying to put the new enterprise edition onto the cloud using ubuntu.
I have downloaded the enterprise version and extracted the contents of it on ubuntu. Now I am trying to install Neo database using the command:
var/lib/neo4j/ neo4j-community-2.0.0 $ sudo ./bin/neo4j-installer install
This gives me output as:
WARNING: this installer is deprecated and may not be the optimal way to install Neo4j on your system.
Please see the Neo4j Manual for up to date information on installing Neo4j.
Press any key to continue
Graph-like power should be handled carefully. What user should run Neo4j? [neo4j] ubuntu
ln: failed to create symbolic link ‘/etc/init.d/neo4j-service’: File exists
update-rc.d: /etc/init.d/neo4j-service: file does not exist
This does not install neo database now. The same command was working fine with Neo4j community editions. Please let me know what should be done for this? I am stuck on this for several hours now. I have no clue what should be done.
Any help would be greatly appreciated. Please help.
Thanks in advance.
As you are a customer, probably best to open a support ticket, and then add an answer here, so that other people can learn about it?
Did you remove the community installation first? It could be a clash of the two versions.
Because the manual actually says the same thing here:
http://docs.neo4j.org/chunked/stable/server-installation.html#linux-install

Resources