Hi Simon,
does your log config exist and is it readable by the apache process?
Oliver
On 08.08.22 16:12, Simon Borg wrote:
Hi,
I have followed the quickstart guide in
https://openxpki.readthedocs.io/en/latest/quickstart.html and managed
to get openxpki web UI working (used the sampleconfig script). So now
I'm running openxpki version 3.20 on Debian 10.
My goal is to automate some stuff using the RPC, but I can't make it
work even after browsing the mail archives. I for example have
/etc/openxpki/rpc/public.conf which has the following inside:
######################################################
[global]
log_config = /etc/openxpki/rpc/log.conf
log_facility = client.rpc
socket = /var/openxpki/openxpki.socket
realm = democa
#locale_directory: /usr/share/locale
default_language = en_US
[auth]
stack = _System
[input]
allow_raw_post = 1
parse_depth = 5
[output]
use_http_status_codes=1
[openapi]
title = Public Certificate API
[SearchCertificate]
workflow = certificate_search
param = common_name
# append "certificate" if you want the full PEM block in the result
output = cert_identifier, notbefore, notafter, status
######################################################
If I call for example: curl -F "method=openapi-spec"
http://localhost:80/rpc/public <http://localhost:80/rpc/public>
It returns the following message:
{"error":{"code":50000,"message":"Unable to fetch configuration from
server - connect failed","data":{"pid":4518}},"rpc_failure":1}
I have tried other methods too also from enroll.conf, but they always
return the same error.
Also nothing gets written into /var/log/openxpki/rpc.log or
catchall.log. Only apache2:s error.log gets the line [Mon Aug 08
14:09:10.638387 2022] [fcgid:warn] [pid 1565:tid 140651006596864]
[client ::1:58404] mod_fcgid: stderr: [Mon Aug 8 14:09:10 2022]
rpc.fcgi: Client Connect Failed: Can't call method "error" on an
undefined value at /usr/lib/cgi-bin/rpc.fcgi line 108.
At this point I'm running out of ideas to try, what should I do next?
Best,
Simon
_______________________________________________
OpenXPKI-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openxpki-users
--
Protect your environment - close windows and adopt a penguin!
_______________________________________________
OpenXPKI-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openxpki-users