OpenTSDB / opentsdb

A scalable, distributed Time Series Database.
http://opentsdb.net
GNU Lesser General Public License v2.1
5k stars 1.25k forks source link

OpenTSDB Web interface showing nothing other than header and footer #311

Open mithralaya opened 10 years ago

mithralaya commented 10 years ago

I have a temporary OpenTSDB and hbase hosted on a aws micro server. http://54.72.180.169:4242/

I have checked HBase and 2 tables are created by tsdb successfully without LZO compression.

I can successfully start the TSDB using the following command.

./build/tsdb tsd --port=4242 --staticroot=build/staticroot --cachedir=/tmp/tsd

But when I go to my web interface, I can see nothing but Open TSDB header and footer.

I get some warnings in my console whenever I refresh the page.

2014-04-10 09:05:23,972 WARN [New I/O worker #1] HttpQuery: [id: 0xd0cdd077, /83.217.124.75:46401 => /172.31.19.35:4242] File not found: build/staticroot/queryui.nocache.js (No such file or directory) 2014-04-10 09:05:23,973 WARN [New I/O worker #1] HttpQuery: [id: 0xd0cdd077, /83.217.124.75:46401 => /172.31.19.35:4242] Not Found: /s/queryui.nocache.js

Please help me with this.

Update: You can also have a look at my Hbase Installation information at

http://54.72.180.169:60010/ Many thanks,

Karthik

manolama commented 10 years ago

It sounds like the GWT compilation failed so you don't have the UI files. When you ran build.sh did you see lines like this: Compiling module tsd.QueryUi Compiling 6 permutations Compiling permutation 0... Compiling permutation 1... Compiling permutation 2... Compiling permutation 3... Compiling permutation 4... Compiling permutation 5... Compile of permutations succeeded Linking into /home/hobbes/ot/build/gwt/queryui Link succeeded Compilation succeeded -- 70.527s

If not, there should have been an error printed that will give you an idea of what went wrong.

mithralaya commented 10 years ago

Thank you :+1: , let me try that, I am gonna do a fresh install with hbase and opentsdb.

I will keep posting here..

Karthik

mithralaya commented 10 years ago

After a fresh install of everything. I successfully installed TSDB now its all working.

Thank you. Karthik

mithralaya commented 10 years ago

@manolama Thank you for your help. I successfully installed and its up and running at http://54.72.4.157:4242/

I am running tcollector in one of our servers(54.194.69.30), and I set the host in startstop.sh TSD_HOST=54.72.4.157 i did ./startstop start to run all the stats collector. Even noticed that in tsdb console log

[id: 0x5fc4bb31, /54.194.69.30:60203 => /172.31.14.125:4242] CONNECTED: /54.194.69.30:60203

On my tcollector node I did,

ps axl | grep tcollector and I can see 0 0 16796 16795 20 0 183712 10284 poll_s Sl pts/6 0:03 /usr/bin/python /home/mithralaya/tcollector/tcollector.py -c /home/mithralaya/tcollector/collectors -H 54.72.4.157 -t host=ip-172-31-12-203 -P /var/run/tcollector.pid 4 65534 16806 16796 20 0 39864 5884 poll_s Ss ? 0:00 /usr/bin/python /home/mithralaya/tcollector/collectors/0/procstats.py 4 65534 16808 16796 39 19 39700 5884 poll_s SNs ? 0:00 /usr/bin/python /home/mithralaya/tcollector/collectors/0/procnettcp.py 4 65534 16816 16796 20 0 39648 5668 poll_s Ss ? 0:00 /usr/bin/python /home/mithralaya/tcollector/collectors/0/iostat.py 4 65534 16818 16796 20 0 39648 5648 poll_s Ss ? 0:00 /usr/bin/python /home/mithralaya/tcollector/collectors/0/ifstat.py 4 65534 16822 16796 20 0 41848 5812 poll_s Ss ? 0:00 /usr/bin/python /home/mithralaya/tcollector/collectors/0/netstat.py 4 65534 16824 16796 20 0 39648 5772 poll_s Ss ? 0:00 /usr/bin/python /home/mithralaya/tcollector/collectors/0/dfstat.py 0 0 16846 16771 20 0 8108 940 pipe_w S+ pts/6 0:00 grep --color=auto tcollector But none of the stats are getting collected. In hbase both tsdb and tsdb-uid are empty.

Is there any chance you can help me with this?

Thank you so much.

Karthik

manolama commented 10 years ago

Are auto-metrics enabled in your OpenTSDB instance? It may be that the stats are being blocked because that setting won't allow the TSD to assign UIDs.

huangjs commented 9 years ago

I had the same issue using branch 'next'. The problem in my case was the absolute path in linked assets in build/staticroot.

I compiled opentsdb locally and deployed it to machines in hadoop cluster, the home dir and location of the deployment is different. That's why it cannot find the resource files.

In Makefile.am line 377, p=pwd/gwt/queryui will points to the absolute path. Shall we use relative path instead?

A better solution is to allow user specifying --prefix during configuration. I'll add another ticket.

Jianshi