Skip to content

Call to undefined function Piwik\posix_getgrgid() after "core:update", Filechecks.php on line 268 #10721

@ryrun

Description

@ryrun

I was updating my piwik installation and i got a php fatal error. I used the commadline for the update (console core:update). Cant reproduce it, because the update itself was successful (Everything is already up to date.).

Commandline output:

    *** Update ***

    Database Upgrade Required

    Your Piwik database is out-of-date, and must be upgraded before you can continue.

    Piwik database will be upgraded from version 2.16.2 to the new version 2.16.5.

    The following dimensions will be updated: log_visit.visit_entry_idaction_url.


This is a major update! It will take longer than usual.

    *** Note: this is a Dry Run ***

    ALTER TABLE `log_visit` MODIFY COLUMN `visit_entry_idaction_url` INTEGER(11) UNSIGNED NULL  DEFAULT NULL;

    *** End of Dry Run ***

A database upgrade is required. Execute update? (y/N) y

Starting the database upgrade process now. This may take a while, so please be patient.

    *** Update ***

    Database Upgrade Required

    Your Piwik database is out-of-date, and must be upgraded before you can continue.

    Piwik database will be upgraded from version 2.16.2 to the new version 2.16.5.

    The following dimensions will be updated: log_visit.visit_entry_idaction_url.

    The database upgrade process may take a while, so please be patient.

  Executing ALTER TABLE `log_visit` MODIFY COLUMN `visit_entry_idaction_url` INTEGER(11) UNSIGNED NULL  DEFAULT NULL... ^[[ADone. [1 / 1]

Piwik has been successfully updated!

PHP Fatal error:  Call to undefined function Piwik\posix_getgrgid() in /var/www/vhosts/***/httpdocs/core/Filechecks.php on line 268
server4:~$ php /var/www/vhosts/***/httpdocs/console core:update

Edit:
Found a forum post, but i'm not using XCache:
https://forum.piwik.org/t/fatal-errors-2-16-4-15-update-errors-xcache-issue/21225

I found out, that my php version is lower than recommended. Could this be the cause of this issue?

Please note, that my dashboard is working and tracking seems to be fine, too.
I just got this error during the update.

Metadata

Metadata

Assignees

Labels

BugFor errors / faults / flaws / inconsistencies etc.

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions