sara-nl / irods-msi-persistent-id

iRODS microservices for managing EPIC PIDs
Other
0 stars 0 forks source link

debug info from msi-persistent-id microservice. #5

Closed cookie33 closed 5 years ago

cookie33 commented 5 years ago

An example of info in the logfile of rodsLog is:

Jan  8 14:37:27 pid:18028 NOTICE: Agent process 24349 started for puser=rods and cuser=rods from x.y.z.n
read config from file /etc/irods/irods_pid.json
* About to connect() to fqdn port 8003 (#0)
*   Trying x.y.zz.nn...
* Connected to fqdn (x.y.n.z) port 8003 (#0)
* Initializing NSS with certpath: sql:/etc/pki/nssdb
*   CAfile: /etc/pki/tls/certs/ca-bundle.crt
  CApath: none
* SSL connection using TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384
* Server certificate:
*       subject: CN=fqdnOU=OSD,O=SURFsara B.V.,L=Amsterdam,C=NL
*       start date: Oct 17 00:00:00 2018 GMT
*       expire date: Oct 21 12:00:00 2020 GMT
*       common name: FQDN
*       issuer: CN=TERENA SSL CA 3,O=TERENA,L=Amsterdam,ST=Noord-Holland,C=NL
* Server auth using Basic with user '21.T12996'
> GET /hrls/handles/21.T12996?URL=irods%3A%2F%2Firodstest2.storage.surfsara.nl%3A1247%2Figor%2Fhome%2Frobertv%2Ftest_data_replicate.txt&limit=100&page=0 HTTP/1.1
Authorization: Basic <blabla>
Host: fqdn:8003
Accept: */*

< HTTP/1.1 200 OK
< Content-Length: 2
< Content-Type: application/json
<
* Connection #0 to host fqdn left intact
http code: 200 (OK)
curl code: 0 (No error)
success:   1
body       []
Jan  8 14:37:28 pid:24349 ERROR: failed to create PID for iRods path: /igor/home/robertv/test_data_replicate.txt
Jan  8 14:37:28 pid:24349 ERROR: exception: indices defined in the template cannot be overwritten: URL
Jan  8 14:37:28 pid:24349 ERROR: executeRuleAction Failed for msiPidCreate status = -1090000 ACTION_FAILED_ERR
Jan  8 14:37:28 pid:24349 NOTICE: executeRuleBody: Microservice or Action msiPidCreate Failed with status -1090000
Jan  8 14:37:28 pid:24349 NOTICE: execRuleNodeRes: applyRule Failed: myRule with status -1090000
Jan  8 14:37:28 pid:24349 DEBUG: execMicroService3: error when executing microservice
line 4, col 7
       msiPidCreate(*path,
       ^

Jan  8 14:37:28 pid:24349 NOTICE: execMyRule @external
# this rule fails because it overwrites default fields
myRule {
       *key_values = list("URL", "dont_do_that", "IRODS/WEBDAV_URL", "custom_value2");
       # or *key_values = ""
       msiPidCreate(*path,
                    *key_values,
                    *handle);
       writeLine("stdout", "*handle");
}

 Failed with status -1090000
Jan  8 14:37:28 pid:24349 ERROR: rsExecMyRule : execMyRule error for @external
# this rule fails because it overwrites default fields
myRule {
       *key_values = list("URL", "dont_do_that", "IRODS/WEBDAV_URL", "custom_value2");
       # or *key_values = ""
       msiPidCreate(*path,
                    *key_values,
                    *handle);
       writeLine("stdout", "*handle");
}

, status = -1090000
Jan  8 14:37:28 pid:24349 NOTICE: readAndProcClientMsg: received disconnect msg from client
Jan  8 14:37:28 pid:24349 NOTICE: Agent exiting with status = 0

Is there a possibility to get less info and not show all the openssl/curl info? Can that be added as a parameter in the /etc/irods/irods_pid.json?

stefan-wolfsheimer commented 5 years ago

fixed in submodule