By: Jyoti raj Jena user 13 May 2022 at 2:58 a.m. CDT

18 Responses
Jyoti raj Jena gravatar
Hi Gluu Team, I have installed Gluu server(4.1) in Ubantu(18.04) and enabled the oxd-server, while installing Gluu. After configuring the oxd-server.yml file i tried to restart the oxd-server but it is unable to restart the command i used for restarting is (#systemctl restart oxd-server) and the error is coming : "Failed to restart oxd-server.service: Unit oxd-server.service not found". So, kindly help me out and Please guide who to proceed next. Thanks.

By Mobarak Hosen Shakil staff 13 May 2022 at 11 p.m. CDT

Mobarak Hosen Shakil gravatar
Hi Jyoti, It seems the command is valid. I'm checking it. Will get back to you soon. Thanks, Regards ~ Shakil

By Mobarak Hosen Shakil staff 14 May 2022 at 2:36 a.m. CDT

Mobarak Hosen Shakil gravatar
Hi Jyoti, Did you try to restart from inside the gluu-server? following are the valid command: - **`gluu-serverd login`** - **`systemctl restart oxd-server`**

By Jyoti raj Jena user 17 May 2022 at 9:03 a.m. CDT

Jyoti raj Jena gravatar
Hello Mobarak Hosen Shakil, We have tried to restart it inside the gluu-server as well as outside the gluu server but it seems we are encountering with this error everytime we try to restart the oxd-server. "Job for oxd-server.service failed because the control process exited with error code. See "systemctl status oxd-server.service" and "journalctl -xe" for details." After using this command "systemctl status oxd-server.service" we are getting this error Logs:- -- Unit oxd-server.service has begun starting up. May 17 13:48:33 gluu.xxxx.xxxx systemd[1]: Failed to canonicalize path /usr/lib/systemd/system/oxd-server.service.d: Not a directory May 17 13:48:33 gluu.xxxx.xxxx oxd-server.sh[28722]: Starting oxd-server: May 17 13:48:37 gluu..xxxx.xxxx oxd-server.sh[28722]: Some errors encountered... May 17 13:48:37 gluu..xxxx.xxxx oxd-server.sh[28722]: See log below: May 17 13:48:37 gluu..xxxx.xxxx oxd-server.sh[28722]: Caused by: java.lang.IllegalStateException: Error starting RedisStandaloneProvider May 17 13:48:37 gluu..xxxx.xxxx oxd-server.sh[28722]: For details please check /var/log/oxd-server/oxd-server.log . May 17 13:48:37 gluu..xxxx.xxxx oxd-server.sh[28722]: Exiting... May 17 13:48:37 gluu..xxxx.xxxx systemd[1]: oxd-server.service: Control process exited, code=exited status=1 May 17 13:48:37 gluu..xxxx.xxxx systemd[1]: oxd-server.service: Failed with result 'exit-code'. May 17 13:48:37 gluu..xxxx.xxxx systemd[1]: Failed to start oxd-server daemon. Kindly please help me out with the solution. Thanks & Regards Jyoti

By Mobarak Hosen Shakil staff 18 May 2022 at 1:09 a.m. CDT

Mobarak Hosen Shakil gravatar
Please share `oxd-server.log` which is located in `/var/log/oxd-server` inside gluu-server chroot.

By Mobarak Hosen Shakil staff 18 May 2022 at 1:18 a.m. CDT

Mobarak Hosen Shakil gravatar
Please share `oxd-server.log` which is located in `/var/log/oxd-server` inside gluu-server chroot.

By Jyoti raj Jena user 18 May 2022 at 1:44 a.m. CDT

Jyoti raj Jena gravatar
Hello Mobarak Hosen Shakil, Here are the oxd-server.logs:- root@gluu:/var/log/oxd-server# tail -f oxd-server.log at io.dropwizard.Application.run(Application.java:93) at org.gluu.oxd.server.OxdServerApplication.main(OxdServerApplication.java:19) Caused by: java.lang.IllegalStateException: Error starting RedisStandaloneProvider at org.gluu.service.cache.RedisStandaloneProvider.create(RedisStandaloneProvider.java:62) at org.gluu.oxd.server.persistence.RedisPersistenceService.create(RedisPersistenceService.java:40) ... 9 common frames omitted Caused by: java.lang.ArrayIndexOutOfBoundsException: 1 at org.gluu.service.cache.RedisClusterProvider.hosts(RedisClusterProvider.java:54) at org.gluu.service.cache.RedisStandaloneProvider.create(RedisStandaloneProvider.java:36) ... 10 common frames omitted

By Mobarak Hosen Shakil staff 18 May 2022 at 11:23 p.m. CDT

Mobarak Hosen Shakil gravatar
Hi Jyoti, Why it's trying to recognize as a directory??: > **Failed to canonicalize path /usr/lib/systemd/system/oxd-server.service.d: Not a directory** > Can you please share the config you have made in oxd-server? If possible you can start fresh installation with our latest gluu server 4.4 Regards ~ Shakil

By Jyoti raj Jena user 19 May 2022 at 6:04 a.m. CDT

Jyoti raj Jena gravatar
Hello Shakil, Here is the Server configuration:- ``` # server configuration use_client_authentication_for_pat: true trust_all_certs: false trust_store_path: '' trust_store_password: '' enable_jwks_generation: true crypt_provider_key_store_path: /opt/oxd-server/conf/oxd-jwks.pkcs12 crypt_provider_key_store_password: example crypt_provider_dn_name: CN=oxd CA Certificates support-google-logout: true state_expiration_in_minutes: 5 nonce_expiration_in_minutes: 5 db_cleanup_interval_in_hours: 1 rp_cache_expiration_in_minutes: 60 public_op_key_cache_expiration_in_minutes: 60 protect_commands_with_access_token: true accept_id_token_without_signature: false protect_commands_with_oxd_id: [] uma2_auto_register_claims_gathering_endpoint_as_redirect_uri_of_client: false add_client_credentials_grant_type_automatically_during_client_registration: true migration_source_folder_path: '' allowed_op_hosts: [] bind_ip_addresses: - 10.190.0.39 storage: gluu_server_configuration enable_tracing: false # tracer: jaeger or zipkin tracer: jaeger tracer_host: localhost tracer_port: 5775 storage_configuration: baseDn: o=gluu type: /etc/gluu/conf/gluu.properties connection: /etc/gluu/conf/gluu-sql.properties salt: /etc/gluu/conf/salt # Connectors server: applicationConnectors: - type: https port: 8443 keyStorePath: /opt/oxd-server/conf/oxd-server.pkcs12 keyStorePassword: example keyStoreType: PKCS12 keyStoreProvider: SUN trustStoreType: PKCS12 jceProvider: org.bouncycastle.jce.provider.BouncyCastleProvider validateCerts: false adminConnectors: - type: https port: 8444 keyStorePath: /opt/oxd-server/conf/oxd-server.pkcs12 keyStorePassword: example keyStoreType: PKCS12 keyStoreProvider: SUN trustStoreType: PKCS12 jceProvider: org.bouncycastle.jce.provider.BouncyCastleProvider validateCerts: false # Logging settings. logging: # Logger-specific levels. loggers: org.gluu: TRACE org.reflections.Reflections: ERROR # Logback's Time Based Rolling Policy - archivedLogFilenamePattern: /tmp/application-%d{yyyy-MM-dd}.log.gz # Logback's Size and Time Based Rolling Policy - archivedLogFilenamePattern: /tmp/application-%d{yyyy-MM-dd}-%i.log.gz # Logback's Fixed Window Rolling Policy - archivedLogFilenamePattern: /tmp/application-%i.log.gz appenders: - type: console - type: file threshold: TRACE logFormat: '%-6level [%d{HH:mm:ss.SSS}] [%t] %logger{5} - %X{code} %msg %n' currentLogFilename: /var/log/oxd-server/oxd-server.log archivedLogFilenamePattern: /var/log/oxd-server/oxd-server-%d{yyyy-MM-dd}-%i.log.gz archivedFileCount: 7 timeZone: UTC maxFileSize: 10MB defaultSiteConfig: op_configuration_endpoint: '' response_types: [code] grant_type: [authorization_code] acr_values: [''] scope: [openid, profile, email] ui_locales: [en] claims_locales: [en] contacts: [] redirect_uris: [] logout_redirect_uris: [] client_name: '' client_jwks_uri: '' token_endpoint_auth_method: '' token_endpoint_auth_signing_alg: '' request_uris: [] front_channel_logout_uri: '' sector_identifier_uri: '' claims_redirect_uri: [] client_id: '' client_secret: '' trusted_client: false access_token_as_jwt: false access_token_signing_alg: '' rpt_as_jwt: false logo_uri: '' client_uri: '' policy_uri: '' front_channel_logout_session_required: false tos_uri: '' jwks: '' id_token_binding_cnf: '' tls_client_auth_subject_dn: '' run_introspection_script_beforeaccess_token_as_jwt_creation_and_include_claims: false id_token_signed_response_alg: '' id_token_encrypted_response_alg: '' id_token_encrypted_response_enc: '' user_info_signed_response_alg: '' user_info_encrypted_response_alg: '' user_info_encrypted_response_enc: '' request_object_signing_alg: '' request_object_encryption_alg: '' request_object_encryption_enc: '' default_max_age: require_auth_time: false initiate_login_uri: '' authorized_origins: [] access_token_lifetime: software_id: '' software_version: '' software_statement: '' custom_attributes: {} ``` I had already started the fresh installation of latest gluu server 4.4 and the Server configuration file i have sent is of gluu 4.4. The issue of 4.4 gluu server is it is giving this error after the installation completes. "Gluu Server installation Successful! point your browser to https://abcd.gluu.jdcndjsvn". But when i tried to open the website link i am getting "503. That's an error. The Service you requested is not available at this time. Please try later again." Kindly Please revert me back with the solutions. Thanks & Regards, Jyoti

By Mobarak Hosen Shakil staff 19 May 2022 at 9:58 p.m. CDT

Mobarak Hosen Shakil gravatar
How many services you have selected during [installation?](https://gluu.org/docs/gluu-server/4.4/installation-guide/setup_py/#setup-tui) Kindly, check that your VM meet the [requirements](https://gluu.org/docs/gluu-server/4.4/installation-guide/#testing-environment). Please run each of the below command to check the status of these services: ``` gluu-serverd login systemctl status opendj systemctl status identity systemctl status oxauth systemctl status oxd-server ``` Regards ~ Shakil

By Jyoti raj Jena user 20 May 2022 at 1:38 a.m. CDT

Jyoti raj Jena gravatar
Hello Shakil, During Installation i have selected only one service i.e Oxd-server. And according to the installation guide i prepared the VM which meets all the requirements. I prepared the VM with 2CPU units, 8GB RAM, 50 GB disk space. Here is the status of each services. ``` root@gluu:~# systemctl status opendj ● opendj.service - OpenDJ Directory Service Loaded: loaded (/etc/systemd/system/opendj.service; disabled; vendor preset: enabled) Active: inactive (dead) root@gluu:~# systemctl status identity ● identity.service - Identity service Loaded: loaded (/etc/systemd/system/identity.service; enabled; vendor preset: enabled) Drop-In: /etc/systemd/system/identity.service.d └─override.conf Active: failed (Result: timeout) since Wed 2022-05-18 10:59:15 UTC; 1 day 18h ago Process: 2304 ExecStart=/opt/dist/scripts/identity start (code=killed, signal=TERM) May 18 10:54:14 gluu.iserveu.website systemd[1]: Starting Identity service... May 18 10:54:16 gluu.iserveu.website identity[2304]: Starting Jetty: 2022-05-18 10:54:16.445:INFO :oe.jetty:main: Console stderr/stdout captured to| / May 18 10:59:15 gluu.iserveu.website systemd[1]: identity.service: Start operation timed out. Terminating. May 18 10:59:15 gluu.iserveu.website identity[2304]: . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . May 18 10:59:15 gluu.iserveu.website systemd[1]: identity.service: Failed with result 'timeout'. May 18 10:59:15 gluu.iserveu.website systemd[1]: Failed to start Identity service. root@gluu:~# systemctl status oxauth ● oxauth.service - Oxauth service Loaded: loaded (/etc/systemd/system/oxauth.service; enabled; vendor preset: enabled) Drop-In: /etc/systemd/system/oxauth.service.d └─override.conf Active: failed (Result: timeout) since Wed 2022-05-18 10:54:12 UTC; 1 day 19h ago Process: 1564 ExecStart=/opt/dist/scripts/oxauth start (code=killed, signal=TERM) May 18 10:49:12 gluu.iserveu.website systemd[1]: Starting Oxauth service... May 18 10:49:14 gluu.iserveu.website oxauth[1564]: Starting Jetty: 2022-05-18 10:49:14.187:INFO :oe.jetty:main: Console stderr/stdout captured to| /op May 18 10:54:12 gluu.iserveu.website systemd[1]: oxauth.service: Start operation timed out. Terminating. May 18 10:54:12 gluu.iserveu.website oxauth[1564]: . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . May 18 10:54:12 gluu.iserveu.website systemd[1]: oxauth.service: Failed with result 'timeout'. May 18 10:54:12 gluu.iserveu.website systemd[1]: Failed to start Oxauth service. lines 1-13/13 (END) root@gluu:~# systemctl status oxd-server ● oxd-server.service - oxd-server daemon Loaded: loaded (/etc/systemd/system/oxd-server.service; enabled; vendor preset: enabled) Drop-In: /etc/systemd/system/oxd-server.service.d └─override.conf Active: active (running) since Wed 2022-05-18 10:59:17 UTC; 1 day 18h ago Process: 3043 ExecStart=/opt/oxd-server/bin/oxd-server start (code=exited, status=0/SUCCESS) Main PID: 3089 (java) CGroup: /system.slice/oxd-server.service └─3089 /opt/jre/bin/java -server -Xms256m -Xmx512m -XX:MaxMetaspaceSize=256m -XX:+DisableExplicitGC -Djava.net.preferIPv4Stack=true -cp /opt/oxd-s May 18 10:59:17 gluu.iserveu.website systemd[1]: Starting oxd-server daemon... May 18 10:59:17 gluu.iserveu.website oxd-server[3043]: Starting oxd-server: May 18 10:59:17 gluu.iserveu.website oxd-server[3043]: PID: [3089] May 18 10:59:17 gluu.iserveu.website oxd-server[3043]: OK Wed May 18 10:59:17 UTC 2022 May 18 10:59:17 gluu.iserveu.website systemd[1]: Started oxd-server daemon. May 18 10:59:20 gluu.iserveu.website oxd-server[3043]: WARNING: An illegal reflective access operation has occurred May 18 10:59:20 gluu.iserveu.website oxd-server[3043]: WARNING: Illegal reflective access by com.google.inject.internal.cglib.core.$ReflectUtils$2 (file:/opt May 18 10:59:20 gluu.iserveu.website oxd-server[3043]: WARNING: Please consider reporting this to the maintainers of com.google.inject.internal.cglib.core.$R May 18 10:59:20 gluu.iserveu.website oxd-server[3043]: WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations May 18 10:59:20 gluu.iserveu.website oxd-server[3043]: WARNING: All illegal access operations will be denied in a future release ...skipping... ● oxd-server.service - oxd-server daemon Loaded: loaded (/etc/systemd/system/oxd-server.service; enabled; vendor preset: enabled) Drop-In: /etc/systemd/system/oxd-server.service.d └─override.conf Active: active (running) since Wed 2022-05-18 10:59:17 UTC; 1 day 18h ago Process: 3043 ExecStart=/opt/oxd-server/bin/oxd-server start (code=exited, status=0/SUCCESS) Main PID: 3089 (java) CGroup: /system.slice/oxd-server.service └─3089 /opt/jre/bin/java -server -Xms256m -Xmx512m -XX:MaxMetaspaceSize=256m -XX:+DisableExplicitGC -Djava.net.preferIPv4Stack=true -cp /opt/oxd-s May 18 10:59:17 gluu.iserveu.website systemd[1]: Starting oxd-server daemon... May 18 10:59:17 gluu.iserveu.website oxd-server[3043]: Starting oxd-server: May 18 10:59:17 gluu.iserveu.website oxd-server[3043]: PID: [3089] May 18 10:59:17 gluu.iserveu.website oxd-server[3043]: OK Wed May 18 10:59:17 UTC 2022 May 18 10:59:17 gluu.iserveu.website systemd[1]: Started oxd-server daemon. May 18 10:59:20 gluu.iserveu.website oxd-server[3043]: WARNING: An illegal reflective access operation has occurred May 18 10:59:20 gluu.iserveu.website oxd-server[3043]: WARNING: Illegal reflective access by com.google.inject.internal.cglib.core.$ReflectUtils$2 (file:/opt May 18 10:59:20 gluu.iserveu.website oxd-server[3043]: WARNING: Please consider reporting this to the maintainers of com.google.inject.internal.cglib.core.$R May 18 10:59:20 gluu.iserveu.website oxd-server[3043]: WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations May 18 10:59:20 gluu.iserveu.website oxd-server[3043]: WARNING: All illegal access operations will be denied in a future release ``` Kindly revert me back with the solution. Thanks & Regards Jyoti

By Mobarak Hosen Shakil staff 20 May 2022 at 4:53 a.m. CDT

Mobarak Hosen Shakil gravatar
I see each of the services failed to start. Only, oxd-server is running. First, try to restart gluu-server: > **`gluu-serverd restart`** after few seconds, check is gluu-server running or not: > **`gluu-serverd status`** log in: > **`gluu-serverd login`** after then again check status of those services. and then try to browser your server.

By Jyoti raj Jena user 20 May 2022 at 8:09 a.m. CDT

Jyoti raj Jena gravatar
Hello Shakil, I followed all the steps you mentioned in the previously but still i am getting the same errors for the steps. What should i do now, Kindly help me. Thanks & Regards Jyoti

By Mobarak Hosen Shakil staff 23 May 2022 at 8:36 p.m. CDT

Mobarak Hosen Shakil gravatar
One more thing: ``` gluu-serverd login systemctl status apache2 ``` Please check whether `The Apache server is running or not. If nothing works, I believe your installation process was not okay. In that case, We recommend doing a fresh installation. During fresh installation, kindly record a video/screenshot to ensure that your setup is in the right direction.

By Jyoti raj Jena user 26 May 2022 at 1:19 p.m. CDT

Jyoti raj Jena gravatar
Hello Shakil, According to your recomendation, I did a fresh installation of Gluu server 4.4 version and it is sucessfully downloaded and is working fine. All the services are running except the opendj is inactive. But i had something to add in the configuration of Oxd-server but after adding the configuration in the oxd-server.yml file i tried to restart the oxd-server (**systemctl restart oxd-server**) but it is still coming the same issue as it was coming before "Failed to restart oxd-server.service: Unit oxd-server.service not found." But the oxd-server.service is present there. Kindly revert back with the solution. Thanks & Regards, Jyoti

By Mobarak Hosen Shakil staff 30 May 2022 at 12:53 a.m. CDT

Mobarak Hosen Shakil gravatar
Hi Jyoti, Sorry to say but I request you to record a video during installation. Otherwise, It's not possible to guess what is happening here. If opendj not run, gluu server won't work > All the services are running except the opendj is inactive After your initial installation, can you able to login into your gluu-server? Did oxd work that time?

By Jyoti raj Jena user 02 Jun 2022 at 8:34 a.m. CDT

Jyoti raj Jena gravatar
Hello Shakil, I have created a new VM and installed the gluu-server in that VM and also recorded the installation process in it. After installing i tried to check the services if it is running or not. But i got to know that all my others services are running expect the **opendj** is inactive. I am attaching the installation video as well as the status of all the services screenshots kindly go through it and verify if i had followed all the steps of creating the Vm and installing the Gluu-server in it and why is the opendj is always showing inactive. Installation Video:- https://drive.google.com/file/d/1PulIzVb_KvhdgKvykIu8GPVNJ-BOor6w/view?usp=sharing Status Pic:- https://drive.google.com/drive/folders/1WpGHLzZWZA_Yx_z5bt-bp46qea1IR3Ek?usp=sharing Kindly revert me back, I am waiting for your valuable response. Thanks & Regards, Jyoti

By Mobarak Hosen Shakil staff 02 Jun 2022 at 8:01 p.m. CDT

Mobarak Hosen Shakil gravatar
Hi Jyoti, Thanks for sharing such a great video. I have watched it. During the installation, I saw you have selected `remote mysql` instead of `OpenDJ`. That means you are not using `opendj` here. Gluu server is working fine as you were able to login into your server. Regards ~ Shakil

By Mobarak Hosen Shakil staff 08 Jun 2022 at 1:46 a.m. CDT

Mobarak Hosen Shakil gravatar
closing this ticket. Please reopen if require.