Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Call to undefined function OC\Settings\Controller\posix_getuid() #11587

Closed
prudolph81 opened this issue Oct 3, 2018 · 3 comments
Closed

Call to undefined function OC\Settings\Controller\posix_getuid() #11587

prudolph81 opened this issue Oct 3, 2018 · 3 comments
Labels
0. Needs triage Pending check for reproducibility or if it fits our roadmap bug

Comments

@prudolph81
Copy link

Steps to reproduce

  1. Make Caldav Request to https:/[cloudhost]/remote.php/dav/
  2. Get "undefined function"-error in logfile (see attached), requests dies

Expected behaviour

not to get error, or when error the reqeust should go on
it seems to be an optional check, so the reqeust should not die

Actual behaviour

se steps to reproduce

Server configuration

Operating system: linux

Web server: apache

Database: mysql

PHP version: 7

Nextcloud version: 14.0.1

Updated from an older Nextcloud/ownCloud or fresh install: updated

Where did you install Nextcloud from: downloaded zip

Signing status:

Signing status
No errors have been found.

List of activated apps:

App list
The posix extensions are required - see http://php.net/manual/en/book.posix.php

Nextcloud configuration:

Config report
The posix extensions are required - see http://php.net/manual/en/book.posix.php

or 

$CONFIG = array (
  'instanceid' => 'instanceid',
  'passwordsalt' => 'passwordsalt',
  'secret' => 'secret',
  'trusted_domains' =>
  array (
    0 => 'host',
  ),
  'overwriteprotocol' => 'https',
  'datadirectory' => 'datadirectory',
  'overwrite.cli.url' => overwrite.cli.url',
  'dbtype' => 'mysql',
  'version' => '14.0.1.1',
  'dbname' => 'dbname',
  'dbhost' => 'dbhost',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'dbuser' => 'p404658',
  'dbpassword' => 'dbpassword',
  'logtimezone' => 'UTC',
  'installed' => true,
  'maintenance' => false,
  'theme' => '',
  'loglevel' => 2,
  'mail_from_address' => 'mail',
  'mail_smtpmode' => 'smtp',
  'mail_domain' => 'mail_domain',
  'mail_smtpauthtype' => 'PLAIN',
  'mail_smtpauth' => 1,
  'mail_smtphost' => 'mail_smtphost',
  'mail_smtpport' => '587',
  'mail_smtpname' => 'mail_smtpname',
  'mail_smtppassword' => 'mail_smtppassword',
  'mail_smtpsecure' => 'tls',
  'updater.release.channel' => 'stable',
  'memcache.local' => '\\OC\\Memcache\\APCu',
);

Are you using external storage, if yes which one: no

Are you using encryption: no

Are you using an external user-backend, if yes which one: no

Client configuration

Browser: Chrome / Android calDav Adapter

Operating system:

Logs

Web server error log

Web server error log
I cannot access the logs

Nextcloud log (data/nextcloud.log)

Nextcloud log
Error: Call to undefined function OC\Settings\Controller\posix_getuid()

/[src-root]/settings/Controller/CheckSetupController.php - line 624:
OC\Settings\Controller\CheckSetupController->getAppDirsWithDifferentOwner()

/[src-root]/lib/private/AppFramework/Http/Dispatcher.php - line 166:
OC\Settings\Controller\CheckSetupController->check()

/[src-root]/lib/private/AppFramework/Http/Dispatcher.php - line 99:
OC\AppFramework\Http\Dispatcher->executeController(OC\Settings\ ... {}, "check")

/[src-root]/lib/private/AppFramework/App.php - line 118:
OC\AppFramework\Http\Dispatcher->dispatch(OC\Settings\ ... {}, "check")

/[src-root]/lib/private/AppFramework/Routing/RouteActionHandler.php - line 47:
OC\AppFramework\App::main("OC\\Setting ... r", "check", OC\AppFramew ... {}, { _route: "s ... "})
OC\AppFramework\Routing\RouteActionHandler->__invoke({ _route: "s ... "})

/[src-root]/lib/private/Route/Router.php - line 297:
call_user_func(OC\AppFramew ... {}, { _route: "s ... "})/[src-root]/lib/base.php - line 987:
OC\Route\Router->match("/settings/ajax/checksetup")

/[src-root]/index.php - line 42:OC::handleRequest()

Browser log

Browser log
Browser log is not relevant, I access via caldav

Possible solution:
is it possible to check if the posix funciton posix_getuid (and others) is installed, and do a workaround if not?
Even in the cli tool the error exist. I mean this seems to be an optional check. and on many shared hosters the php posix plugin is not installed but nextcloud runs perfectly.

@nextcloud-bot
Copy link
Member

GitMate.io thinks possibly related issues are #8420 (NC13 - Call to undefined method OC_Defaults::replaceImagePath()), #4756 (Call to undefined method OCA\LookupServerConnector\BackgroundJobs\RetryJob::shouldRun()), #4319 (Call to undefined method OCP\Defaults::shouldReplaceIcons()), #6706 (Call to a member function getUID() on null), and #5059 (Undefined index: federationId).

@mathiasconradt
Copy link

Which Linux distro are you running?
Seeing this in CentOS right now, never had it on Ubuntu though.

@mathiasconradt
Copy link

https://help.nextcloud.com/t/health-check-failing-and-repeating-posix-getuid-error/40788

Found the problem. It needed the php-process module installed.

@skjnldsv skjnldsv added the 0. Needs triage Pending check for reproducibility or if it fits our roadmap label Jun 12, 2019
@kesselb kesselb closed this as completed Aug 17, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0. Needs triage Pending check for reproducibility or if it fits our roadmap bug
Projects
None yet
Development

No branches or pull requests

5 participants