Can't creat user or group

i can’t add user or group
always show error message
An error occured during the request. Unable to proceed.

i installed it using softaculus on my cpanelhost
[Nextcloud] 16.0.3

what should i do ??

that message is in the overview

Security & setup warnings

It’s important for the security and performance of your instance that everything is configured correctly. To help you with that we are doing some automatic checks. Please see the linked documentation for more information.

There are some errors regarding your setup.

  • Error occurred while checking server setup

  • The “Strict-Transport-Security” HTTP header is not set to at least “15552000” seconds. For enhanced security, it is recommended to enable HSTS as described in the [security tips :arrow_upper_right:]

  • Your web server is not properly set up to resolve “/.well-known/caldav”. Further information can be found in the [documentation]

  • Your web server is not properly set up to resolve “/.well-known/carddav”. Further information can be found in the [documentation]

Please double check the [installation guides :arrow_upper_right:]

Check the security of your Nextcloud over [our security scan :arrow_upper_right:]

log file

[index] Error: Error: Call to undefined function OC\Settings\Controller\posix_getuid() at <>

  1. /home/amcegcom/Cloud.amc-eg.com/settings/Controller/CheckSetupController.php line 696
    OC\Settings\Controller\CheckSetupController->getAppDirsWithDifferentOwner()
  2. /home/amcegcom/Cloud.amc-eg.com/lib/private/AppFramework/Http/Dispatcher.php line 166
    OC\Settings\Controller\CheckSetupController->check()
  3. /home/amcegcom/Cloud.amc-eg.com/lib/private/AppFramework/Http/Dispatcher.php line 99
    OC\AppFramework\Http\Dispatcher->executeController(OC\Settings\Cont … {}, “check”)
  4. /home/amcegcom/Cloud.amc-eg.com/lib/private/AppFramework/App.php line 126
    OC\AppFramework\Http\Dispatcher->dispatch(OC\Settings\Cont … {}, “check”)
  5. /home/amcegcom/Cloud.amc-eg.com/lib/private/AppFramework/Routing/RouteActionHandler.php line 47
    OC\AppFramework\App::main(“OC\Settings\C … r”, “check”, OC\AppFramework\ … {}, {_route: “settings.CheckSetup.check”})
  6. <>
    OC\AppFramework\Routing\RouteActionHandler->__invoke({_route: “settings.CheckSetup.check”})
  7. /home/amcegcom/Cloud.amc-eg.com/lib/private/Route/Router.php line 297
    undefinedundefinedcall_user_func(OC\AppFramework\ … {}, {_route: “settings.CheckSetup.check”})
  8. /home/amcegcom/Cloud.amc-eg.com/lib/base.php line 975
    OC\Route\Router->match("/settings/ajax/checksetup")
  9. /home/amcegcom/Cloud.amc-eg.com/index.php line 42
    OC::handleRequest()

GET /index.php/settings/ajax/checksetup
from 154.184.5.18 by admin at 2019-07-31T12:21:12+00:00

This can be fixed by adding the following code to your .htaccess file. Just add it at the end of the file and adapt the server name.

<VirtualHost *:443>
  ServerName your.domain.com
    <IfModule mod_headers.c>
      Header always set Strict-Transport-Security "max-age=15552000; includeSubDomains"
    </IfModule>
 </VirtualHost>

For the .well-known stuff you can check this thread:

https://github.com/nextcloud/server/issues/11850

But if you use Softaculus, you can try to install it fresh from scratch. Just remove the current installation and do a new one. This takes less than 5 minutes.

Note, as it is provided within cpanel as a service all issues with the instance can be addressed to your provider.

Kind regards
//neph