Skip to Content.
Sympa Menu

perfsonar-user - [perfsonar-user] pscheduler-ticker.service constantly in 'activating' mode

Subject: perfSONAR User Q&A and Other Discussion

List archive

[perfsonar-user] pscheduler-ticker.service constantly in 'activating' mode


Chronological Thread 
  • From: Prannoy Sablok <>
  • To:
  • Subject: [perfsonar-user] pscheduler-ticker.service constantly in 'activating' mode
  • Date: Thu, 29 Jul 2021 13:58:02 +0800

Hi all,

I have been trying to run a pscheduler task on a server but it keeps throwing the following error -

~$ pscheduler task throughput dtn.singaren.net.sg
Could not find test throughput on server

This occurs with all pscheduler tasks. I checked service status and there seems to be a problem with the ticker service, as below - 

~$ systemctl status pscheduler-ticker.service
● pscheduler-ticker.service - pScheduler server - ticker
   Loaded: loaded (/lib/systemd/system/pscheduler-ticker.service; enabled; vendor preset: enabled)
   Active: activating (auto-restart) (Result: exit-code) since Thu 2021-07-29 00:43:44 CDT; 679ms ago
  Process: 27223 ExecStopPost=/bin/rm -rf /var/run/pscheduler-server/ticker (code=exited, status=0/SUCCESS)
  Process: 27187 ExecStart=/usr/lib/pscheduler/daemons/ticker --daemon --pid-file /var/run/pscheduler-server/ticker/pid --dsn @/et
  Process: 27178 ExecStartPre=/bin/sh -c if [ -r /etc/pscheduler/daemons/ticker.conf ]; then opts=$(sed -e 's/#.*$//' /etc/pschedu
  Process: 27177 ExecStartPre=/bin/mv /var/run/pscheduler-server/ticker/pid.build /var/run/pscheduler-server/ticker/pid (code=exit
  Process: 27176 ExecStartPre=/bin/chown pscheduler:pscheduler /var/run/pscheduler-server/ticker/pid.build (code=exited, status=0/
  Process: 27175 ExecStartPre=/usr/bin/touch -f /var/run/pscheduler-server/ticker/pid.build (code=exited, status=0/SUCCESS)
  Process: 27174 ExecStartPre=/bin/rm -f /var/run/pscheduler-server/ticker/pid.build (code=exited, status=0/SUCCESS)
  Process: 27173 ExecStartPre=/bin/chown pscheduler:pscheduler /var/run/pscheduler-server/ticker/tmp (code=exited, status=0/SUCCES
  Process: 27172 ExecStartPre=/bin/chmod 700 /var/run/pscheduler-server/ticker/tmp (code=exited, status=0/SUCCESS)
  Process: 27171 ExecStartPre=/bin/mkdir -p /var/run/pscheduler-server/ticker/tmp (code=exited, status=0/SUCCESS)
  Process: 27170 ExecStartPre=/bin/chmod 755 /var/run/pscheduler-server/ticker (code=exited, status=0/SUCCESS)
  Process: 27166 ExecStartPre=/bin/chown pscheduler:pscheduler /var/run/pscheduler-server/ticker (code=exited, status=0/SUCCESS)
  Process: 27158 ExecStartPre=/bin/mkdir -p /var/run/pscheduler-server/ticker (code=exited, status=0/SUCCESS)
 Main PID: 27187 (code=exited, status=1/FAILURE)

Upon further inspecting the pscheduler.log I found the following - 

$ tail -n 20 pscheduler.log
Jul 28 13:02:39 dtn098 safe_run/ticker ERROR    Traceback (most recent call last):
Jul 28 13:02:39 dtn098 safe_run/ticker ERROR      File "/usr/lib/python3/dist-packages/pscheduler/saferun.py", line 76, in safe_run
Jul 28 13:02:39 dtn098 safe_run/ticker ERROR        function()
Jul 28 13:02:39 dtn098 safe_run/ticker ERROR      File "/usr/lib/pscheduler/daemons/ticker", line 170, in <lambda>
Jul 28 13:02:39 dtn098 safe_run/ticker ERROR        pscheduler.safe_run(lambda: main_program())
Jul 28 13:02:39 dtn098 safe_run/ticker ERROR      File "/usr/lib/pscheduler/daemons/ticker", line 132, in main_program
Jul 28 13:02:39 dtn098 safe_run/ticker ERROR        cursor.execute("SELECT cold_boot()")
Jul 28 13:02:39 dtn098 safe_run/ticker ERROR    psycopg2.InternalError: AttributeError: module 'jsonschema' has no attribute 'Draft7Validator'
Jul 28 13:02:39 dtn098 safe_run/ticker ERROR    CONTEXT:  Traceback (most recent call last):
Jul 28 13:02:39 dtn098 safe_run/ticker ERROR      PL/Python function "json_validate", line 17, in <module>
Jul 28 13:02:39 dtn098 safe_run/ticker ERROR        "required": [ "" ]
Jul 28 13:02:39 dtn098 safe_run/ticker ERROR      PL/Python function "json_validate", line 1411, in json_validate
Jul 28 13:02:39 dtn098 safe_run/ticker ERROR    PL/Python function "json_validate"
Jul 28 13:02:39 dtn098 safe_run/ticker ERROR    PL/pgSQL function test_boot() line 35 at assignment
Jul 28 13:02:39 dtn098 safe_run/ticker ERROR    SQL statement "SELECT test_boot()"
Jul 28 13:02:39 dtn098 safe_run/ticker ERROR    PL/pgSQL function warm_boot() line 4 at PERFORM
Jul 28 13:02:39 dtn098 safe_run/ticker ERROR    SQL statement "SELECT warm_boot()"
Jul 28 13:02:39 dtn098 safe_run/ticker ERROR    PL/pgSQL function cold_boot() line 4 at PERFORM
Jul 28 13:02:39 dtn098 safe_run/ticker ERROR    Waiting 0.25 seconds before restarting
Jul 28 13:02:39 dtn098 safe_run/ticker ERROR    Restarting: ['/usr/lib/pscheduler/daemons/ticker', '--daemon', '--pid-file', '/var/run/pscheduler-server/ticker/pid', '--dsn', '@/etc/pscheduler/database/database-dsn']

It seems like there's an issue with a python dependency. Would the best way to fix this be to upgrade the jsonschema module with  "pip install --upgrade jsonschema" or something else?

Kind Regards,

Prannoy SABLOK

Technical Specialist

Singapore Advanced Research and Education Network (SingAREN)

    

M  +65 87492366|   E 

www.singaren.net.sg
cid:image002.jpg@01D4B95E.B80581A0

JPEG image




Archive powered by MHonArc 2.6.24.

Top of Page