Migration Failure on Expense Attachments: 500 Error

Hi All

I am getting an error when migrating one of my companies to v5. Looks like it dies on Expense Attachments.

Laravel-Log:

[2021-11-24T21:33:58.482366+00:00] production.INFO: get invoices → 551 [] []
[2021-11-24T21:34:00.244359+00:00] production.INFO: get recurring Expenses => 0 [] []
[2021-11-24T21:34:00.249307+00:00] production.INFO: get recurring invoices => 5 [] []
[2021-11-24T21:34:00.821360+00:00] production.INFO: get quotes => 258 [] []
[2021-11-24T21:34:01.704226+00:00] production.INFO: get payments => 478 [] []
[2021-11-24T21:34:02.288928+00:00] production.INFO: get credits => 0 [] []
[2021-11-24T21:34:02.296971+00:00] production.INFO: get documents => 78 [] []
[2021-11-24T21:34:02.327755+00:00] production.INFO: get expense categories => 16 [] []
[2021-11-24T21:34:02.333018+00:00] production.INFO: get task statuses => 28 [] []
[2021-11-24T21:34:02.350828+00:00] production.INFO: get expenses => 349 [] []
[2021-11-24T21:34:02.460716+00:00] production.INFO: get tasks => 0 [] []
[2021-11-24T21:34:02.463480+00:00] production.INFO: get documents => 78 [] []
[2021-11-24T21:34:03.049968+00:00] production.INFO: Array ( [multipart] => Array ( [0] => Array ( [name] => 0 [company_index] => 0 [company_key] => (deleted) [force] => 1 [contents] => PK���A|xS���>Np� j����migration.json���w�ʶ6���E�է������*}s������+��e�x��y��T ��}�u�ܿ�V l���cP푽�H�ќϜ5�3�����8ſ5��?�`ǡY�>y1�� �{��������I�ۻ_����8���+$)�S�5Q�V���eR�)zMA+߈L~L��J�ze�8(�������=��

�������Ƀ�?���x�!�g1�h�����#|'v��9��M����?PK?���A|xS���>Np� j������������������migration.jsonPK������<���zp��� [filename] => (deleted)-2021-11-24-invoiceninja.zip [Content-Type] => application/zip ) [1] => Array ( [contents] => {“company_index”:0,“company_key”:"(deleted)",“force”:true,“contents”:“name”,“name”:0} [name] => (deleted) ) ) ) [] []
[2021-11-24T21:36:03.493039+00:00] production.INFO: Server error: `POST http://(deleted)

Any Ideas?

Hi,

Thanks for reporting this!

cc @david

not sure, the only reason it would fail at this point is if the migration couldn’t reach via http the v4 installation to pull the documents across.

I have two companies. The second one does not have documents in the expenses. I’ve done them together and individually. Same issue. Both are being hosted on host gator. Is there a way to get the problematic company moved over outside of migration?