How can I easily upgrade my neo4j database to the newest version - neo4j

I'm currently running a neo4j database on DigitalOcean, and used their help file to do so. In short:
wget -O - http://debian.neo4j.org/neotechnology.gpg.key | apt-key add -
echo 'deb http://debian.neo4j.org/repo stable/' > /etc/apt/sources.list.d/neo4j.list
apt-get update
apt-get install neo4j
Now I want to upgrade from 2.1.2 to 2.1.3. The neo4j automatic upgrade instructions seem to be relevant only once you've downloaded/installed the newest upgrade.
I'm sure there's a simple command or process to upgrade, but I just can't find it. Can anyone please help? (I'm very much a sysadmin/Unix novice).

After running apt-get install neo4j I expect that you have 2.1.3 installed. If not try a apt-get upgrade.
From 2.1.2 -> 2.1.3 no datastore upgrade is required. When upgrading e.g. from 2.0.x -> 2.1.x the datastore needs to be migrated. This can be enabled by setting
allow_store_upgrade=true
in /etc/neo4j/neo4j.properties.
So if you apply this setting you should be future proof and get upgrades plus datastore migration (if necessary) upon every apt-get upgrade. This setting does not hurt if no store upgrade is necessary.

Related

Electron builder - Define linux version

Im using electron which has already a production env running. For the last months I've been publishing normally with Electron-builder in my ci.yml file:
release-linux:
stage: release
image: electronuserland/builder:14
before_script:
- export ARCH="x64"
- export BUILD_SCRIPT="build:linux"
- apt-get update && apt-get install -y build-essential cmake
- apt install -y libusb-1.0-0-dev libudev-dev
After running the - apt-get update && apt-get install -y build-essential cmake line there is the libc6 package installed which installs with latest (2.35).
My production environment is running on Ubuntu 20.04 LTS. I assume the docker image in which the release is made, is running on a newer version (asuming latest).
The problem is that I have some hardware devices which works correctly with libc6=2.31-0ubuntu9.2 (which is the version that was automatically installed previously by the docker image). Now, for some reason I don't know, the image is pulling the latest version of libc6 and my hardware devices stoped working.
Is there any way to force electron-builder to use a specific Linux/Ubuntu version?
Or maybe use the latest version of ubuntu but downgrading the libc6 version (tried this one but failed). Any instructions on how to do this are apreciated.
Updating Ubuntu's version at production is not an option right now, so I think the solution should be working out with this package/library version.
The problem solved out on its own randomly, but after some research, it was a electron-builder change which was causing the problem.
In this commit changes log we can see that buildpack-deps was changed from buildpack-deps:22.04-curl (not working) to buildpack-deps:focal-curl (working).
That give us a clue to where to look at. Here the official supported tags for Dockerfiles. Here we can see that focal-curl points to 20.04-curl which I suppose have a different output than 20.04 by its own.
Then, looking at the gitlab jobs running with this ci configs, the libc6 dependency worked with different versions in each case.
Our hardware works correctly with libc6=2.31 which is used when focal-curl is set by electron-builder dockerfile, but not with libc6=2.35 which is used by 20.04.
This is not a solution, but it's the cause of the problem. Now working on how to setup the project to use only the correct configuration of electron-builder. Currently accepted to work with same config but being careful when releasing by watching which libc6 version is working with.

How Do I Install Dart v2?

Ive looked all over the official Dart site. They go into great depth about 'dev' channels and 'stable' channels but no clue whatsover about how to actually install a version of the SDK. There is no information about the current stable and dev versions either.
Clearly I have missed something hiding in plain site. I want to try out some official angulardart component libraries but the builder requires Dart version 2 - but I have no idea how to get that.
Can someone put me out of my misery, and tell me how I'm being an idiot
Thanks
Installation instructions for dart v2 (which currently only has a dev channel release) can be found here. To summarize,
Mac Installation with homebrew
brew tap dart-lang/dart
brew install dart --devel
Edit: If you are upgrading from Dart 1 see, How to upgrade to Dart 2?
Windows Installation
Visit here for the graphical installer or if you have Chocolatey installed do:
choco install dart-sdk -version 2
Linux
sudo apt-get update
sudo apt-get install apt-transport-https
sudo sh -c 'curl https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add -'
sudo apt-get update
export PATH=/usr/lib/dart/bin:$PATH
sudo sh -c 'curl https://storage.googleapis.com/download.dartlang.org/linux/debian/dart_unstable.list > /etc/apt/sources.list.d/dart_unstable.list'
sudo apt-get install dart
Ahhhhhhh. If you go to https://www.dartlang.org/install/archive
And then wait for about 10 minutes, you suddenly get some links. - Problem solved.
The latest version in the dev channel is Dart 2 (2.0.0-alpha.36).
There is no released Dart 2 yet.
This VM and tools can still process most Dart 1 code.
There are several flags to enable Dart 2 features for the VM or tools
--preview-dart-2
--reify-generic-functions
--reify-generics
--limit-ints-to-64-bits
--sync-async
these options are highly experimental and in flux.
Not all tools support the same set of options.
New options might be added or existing ones removed when the behavior becomes the default without previous anouncement.
I found above options in https://github.com/dart-lang/sdk/blob/b0a2e6b9c99d8a13ecd59d1636d5201adc77fc07/tools/testing/dart/test_suite.dart
for windows go to dart.dev for install dart
if you want if dart is install in your pc
1-open terminal and type this command dart --version when will appear version dart
ex: 2.28 (sdkDart)

