[Résolu] Utilisateur ou mot de passe invalide

Bonjour,

Je viens d’installer complètement BlueMind 2.0.
Et il fonctionnait sans problème hier.
Sans doute à cause de l’installation d’un autre soft, je ne parvient plus à me connecte plus sur aucun des comptes (admin@[domaine] admin0@global.virt ).
Pourtant, dans la base, les users sont bien là avec le bon md5 du pw.

Voici le var/log/bm-hps/hps.log :

2013-06-05 13:47:40,931 n.b.l.c.LocatorClient ERROR - java.net.ConnectException: No route to host to http://192.168.1.151:8084/location/host/bm/core/admin@nmed.lan
java.util.concurrent.ExecutionException: java.net.ConnectException: No route to host to http://192.168.1.151:8084/location/host/bm/core/admin@nmed.lan
at com.ning.http.client.providers.netty.NettyResponseFuture.abort(NettyResponseFuture.java:327) ~[na:na]
at com.ning.http.client.providers.netty.NettyConnectListener.operationComplete(NettyConnectListener.java:107) ~[na:na]
at org.jboss.netty.channel.DefaultChannelFuture.notifyListener(DefaultChannelFuture.java:427) ~[netty-3.6.5.Final.jar:na]
at org.jboss.netty.channel.DefaultChannelFuture.notifyListeners(DefaultChannelFuture.java:418) ~[netty-3.6.5.Final.jar:na]
at org.jboss.netty.channel.DefaultChannelFuture.setFailure(DefaultChannelFuture.java:380) ~[netty-3.6.5.Final.jar:na]
at org.jboss.netty.channel.socket.nio.NioClientBoss.processSelectedKeys(NioClientBoss.java:109) ~[netty-3.6.5.Final.jar:na]
at org.jboss.netty.channel.socket.nio.NioClientBoss.process(NioClientBoss.java:79) ~[netty-3.6.5.Final.jar:na]
at org.jboss.netty.channel.socket.nio.AbstractNioSelector.run(AbstractNioSelector.java:312) ~[netty-3.6.5.Final.jar:na]
at org.jboss.netty.channel.socket.nio.NioClientBoss.run(NioClientBoss.java:42) ~[netty-3.6.5.Final.jar:na]
at org.jboss.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:108) [netty-3.6.5.Final.jar:na]
at org.jboss.netty.util.internal.DeadLockProofWorker$1.run(DeadLockProofWorker.java:42) [netty-3.6.5.Final.jar:na]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [na:1.7.0_13]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [na:1.7.0_13]
at java.lang.Thread.run(Thread.java:722) [na:1.7.0_13]
Caused by: java.net.ConnectException: No route to host to http://192.168.1.151:8084/location/host/bm/core/admin@nmed.lan
at com.ning.http.client.providers.netty.NettyConnectListener.operationComplete(NettyConnectListener.java:103) ~[na:na]
… 12 common frames omitted
Caused by: java.net.NoRouteToHostException: No route to host
at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method) ~[na:1.7.0_13]
at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:692) ~[na:1.7.0_13]
at org.jboss.netty.channel.socket.nio.NioClientBoss.connect(NioClientBoss.java:150) ~[netty-3.6.5.Final.jar:na]
at org.jboss.netty.channel.socket.nio.NioClientBoss.processSelectedKeys(NioClientBoss.java:105) ~[netty-3.6.5.Final.jar:na]
at org.jboss.netty.channel.socket.nio.NioClientBoss.process(NioClientBoss.java:79) ~[netty-3.6.5.Final.jar:na]
at org.jboss.netty.channel.socket.nio.AbstractNioSelector.run(AbstractNioSelector.java:312) ~[netty-3.6.5.Final.jar:na]
at org.jboss.netty.channel.socket.nio.NioClientBoss.run(NioClientBoss.java:42) ~[netty-3.6.5.Final.jar:na]
… 3 common frames omitted
2013-06-05 13:47:40,933 n.b.p.h.i.HttpProxyServerHandler INFO - Missing or invalid BMHPS cookie, /bluemind_sso_security need reauth
2013-06-05 13:47:40,933 n.b.p.h.i.HttpProxyServerHandler INFO - reusing stored request id req7789999519869426323.hps

