SCM-Manager 3.x: Unable to Migrate More Than 100 Repositories

I am currently using SCM-Manager version 1.47 and need to upgrade to a 3.x version.

Following the official documentation, I first migrated to version 1.60 to make the jump to 3.x.
Note: The .deb package from the official 1.60 repository has an issue; it needs to be unpacked, with / added at the beginning of the configuration file paths, and then repackaged. After this adjustment, the package works correctly.

Once on version 1.60 and everything working fine, I attempted to migrate to 3.x. The official documentation states that if you have more than 100 repositories (I have over 500), you need to add additional configuration in conf/server-config.xml. However, despite multiple attempts, I have been unable to apply this configuration correctly.

I downloaded the entire project source code from GitHub and managed to run it, but I couldn’t complete the migration. After analyzing the code, it seems that the problematic values maxFormContentSize and maxFormKeys are never explicitly referenced, meaning they always take the default values.

If I perform the migration with fewer than 100 repositories, it works without issues, but I need to migrate all 500+. I am currently testing on Debian 12, but I could switch to another distribution if necessary.

I would greatly appreciate any help or suggestions. Thank you very much!

Hey @0xtrivi ,

we have to apologize. 1.x is so far away for us that we forgot to make these additional options available for 3.x.

We just released version 3.7.4 where the options can be configured again. With this, you will find an updated documentation of how to set them. You can find it here: https://scm-manager.org/docs/3.7.x/en/migrate-scm-manager-from-v1/#huge-number-of-repositories

I hope this helps. If not, do not hesitate to reach out once more.

Happy coding!
René

Thank you so much, it finally worked!

I had tried adding those parameters to the .yml file, but it didn’t work. With version 3.7.4, everything went perfectly :slightly_smiling_face:

In case it helps someone (though I hope no one has to migrate from such an old version), before installing 3.7.4, I moved the /opt/scm-server folder to /opt/scm-server_160 to avoid any conflicts with the new installation. After that, I proceeded with the installation, and the installer recognized my old home folder without issues, and everything went smoothly.

Thanks again!

Best regards,
Trivi

1 Like

Thanks for the great feedback. We’re glad to hear this.

1 Like