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

Error parsing time when using pscheduler-stats #107

Open
danialre opened this issue Jun 6, 2023 · 1 comment
Open

Error parsing time when using pscheduler-stats #107

danialre opened this issue Jun 6, 2023 · 1 comment

Comments

@danialre
Copy link

danialre commented Jun 6, 2023

OS: CentOS 7 Docker container (host OS: Ubuntu 22.04)
pSConfig version: 5.0.1-1
pSConfig agent command: /usr/lib/perfsonar/bin/psconfig_pscheduler_agent --config=/etc/perfsonar/psconfig/pscheduler-agent.json --logger=/etc/perfsonar/psconfig/pscheduler-agent-logger.conf --pidfile=/var/run/psconfig-pscheduler-agent.pid --user=perfsonar --group=perfsonar

When running the command "psconfig pscheduler-stats", I receive the following error message:

[root@x /]# psconfig pscheduler-stats
Error parsing time at /usr/lib64/perl5/Time/Piece.pm line 469.
[root@x /]#

pSConfig is otherwise running normally - remotes are configured and read, tasks are parsed and added to pscheduler, and the validate command works. The error persists with all formats (text/json/prometheus) with the default pscheduler-agent-logger.conf file.

My guess is that the start or end time variables ($st and $et) in psconfig/perfsonar-psconfig/bin/psconfig_commands/pscheduler-stats is expecting a different format from the log files. Here's an example snippet from /var/log/perfsonar/psconfig-pscheduler-agent.log:

Jun  6 18:23:45 467f279af687 psconfig_pscheduler_agent: 2023/06/06 18:23:45 INFO pid=224 prog=main:: line=176 guid=45D1F602-0497-11EE-91AD-7DB2999A80A8 msg=Running agent...
Jun  6 18:23:45 467f279af687 psconfig_pscheduler_agent: 2023/06/06 18:23:45 INFO pid=224 prog=main:: line=178 guid=45D1F602-0497-11EE-91AD-7DB2999A80A8 msg=Agent completed running
Jun  6 18:23:45 467f279af687 psconfig_pscheduler_agent: 2023/06/06 18:23:45 INFO pid=224 prog=main:: line=189 guid=45D1F602-0497-11EE-91AD-7DB2999A80A8 msg=Time until next record refresh is 3600 seconds
@laeti-tia
Copy link
Member

pSConfig has been rewritten in Python as part of the 5.1 effort. The command is now called psconfig stats pscheduler

@danialre do you still have the same behaviour with the latest 5.1.4 ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Ready
Development

No branches or pull requests

2 participants