Thread "[Solved] How to activate ILIAS certificates"

Tabs

  • csidirop
    csidirop | csidirop | 11. Sep 2024, 16:20
    Edited on: 27. Sep 2024, 21:02 - by wolfganghuebsch | wolfganghuebsch
    [Solved] How to activate ILIAS certificates

    Hi,

    I'm trying to activate the test certificates.

    • I hope I have all dependancies (eg. php xmlrpc)
    • I have installed and configured the lucene server
    • I have adapted the ILIAS setup config file
    • I have started the the java server
    • I can verify that ILIAS and the server are communicating by activating the lucene search (Search & Find -> Search -> Settings). Here confirmation from the iIServer log:
      • 2024-09-11T10:15:50,985 INFO  XML-RPC-0 (RPCAdministration.java:89) - Reading lucene client settings from database.
        2024-09-11T10:15:50,986 INFO  XML-RPC-0 (RPCAdministration.java:90) - Client key: testilias_0
        2024-09-11T10:15:50,988 INFO  XML-RPC-0 (DBFactory.java:68) - +++++++++++++++++++++++++++++++++++++++++++ New Thread local testilias_0
    • But while the server seams running I get the status:
      • Runnning
        INFO  main (ilServer.java:360) - RPC Status is Runnning
        INFO  main (ilServer.java:362) - Main Status is Stopped

    I certanly have missed something which is not documented (again ...). Can you help me out?

    I followed the official installation guide, compared with other installation resources and found especially this thread.

    For the moment I'm trying on my test environment release 9 and 8 (docker setups), but in the end we need it for a r_8.

    Thanks in advance

    Attachments
    ilServer.log
    ilias.log
    java_srv.log
  • utesche
    utesche | utesche | 12. Sep 2024, 07:35
    Re: How to activate ILIAS certificates

    Hello csidirop,

    your 'ilias'log' does not show anything about a successful or unsuccessful rpc connect to the running java server..

    You just wrote you 'adapted' your ilias config file, but did not report this adaption inparticular.  If you EXACTLY used the examples in the referenced docu snippets (bullets 2 and 3 in your post), then you may have an inconsistency concerning the port address!
    configured  uses:  port 11111
    adapted  uses:  port 11112

    wbr,
    Uwe

  • csidirop
    csidirop | csidirop | 12. Sep 2024, 09:44
    Edited on: 12. Sep 2024, 10:45 - by csidirop | csidirop
    Re(2): How to activate ILIAS certificates
    Hello Uwe,

    Thanks for your reply. No I did not use exaclty the same examples. I set the port in the ILIAS config to `11111` to match the java server port. I will attach my configurations for you.

    Quote (Uwe Tesche (utesche))

    your 'ilias'log' does not show anything about a successful or unsuccessful rpc connect to the running java server..

     You are right. But thats a good sign, because it would show an unsuccesfull try. Just tried with not matching ports:

    • [mmsv4] [2024-09-12 09:48:55.501156] testilias_wsrv.ERROR: ilObjSearchRpcClientCoordinator::refreshLuceneSettings:135 RpcClient could not connect to http://localhost:11112//RPC2 Reason 7: Failed to connect to localhost port 11112 after 0 ms: Couldn't connect to server  
    • [mmsv4] [2024-09-12 09:48:55.504492] testilias_src.ERROR: ilObjSearchSettingsFormGUI::update:74 Refresh of lucene server settings failed with message: Failed to connect to localhost port 11112 after 0 ms: Couldn't connect to server  

    I can tell that the connection were established by

    1. The `ilServer.log` entries after line 30 and
    2. The GUI feedback:

    But I'm still missing something right? If everything is configured correctly, what should be the next steps to activate the certificates? Is there an backend option to activate them? Are they activated by default? Do I need to set them up first? I can't find the certificate tab mentioned here and here.

    best regards

    Chris

    Attachments
    config.json
    ilServer.ini
  • utesche
    utesche | utesche | 12. Sep 2024, 17:39
    Re(3): How to activate ILIAS certificates
    Hello Chris,

    the java server supports both (lucene search and certificate production) independently - so if your lucene search is functional, no technical issue concerning the communcation to the server is to be expected. Now it's a GUI thing.
    Currently my own test environment is not set up properly - I can not give further advice in configuring the certificate configuration in the GUI, sorry for that...

    wbr,
    Uwe
  • csidirop
    csidirop | csidirop | 16. Sep 2024, 10:22
    Re(4): How to activate ILIAS certificates

    Okay thank you anyway.

    Any idea who I could approach? Maybe we should update the installation instructions then too.

  • csidirop
    csidirop | csidirop | 17. Sep 2024, 16:12
    Edited on: 17. Sep 2024, 16:20 - by csidirop | csidirop
    Re(5): How to activate ILIAS certificates

    Nevermind, I got it. Somewhere between all my tests and resetups I forgot that (and where and if and ...) I had to activate the certificate via `Administration -> Achievements -> Certificates` !!!

    Can we add this to the install instructions? And while we update those, can we remove following part: 

    Quote
    ILIAS can generate a proper configuration file via the Administration menu ("Administration -> General Settings -> Server -> Java-Server -> Create Configuration File"). Please note that the configuration file is not directly written to the file system, you MUST copy the displayed content and create the file manually.

     Because that should be outdated, right?

    Plus: I believe `<YOUR_ILIAS_DIR>/Services/WebServices/RPC/lib/ilServer.properties` or `<YOUR_ILIAS_DIR>/Services/WebServices/RPC/lib/ilServer.ini` is not needed. At least removed it, restarted and it still works. Can someone confirm this?

    Is the Ilias documentation generated from the install.md on github? If so, then I can create a PR.

  • csidirop
    csidirop | csidirop | 13. Nov 2024, 17:25
    Re(6): How to activate ILIAS certificates
    Btw. I created a PR to correct and clarify the process.: #8369