7.0 to 8.0 migration stops abruptly with psql log showing "Broken Pipe" #3584
-
Dear OCA, I am migrating my database from OpenERP 7 to Odoo 8. During stock migration, it gets to a point After this, the migration abruptly ends with no error logs in the migration.log file. The postgresql logs show: The SELECT statement takes a long time to fetch all the records from ID 1493 till 1760341. Tail from the migration.log file: 2022-10-08 17:07:06,320 184169 DEBUG mydb_migrated OpenUpgrade: -1 rows affected after 0:00:00.443253 running 2022-10-08 17:07:06,979 184169 DEBUG mydb_migrated OpenUpgrade: -1 rows affected after 0:00:00.659316 running 2022-10-08 17:07:07,432 184169 DEBUG mydb_migrated OpenUpgrade: -1 rows affected after 0:00:00.452107 running 2022-10-08 17:07:07,962 184169 DEBUG mydb_migrated OpenUpgrade: -1 rows affected after 0:00:00.530414 running 2022-10-08 17:07:08,316 184169 DEBUG mydb_migrated OpenUpgrade: -1 rows affected after 0:00:00.353677 running 2022-10-08 17:07:08,317 184169 INFO mydb_migrated OpenUpgrade.stock: Prefetching records Could you please help me solve this issue? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
Could you provides sizes of the "stock" tables ? Table size, number of rows. |
Beta Was this translation helpful? Give feedback.
-
Found out that the SIGKILL was sent due to memory running full. I increased the Swap space on my linux and restarted the migration. It surpassed this point and is still running. Unfortunately takes several days just to finish 7.0 to 8.0 migration since my stock_move table is gigantic. Very unrealistic when you want to upgrade to 13.0 over the weekend so that the company would not go through a downtime. But it is what it is. This particular problem is solved now. |
Beta Was this translation helpful? Give feedback.
-
I'm not sure the prefetching strategy from #2080 will actually work to improve performance that much (unless it is the case that those records are not written at all which is clearly not the case here), and the price indeed is the increased memory usage. I have had more success wrapping the record set in the main loop in |
Beta Was this translation helpful? Give feedback.
Found out that the SIGKILL was sent due to memory running full.
I increased the Swap space on my linux and restarted the migration. It surpassed this point and is still running. Unfortunately takes several days just to finish 7.0 to 8.0 migration since my stock_move table is gigantic. Very unrealistic when you want to upgrade to 13.0 over the weekend so that the company would not go through a downtime. But it is what it is.
This particular problem is solved now.