[slurm-users] [ext] REST API Error Slurmdb

Nikolis, Georgios georgios.nikolis at charite.de
Thu Nov 17 09:18:31 UTC 2022


Hi,

we had a similar issue in the past. We had to set config options AuthAltTypes and AuthAltParameters also in slurmdbd.conf, e.g.

AuthAltTypes=auth/jwt

AuthAltParameters=jwt_key=/opt/slurm/etc/jwt_hs256.key

That did the trick for db API queries.

Cheers,

Georgios

 

 

From: slurm-users <slurm-users-bounces at lists.schedmd.com> on behalf of 김종록 <kjrstory.kim at samsung.com>
Reply-To: "kjrstory.kim at samsung.com" <kjrstory.kim at samsung.com>, Slurm User Community List <slurm-users at lists.schedmd.com>
Date: Thursday, 17. November 2022 at 06:37
To: "slurm-users at lists.schedmd.com" <slurm-users at lists.schedmd.com>
Subject: [ext] [slurm-users] REST API Error Slurmdb

 

Hello everyone.

 

I installed Slurm 20.11.09 and installed mariadb, slurmdb and slurmrest normally.

After issuing the jwt token, API test was performed.

/slurm/v0.0.36/ping

/slurm/v0.0.36/diag

/slurm/v0.0.36/jobs

/slurm/v0.0.36/job/submit

I tested this APIs and there was no special problem.

However, an error occurred in the slurmdb api.

 

{

   "meta": {

     "plugin": {

       "type": "openapi\/dbv0.0.36",

       "name": "REST DB v0.0.36"

     },

     "Slurm": {

       "version": {

         "major": 20,

         "micro": 9,

         "minor": 11

       },

       "release": "20.11.9"

     }

   },

   "errors": [

     {

       "error_number": -1,

       "error": "Unspecified error",

       "source": "slurmdb_get_stats"

     }

   ]

 }

 

The following error message was displayed on the slurmdbd.log file.

 

[2022-11-17T13:46:01.451] error: g_slurm_auth_unpack: remote plugin_id 102 not found

[2022-11-17T13:46:01.451] error: slurm_unpack_received_msg: g_slurm_auth_unpack: REQUEST_PERSIST_INIT has authentication error: No error

[2022-11-17T13:46:01.451] error: slurm_unpack_received_msg: Header lengths are longer than data received

[2022-11-17T13:46:01.461] error: CONN:11 Failed to unpack SLURM_PERSIST_INIT message

 

The sacct command is executed normally.

 

sacct --brief

       JobID      State ExitCode

------------ ---------- --------

2             COMPLETED      0:0

2.batch       COMPLETED      0:0

3             COMPLETED      0:0

3.batch       COMPLETED      0:0

4             COMPLETED      0:0

4.batch       COMPLETED      0:0

5             COMPLETED      0:0

5.batch       COMPLETED      0:0

 

 

What's the problem?

 

 

 

 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.schedmd.com/pipermail/slurm-users/attachments/20221117/ee63d4db/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.gif
Type: image/gif
Size: 13403 bytes
Desc: not available
URL: <http://lists.schedmd.com/pipermail/slurm-users/attachments/20221117/ee63d4db/attachment-0001.gif>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 5904 bytes
Desc: not available
URL: <http://lists.schedmd.com/pipermail/slurm-users/attachments/20221117/ee63d4db/attachment-0001.bin>


More information about the slurm-users mailing list