Sharing Issue under Settings - Admin

Hi,

For some reason I’m getting this error when I navigate to my Sharing settings:

Internal Server Error

The server was unable to complete your request.

If this happens again, please send the technical details below to the server administrator.

More details can be found in the server log.
Technical details

Remote Address: 169.0.137.142
Request ID: Xi2-n8NEI8DO9T4D2af8AwAAAAs

Please let me know what I can do to fix this.

Thanks.

Hello @jtvdw,

you did not offer any information about your environment (versions, webserver).

Please search the web to find out about your internal server error.
Your webserver logs will tell you.

Hi @rakekniven,

Thanks for the reply.

Here is more info : https://portal.stonethree.org/ocs/v2.php/apps/serverinfo/api/v1/info

Here is the error I got : OCP\Files\NotPermittedException: Could not create path

Thanks.

Hello @jtvdw

the URL is just one information.
Which webserver are you using?
Check the logs of it.

Hi @rakekniven,

Well wasn’t that the info you required, version, etc. The web server version : Apache 7.1.33

Checked the logs, see below:

OCP\Files\NotPermittedException: Could not create path

/home/stoneufl/public_html/portal/lib/private/Files/SimpleFS/SimpleFolder.php - line 83:
OC\Files\Node\Folder->newFile(“6a15-4d36-settings-admin.css”)

/home/stoneufl/public_html/portal/lib/private/Template/SCSSCacher.php - line 311:
OC\Files\SimpleFS\SimpleFolder->newFile(“6a15-4d36-settings-admin.css”)

/home/stoneufl/public_html/portal/lib/private/Template/SCSSCacher.php - line 181:
OC\Template\SCSSCacher->cache(“/home/stone … s”, “6a15-4d36-settings-admin.css”, “settings-admin.scss”, OC\Files\Sim … {}, “/apps/feder … s”)

/home/stoneufl/public_html/portal/lib/private/Template/CSSResourceLocator.php - line 109:
OC\Template\SCSSCacher->process(“/home/stone … g”, “css/settings-admin.scss”, “federatedfilesharing”)

/home/stoneufl/public_html/portal/lib/private/Template/CSSResourceLocator.php - line 84:
OC\Template\CSSResourceLocator->cacheAndAppendScssIfExist(“/home/stone … g”, “css/settings-admin.scss”, “federatedfilesharing”)

/home/stoneufl/public_html/portal/lib/private/Template/ResourceLocator.php - line 78:
OC\Template\CSSResourceLocator->doFind(“css/settings-admin”)

/home/stoneufl/public_html/portal/lib/private/TemplateLayout.php - line 305:
OC\Template\ResourceLocator->find([ "css/serve … "])

/home/stoneufl/public_html/portal/lib/private/TemplateLayout.php - line 210:
OC\TemplateLayout::findStylesheetFiles([ "css/serve … "])

/home/stoneufl/public_html/portal/lib/private/legacy/template.php - line 183:
OC\TemplateLayout->__construct(“user”, “settings”)

/home/stoneufl/public_html/portal/lib/public/AppFramework/Http/TemplateResponse.php - line 165:
OC_Template->fetchPage({ forms: { p … "})

/home/stoneufl/public_html/portal/lib/private/AppFramework/Http/Dispatcher.php - line 123:
OCP\AppFramework\Http\TemplateResponse->render()

/home/stoneufl/public_html/portal/lib/private/AppFramework/App.php - line 126:
OC\AppFramework\Http\Dispatcher->dispatch(OC\Settings\ … {}, “index”)

/home/stoneufl/public_html/portal/lib/private/AppFramework/Routing/RouteActionHandler.php - line 47:
OC\AppFramework\App::main(“OC\Setting … r”, “index”, OC\AppFramew … {}, { section: " … "})

<>

OC\AppFramework\Routing\RouteActionHandler->__invoke({ section: " … "})
/home/stoneufl/public_html/portal/lib/private/Route/Router.php - line 297:

call_user_func(OC\AppFramew … {}, { section: " … "})

/home/stoneufl/public_html/portal/lib/base.php - line 997:
OC\Route\Router->match(“/settings/admin/sharing”)

/home/stoneufl/public_html/portal/index.php - line 42:
OC::handleRequest()

Thanks.

Seems like a permission problem in the filesystem

2 Likes

As SmallOne said it is most probably a permission issue.

Check if all nextcloud folders are accessible by your webserver (depending on your environment the username should be something like “www-data”, “http”, …).

This will set user/group ownership (change username and path as needed)
sudo chown -R www-data:www-data /var/www/nextcloud

and permissions for the top level folder (change path as needed)
sudo chmod 750 /var/www/nextcloud

depending on the underlying problem it might be necessary to extend the use of chmod on other folders/files.

1 Like