Skip to main content

Hi,

Deletion of the expired tokens is logging this :
 

  1. 1) Does it really need to be executed every minutes? As you can see in the log I changed the crontab entry to do this only every five minutes (as a test, I did not observed issue). Every five minutes still seems uselessly too frequent. Do you think it can be done less frequently? Like every hour or so? What’s those tokens’s validity period?

    2) What are “tokens which are not linked to a refresh tokens”? Are they the tokens manually created from the UI, from the “API Tokens” menu? I guess they probably even less need to be purged so much frequently than the refresh tokens do, do they?

    3) I see a third  line about “expired sessions”, can you tell what is this purge doing? Also, isn’t every minute a bit excessive? 

    4) I take the opportunity to say that the fact that an upgrade of the centreon-web package systematically overwrites the /etc/cron.d/centreon (ie: even when it has absolutely  no reason to do so) is an issue. I know that one may put custom cronjob in another file, but having to comment out some jobs (unused backup or knowledge base for instance) for every minor upgrade is kind of annoying. It’s a bit off-topic and packaging related but still.

    5) The PHP fatal error isn’t taking place at every execution, those one above are probably caused by a real unavailability of the database, I’m just pointing the fact it should probably be trapped and not left as-is.  

    (Centreon Web 24.10.7)
Be the first to reply!

Reply