Upgrade mongoDB from
Here we persume you are on
1- import public key:
2- create apt sources file:
3- update repo
4- install the MongoDB packages
* it will ask for config overwrite, if you want to take backup take a backup from config and then overwrite it.
#mongodb #mongo #mongodb36 #database #upgrade #mongodb34
3.4
to 3.6
:Here we persume you are on
debian 8 jessie
.1- import public key:
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 2930ADAE8CAF5059EE73BB4B58712A2291FA4AD5
2- create apt sources file:
echo "deb http://repo.mongodb.org/apt/debian jessie/mongodb-org/3.6 main" | sudo tee / etc/apt/sources.list.d/mongodb-org-3.6.list
3- update repo
sudo apt-get update
4- install the MongoDB packages
sudo apt-get install -y mongodb-org=3.6.2 mongodb-org-server=3.6.2 mongodb-org-shell=3. 6.2 mongodb-org-mongos=3.6.2 mongodb-org-tools=3.6.2
* it will ask for config overwrite, if you want to take backup take a backup from config and then overwrite it.
#mongodb #mongo #mongodb36 #database #upgrade #mongodb34
How do you upgrade
The short answer is that you need to do an incremental upgrade on its database.
But how exactly?
The content of
#linux #icinga2 #monitoring #icinga2 #icingaweb #upgrade
Icinga2
from a very old version?The short answer is that you need to do an incremental upgrade on its database.
But how exactly?
apt-get update
apt-cache policy icinga2-ido-mysqlThe candidate section displays what version is available for you system. Do the same for
icingaweb2
:apt-cache policy icingaweb2Upgrade these packages alltogether:
apt-get upgrade -o Dpkg::Options::="--force-confold" -yUpdate
icinga2
packages:apt-get upgrade icinga2 icinga2-bin icinga2-common icinga2-ido-mysql libicinga2Now check
apt-get install icinga2-bin
apt-get install icinga2
icinga2
log in tail -f /var/log/icinga2/icinga2.log
, you may see errors like:[2017-12-21 12:00:22 -0600] critical/IdoPgsqlConnection: Schema version '1.14.2' does not match the required version '1.14.3' (or newer)! Please check the upgrade documentation at https://docs.icinga.com/icinga2Here you need to upgrade
MySQL
schemas, go to /usr/share/icinga2-ido-mysql/schema/upgrade
path and now import new schemas to Icinga2 MySQL
database. As I was in version 2.6.0
I went for 2.8.0
:mysql -u icinga2 -p icinga2 < 2.8.0.sqlIt will prompt for password of user
icinga2
, enter the password and go on.The content of
MySQL Schemas
is as follows:2.0.2.sql 2.1.0.sql 2.2.0.sql 2.3.0.sql 2.4.0.sql 2.5.0.sql 2.6.0.sql 2.8.0.sql 2.8.1.sql
NOTE:
to get the password for user icinga2
open /etc/icinga2/features-enabled/ido-mysql.conf
file and get the password from here.#linux #icinga2 #monitoring #icinga2 #icingaweb #upgrade
Tech C**P
How do you upgrade Icinga2 from a very old version? The short answer is that you need to do an incremental upgrade on its database. But how exactly? apt-get update apt-cache policy icinga2-ido-mysql The candidate section displays what version is available…
In case your upgrade failed, try to start icinga service and in the meantime check the logs in another console:
Check logs to see what is the error:
If it point to a specific config file, change the config as reported or in case you don't need it remove it. It happened for me on another Icinga2 server and I removed the old config and tried to apply the new schemas. It gave another error on mysql grants, I gave all permissions to the icinga2 user:
Now all things should be up and working now.
#icinga2 #monitoring #upgrade #schema_update #icinga
service icinga2 start
Check logs to see what is the error:
tail -f /var/log/icinga2/icinga2.log
If it point to a specific config file, change the config as reported or in case you don't need it remove it. It happened for me on another Icinga2 server and I removed the old config and tried to apply the new schemas. It gave another error on mysql grants, I gave all permissions to the icinga2 user:
mysql -u root -p
GRANT ALL PRIVILEGES ON icinga2_database_name.* TO 'icinga2_username'@'localhost'
flush privileges;
Now all things should be up and working now.
#icinga2 #monitoring #upgrade #schema_update #icinga
How to upgrade
The procedure is dead simple! Mail server itself notifies you about the new updates in its admin panel. Head over to the given link and download the the appropriate file related to your OS. Usually a
1- First make it executable:
2- Now stop
3- Run the installer and go in an interactive way. JUST be sure to skip the
4- Now start
#mail_server #axigen #upgrade #update
Axigen
mail server?The procedure is dead simple! Mail server itself notifies you about the new updates in its admin panel. Head over to the given link and download the the appropriate file related to your OS. Usually a
.run
file.1- First make it executable:
chmod +x axigen-10.2.2.x86_64.rpm.run
NOTE:
here my version update may differ from yours.2- Now stop
Axigen
.3- Run the installer and go in an interactive way. JUST be sure to skip the
Axigen
post-install configuration wizard.4- Now start
Axigen
.NOTE:
in case you want to take backup copy the folder /var/opt/axigen
in a safe place. This path may differ based on your OS and your distro.#mail_server #axigen #upgrade #update