You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by "shwstppr (via GitHub)" <gi...@apache.org> on 2026/03/09 11:24:35 UTC

[I] Backup related upgrade failure from 4.20.1/4.20.2 to 4.21.0/4.22.0 [cloudstack]

shwstppr opened a new issue, #12769:
URL: https://github.com/apache/cloudstack/issues/12769

   ### problem
   
   When upgrading from either 4.20.1 or 4.20.2 to 4.21.0 or 4.22.0, upgrade could fail when backup framework is in use.
   An error like the following is seen,
   ```
   2026-03-09 01:56:55,403 DEBUG [c.c.u.d.ScriptRunner] (main:[]) (logid:) -- Add diskOfferingId, deviceId, minIops and maxIops to backed_volumes in backups table
   2026-03-09 01:56:55,403 DEBUG [c.c.u.d.ScriptRunner] (main:[]) (logid:) UPDATE `cloud`.`backups` b INNER JOIN `cloud`.`vm_instance` vm ON b.vm_id = vm.id SET b.backed_volumes = (     SELECT CONCAT("[",         GROUP_CONCAT(             CONCAT(                 "{\"uuid\":\"", v.uuid, "\",",                 "\"type\":\"", v.volume_type, "\",",                 "\"size\":", v.`size`, ",",                 "\"path\":\"", IFNULL(v.path, 'null'), "\",",                 "\"deviceId\":", IFNULL(v.device_id, 'null'), ",",                 "\"diskOfferingId\":\"", doff.uuid, "\",",                 "\"minIops\":", IFNULL(v.min_iops, 'null'), ",",                 "\"maxIops\":", IFNULL(v.max_iops, 'null'),                 "}"             )             SEPARATOR ","         ),     "]")     FROM `cloud`.`volumes` v     LEFT JOIN `cloud`.`disk_offering` doff ON v.disk_offering_id = doff.id     WHERE v.instance_id = vm.id )
   2026-03-09 01:56:55,458 ERROR [c.c.u.d.ScriptRunner] (main:[]) (logid:) Error executing: UPDATE `cloud`.`backups` b INNER JOIN `cloud`.`vm_instance` vm ON b.vm_id = vm.id SET b.backed_volumes = (     SELECT CONCAT("[",         GROUP_CONCAT(             CONCAT(                 "{\"uuid\":\"", v.uuid, "\",",                 "\"type\":\"", v.volume_type, "\",",                 "\"size\":", v.`size`, ",",                 "\"path\":\"", IFNULL(v.path, 'null'), "\",",                 "\"deviceId\":", IFNULL(v.device_id, 'null'), ",",                 "\"diskOfferingId\":\"", doff.uuid, "\",",                 "\"minIops\":", IFNULL(v.min_iops, 'null'), ",",                 "\"maxIops\":", IFNULL(v.max_iops, 'null'),                 "}"             )             SEPARATOR ","         ),     "]")     FROM `cloud`.`volumes` v     LEFT JOIN `cloud`.`disk_offering` doff ON v.disk_offering_id = doff.id     WHERE v.instance_id = vm.id )
   2026-03-09 01:56:55,475 ERROR [c.c.u.d.ScriptRunner] (main:[]) (logid:) java.sql.SQLException: Row 19 was cut by GROUP_CONCAT()
   2026-03-09 01:56:55,495 ERROR [c.c.u.DatabaseUpgradeChecker] (main:[]) (logid:) Unable to execute upgrade script java.sql.SQLException: Row 19 was cut by GROUP_CONCAT()
           at com.cloud.utils.db.ScriptRunner.runScript(ScriptRunner.java:186)
           at com.cloud.utils.db.ScriptRunner.runScript(ScriptRunner.java:88)
   ```
   
   This is due to the following DB changes in the 4.20.1to4.21.0 upgrade path,
   https://github.com/apache/cloudstack/blob/main/engine/schema/src/main/resources/META-INF/db/schema-42010to42100.sql#L686-L709
   
   The error is due to the length limit for `group_concat_max_len` in MySQL and it could be seen if there are backups for VMs having multiple volumes (possible 3 or more).
   
   Workaround is setting value for `group_concat_max_len`:
   `SET GLOBAL group_concat_max_len = 1000000;`
   
   ### versions
   
   Upgrade
   
   ### The steps to reproduce the bug
   
   1.
   2.
   3.
   ...
   
   
   ### What to do about it?
   
   _No response_


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Backup related upgrade failure from 4.20.1/4.20.2 to 4.21.0/4.22.0 [cloudstack]

