GNU/Linux >> Tutoriales Linux >  >> Linux

WebLogic no comienza con el error "no hay enrutador disponible para el destino"

Esta publicación es sobre WebLogic no se inicia. Así que vamos a arreglarlo.

Odio Java y su ecosistema. Hace unos días uno de nuestros WebLogic se quedó sin espacio en disco y el proceso murió.

WebLogic no arranca:el problema

Después de ampliar nuestro disco, partición y sistema de archivos, WebLogic aún se niega a comenzar con un mensaje extraño:

Connecting to t3://localhost:7001 with userid weblogic ...
This Exception occurred at some date and time.
javax.naming.CommunicationException: Failed to initialize JNDI context, tried 1 time or times totally, the interval of each time is 0ms..
t3://localhost:7001: Destination 127.0.0.1, 7001 unreachable.; nested exception is:.
<------>java.net.ConnectException: Connection refused (Connection refused); No available router to destination.; nested exception is:.
<------>java.rmi.ConnectException: No available router to destination. [Root exception is java.net.ConnectException: t3://localhost:7001: Destination 127.0.0.1, 7001 unreachable.; nested exception is:.
<------>java.net.ConnectException: Connection refused (Connection refused); No available router to destination.; nested exception is:.
<------>java.rmi.ConnectException: No available router to destination.]
--- Error al conectar al AdminServer, intentando iniciar... ---
Already connected to a Node Manager
Starting server AdminServer ...
This Exception occurred at some date and time.
weblogic.nodemanager.NMException: Received error message from Node Manager Server: [Server start command for WebLogic server 'AdminServer' failed due to: [Server failed to start up but Node Manager was not aware of the reason]. Please check Node Manager log and/or server

Por alguna razón, no había una ruta al local máquina(!). Al menos Weblogic lo dijo, y Weblogic no se inicia. Por si acaso revisé dos veces /etc/hosts para ver si hay una entrada para localhost y, por supuesto, la hay.

Ese error sobre ningún enrutador al destino se repetía una y otra vez. Revisemos el registro del administrador de nodos:

<INFO> <base_domain> <AdminServer> <Starting WebLogic server with command line: $DOMAIN/bin/startWebLogic.sh >
<INFO> <base_domain> <AdminServer> <Working directory is '$DOMAIN'>
<INFO> <base_domain> <AdminServer> <Server output log file is '$DOMAIN/servers/AdminServer/logs/AdminServer.out'>
<INFO> <base_domain> <AdminServer> <The server 'AdminServer' with process id 5793 is no longer alive; waiting for the process to die.>
<INFO> <base_domain> <AdminServer> <Server failed during startup. It may be retried according to the auto restart configuration.>
<INFO> <base_domain> <AdminServer> <Server failed but will not be restarted because the maximum number of restart attempts has been exceeded>
<WARNING> <Server start command for WebLogic server 'AdminServer' failed due to: [Server failed to start up but Node Manager was not aware of the reason]. Please check Node Manager log and/or server 'AdminServer' log for detailed information.

La única información útil sobre el registro del administrador de nodos que he encontrado es la ruta al registro de AdminServer. Ese registro del servidor de administración está lleno de esos mensajes de depuración de Java realmente largos que casi no dicen nada. Pero en todo ese texto algo me llama la atención:

(...) <Critical> <WebLogicServer> <BEA-000362> <Server failed. Reason: Error reading replicas property file, the file may be corrupted - original Exception: java.lang.NumberFormatException with message: null> 
<Notice> <WebLogicServer> <BEA-000365> <Server state changed to FAILED.> 
<Error> <WebLogicServer> <BEA-000383> <A critical service failed. The server will shut itself down.> 
<Notice> <WebLogicServer> <BEA-000365> <Server state changed to FORCE_SHUTTING_DOWN.> (...)

Después de buscar en Google durante varios minutos, encontré la causa, el nombre del archivo y la solución a ese error:existe este archivo $DOMAIN/servers/AdminServer/data/ldap/conf/replicas.prop eso estaba en blanco, no dañado en mi caso, pero en blanco, en blanco como en tamaño de cero bytes. Y es por eso que WebLogic no se inició.

WebLogic no arranca – Solución

¿La solución? elimine o cambie el nombre de ese maldito archivo e intente reiniciar WebLogic nuevamente y ese archivo se volverá a crear. O tal vez no odio Java (tal vez), pero odio weblogic.

Entonces, ya sabes cómo arreglar WebLogic no se inicia.


Linux
  1. ¿Hora de inicio del proceso con zona horaria?

  2. El correo electrónico rebota con el error "dominio de correo no enrutable"

  3. Iniciar una sesión de Consola de emergencia

  4. Vista previa de imágenes con ngx_http_image_filter_module

  5. Cómo configurar un servidor Linux como un enrutador con NAT

Configuración de un servidor OpenVPN con enrutador Tomato y Viscosity

500 error del servidor

Reparación de error de tubería rota con conexión SSH

Subir archivos con Monsta FTP

Configuración inicial del servidor con Ubuntu 18.04

Administrador de Windows que busca comenzar poco a poco con el servidor de archivos Linux (ubuntu)