Created a new server for nextcloud and copied my data folder from the previous server resulted in not able to view the shared files

I had a Nextcloud server running with all my data. I set up a new server and copied the data folder from the previous server to the new one. All seems to be running fine, the files are showing correctly, but the shared files by the users are not seen in any of the accounts.

Also, when I login through the user account and go in the Settings and click “Sharing” tab, the following error pops up:
Request ID: FyWNdXrU2ytB6GqoalAf
Type: OCP\Files\NotPermittedException
Code: 0
Message: Could not create path
File: /var/www/html/lib/private/Files/Node/Folder.php
Line: 185

did you only copy the files? Please take a look at the official server migration guide

Thanks for the reply, I’ll check it out and see any steps that I may have missed!