dawarich
dawarich copied to clipboard
Migrate_to_new_storage error in 0.25.4
Hi, I tried the migrate function after upgrading to 0.25.4 and get this error message for all imports:
rake imports:migrate_to_new_storage
D, [2025-04-06T18:17:51.825904 #481] DEBUG -- : ActiveStorage::Attachment Load (0.1ms) SELECT "active_storage_attachments".* FROM "active_storage_attachments" WHERE "active_storage_attachments"."record_id" = $1 AND "active_storage_attachments"."record_type" = $2 AND "active_storage_attachments"."name" = $3 LIMIT $4 [["record_id", 65], ["record_type", "Import"], ["name", "file"], ["LIMIT", 1]]
D, [2025-04-06T18:17:51.826171 #481] DEBUG -- : ↳ app/models/import.rb:33:in 'Import#migrate_to_new_storage'
Error migrating import 65: no implicit conversion of Array into String
I have no clue what to do about it, except not doing the migration of which I am not even sure I should do it.
I have the same issue
D, [2025-04-06T19:15:20.822843 #217] DEBUG -- : ActiveStorage::Attachment Load (0.1ms) SELECT "active_storage_attachments".* FROM "active_storage_attachments" WHERE "active_storage_attachments"."record_id" = $1 AND "active_storage_attachments"."record_type" = $2 AND "active_storage_attachments"."name" = $3 LIMIT $4 [["record_id", 157], ["record_type", "Import"], ["name", "file"], ["LIMIT", 1]]
D, [2025-04-06T19:15:20.823344 #217] DEBUG -- : ↳ app/models/import.rb:33:in 'Import#migrate_to_new_storage'
Error migrating import 157: no implicit conversion of Hash into String
D, [2025-04-06T19:15:20.831995 #217] DEBUG -- : ActiveStorage::Attachment Load (0.1ms) SELECT "active_storage_attachments".* FROM "active_storage_attachments" WHERE "active_storage_attachments"."record_id" = $1 AND "active_storage_attachments"."record_type" = $2 AND "active_storage_attachments"."name" = $3 LIMIT $4 [["record_id", 158], ["record_type", "Import"], ["name", "file"], ["LIMIT", 1]]
D, [2025-04-06T19:15:20.832480 #217] DEBUG -- : ↳ app/models/import.rb:33:in 'Import#migrate_to_new_storage'
Error migrating import 158: no implicit conversion of Hash into String
Also getting the same issue. This error. app/models/import.rb:33:in 'Import#migrate_to_new_storage' Error migrating import 1: no implicit conversion of Array into String
D, [2025-04-07T08:28:23.674850 #483] DEBUG -- : ActiveStorage::Attachment Load (0.2ms) SELECT "active_storage_attachments".* FROM "active_storage_attachments" WHERE "active_storage_attachments"."record_id" = $1 AND "active_storage_attachments"."record_type" = $2 AND "active_storage_attachments"."name" = $3 LIMIT $4 [["record_id", 16], ["record_type", "Import"], ["name", "file"], ["LIMIT", 1]]
D, [2025-04-07T08:28:23.675305 #483] DEBUG -- : ↳ app/models/import.rb:33:in 'Import#migrate_to_new_storage'
Error migrating import 16: no implicit conversion of Array into String
I also get a similar error message:
/var/app # rake imports:migrate_to_new_storage
Error migrating import 1: no implicit conversion of Hash into String
same
Me too - identical errors
Same Error migrating import 7: no implicit conversion of nil into String Error migrating import 59: no implicit conversion of Hash into String Error migrating import 60: no implicit conversion of Array into String
If you have import files that are causing problems during migration, feel free to send them to [email protected] so I could debug the issue
Thanks
If you have import files that are causing problems during migration, feel free to send them to [email protected] so I could debug the issue
Thanks
Message is:
D, [2025-04-14T15:13:54.640854 #405] DEBUG -- : ActiveStorage::Attachment Load (0.2ms) SELECT "active_storage_attachments".* FROM "active_storage_attachments" WHERE "active_storage_attachments"."record_id" = $1 AND "active_storage_attachments"."record_type" = $2 AND "active_storage_attachments"."name" = $3 LIMIT $4 [["record_id", 1074], ["record_type", "Import"], ["name", "file"], ["LIMIT", 1]] D, [2025-04-14T15:13:54.641474 #405] DEBUG -- : ↳ app/models/import.rb:33:in 'Import#migrate_to_new_storage' Error migrating import 1074: no implicit conversion of Hash into String
How do I find the file?
Same here, I have a bunch of import files so not sure which ones I should send if still needed.
D, [2025-05-04T00:48:45.601755 #471] DEBUG -- : ActiveStorage::Attachment Load (0.2ms) SELECT "active_storage_attachments".* FROM "active_storage_attachments" WHERE "active_storage_attachments"."record_id" = $1 AND "active_storage_attachments"."record_type" = $2 AND "active_storage_attachments"."name" = $3 LIMIT $4 [["record_id", 157], ["record_type", "Import"], ["name", "file"], ["LIMIT", 1]]
D, [2025-05-04T00:48:45.602159 #471] DEBUG -- : ↳ app/models/import.rb:33:in 'Import#migrate_to_new_storage'
Error migrating import 157: no implicit conversion of Hash into String
Running dawarich 0.25.9 on unraid (amd64)