dawarich icon indicating copy to clipboard operation
dawarich copied to clipboard

Migrate_to_new_storage error in 0.25.4

Open woessmich opened this issue 8 months ago • 10 comments

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.

woessmich avatar Apr 06 '25 18:04 woessmich

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

Kiriyashiki avatar Apr 06 '25 19:04 Kiriyashiki

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

derpderpington avatar Apr 06 '25 21:04 derpderpington

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

pax0707 avatar Apr 07 '25 08:04 pax0707

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

aaronczichon avatar Apr 07 '25 12:04 aaronczichon

same

makanimike avatar Apr 07 '25 21:04 makanimike

Me too - identical errors

BrainyP avatar Apr 08 '25 21:04 BrainyP

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

hogenf avatar Apr 12 '25 09:04 hogenf

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

Freika avatar Apr 12 '25 10:04 Freika

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?

tabacha avatar Apr 14 '25 15:04 tabacha

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)

tjorim avatar May 04 '25 00:05 tjorim