Qu’ai je fait de travers ??

Merci d’avance

JP

Il semblerait que le service bm-locator ne fonctionne plus chez vous.
Essayez d’exécuter la commande:

# /etc/init.d/bm-locator start

Pouvez-vous nous transmettre les logs /var/log/bm-locator/locator.log ?
Que donne la commande:

# ls -al /etc/rc?.d/*bm-locator*

BM-locator est running…

nmed@nmed:~$ sudo /etc/init.d/bm-locator start
[sudo] password for nmed:
Blue Mind locator Server already running.
nmed@nmed:~$ ls -al /etc/rc?.d/bm-locator
lrwxrwxrwx 1 root root 20 2013-06-05 02:31 /etc/rc0.d/K01bm-locator → …/init.d/bm-locator
lrwxrwxrwx 1 root root 20 2013-06-05 02:31 /etc/rc1.d/K01bm-locator → …/init.d/bm-locator
lrwxrwxrwx 1 root root 20 2013-06-05 02:31 /etc/rc2.d/S61bm-locator → …/init.d/bm-locator
lrwxrwxrwx 1 root root 20 2013-06-05 02:31 /etc/rc3.d/S61bm-locator → …/init.d/bm-locator
lrwxrwxrwx 1 root root 20 2013-06-05 02:31 /etc/rc4.d/S61bm-locator → …/init.d/bm-locator
lrwxrwxrwx 1 root root 20 2013-06-05 02:31 /etc/rc5.d/S61bm-locator → …/init.d/bm-locator
lrwxrwxrwx 1 root root 20 2013-06-05 02:31 /etc/rc6.d/K01bm-locator → …/init.d/bm-locator

et les dernières lignes du log de bm-locator :

2013-06-05 02:09:15,822 n.b.p.x.i.ConnectionPool INFO - Creating Physical connection…
2013-06-05 02:09:15,956 n.b.p.x.i.ConnectionPool INFO - Physical connection established.
2013-06-05 02:09:15,957 n.b.p.x.i.ConnectionPool INFO - Creating Physical connection…
2013-06-05 02:09:15,965 n.b.p.x.i.ConnectionPool INFO - Physical connection established.
2013-06-05 02:09:15,966 n.b.p.x.i.ConnectionPool INFO - Creating Physical connection…
2013-06-05 02:09:15,974 n.b.p.x.i.ConnectionPool INFO - Physical connection established.
2013-06-05 02:09:15,974 n.b.p.x.i.ConnectionPool INFO - Creating Physical connection…
2013-06-05 02:09:15,983 n.b.p.x.i.ConnectionPool INFO - Physical connection established.
2013-06-05 02:09:15,983 n.b.p.x.i.ConnectionPool INFO - Creating Physical connection…
2013-06-05 02:09:15,991 n.b.p.x.i.ConnectionPool INFO - Physical connection established.
2013-06-05 02:09:15,991 n.b.p.x.i.ConnectionPool INFO - Creating Physical connection…
2013-06-05 02:09:15,999 n.b.p.x.i.ConnectionPool INFO - Physical connection established.
2013-06-05 02:09:15,999 n.b.p.x.i.ConnectionPool INFO - Pool State after start is 0 used out of 6 connections
2013-06-05 02:09:16,005 n.b.p.x.i.PingThread INFO - created with 6 JDBC connections.
2013-06-05 02:21:33,504 n.b.l.LocatorService INFO - Starting BM Locator…
2013-06-05 02:21:36,319 n.b.l.LocatorVerticle INFO - created.
2013-06-05 02:21:36,320 n.b.l.LocatorVerticle INFO - created.
2013-06-05 02:21:37,656 n.b.l.LocatorService INFO - Deployement done with id: deployment-f02d4db0-f80e-4d08-a294-21cd2e84287a
2013-06-05 02:21:37,656 n.b.l.LocatorService INFO - Waiting for queries on port 8084
2013-06-05 10:02:45,297 n.b.l.LocatorService INFO - Starting BM Locator…
2013-06-05 10:02:48,018 n.b.l.LocatorVerticle INFO - created.
2013-06-05 10:02:48,065 n.b.l.LocatorVerticle INFO - created.
2013-06-05 10:02:49,129 n.b.l.LocatorService INFO - Deployement done with id: deployment-b02d2682-b327-4162-a809-bb1c62a49e46
2013-06-05 10:02:49,129 n.b.l.LocatorService INFO - Waiting for queries on port 8084
2013-06-05 10:31:33,550 n.b.l.LocatorService INFO - Starting BM Locator…
2013-06-05 10:31:36,674 n.b.l.LocatorVerticle INFO - created.
2013-06-05 10:31:36,691 n.b.l.LocatorVerticle INFO - created.
2013-06-05 10:31:38,103 n.b.l.LocatorService INFO - Deployement done with id: deployment-d6c681ae-da7d-496d-b118-ccd326aa9996
2013-06-05 10:31:38,104 n.b.l.LocatorService INFO - Waiting for queries on port 8084
2013-06-05 13:11:53,898 n.b.l.LocatorService INFO - Starting BM Locator…
2013-06-05 13:11:56,675 n.b.l.LocatorVerticle INFO - created.
2013-06-05 13:11:56,732 n.b.l.LocatorVerticle INFO - created.
2013-06-05 13:11:57,614 n.b.l.LocatorService INFO - Deployement done with id: deployment-51078d84-8ed3-49be-96ac-9629f28651b1
2013-06-05 13:11:57,615 n.b.l.LocatorService INFO - Waiting for queries on port 8084

