Upgrading from 3_4_0-5 to 3_4_0-7 fails with column not found setting_type related to I10249_FixProfileImageDataLoss

Describe the issue or problem
Upgrading from 3_4_0-5 (or 3_4_0-6) to 3_4_0-7 fails with this error:
2024-08-29 09:38:48 [migration: PKP\migration\upgrade\v3_4_0\I10249_FixProfileImageDataLoss]
ERROR: Upgrade failed: DB: SQLSTATE[42S22]: Column not found: 1054 Unknown column ‘setting_type’ in ‘field list’ (SQL: update user_settings set setting_value = {“name”:“profileImage-1858.jpg”,“uploadName”:“profileImage-1858.jpg”,“width”:640,“height”:426,“dateUploaded”:“2024-08-19 11:48:25”}, setting_type = object where user_id = 1858 and setting_name = profileImage)

The current state of the database does not have a setting_type value in version 3_4_0-5/6?

I am guessing it is related to the work Jonas did here pkp/pkp-lib#10249 Clear invalid images and setup the setting_type · pkp/pkp-lib@80670e3 · GitHub.

Steps I took leading up to the issue
Started with my production database which is on version 3_4_0-5 and pulled it on to my test instance which I use a modified version Marc Bria’s (thanks for your work on this if you see this btw!) Docker image to build version 3_4_0-7.
Run my ansible-playbook to deploy to my test instance.
Run the upgrade tool.
See the error.

What application are you using?
OJS 3_4_0-5

Additional information
Let me know if I can try to provide further info as I could have made a mistake in my understanding and it might be a me (or proprietary) problem but would appreciate any advice if possible.

Thanks for all y’all do!

Hi @sarontt,

See: Cannot upgrade to OJS 3.4.0-7 (from 3.4.0.3) · Issue #10341 · pkp/pkp-lib · GitHub

We’ll have updates on that soon. Meanwhile it’s safe to run 3.4.0-7 with a 3.4.0-5 database – builds on the same line of releases are database-compatible.

Regards,
Alec Smecher
Public Knowledge Project Team

1 Like

Thanks!

Oops. Sorry I should have checked github issues for the info-- I did check the forums for the same problem but forgot to check github for the same.

And thanks for the quick reply!

Hi @sarontt,

Not a problem, happy to connect the dots between our various resources!

Regards,
Alec Smecher
Public Knowledge Project Team

This topic was automatically closed after 10 days. New replies are no longer allowed.