cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

[Upgrade] [Onpromise] 2011 to 2205 - compilation error when runing updatesystem on target machine

888

Hello,

We've recently upgraded one SAP CX on promise from 2011 to 2205 locally and everything worked fine. But once we've deployed the new platform in our integration environnement - running on Linux Debian 4.19.160-2 - we have encountered the following error while executing "ant createtypesystem -DtypeSystemName=<ts_>" :

(SyntaxError) Undefined variable: "$globallinks__default--box-shadow" (see MySpace_DEV #126 Console [Jenkins]_update_system_ko_ruby_error.pdf).

Not knowing the root cause of this error, we've come up with a workaround consisting of running "ant buid" prior to executing "ant createtypesystem -DtypeSystemName=<ts_>" which fixed the problem temporary. In fact, a few weeks later, we've realized that running the extra command "ant buid" on the target machine fails sometimes with the error (SyntaxError) Undefined variable: "$globallinks__default--box-shadow" but "magically" the "ant createtypesystem" command runs just fine (see myspace #896 Console [Jenkins]_update_system_ok_ruby_error.pdf). The problem is that when "ant buid" fails, some JS files were not generated in the target folders (addons) and somme java files were not compiled.

Anyhow, we've analyzed in deep the SASS error and we've realized that JRuby was complaining about some old files located in the hybris temp folder that just needs to be cleaned and the problem was finally fixed (see MySpace_DEV #127 Console [Jenkins]_update_system_ok_ruby_ok.pdf)..

Knowing that the zip files (-config.zip, -extensions.zip, -platform.zip and -licence.zip) were generated by the command "ant production -Dproduction.legacy.mode=false" and since we've followed the uprading procedure of the SAP CX platform detailed in both https://help.sap.com/docs/SAP_COMMERCE/a74589c3a81a4a95bf51d87258c0ab15/71ce7fccfb3242c09690e8000e6e... and https://help.sap.com/docs/SAP_COMMERCE/a74589c3a81a4a95bf51d87258c0ab15/71ce7fccfb3242c09690e8000e6e... we are wondering if cleaning the hybris temp folder is trivial and the error regarding SASS variable "$globallinks__default--box-shadow" could be avoided if by another mean.

Thanks

Accepted Solutions (0)

Answers (0)