Copy Neo4j Desktop Edition DB to cloud - neo4j

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

Related

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.

DB2 on IBM Bluemix

I'm just starting out on Bluemix, I've created a small rails 4 app and tested it locally using sqlite. As DB2 is the default on Bluemix I opted for it when I setup the app.
When I added the ibm_db gem to my gem file ready to deploy to Bluemix I got the following error from bundler:
Environment variable IBM_DB_HOME is not set. Set it to your DB2/IBM_Data_Server_Driver installation directory and retry gem install.
I don't have DB2 installed on my dev machine as I won't use it for anything else, I normally use Postgres but thats not natively supported on Bluemix it's a third party provider which I don't want to get into. I'm not willing to install DB2 just to deploy to Bluemix, I'm hoping theres another way ?
Thanks.
In order to make a connection to DB2 from your local machine, you'll also need an IBM DB2 driver installed and your IBM_DB_HOME environment variable set to the path where you install the driver package. (e.g. /home/db2inst1/sqllib)
The ibm_db gem should then be able to find the necessary binaries in order to make a connection to the database.
You can obtain a driver here: https://www-304.ibm.com/support/docview.wss?uid=swg21418043
This developerworks article will also be of help, as you could use DB2 Express-C to test things out locally: http://www.ibm.com/developerworks/data/library/techarticle/dm-0705chun/
DB2 is not default on Bluemix. You can select a range of database services offered on bluemix and you need to bind your app with that database service. For DB2, you can opt for a SQLDB service. On Bluemix, DB2 comes as SQLDB.
We get "Environment variable IBM_DB_HOME is not set" error while pushing app in Bluemix if during deployment of your app client driver for DB2 is missing. Bluemix automatically download DB2 client driver if version of your gem is 2.5.18 or later. It seems you are using older version of gem. Hence, getting this error. Download latest version of gem and try. It should work.
you can choose from wide range of DB(mysql,SQLDB,mongodb,elephantSQL) service offerings from Bluemix dashoard. There is no such default db or any services is defined in Bluemix!!
I think you are likely on Mac and Darwin 14 more specifically for which there isn't yet a prebuilt ibm_db binary. U can follow on this dw thread for updates
DB2 is termed as SQLDB in bluemix dashboard,which is not the default one.Infact,Bluemix dont have anything boilerplate which is default.
Now looking at the error snippet your provided "Environment variable IBM_DB_HOME is not set" means that your app client driver for DB2 is missing.
Possible reason would be that you are using older version gem,you should try to download latest version,which would fix this error.
Hope it helps!!!

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

Cacti - after upgrade to 0.8.8a not graphing harddrive space on Windows servers

I have upgraded Cacti from 0.8.7g to 0.8.8a. (We use poller not spine).
I followed the upgrade instructions here - http://docs.cacti.net/manual:088:1_installation.3_upgrading#upgrading_cacti
Cacti Server; Linux RedHat server RHEL4connect to mysql
Not using custom scripts basically inbuilt server (index) scripts.
What doesnt graph is hard drive usage (hdtotal/hdfreespace) on windows or linux boxes
Windows servers will only graph network stats not hd/cpu.
I have confirmed that the OID in the Server script directory are correct. Went through the trouble shooting steps here - http://docs.cacti.net/manual:088:4_help.2_debugging#debugging
Linux server are ok with recording and displaying cpu/network but not hard drive data.
I realise this post is a bit all over the place, but new to cacti and want to fix these issues. Any information/help is appreciated. Even if it is just to set up a windows server monitoring graph.
Thanks
Roger
Did you rebuild the poller cache already ?
Go to Console -> System Utilities -> Rebuild Poller Cache
That rebuilds the cache which the poller is using. It sometimes get's not updated properly during an update leaving some graphs empty.
FYI
We had no luck with this upgrade and ended up rebuilding the server using packages available through redhat repositories.
Thanks for reading

Resources