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

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.

Related

How do I setup an Oracle Dynamo Admin Server?

I am confused by Oracle documentation on how to setup the (ATG) Web Commerce available on the edelivery website.
I would like to get to the step where I have properly set up the admin console.
Running the bin files on a server seems not work for various reasons:
either installation finishes but nothing is working
OR
the installation endlessly asks for arbitrary input.
Also, I want to know if it is possible to setup the server in docker and/or an Amazon Linux EC2 instance.
There are quite a number of steps involved in getting the ATG Admin Server up and running. These start with installing a JDK, Application Server and provisioning a database. Once you have gone through the Installer (which you downloaded from the edelivery site) you need to go through a basic setup process using the CIM tool. The installation process (for ATG 11.3.1) is documented here, while the steps to setup a basic application is documented here.
Working through the steps in the CIM tool, you will end up with a deployable .ear file that you can copy to your application server. Once your application server is started, you will be able to access the Dynamo Admin server.
As of version 11.3.1 ATG is officially supported on Docker. Considering that you compile your own .ear file and it can be deployed to an Application Server (such as Weblogic), Docker support won't necessarily provide you with an ATG Image. It will simply allow you to run your compiled artefact on a Docker container. You are more likely wanting to get hold of a Weblogic Docker Image and deploy your ATG artefact there.

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.

Copy Neo4j Desktop Edition DB to cloud

I am trying to get the Paradise Papers running on an AWS cloud server. I installed Neo4j Desktop on my mac, and commissioned a server by deploying the AMI from https://aws.amazon.com/marketplace/pp/B071P26C9D.
I then copied the data from the Desktop install to the cloud install, updated the neo4j.template file to point to the new directory, and restarted the service.
The problem is that I can no longer connect to the server. In the log files I can see the following lines (along with a lot of diagnostic information).
2018-09-30 07:41:59.920+0000 INFO [o.n.k.i.f.CommunityEditionModule] No locking implementation specified, defaulting to 'community'
2018-09-30 07:42:00.104+0000 INFO [o.n.k.AvailabilityGuard] Requirement makes database unavailable: Database available
I suspect that there may be some kind of licensing or version constraint that is preventing the database from running. Could this be possible? Or is it something else?
Your issue is not related with a licensing or version problem.
In your debug.log, I don't see any message that can explained your issue.
Is there something useful in the neo4j.log file ?
Can you try to start neo4j after after removing all your plugins (apoc) ?
Can you try to start Neo4j on an empty database ?
Cheers

Neo4j community edition in read-only mode

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.

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).

Resources