Error upgrading 2.3.5 to 2.4.2

It should, but don’t take my word for it and leave yourself without a fallback strategy. Remember you’re on an unsupported install, so I can give you suggestions on how to get onto a more supportable track, but Bitnami installs are problematic - it’s best to prepare for the worst.

If you build on a separate server you can test this before making any irreversible changes to your existing installation.