GNU/Linux >> Tutoriels Linux >  >> Linux

WebLogic ne démarre pas avec l'erreur "Aucun routeur disponible vers la destination"

Cet article concerne WebLogic ne démarre pas. Nous allons donc le réparer.

Je déteste Java et son écosystème. Il y a quelques jours, l'un de nos WebLogic a manqué d'espace disque et le processus s'est arrêté.

WebLogic ne démarre pas :le problème

Après avoir agrandi notre disque, notre partition et notre système de fichiers, WebLogic refuse toujours de démarrer avec un message étrange :

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

Pour une raison quelconque, il n'y avait pas de route vers le local machine(!). Au moins Weblogic l'a dit, et Weblogic ne démarre pas. Juste au cas où j'aurais vérifié /etc/hosts fichier pour voir s'il y a une entrée pour localhost, et bien sûr il y en a une.

Cette erreur concernant l'absence de routeur vers la destination s'est répétée encore et encore. Vérifions le journal du gestionnaire de nœud :

<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 seule information utile sur le journal du gestionnaire de nœuds que j'ai trouvée est le chemin d'accès au journal AdminServer. Ce journal du serveur d'administration est plein de ces très longs messages de débogage Java qui ne disaient presque rien. Mais dans tout ce texte, quelque chose attire mon attention :

(...) <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.> (...)

Après quelques minutes de recherche sur Google, j'ai trouvé la cause, le nom du fichier et la solution à cette erreur :il y a ce fichier $DOMAIN/servers/AdminServer/data/ldap/conf/replicas.prop c'était vide, pas corrompu dans mon cas, mais vide, vide comme dans une taille de zéro octet. Et c'est pourquoi WebLogic n'a pas démarré.

WebLogic ne démarre pas – Solution

La solution ? supprimez ou renommez ce maudit fichier et essayez de redémarrer WebLogic à nouveau et ce fichier sera recréé. Ou peut-être que je ne déteste pas Java (peut-être), mais je déteste weblogic.

Donc, vous savez comment réparer WebLogic ne démarre pas.


Linux
  1. Heure de début du processus avec fuseau horaire ?

  2. Comment configurer un serveur en tant que routeur avec la mise en forme du trafic ?

  3. L'e-mail rebondit avec l'erreur "domaine de messagerie non acheminable"

  4. Surveiller un serveur avec Munin

  5. Démarrer une session de console d'urgence

Configuration d'un serveur OpenVPN avec Tomato router et Viscosity

500 Erreur de serveur

Correction d'une erreur de tuyau cassé avec une connexion SSH

Télécharger des fichiers avec Monsta FTP

Configuration initiale du serveur avec Ubuntu 18.04

Administrateur Windows cherchant à démarrer petit avec le serveur de fichiers Linux (ubuntu)