-
Notifications
You must be signed in to change notification settings - Fork 798
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problem updating from 5.12.4 to 5.12.7. Stuck at [MIGRATION] #5244
Comments
More information from the process we left working at night, upgrade to 5.12.6 from 12/15/2023 21:30 to 12/16/2023 12:30, In the error log, there are the 2 lines shown below.
ABOUT 502MB of text
|
Seems related to lot of files in your s3. PR open to prevent too many operations done at the same time |
Hello @AlexSanchezN, Thanks for reporting this. Release 5.12.8 should solve your problem. Kind regards, |
Updating right now. Thanks for your effort. Very much appreciated |
It has been upgrading for 10 minutes now.
There are over 530.000 objects in the Minio bucket, so I suppose we have to wait |
500K files .. thats a lot :) |
The process finished correctly in 5.12.8. Thanks again for your work, especially as it has been over the weekend |
Cool news. Thanks for sharing. Any idea of the time it required to migrate the 500K files? |
Sorry for the late answer. |
4 hours to get the list from S3/Minio and then 1 minute to index everything in elastic. |
Description
I'm trying to update from 5.12.4. I've tried with 5.12.6 and 5.12.7 versions but the errors below appear during migration.
Tried to go to 5.12.4 again, but it did not work either. So I'm stuck without the platform :-(
Maybe it will solve itself by waiting if the migration is very long, but as the redis errors appear I've labeled this as a bug. Admins feel free to change it.
At the moment It is trying to upgrade to 5.12.7 since 12/16/2023 12:40
It has been trying to upgrade to 5.12.6 from 12/15/2023 21:30 to 12/16/2023 12:30 repeating the error message about every 30 seconds.
{"category":"APP","level":"info","message":"[MIGRATION] Saving current configuration, 1701354091187-file_mappings.js","timestamp":"2023-12-16T12:21:40.808Z","version":"5.12.7"} {"category":"APP","level":"info","message":"[MIGRATION] Starting 1701354091161-files-registration.js","timestamp":"2023-12-16T12:21:40.808Z","version":"5.12.7"} {"category":"APP","level":"warn","locks":["{locks}:platform_init_lock"],"message":"[REDIS] Extending resources for long processing task","stack":"Error: \n at lockResource (/opt/opencti/build/src/database/redis.ts:318:28)\n at initialization_default (/opt/opencti/build/src/initialization.js:359:18)\n at platformStart (/opt/opencti/build/src/boot.js:231:11)\n at processTicksAndRejections (node:internal/process/task_queues:95:5)","timestamp":"2023-12-16T12:22:29.381Z","version":"5.12.7"} {"category":"APP","level":"warn","locks":["{locks}:platform_init_lock"],"message":"[REDIS] Extending resources for long processing task","stack":"Error: \n at lockResource (/opt/opencti/build/src/database/redis.ts:318:28)\n at initialization_default (/opt/opencti/build/src/initialization.js:359:18)\n at platformStart (/opt/opencti/build/src/boot.js:231:11)\n at processTicksAndRejections (node:internal/process/task_queues:95:5)","timestamp":"2023-12-16T12:23:18.780Z","version":"5.12.7"} {"category":"APP","level":"warn","locks":["{locks}:platform_init_lock"],"message":"[REDIS] Extending resources for long processing task","stack":"Error: \n at lockResource (/opt/opencti/build/src/database/redis.ts:318:28)\n at initialization_default (/opt/opencti/build/src/initialization.js:359:18)\n at platformStart (/opt/opencti/build/src/boot.js:231:11)\n at processTicksAndRejections (node:internal/process/task_queues:95:5)","timestamp":"2023-12-16T12:24:08.178Z","version":"5.12.7"} {"category":"APP","level":"warn","locks":["{locks}:platform_init_lock"],"message":"[REDIS] Extending resources for long processing task","stack":"Error: \n at lockResource (/opt/opencti/build/src/database/redis.ts:318:28)\n at initialization_default (/opt/opencti/build/src/initialization.js:359:18)\n at platformStart (/opt/opencti/build/src/boot.js:231:11)\n at processTicksAndRejections (node:internal/process/task_queues:95:5)","timestamp":"2023-12-16T12:24:57.576Z","version":"5.12.7"} {"category":"APP","level":"warn","locks":["{locks}:platform_init_lock"],"message":"[REDIS] Extending resources for long processing task","stack":"Error: \n at lockResource (/opt/opencti/build/src/database/redis.ts:318:28)\n at initialization_default (/opt/opencti/build/src/initialization.js:359:18)\n at platformStart (/opt/opencti/build/src/boot.js:231:11)\n at processTicksAndRejections (node:internal/process/task_queues:95:5)","timestamp":"2023-12-16T12:25:46.976Z","version":"5.12.7"} {"category":"APP","level":"warn","locks":["{locks}:platform_init_lock"],"message":"[REDIS] Extending resources for long processing task","stack":"Error: \n at lockResource (/opt/opencti/build/src/database/redis.ts:318:28)\n at initialization_default (/opt/opencti/build/src/initialization.js:359:18)\n at platformStart (/opt/opencti/build/src/boot.js:231:11)\n at processTicksAndRejections (node:internal/process/task_queues:95:5)","timestamp":"2023-12-16T12:26:36.375Z","version":"5.12.7"} {"category":"APP","level":"warn","locks":["{locks}:platform_init_lock"],"message":"[REDIS] Extending resources for long processing task","stack":"Error: \n at lockResource (/opt/opencti/build/src/database/redis.ts:318:28)\n at initialization_default (/opt/opencti/build/src/initialization.js:359:18)\n at platformStart (/opt/opencti/build/src/boot.js:231:11)\n at processTicksAndRejections (node:internal/process/task_queues:95:5)","timestamp":"2023-12-16T12:27:25.774Z","version":"5.12.7"}
Environment
Ubuntu 22.04 baremetal with healthy Redis
CPU Use: (The drop shows when we stopped the platform to upgrade)
Memory Use:
Redis instantaneous bytes/second:
Redis instantaneous operations/second:
The text was updated successfully, but these errors were encountered: