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

CORRUPT CONFIG FOLDER FOUND

Former Member
3,105

I replaced my custom and config folder with the one from the code repository.When i do a ant clean all after that, i get this errorC:\hybris\hybris\bin\platform>ant clean Buildfile: C:\hybris\hybris\bin\platform\build.xml [echo] C:\hybris\hybris\bin\platform/tomcat/bin [echo] [echo] CORRUPT CONFIG FOLDER FOUND [echo] [echo] Rename your existing config folder and call "ant" to create a new config folder. Afterwards copy back your config files. [echo]

BUILD FAILED C:\hybris\hybris\bin\platform\build.xml:30: The following error occurred while executing this line: C:\hybris\hybris\bin\platform\resources\ant\antmacros.xml:85: The following error occurred while executing this line: C:\hybris\hybris\bin\platform\resources\ant\util.xml:453: See message above

Total time: 1 second

Accepted Solutions (0)

Answers (2)

Answers (2)

jagbedi
Explorer
0 Kudos

Great solution above if you are running locally and can do an 'ant clean all/ ant all, etc.' But, doesn't help when you have hybris running through a ci/cd pipeline, i.e. jenkins. If you are encountering the above error while running through ci/cd, then the following needs to be checked: 1. Ensure that you are copying down your repo to a directory other than the 'workspace.' Workspace, by default gets cleaned out at the start of every build. You can disable the 'delete the workspace' option, but you will get the error above when the repo is copied down on the next build run. 2. Permission must be at least 700 on the directory outside the workspace.

Hopefully, this helps somebody setting up a ci/cd pipeline. Not a lot of info here on jenkins and hybris. Just doing my part :-).

Former Member
0 Kudos

Hi Aadithya,

As it says please rename the existing config folder to config_backup and do ant all again, it will ask you to select the environment (dev or prod), and then it will create a config folder.

Afterward, you can merge your changes from the backup folder.

Please let me know if you still have any issues.

BR Suman

Former Member

Hi Suman That didnt seem to fix the problem.I had to add the folder tcServer and tomcat inside config folder and after that ant clean all worked fine.