Closed lbracci closed 4 months ago
I have just successfully imported a database from v1.7.2 to v4.1.3 - were any modifications made on your source database outside of any of the Rivendell applications? For example schema changes or manual deletes/updates via direct SQL queries?
I have just successfully imported a database from v1.7.2 to v4.1.3 - were any modifications made on your source database outside of any of the Rivendell applications? For example schema changes or manual deletes/updates via direct SQL queries?
I have made custom scripts to generate logs, but it doesn't modify the structure of the tables; it only add or deletes records in the LOGS table, and it never affected any of the tables mentioned above.
Sorry, it was my fault. I installed Rivendell 4.1.3 following the instructions as a new install (I wanted to be sure it works), and THEN I imported the database from my production server (Rivendell 2.7.0), WITHOUT erasing the tables from the 4.1.3 install. So, I made a mess.
I mistakenly believed that, when I import a database backup made with mysqldump, it deletes the pre-existent tables.
I tried again dropping the Rivendell database, creating it again, importing the data from the Rivendell 2.7.0 and then running "rddbmgr --modify", and everything worked as spected, with zero errors.
Closing as resolved.
Hi, I'm making tests to migrate the radio station where I work, from Rivendell 2.7.0 to Rivendell 4.1.3.
I installed Rivendell 4.1.3 in a new server with Linux Mint 21 Mate (based on Ubuntu 22.04). I followed the instructions on [1], in server mode. Everything worked fine, and the Rivendell applications (Rdadmin, rdairplay, etc.) ran as spected.
Then, I imported the Mysql DB from the old server with Rivendell 2.7.0, to the new server (I erased the Rivendell 4 database and imported the Rivendell 2.7.0 database into the new server).
Then, I tried to migrate the database using "rddbmgr --modify", getting this error message:
I followed the instructions in [2] to enable Strict mode in MySQL in the new server, as I understand that it is needed "to avoid errors with Rivendell", but I kept getting the error.
So I repaired the problem by myself, creating the column "UDP_ADDR" in the table LOG_MACHINES.
I ran "rddbmgr --modify" again, but I got another error message "unknown column 'UDP_PORT'". I had to manually add the columns UDP_PORT, UDP_STRING, and LOG_RML into the table LOG_MACHINES.
Then, I tried again running "rddbmgr --modify", getting another error:
I added then the column "POST_POINT" into LOG_LINES.
I had similar errors with columns in the tables STACK_LINES, IMPORTER_LINES, PYPAD_INSTANCES, STACK_SCHED_CODES, FEEDS, FEED_IMAGES, GPIO_EVENTS, STACK_LINES, AUDIO_INPUTS, and AUDIO_OUTPUTS.
Finally, after a couple hours running "rddbmgr --modify" and dealing with annoying SQL errors, finally I ran rddbmgr without errors! The database was migrated and Rivendell 4.1.3 is running fine with the data from the old server.
But in a few days, I must import again the old DB from the server with Rivendell 2.7.0 into the new server with Rivendell 4.1.3, and I don't want to repeat this annoying procedure.
I don't see anyone else complaining about these SQL errors, so I'm almost sure I skipped a step in the migration procedure. What do you thing?
[1] https://software.paravelsystems.com/howtos/ubuntu/jammy [2] https://wiki.rivendellaudio.org/index.php/Legacy_Rivendell_3.6.7_on_Ubuntu18_04