i wanted to change my data directory.
So i created a new Folder on the Drive and copied everything into it.
Then i changed the config to the new Directory and et voilà: Error.
Internal Server Error
The server encountered an internal error and was unable to complete your request.
Please contact the server administrator if this error reappears multiple times, please include the technical details below in your report.
More details can be found in the server log.
And thats what the log says:
OCP\Files\NotFoundException:
/var/www/html/lib/private/Files/Node/Node.php - line 216:OC\Files\Node\Node->getFileInfo()
/var/www/html/lib/private/Files/Node/Node.php - line 117:OC\Files\Node\Node->getPermissions()
/var/www/html/lib/private/Files/Node/Folder.php - line 155:OC\Files\Node\Node->checkPermissions(4)
/var/www/html/lib/private/Files/AppData/AppData.php - line 94:OC\Files\Node\Folder->newFolder(“js”)
/var/www/html/lib/private/Files/AppData/AppData.php - line 114:OC\Files\AppData\AppData->getAppDataFolder()
/var/www/html/lib/private/Template/JSCombiner.php - line 97:OC\Files\AppData\AppData->newFolder(“core”)
/var/www/html/lib/private/Template/JSResourceLocator.php - line 113:OC\Template\JSCombiner->process(“/var/www/html”, “core/js/mer … n”, “core”)
/var/www/html/lib/private/Template/JSResourceLocator.php - line 69:OC\Template\JSResourceLocator->cacheAndAppendCombineJsonIfExist(“/var/www/html”, “core/js/mer … n”)
/var/www/html/lib/private/Template/ResourceLocator.php - line 78:OC\Template\JSResourceLocator->doFind(“js/merged-template-prepend”)
/var/www/html/lib/private/TemplateLayout.php - line 321:OC\Template\ResourceLocator->find([ "vendor/co … "])
/var/www/html/lib/private/TemplateLayout.php - line 160:OC\TemplateLayout::findJavascriptFiles([ "vendor/co … "])
/var/www/html/lib/private/legacy/template.php - line 210:OC\TemplateLayout->__construct(“guest”, “”)
/var/www/html/lib/private/Template/Base.php - line 132:OC_Template->fetchPage()
/var/www/html/lib/private/legacy/template.php - line 300:OC\Template\Base->printPage()
/var/www/html/lib/base.php - line 690:OC_Template::printGuestPage(“”, “error”, { errors: [ … ]})
/var/www/html/lib/base.php - line 1068:OC::init()
/var/www/html/index.php - line 40:require_once(“/var/www/html/lib/base.php”)
What is the user name of your webserver? I ask because I see the word “Permission” in error message and you mentioned nothing about your server. It is not necessary be www-data.
Jep since the error message contains failure about getting/checking permissions, does the new data filesystem actually support posix permissions? E.g. FAT does not and NTFS just with special mount argument. Otherwise the drive would need to be mounted with webserver user, AFAIK.
Data of Nextcloud is managed by your webserver, not by you-the-user. File owned by you-the-user means apache can do nothing on it.
To copy data from “the old one” to your new directory, you have to use the command rsync with option -a which preserve everything needed to be preserved for nextcloud.
Read official documentation is always more time saving than brave guess imho.