Please check the nextcloud log file to find the root cause of the problem, which is usually stored in the data directory (except you’ve not configured a different path). Additionally it is always helpful to provide detailed information about your server environment and the used software versions.