Transaction failed on Publisher

Hi,

I’m trying to test the publication on the repos and I always come across this error.

sudo cvmfs_server  transaction config.mila.quebec
Error: 'invalid_hmac'
(unexpected termination) cannot parse session token

Stacktrace:
/lib/libcvmfs_server.so.2.11.2(+0x781e2) [0x7f0e23f7a1e2]
/lib/libcvmfs_server.so.2.11.2(+0x7eebb) [0x7f0e23f80ebb]
/lib/libcvmfs_server.so.2.11.2(_ZN7publish9Publisher7Session7AcquireEv+0x9de) [0x7f0e23f880fe]
/lib/libcvmfs_server.so.2.11.2(_ZN7publish9Publisher15TransactionImplEv+0xa9) [0x7f0e23f88e9f]
/lib/libcvmfs_server.so.2.11.2(_ZN7publish9Publisher16TransactionRetryEv+0xd2) [0x7f0e23f895f0]
/lib/libcvmfs_server.so.2.11.2(_ZN7publish9Publisher11TransactionEv+0xe) [0x7f0e23f7a916]
/usr/bin/cvmfs_publish(+0x3c930) [0x55714ac03930]
/usr/bin/cvmfs_publish(+0x133fc) [0x55714abda3fc]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xea) [0x7f0e23617d0a]
/usr/bin/cvmfs_publish(+0x135aa) [0x55714abda5aa]

the gateway is configured this way on startum0 with two repos

/etc/cvmfs/gateway/repo.json
{
  "version": 2,

  "repos": [
    "ai.mila.quebec"
  ]
}
{
  "version": 2,

  "repos": [
    "config.mila.quebec"
  ]
}

i can this error on cvmfs-gateway service on stratum0

Jan 31 15:28:51 cvmfs-s0 cvmfs_gateway[688841]: {"level":"info","component":"leasedb","message":"database opened (work dir: /var/lib/cvmfs-gateway)"}
Jan 31 15:28:51 cvmfs-s0 cvmfs_gateway[688841]: {"level":"info","component":"worker_pool","message":"worker pool started"}
Jan 31 15:28:51 cvmfs-s0 cvmfs_gateway[688841]: {"level":"info","component":"notify","message":"database opened (work dir: /var/lib/cvmfs-gateway)"}
Jan 31 15:28:51 cvmfs-s0 cvmfs_gateway[688841]: {"level":"info","component":"actions","req_id":"00000000-0000-0000-0000-000000000000","req_dt":9223372036854.775,"action":"delete_all","outcome":"success>
Jan 31 15:28:51 cvmfs-s0 cvmfs_gateway[688841]: {"level":"info","component":"actions","req_id":"00000000-0000-0000-0000-000000000000","req_dt":9223372036854.775,"action":"new_repo","outcome":"success",>
Jan 31 15:28:51 cvmfs-s0 cvmfs_gateway[688841]: {"level":"info","component":"main","message":"waiting for interrupt"}
Jan 31 15:29:04 cvmfs-s0 cvmfs_gateway[688841]: {"level":"info","component":"http","req_id":"fd186ea9-89c2-41b1-9457-162931ab66c2","req_dt":0.003857,"method":"POST","url":"/api/v1/leases","t0":"2024-01>
Jan 31 15:29:04 cvmfs-s0 cvmfs_gateway[688841]: {"level":"error","component":"http","req_id":"fd186ea9-89c2-41b1-9457-162931ab66c2","req_dt":0.088485,"message":"invalid key ID specified"}
Jan 31 18:03:22 cvmfs-s0 cvmfs_gateway[688841]: {"level":"info","component":"http","req_id":"28772fa7-1358-4b73-8387-ab24392c5a91","req_dt":0.004167,"method":"POST","url":"/api/v1/leases","t0":"2024-01>
Jan 31 18:03:22 cvmfs-s0 cvmfs_gateway[688841]: {"level":"error","component":"http","req_id":"28772fa7-1358-4b73-8387-ab24392c5a91","req_dt":0.030346,"message":"invalid key ID specified"}

Hi!
It sounds like a keys cannot be found. Can you check they are in the location described in The CernVM-FS Repository Gateway and Publishers — CernVM-FS 2.11.2 documentation ?

Hi,
Thanks for your reply the keys it’s on the right location described on document.
present at the conventional location (/etc/cvmfs/keys/<REPOSITORY_NAME>.gw )

/etc/cvmfs/keys# ls -l config.domain.gw 
-r-------- 1 root root 36 Jan 31 14:48 config.domain.gw

besides we have the same gateway service to serve two repos with different key ID for each repo.

Hi

Please have a look here at the examples how a config should be correctly formatted:
https://cvmfs.readthedocs.io/en/stable/cpt-repository-gateway.html#advanced-repository-configuration

if this does not work please post what you have tried out and the path/name of your key. (no sensitive data pls)

Hi

It worked well with the reformulation of the repo.json file according to the suggestion in the document.

Thanks

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.