notify_push icon indicating copy to clipboard operation
notify_push copied to clipboard

metrics command - error in log

Open l00v3 opened this issue 3 years ago • 0 comments

Hi, when running occ notify_push:metrics I get this error in log:

"message":"Undefined array key \"messages_sent\" at /var/www/nextcloud/apps/notify_push/lib/Command/Metrics.php#73","userAgent":"--","version":"24.0.1.1","exception":{"Exception":"Error","Message":"Undefined array key \"messages_sent\" at /var/www/nextcloud/apps/notify_push/lib/Command/Metrics.php#73","Code":0,"Trace":[{"file":"/var/www/nextcloud/apps/notify_push/lib/Command/Metrics.php","line":73,"function":"onError","class":"OC\\Log\\ErrorHandler","type":"::","args":[2,"Undefined array key \"messages_sent\"","/var/www/nextcloud/apps/notify_push/lib/Command/Metrics.php",73]},{"file":"/var/www/nextcloud/3rdparty/symfony/console/Command/Command.php","line":255,"function":"execute","class":"OCA\\NotifyPush\\Command\\Metrics","type":"->","args":[{"__class__":"Symfony\\Component\\Console\\Input\\ArgvInput"},{"__class__":"Symfony\\Component\\Console\\Output\\ConsoleOutput"}]},{"file":"/var/www/nextcloud/3rdparty/symfony/console/Application.php","line":1009,"function":"run","class":"Symfony\\Component\\Console\\Command\\Command","type":"->","args":[{"__class__":"Symfony\\Component\\Console\\Input\\ArgvInput"},{"__class__":"Symfony\\Component\\Console\\Output\\ConsoleOutput"}]},{"file":"/var/www/nextcloud/3rdparty/symfony/console/Application.php","line":273,"function":"doRunCommand","class":"Symfony\\Component\\Console\\Application","type":"->","args":[{"__class__":"OCA\\NotifyPush\\Command\\Metrics"},{"__class__":"Symfony\\Component\\Console\\Input\\ArgvInput"},{"__class__":"Symfony\\Component\\Console\\Output\\ConsoleOutput"}]},{"file":"/var/www/nextcloud/3rdparty/symfony/console/Application.php","line":149,"function":"doRun","class":"Symfony\\Component\\Console\\Application","type":"->","args":[{"__class__":"Symfony\\Component\\Console\\Input\\ArgvInput"},{"__class__":"Symfony\\Component\\Console\\Output\\ConsoleOutput"}]},{"file":"/var/www/nextcloud/lib/private/Console/Application.php","line":211,"function":"run","class":"Symfony\\Component\\Console\\Application","type":"->","args":[{"__class__":"Symfony\\Component\\Console\\Input\\ArgvInput"},{"__class__":"Symfony\\Component\\Console\\Output\\ConsoleOutput"}]},{"file":"/var/www/nextcloud/console.php","line":99,"function":"run","class":"OC\\Console\\Application","type":"->","args":[]},{"file":"/var/www/nextcloud/occ","line":11,"args":["/var/www/nextcloud/console.php"],"function":"require_once"}],"File":"/var/www/nextcloud/lib/private/Log/ErrorHandler.php","Line":92,"CustomMessage":"--"}}

and output from command:

Active connection count: 0
Total connection count: 204
Total database query count: 4751
Events received: 2964224
Messages sent:

after a while I rerun the command and there is no error and the output (strange that numbers are way smaller):

Active connection count: 9
Total connection count: 49
Total database query count: 4
Events received: 86
Messages sent: 16

then again after a while i rerun the command and the error appears again.

Versions: Nextcloud 24.0.1 notify_push 0.4.0

Thank you very much for help!

l00v3 avatar May 19 '22 19:05 l00v3