Upgrading to Neo4j to 2.2 from 2.1.6 on OSX

having read the documentation...
http://neo4j.com/docs/milestone/deployment-upgrading.html#automatic-upgrade
It states-
Install Neo4j 2.2.0-RC01, and set it up to use the same database store directory (typically data/graph.db).
But how exactly do I Install it? I think I just used brew to install it in the first place but
brew install neo4j
results in
Warning: neo4j-2.1.6 already installed
I would greatly appreciate a simple, noobs guide to upgrading.
Thanks in advance.
Since 2.2.0-RC01 is a pre-release it isn't available via homebrew (homebrew doesn't let you pick a version to install. It's always the latest stable release of the package).
Go to neo4j.com and follow the download link for 2.2.0-RC01. Download it and unpack the tarball with tar xvfz neo4j-community-XXX.tar.gz. Once uncompressed you should:
Copy over your store from 2.1.6 (data/graph.db directory) to the unpacked directory structure
Set allow_store_upgrade=true in conf/neo4j.properties
Change the org.neo4j.server.webserver.port and org.neo4j.server.webserver.https.port properties so as not to conflict with your 2.1.6 installation
Start Neo4j with bin/neo4j start.
Notes:
I would not overwrite the installation via homebrew to avoid issues with it later on
Make sure the Neo4j 2.1.6 instance is stopped before copying over the store files

Upgrade php version from 5.2 to 5.3 Joomla

Our new website in Joomla 3 needs at least PHP v5.3 to run the Akeeba Next Generation Installer. Any my server is running a PHP 5.2. I have tried adding the line
AddHandler application/x-httpd-php53 .php
on my .htaccess but instead it downloads the index.php file.. Hosting provided is Doteasy. How do we go upgrading the PHP?
Any help would be much appreciated. THanks.
This isn't going to work. You'll need to have php installed to the version. Do you have SSH access to the server? if you do what platform is it? Most web servers run on Linux and if that's the case you'll need to upgrade php on the linux server. On Windows you'll need to
uninstall and install php to the latest.
a,
if it is centos or fedora, you need to have the correct repo enabled and you need to issue
To install, first you must add the Webtatic EL yum repository information corresponding to your CentOS/RHEL version to yum:
CentOS/RHEL 7.x:
rpm -Uvh https://mirror.webtatic.com/yum/el7/epel-release.rpm
rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm
CentOS/RHEL 6.x:
rpm -Uvh https://mirror.webtatic.com/yum/el6/latest.rpm
CentOS/RHEL 5.x:
rpm -Uvh https://mirror.webtatic.com/yum/el5/latest.rpm
Now you can install php by doing:
yum install php54w
If you would like to upgrade php to this version it is recommended that you check that your system will support the upgrade, e.g. making sure any CPanel-like software can run after the upgrade.
Unless you know what you are doing, it is risky upgrading an existing system. It’s much safer to do this by provisioning a separate server to perform the upgrade as a fresh install instead.
If you know what you are doing, you can upgrade PHP by:
yum install yum-plugin-replace
yum replace php-common --replace-with=php54w-common
It will likely give you a message “WARNING: Unable to resolve all providers …”. This is normal, and you can continue by tying “y“. You will be given a chance to see what packages will be installed and removed before again being given a chance to confirm.
or
if its a debian ubuntu linux dist you need to issue
*this will be the easiest option. For PHP 5.4.x run the command:*
sudo add-apt-repository ppa:ondrej/php5-oldstable
or for PHP 5.5.x run:
sudo add-apt-repository ppa:ondrej/php5
And then update your packages:
sudo apt-get update
sudo apt-get upgrade

Grails on Ubuntu 12.10

I am installing Grails on Ubuntu 12.10, using the instructions here, but an getting an error on the 3rd step, as outlines below.
sudo add-apt-repository ppa:groovy-dev/grails
sudo apt-get update
sudo apt-get install grails-ppa
The error I get is shown below. I have the Sun JDK installed, and JAVA_HOME is set, and JAVA_HOME/bin is on the path.
Can someone suggest things to try to resolve this?
/home/edgecase> $ sudo apt-get install grails-ppa
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
default-jre-headless:i386 : Depends: openjdk-7-jre-headless:i386 (>= 7~u3-2.1) but it is not going to be installed
openjdk-7-jre:i386 : Depends: openjdk-7-jre-headless:i386 (= 7u7-2.3.2a-1ubuntu1) but it is not going to be installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
/home/edgecase> $ java -version
java version "1.6.0_39"
Java(TM) SE Runtime Environment (build 1.6.0_39-b04)
Java HotSpot(TM) 64-Bit Server VM (build 20.14-b01, mixed mode)
We need to remove those instructions from the site since the PPA isn't being maintained. Use http://gvmtool.net/ instead.
YES please remove the PPA instructions with GVM, I wasted a lot of time before I found this

Resources