By: Hamdi Bahrini user 03 Oct 2019 at 8:53 p.m. CDT

3 Responses
Hamdi Bahrini gravatar
hi community I installed version 4.0 of the gluu (beta) server on a centOS 7 VM to test gluu-radius. The gluu-radius.service is failed, I tried to restart it but still the same problem. The log file indicates that the registration of the cryptographic service has failed. /opt/gluu/radius/logs/gluu-radius.log ``` [INFO ] 2019-10-03 21:37:39.138 [main] ServerEntry - [INFO ] 2019-10-03 21:37:39.165 [main] ServerEntry - [INFO ] 2019-10-03 21:37:39.165 [main] ServerEntry - +---------------------------------------------------------+ [INFO ] 2019-10-03 21:37:39.166 [main] ServerEntry - + Gluu Radius Server + [INFO ] 2019-10-03 21:37:39.166 [main] ServerEntry - + Copyright (c) Gluu Inc. + [INFO ] 2019-10-03 21:37:39.167 [main] ServerEntry - +---------------------------------------------------------+ [INFO ] 2019-10-03 21:37:39.169 [main] ServerEntry - Initializing server [INFO ] 2019-10-03 21:37:39.169 [main] ServerEntry - Application bootstrap configuration file: /etc/gluu/conf/radius/gluu-radius.properties [INFO ] 2019-10-03 21:37:39.170 [main] ServerEntry - Initializing security components [INFO ] 2019-10-03 21:37:39.527 [main] ServerEntry - Security components initialization successful [INFO ] 2019-10-03 21:37:39.528 [main] ServerEntry - Registering bootstrap configuration service [INFO ] 2019-10-03 21:37:39.750 [main] ServerEntry - Bootstrap configuration service registered [INFO ] 2019-10-03 21:37:39.750 [main] ServerEntry - Initializing persistence layer [INFO ] 2019-10-03 21:37:40.158 [main] LdapConnectionProvider - Attempting to create connection pool: 1 [INFO ] 2019-10-03 21:37:41.168 [main] LdapConnectionProvider - Attempting to create connection pool: 1 [INFO ] 2019-10-03 21:37:42.114 [main] LdapEntryManagerFactory - Created LdapEntryManager: org.gluu.persist.ldap.operation.impl.LdapOperationsServiceImpl@4be29ed9 [INFO ] 2019-10-03 21:37:42.115 [main] ServerEntry - Persistence layer initialized [INFO ] 2019-10-03 21:37:42.115 [main] ServerEntry - Registering clients service [INFO ] 2019-10-03 21:37:42.117 [main] ServerEntry - Clients service registration complete [INFO ] 2019-10-03 21:37:42.117 [main] ServerEntry - Registering server configuration service [INFO ] 2019-10-03 21:37:42.119 [main] ServerEntry - Server configuration service registration complete [INFO ] 2019-10-03 21:37:42.119 [main] ServerEntry - Registering OpenID configuration service [INFO ] 2019-10-03 21:37:43.666 [main] ServerEntry - OpenID configuration service registration complete [INFO ] 2019-10-03 21:37:43.667 [main] ServerEntry - Registering cryptographic service [ERROR] 2019-10-03 21:37:43.852 [main] ServerEntry - /etc/certs/gluu-radius.private-key.pem (Permission denied) java.io.FileNotFoundException: /etc/certs/gluu-radius.private-key.pem (Permission denied) at java.io.FileOutputStream.open0(Native Method) ~[?:1.8.0_222] at java.io.FileOutputStream.open(FileOutputStream.java:270) ~[?:1.8.0_222] at java.io.FileOutputStream.<init>(FileOutputStream.java:213) ~[?:1.8.0_222] at java.io.FileOutputStream.<init>(FileOutputStream.java:162) ~[?:1.8.0_222] at java.io.FileWriter.<init>(FileWriter.java:90) ~[?:1.8.0_222] at org.gluu.radius.service.CryptoService.exportAuthPrivateKeyToPem(CryptoService.java:167) ~[super-gluu-radius-server.jar:?] at org.gluu.radius.service.CryptoService.exportAuthPrivateKeyToPem(CryptoService.java:155) ~[super-gluu-radius-server.jar:?] at org.gluu.radius.service.CryptoService.exportAuthPrivateKeyToPem(CryptoService.java:150) ~[super-gluu-radius-server.jar:?] at org.gluu.radius.ServerEntry.registerCryptoService(ServerEntry.java:197) [super-gluu-radius-server.jar:?] at org.gluu.radius.ServerEntry.main(ServerEntry.java:101) [super-gluu-radius-server.jar:?] [ERROR] 2019-10-03 21:37:43.868 [main] ServerEntry - Cryptographic service registration failed ```

By Dzouato Djeumen Rolain Bonaventure staff 04 Oct 2019 at 8:11 a.m. CDT

Dzouato Djeumen Rolain Bonaventure gravatar
Hello Ham Di, Please perform the following steps: 1. Login into your Gluu server instance. 2. Run the command `touch /etc/certs/gluu-radius.private-key.pem`. 3. Run the command `chown radius:gluu /etc/certs/gluu-radius.private-key.pem` This should make it work for now. Let me know how that goes.

By Hamdi Bahrini user 04 Oct 2019 at 10:09 p.m. CDT

Hamdi Bahrini gravatar
Hi Rolain, it works now..thank you for your help.

By Thomas Friedl user 27 Jul 2022 at 1:50 a.m. CDT