Posted by "daviftorres (via GitHub)" <gi...@apache.org>.
daviftorres commented on issue #12769:
URL: https://github.com/apache/cloudstack/issues/12769#issuecomment-4443225234

   > [@daviftorres](https://github.com/daviftorres) Please use the workaround if you want to upgrade to 4.22.0.1
   > 
   > > Workaround is setting value for group_concat_max_len:
   > > SET GLOBAL group_concat_max_len = 1000000;
   
   Thank you. The workaround worked in a test environment and we are planning to upgrade PROD in the next 2 or 3 weeks.
   
   Nicolas shared with me the instructions to upgrade our Non-Prod environments (Dev/Test/Stg/PoC) to 4.22.1.0-RC1 (https://download.cloudstack.org/testing/4.22.1.0-RC1/), and we are already testing it too.
   
   Thank you!


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Backup related upgrade failure from 4.20.1/4.20.2 to 4.21.0/4.22.0 [cloudstack]

Posted by "rajujith (via GitHub)" <gi...@apache.org>.
rajujith commented on issue #12769:
URL: https://github.com/apache/cloudstack/issues/12769#issuecomment-4220102759

   @daviftorres  I would suggest upgrading to 4.22.1 once it is available, expecting to release in 1-2 weeks. 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Backup related upgrade failure from 4.20.1/4.20.2 to 4.21.0/4.22.0 [cloudstack]

Posted by "sureshanaparti (via GitHub)" <gi...@apache.org>.
sureshanaparti commented on issue #12769:
URL: https://github.com/apache/cloudstack/issues/12769#issuecomment-4220295190

   Fixed in #12777 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Backup related upgrade failure from 4.20.1/4.20.2 to 4.21.0/4.22.0 [cloudstack]

Posted by "abh1sar (via GitHub)" <gi...@apache.org>.
abh1sar commented on issue #12769:
URL: https://github.com/apache/cloudstack/issues/12769#issuecomment-4437660180

   @daviftorres Please use the workaround if you want to upgrade to 4.22.0.1
   
   > Workaround is setting value for group_concat_max_len:
   > SET GLOBAL group_concat_max_len = 1000000;


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Backup related upgrade failure from 4.20.1/4.20.2 to 4.21.0/4.22.0 [cloudstack]

Posted by "rajujith (via GitHub)" <gi...@apache.org>.
rajujith commented on issue #12769:
URL: https://github.com/apache/cloudstack/issues/12769#issuecomment-4212092429

   @blueorangutan package


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Backup related upgrade failure from 4.20.1/4.20.2 to 4.21.0/4.22.0 [cloudstack]

Posted by "DaanHoogland (via GitHub)" <gi...@apache.org>.
DaanHoogland commented on issue #12769:
URL: https://github.com/apache/cloudstack/issues/12769#issuecomment-4212841718

   > [@blueorangutan](https://github.com/blueorangutan) package
   
   did this on the linked PR @rajujith ;)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Backup related upgrade failure from 4.20.1/4.20.2 to 4.21.0/4.22.0 [cloudstack]

Posted by "daviftorres (via GitHub)" <gi...@apache.org>.
daviftorres commented on issue #12769:
URL: https://github.com/apache/cloudstack/issues/12769#issuecomment-4421200973

   > [@daviftorres](https://github.com/daviftorres) I would suggest upgrading to 4.22.1 once it is available, expecting to release in 1-2 weeks.
   
   Dear @rajujith ,
   
   I see that a new release happened a few days ago, 4.22.0.1.
   
   In the release notes I found this:
   - #11469 schema: Add upgrade path from 4.21.0.0 to 4.22.0.0
   - #11001 engine-schema: fix duplicate statements in upgrade path
   
   Does it also created the upgrade path from 4.20.2.0?
   
   Regards,


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Backup related upgrade failure from 4.20.1/4.20.2 to 4.21.0/4.22.0 [cloudstack]

Posted by "sureshanaparti (via GitHub)" <gi...@apache.org>.
sureshanaparti closed issue #12769: Backup related upgrade failure from 4.20.1/4.20.2 to 4.21.0/4.22.0
URL: https://github.com/apache/cloudstack/issues/12769


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Backup related upgrade failure from 4.20.1/4.20.2 to 4.21.0/4.22.0 [cloudstack]

Posted by "daviftorres (via GitHub)" <gi...@apache.org>.
daviftorres commented on issue #12769:
URL: https://github.com/apache/cloudstack/issues/12769#issuecomment-4214998266

   Hey Team,
   
   Here is our Dev environment:
   
   <img width="326" height="177" alt="Image" src="https://github.com/user-attachments/assets/08bb000f-0493-4303-a861-4c52b415e801" />
   
   And this is our Prod environment:
   
   <img width="415" height="224" alt="Image" src="https://github.com/user-attachments/assets/866f83e3-5574-4413-a8a0-7162c639ff42" />
   
   Is it safe so say that our Prod went out of tree for upgrade paths?
   
   How could we upgrade to `4.22.0.0`? Is there any way we can craft an upgrade path to get out of the `4.20.2.0`, back to the rolling path of upgrades?
   
   Regards,


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Backup related upgrade failure from 4.20.1/4.20.2 to 4.21.0/4.22.0 [cloudstack]

Posted by "abh1sar (via GitHub)" <gi...@apache.org>.
abh1sar commented on issue #12769:
URL: https://github.com/apache/cloudstack/issues/12769#issuecomment-4437564311

   @daviftorres 4.22.0.1 was a security release. Although released recently, It doesn't contain the fix for the upgrade issue.
   The upgrade fix is present in the 4.22.1.0 LTS release which should be out in a few weeks.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org