L’adresse IP 192.168.1.151 est bien l’adresse de votre serveur Blue Mind ?

bien vu… je suis passé en IP statique… avec …152
Comment on change ?

Slt,

Ca y est, cela remarche. C’était un pb de Ubuntu.
J’avais modifié /etc/network/interfaces en rajoutant de quoi forcer en IP statique… car la voie normale Systeme/Préférence/Connexion réseau ne fonctionne pas (impossible d’enregistrer le changement en IP statique…).

Du coup je reste en DHCP

Désolé… vous n’y étiez pour rien …

Merci encore

Bon, cela ne me facilite pas la vie de rester en DHCP…
Pourquoi mon installation BM n’accepte que 192.168.1.151 ?
Y a-t-il un fichier où cette adresse a été malenconterusement enregistrée en paramètre de configuration ?
merci

Il est préférable d’installer Blue Mind sur un serveur avec une IP fixe (statique ou attribuée par un DHCP). Le changement de l’IP n’est pas sans conséquences.

Soit vous passez en statique en utilisant l’IP que vous a attribué le DHCP (192.168.1.151), soit il faut changer l’adresse IP de l’hôte, mais ceci n’est pas possible à faire depuis l’écran de la console d’administration (Gestion du systèmeServeurs de l’application). Vous pouvez faire:

# bmctl stop
# echo "UPDATE host SET host_ip='<nouvelle adresse ip>' WHERE host_ip='192.168.1.151'"| PGPASSWORD=bj psql -U bj -h localhost bj
# sed -i -s 's/192.168.1.151/nouvelle adresse ip/' /etc/postfix/transport
# postmap /etc/postfix/transport

Éditez aussi le fichier /etc/bnm/bm.ini et remplacez la ligne:

host = 192.168.1.151

par:

host = <nouvelle adresse ip>

Enfin, exécutez:

# bmctl start

Il faut s’assurer que tout reste cohérent, notamment concernant l’external URL renseigné.
Par ailleurs cette manipulation est possible lors des tests mais non supportée sur un serveur de production.