Thomas Friedl gravatar
I'm having a similar issue - although I'm using version 4.4 and the stack trace is slightly different. It's a fresh install on Ubuntu 20.x ``` [INFO ] 2022-07-27 06:44:15.545 [main] ServerEntry - [INFO ] 2022-07-27 06:44:15.563 [main] ServerEntry - [INFO ] 2022-07-27 06:44:15.564 [main] ServerEntry - +---------------------------------------------------------+ [INFO ] 2022-07-27 06:44:15.564 [main] ServerEntry - + Gluu Radius Server + [INFO ] 2022-07-27 06:44:15.564 [main] ServerEntry - + Copyright (c) Gluu Inc. + [INFO ] 2022-07-27 06:44:15.565 [main] ServerEntry - +---------------------------------------------------------+ [INFO ] 2022-07-27 06:44:15.565 [main] ServerEntry - Starting application in server mode. Configuration file: /etc/gluu/conf/radius/gluu-radius.properties [INFO ] 2022-07-27 06:44:15.566 [main] ServerEntry - Initializing security components [INFO ] 2022-07-27 06:44:15.879 [main] ServerEntry - Security components initialization successful [INFO ] 2022-07-27 06:44:15.879 [main] ServerEntry - Registering bootstrap configuration service [INFO ] 2022-07-27 06:44:15.903 [main] ServerEntry - Bootstrap configuration service registered [INFO ] 2022-07-27 06:44:15.903 [main] ServerEntry - Initializing persistence layer [INFO ] 2022-07-27 06:44:16.114 [main] Reflections - Reflections took 136 ms to scan 11 urls, producing 41 keys and 130 values [INFO ] 2022-07-27 06:44:16.146 [main] PersistanceFactoryService - Found '5' PersistenceEntryManagerFactory [INFO ] 2022-07-27 06:44:16.146 [main] PersistanceFactoryService - Found PersistenceEntryManagerFactory 'class org.gluu.orm.couchbase.impl.CouchbaseEntryManagerFactory' [INFO ] 2022-07-27 06:44:16.178 [main] PersistanceFactoryService - Found PersistenceEntryManagerFactory 'class org.gluu.persist.sql.impl.SqlEntryManagerFactory' [INFO ] 2022-07-27 06:44:16.179 [main] PersistanceFactoryService - Found PersistenceEntryManagerFactory 'class org.gluu.orm.hybrid.impl.HybridEntryManagerFactory' [INFO ] 2022-07-27 06:44:16.179 [main] PersistanceFactoryService - Found PersistenceEntryManagerFactory 'class org.gluu.persist.ldap.impl.LdapEntryManagerFactory' [INFO ] 2022-07-27 06:44:16.180 [main] PersistanceFactoryService - Found PersistenceEntryManagerFactory 'class org.gluu.persist.cloud.spanner.impl.SpannerEntryManagerFactory' [INFO ] 2022-07-27 06:44:16.477 [main] LdapConnectionProvider - Attempting to create connection pool: 1 [INFO ] 2022-07-27 06:44:17.274 [main] LdapConnectionProvider - Attempting to create connection pool: 1 [INFO ] 2022-07-27 06:44:17.603 [main] LdapConnectionProvider - Attempting to create connection pool: 1 [INFO ] 2022-07-27 06:44:18.235 [main] LdapEntryManagerFactory - Created LdapEntryManager: org.gluu.persist.ldap.operation.impl.LdapOperationServiceImpl@1b29d52b [INFO ] 2022-07-27 06:44:18.236 [main] ServerEntry - Persistence layer initialization successful [INFO ] 2022-07-27 06:44:18.237 [main] ServerEntry - Registering clients service [INFO ] 2022-07-27 06:44:18.238 [main] ServerEntry - Clients service registration successful [INFO ] 2022-07-27 06:44:18.241 [main] ServerEntry - Registering server configuration service [INFO ] 2022-07-27 06:44:18.242 [main] ServerEntry - Server configuration service registration failed [INFO ] 2022-07-27 06:44:18.249 [main] ServerEntry - Registering OpenID configuration service [INFO ] 2022-07-27 06:44:19.157 [main] ServerEntry - OpenID configuration service registration successful [INFO ] 2022-07-27 06:44:19.157 [main] ServerEntry - Registering cryptographic service [ERROR] 2022-07-27 06:44:19.167 [main] ServerEntry - Security Mode wasn't initialized. Call installBCProvider() before java.security.InvalidParameterException: Security Mode wasn't initialized. Call installBCProvider() before at org.gluu.oxauth.model.crypto.OxAuthCryptoProvider.solveKeyStorageType(OxAuthCryptoProvider.java:560) ~[oxauth-model-4.4.0.Final.jar:?] at org.gluu.oxauth.model.crypto.OxAuthCryptoProvider.<init>(OxAuthCryptoProvider.java:104) ~[oxauth-model-4.4.0.Final.jar:?] at org.gluu.oxauth.model.crypto.OxAuthCryptoProvider.<init>(OxAuthCryptoProvider.java:94) ~[oxauth-model-4.4.0.Final.jar:?] at org.gluu.oxauth.model.crypto.OxAuthCryptoProvider.<init>(OxAuthCryptoProvider.java:90) ~[oxauth-model-4.4.0.Final.jar:?] at org.gluu.radius.service.CryptoService.<init>(CryptoService.java:63) ~[super-gluu-radius-server.jar:?] at org.gluu.radius.ServerEntry.registerCryptoService(ServerEntry.java:355) ~[super-gluu-radius-server.jar:?] at org.gluu.radius.ServerEntry.main(ServerEntry.java:145) ~[super-gluu-radius-server.jar:?] [ERROR] 2022-07-27 06:44:19.172 [main] ServerEntry - Cryptographic service registration failed ```