public:radio:dormant:yaddnet_migration
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| public:radio:dormant:yaddnet_migration [14/04/24 20:27 BST] – [Tweaks] john | public:radio:dormant:yaddnet_migration [Unknown date] (current) – removed - external edit (Unknown date) 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | < | ||
| - | |||
| - | ====== Yaddnet Migration ====== | ||
| - | |||
| - | My [[http:// | ||
| - | |||
| - | |||
| - | ===== Moving YaddNet to a Virtual Server in the Clouds ===== | ||
| - | |||
| - | Created Thursday 24 October 2019 | ||
| - | |||
| - | |||
| - | Server IP: 64.235.39.127 | ||
| - | |||
| - | Users & Server SSH port : see [[private: | ||
| - | ==== Create SQL database ==== | ||
| - | |||
| - | |||
| - | === UPDATE 13/04/24 === | ||
| - | |||
| - | **MIGRATING TO A NEW UBUNTU 20.4 VPS REQUIRED THE FOLLOWING** | ||
| - | |||
| - | |||
| - | [[https:// | ||
| - | |||
| - | |||
| - | |||
| - | === The original Procesee === | ||
| - | |||
| - | 1) sort out passwordless root access to MySQL | ||
| - | |||
| - | add '' | ||
| - | |||
| - | (such as....) | ||
| - | |||
| - | |||
| - | ''/ | ||
| - | |||
| - | |||
| - | restart mysqld | ||
| - | |||
| - | login to mysql | ||
| - | |||
| - | |||
| - | < | ||
| - | $ mysql -u root | ||
| - | mysql> | ||
| - | mysql> | ||
| - | mysql> | ||
| - | </ | ||
| - | |||
| - | remove | ||
| - | |||
| - | |||
| - | restart mysqld | ||
| - | |||
| - | 2) create blank/empty yadd database | ||
| - | |||
| - | < | ||
| - | $ mysql -u root | ||
| - | |||
| - | mysql> create database yadd; | ||
| - | mysql> quit; | ||
| - | |||
| - | </ | ||
| - | |||
| - | 2a) scp //migrate tarfile// to remote server | ||
| - | |||
| - | and wait.... | ||
| - | |||
| - | 2b) untar //migrate tarfile// | ||
| - | |||
| - | 3) use saved schema file to create the tables: | ||
| - | |||
| - | $ mysql -u root yadd < schema.sql | ||
| - | |||
| - | 4) import the full database backup: | ||
| - | |||
| - | $ mysql -u root yadd < yadd_xxxxx.sql | ||
| - | |||
| - | and wait....... and wait...... | ||
| - | |||
| - | |||
| - | 5) test all the data is there...! | ||
| - | |||
| - | ==== Create Web site ==== | ||
| - | |||
| - | 6) extract yaddnet files from tarball | ||
| - | |||
| - | 7) extract html files into /var/www/ | ||
| - | |||
| - | 8) permissions/ | ||
| - | |||
| - | 9) apache " | ||
| - | |||
| - | ==== Configure auto-start of Input servers ==== | ||
| - | |||
| - | 10) / | ||
| - | |||
| - | sleep 60; su USER -c / | ||
| - | |||
| - | 11) start tmux session and see if it's working... | ||
| - | |||
| - | 12) fire some test packets at it from uCoastTester.py | ||
| - | |||
| - | 13) crontab entries | ||
| - | |||
| - | 15 */4 * * * / | ||
| - | * * * * * / | ||
| - | |||
| - | ==== Tweaks ==== | ||
| - | |||
| - | 14) Character encoding for pages | ||
| - | |||
| - | edit ''/ | ||
| - | |||
| - | change | ||
| - | default_charset from UTF-8 to ISO-8859-1: | ||
| - | |||
| - | default_charset = " | ||
| - | |||
| - | This renders " | ||
| - | |||
| - | 15) mysql config | ||
| - | |||
| - | add to ''/ | ||
| - | |||
| - | | ||
| - | sql_mode = " | ||
| - | |||
| - | |||
| - | |||
| - | restart mysql | ||
| - | |||
| - | |||
| - | |||
| - | |||
| - | This (among other things) allows the group-by queries to work. | ||
| - | |||
| - | 16) Open '' | ||
| - | |||
| - | firewall-cmd --permanent --service=yadd --add-port=4530/ | ||
| - | |||
| - | firewall-cmd --permanent --service=yadd --remove-port=9999/ | ||
| - | |||
| - | firewall-cmd --complete-reload | ||
| - | | ||
| - | ==== Firewall Config - note 21/5/22 ==== | ||
| - | |||
| - | While creating this Wiki page, from a previous note in ZimWiki, I wondered about the firewall config, as it appears I didn't explicitly open UDP/50666 for YaDD's traffic, but I added udp/4530 for DSCDecoder. | ||
| - | |||
| - | Looking at ''/ | ||
| - | | ||
| - | <code xml> | ||
| - | <?xml version=" | ||
| - | < | ||
| - | < | ||
| - | < | ||
| - | <port port=" | ||
| - | <port port=" | ||
| - | </ | ||
| - | |||
| - | </ | ||
| - | |||
| - | so 50666 must have been added when the VPS was built (not my me). I guess I asked for it when the offer to provide the VPS was made, but forgot about DSCDecoder until later. | ||
| - | |||
| - | ==== Get Domain Name ==== | ||
| - | |||
| - | 16) Buy domain yaddnet.org from " | ||
| - | |||
| - | £10.79 per year, auto-renew via PayPal. | ||
| - | |||
| - | |||
| - | ===== UPDATE 18/11/19 ===== | ||
| - | |||
| - | Received an email from kb7ypf@yahoo.com: | ||
| - | |||
| - | ''" | ||
| - | |||
| - | ==== Unattended-Upgrade breaks MySQL ==== | ||
| - | |||
| - | I confirmed the same symptoms... | ||
| - | |||
| - | but it was working this morning?! | ||
| - | |||
| - | SSH'd into the server and couldn' | ||
| - | |||
| - | This reminded me of the behaviour of a " | ||
| - | |||
| - | Found an entry in ''/ | ||
| - | |||
| - | <code bash> | ||
| - | Start-Date: 2019-11-18 | ||
| - | Commandline: | ||
| - | Upgrade: mysql-server-5.7: | ||
| - | End-Date: 2019-11-18 | ||
| - | |||
| - | </ | ||
| - | |||
| - | Looks like " | ||
| - | |||
| - | * stop mysql | ||
| - | * edit mysqld.cnf to add " | ||
| - | * start mysql | ||
| - | * log in to mysql "mysql -u root" | ||
| - | | ||
| - | | ||
| - | <code sql> | ||
| - | $ mysql -u root | ||
| - | mysql> | ||
| - | mysql> | ||
| - | mysql> | ||
| - | </ | ||
| - | | ||
| - | | ||
| - | |||
| - | * stop mysql | ||
| - | * remove " | ||
| - | * start mysql | ||
| - | * test... | ||
| - | |||
| - | looks like we lost about 1 hour of DSC loggings while the SQL server refused to talk to us, from 14:25 UTC until ~15:30 UTC when I got it running normally again. | ||
| - | |||
| - | |||
| - | .....and relax! | ||
| - | |||
| - | ==== going forward ==== | ||
| - | |||
| - | Have 2 choices - remove '' | ||
| - | |||
| - | https:// | ||
| - | and | ||
| - | https:// | ||
| - | |||
| - | has some helpful info... found where to blacklist individual packages.... | ||
| - | |||
| - | service unattended-upgrades stop | ||
| - | | ||
| - | edit ''/ | ||
| - | |||
| - | < | ||
| - | // List of packages to not update (regexp are supported) | ||
| - | Unattended-Upgrade:: | ||
| - | " | ||
| - | " | ||
| - | " | ||
| - | }; | ||
| - | </ | ||
| - | |||
| - | service unattended-upgrades start | ||
| - | |||
| - | check it's running: | ||
| - | |||
| - | gm4slv@lasvegas-nv-datacenter: | ||
| - | |||
| - | APT:: | ||
| - | |||
| - | hopefully that will sort it? | ||
| - | |||
| - | |||
| - | Page Updated: ~~LASTMOD~~ | ||
| - | |||
| - | {{tag> | ||
| - | |||
public/radio/dormant/yaddnet_migration.1713122868.txt.gz · Last modified: (external edit)
