Please help with NextCloud restore

Are you having the same problem as this thread maybe?

If you are switching to Apache web server the files and folders in your data dir should have ownership of www-data with 600 permissions.

Could also try restarting your web and db servers.

Flex