Upgrade from 16.0.1 to 17 internal error 500 on Ubuntu 20

Nextcloud 16 + 17 have both already been declared End-of-Life, so you won’t get any support on it anymore.

Therefore my usual recommendation is to check the Nextcloud server log file for any error messages and to use the search function of this forum to find answers on your question, like e.g.: