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

Warning - session_regenerate_id(): Cannot regenerate session id - session is not active #17737

Closed
tsteur opened this issue Jul 6, 2021 · 0 comments · Fixed by #17758
Closed
Assignees
Labels
Regression Indicates a feature used to work in a certain way but it no longer does even though it should.
Milestone

Comments

@tsteur
Copy link
Member

tsteur commented Jul 6, 2021

Seeing this log thousands of times (every couple seconds or so) on our demo where anonymous access is enabled.

2021-07-06T12:02:45.942+12:00 WARNING Piwik\ErrorHandler[2021-07-06 00:02:45 UTC] [64aa5 demo-proxy.innocraft.cloud] /libs/Zend/Session.php(315): Warning - session_regenerate_id(): Cannot regenerate session id - session is not active - Matomo 4.3.0 - Please report this message in the Matomo forums: https://forum.matomo.org (please do a search first as it might have been reported already) [internal function]: Piwik\ErrorHandler::errorHandler(),#1/libs/Zend/Session.php(315),#2/core/Session/SessionInitializer.php(96),#3/core/Session/SessionInitializer.php(30),#4/core/FrontController.php(416),#5/core/dispatch.php(31),#6/index.php(25) | WARNING Piwik\ErrorHandler[2021-07-06 00:02:45 UTC] [64aa5 demo-proxy.innocraft.cloud] /var/www/html/libs/Zend/Session.php(315): Warning - session_regenerate_id(): Cannot regenerate session id - session is not active - Matomo 4.3.0 - Please report this message in the Matomo forums: https://forum.matomo.org (please do a search first as it might have been reported already) [internal function]: Piwik\ErrorHandler::errorHandler(),#1/libs/Zend/Session.php(315),#2/core/Session/SessionInitializer.php(96),#3/core/Session/SessionInitializer.php(30),#4/core/FrontController.php(416),#5/core/dispatch.php(31),#6/index.php(25)
-- | -- | --

I think this might be a regression of https://github.com/matomo-org/matomo/pull/17520/files#diff-36c19fe5134cf0a5d0edc32de9cc6583e3a08cc211255c63adc26c7071015618R677

We probably now start the session less often, and when then tries to authenticate anonymous because user is not logged in then it fails to regenerate the session because it wasn't started. So this might be for cases maybe where a token_auth is set but no force_api_session or so.

@tsteur tsteur added the Regression Indicates a feature used to work in a certain way but it no longer does even though it should. label Jul 6, 2021
@tsteur tsteur added this to the 4.4.0 milestone Jul 6, 2021
@sgiehl sgiehl self-assigned this Jul 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Regression Indicates a feature used to work in a certain way but it no longer does even though it should.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants