Author Topic: yum Instalation 1.5.0 OK, but unable to access...  (Read 3161 times)

mhcordeiro

  • Newbie
  • *
  • Posts: 12
  • Karma: 0
    • View Profile
    • Email
yum Instalation 1.5.0 OK, but unable to access...
« on: December 23, 2008, 19:46:19 »
Hello All, I have sucessfully installed Queuemetrics 1.5.0 thru yum process, and everything went very well.
I'm using CentOS 4.4 and Asterisk 1.4.22.

However, when I tried to access http://server:8080/queuemetrics it didn't work. When trying to access http://server:8080 it also didn't work.

I tried to restart queuemetrics as follows, but it also didn't work.
[root@asterisk WEB-INF]# /etc/init.d/queuemetrics restart
Stopping QueueMetrics: Using CATALINA_BASE:   /usr/local/queuemetrics/tomcat
Using CATALINA_HOME:   /usr/local/queuemetrics/tomcat
Using CATALINA_TMPDIR: /usr/local/queuemetrics/tomcat/temp
Using JAVA_HOME:       /usr/local/queuemetrics/java
Starting QueueMetrics:  Using CATALINA_BASE:   /usr/local/queuemetrics/tomcat
Using CATALINA_HOME:   /usr/local/queuemetrics/tomcat
Using CATALINA_TMPDIR: /usr/local/queuemetrics/tomcat/temp
Using JAVA_HOME:       /usr/local/queuemetrics/java

Then I tried checking the status of the queuemetrics process, and it looks OK. (I guess):

[root@asterisk WEB-INF]# ps -ef | grep queuemetrics
root      3368     1  0 17:55 ?        00:00:00 /usr/bin/perl /usr/local/qloader/qloader.pl -h localhost -d queuemetrics -u queuemetrics -p javadude /var/log/asterisk/queue_log P001 /var/log/asterisk/qloaderd.log
root      4508     1  1 18:47 pts/0    00:00:02 /usr/local/queuemetrics/java/bin/java -Xms128M -Xmx128M -Djava.endorsed.dirs=/usr/local/queuemetrics/tomcat/common/endorsed -classpath /usr/local/queuemetrics/java/lib/tools.jar:/usr/local/queuemetrics/tomcat/bin/bootstrap.jar:/usr/local/queuemetrics/tomcat/bin/commons-logging-api.jar -Dcatalina.base=/usr/local/queuemetrics/tomcat -Dcatalina.home=/usr/local/queuemetrics/tomcat -Djava.io.tmpdir=/usr/local/queuemetrics/tomcat/temp org.apache.catalina.startup.Bootstrap start
root      4553  4209  0 18:52 pts/0    00:00:00 grep queuemetrics

Everytime I try to access thru my web browser, I get "Internet Explorer cannot display the webpage".

Any clues that what might be wrong, or any configuration I should check??

Thanks,

Marco Cordeiro

Justinian

  • Newbie
  • *
  • Posts: 1
  • Karma: 0
    • View Profile
Re: yum Instalation 1.5.0 OK, but unable to access...
« Reply #1 on: December 23, 2008, 23:43:38 »
I am running into the same issue. 

I see that 8080 is being listened to by Python which seems odd to me but might be standard (I was expecting apache or tomcat).

I updated server.xml and changed to 8081 and now I get the login page.

Does anyone know if this will cause a problem in the future?

QueueMetrics

  • Loway
  • Hero Member
  • *
  • Posts: 2999
  • Karma: 39
    • View Profile
    • QueueMetrics
Re: yum Instalation 1.5.0 OK, but unable to access...
« Reply #2 on: December 24, 2008, 11:34:52 »
There must be something else attached to the default port 8080.

Try this

Code: [Select]
[root@server ~]# lsof -i -P -n | grep 8080
java       2205    root    5u  IPv6    5825       TCP *:8080 (LISTEN)
In this case we have a Java process whose PID is 2205.
To see its actual line:

Code: [Select]
[root@server ~]# ps -fp 2205
UID        PID  PPID  C STIME TTY          TIME CMD
root      2205     1  0 Nov28 ?        00:26:35 /usr/local/queuemetrics/java/bin/java -Xms128M -Xmx128M -Djava.endorsed....

If you have some other program on port 8080, turn it off and restart QueueMetrics.

If there is nothing else on port 8080, try disabling iptables; if it's actually iptables, you should create a rule for QM.
 

mhcordeiro

  • Newbie
  • *
  • Posts: 12
  • Karma: 0
    • View Profile
    • Email
Re: yum Instalation 1.5.0 OK, but unable to access...
« Reply #3 on: December 26, 2008, 13:39:30 »
It was really the iptables. After disabling it, I was able to access the system.

Thanks for the tip.

Marco

QueueMetrics

  • Loway
  • Hero Member
  • *
  • Posts: 2999
  • Karma: 39
    • View Profile
    • QueueMetrics
Re: yum Instalation 1.5.0 OK, but unable to access...
« Reply #4 on: December 29, 2008, 20:58:31 »
Thanks. We'll add it to the FAQ.