Update page 'UpgradeTo16.04'
parent
a9838a0302
commit
6ce0a9738e
1 changed files with 55 additions and 0 deletions
55
UpgradeTo16.04.md
Normal file
55
UpgradeTo16.04.md
Normal file
|
@ -0,0 +1,55 @@
|
||||||
|
## Upgrade to Ubuntu 16.04
|
||||||
|
|
||||||
|
notes on upgrading unbuntu from 14.04 to 16.04 for pan.do/ra
|
||||||
|
|
||||||
|
apt-get install ubuntu-release-upgrader-core
|
||||||
|
do-release-upgrade
|
||||||
|
|
||||||
|
Questions:
|
||||||
|
- Do you want to upgrade glibc now? YES
|
||||||
|
- Restart services during package upgrades without asking? YES
|
||||||
|
- Keep /etc/nginx/nginx.conf and /etc/nginx/sites-available/default
|
||||||
|
- install the package maintainer's version /etc/postgresql-common/createcluster.conf
|
||||||
|
|
||||||
|
restart
|
||||||
|
|
||||||
|
Post Upgrade:
|
||||||
|
|
||||||
|
Install systemd service files and remove upstart scripts:
|
||||||
|
|
||||||
|
|
||||||
|
rm /etc/init/pandora*
|
||||||
|
/srv/pandora/ctl install
|
||||||
|
|
||||||
|
possibly adjust settings in /srv/pandora/pandora/gunicorn_config.py
|
||||||
|
|
||||||
|
Stop all pan.do/ra processes (run as root):
|
||||||
|
|
||||||
|
/srv/pandora/ctl stop
|
||||||
|
|
||||||
|
Enable pan.do/ra PPA again (run as root):
|
||||||
|
|
||||||
|
sed -i "s/^# deb/deb/g" /etc/apt/sources.list.d/j*.list
|
||||||
|
apt update; apt upgrade; apt autoremove; apt clean
|
||||||
|
|
||||||
|
New version of Postgres requires database migration (run as root):
|
||||||
|
|
||||||
|
apt install postgresql-9.5 postgresql-contrib-9.5 postgresql-client-9.5
|
||||||
|
|
||||||
|
pg_dropcluster 9.5 main --stop
|
||||||
|
pg_upgradecluster 9.3 main
|
||||||
|
pg_dropcluster 9.3 main
|
||||||
|
|
||||||
|
apt remove postgresql-9.3 postgresql-contrib-9.3 postgresql-client-9.3
|
||||||
|
systemctl restart postgresql
|
||||||
|
|
||||||
|
|
||||||
|
Upgrade virtualenv (run this as "pandora" user):
|
||||||
|
|
||||||
|
cd /srv/pandora
|
||||||
|
rm -r lib/python2.7/site-packages/pip-* bin/pip* bin/python*
|
||||||
|
virtualenv -p /usr/bin/python2 --system-site-packages .
|
||||||
|
|
||||||
|
Start pan.do/ra again (run as root):
|
||||||
|
|
||||||
|
/srv/pandora/ctl start
|
Loading…
Reference in a new issue