AbinashBishoyi / mongo-vision

Automatically exported from code.google.com/p/mongo-vision
Apache License 2.0
1 stars 0 forks source link

mongovision hangs on ubuntu #4

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. After getting mongovision installed, visit the URL e.g. 
http://localhost:8080/mongovision/

What is the expected output? What do you see instead?
There is a spinner icon in the disabled Collections panel and the application 
is hung.  

What version of the product are you using? On what operating system?
MongoVision R116
Ubuntu 10.04.  I installed via Ubuntu Software Center
This didn't happen for me when I ran it on a windows installation of prudence 
and mongodb.  

Please provide any additional information below.
In Chrome, the debugger console shows this error:
:8080/mongovision/data/databases/?_dc=1301888988851&node=rootGET 
http://localhost:8080/mongovision/data/databases/?_dc=1301888988851&node=root 
500 (Server Error)
And the network tab reveals this response:

<h2>Prudence Debug Page</h2><h3>Scripturian Execution Error</h3><h3>Wrapped 
com.threecrickets.scripturian.exception.DocumentNotFoundException: File does 
not exist: ./applications/mongovision/resources/../../../libraries/mongo-db 
(ations/mongovision/resources/data/databases.js#12)</h3><div id="error"><span 
class="name">At:</span> <a 
href="http://localhost:8080/mongovision/sourcecode/?document=ations%2Fmongovisio
n%2Fresources%2Fdata%2Fdatabases.js&highlight=12">ations/mongovision/resources/d
ata/databases.js @ 12,0</a><br /></div>
...

I notice that the "File does not exist" is pointing to 
"./applications/mongovision/resources/../../../libraries/mongo-db" and I think 
that is the source of the problem because "../../.." goes up to a level where 
there is no 'libraries' subdirectory.  The installation put libraries somewhere 
else.

But I don't quite understand where the _dc=1301888988851 query string parameter 
comes from if it can't talk to mongoDB at all.  Is it hardcoded?

Original issue reported on code.google.com by daniel.l...@gmail.com on 4 Apr 2011 at 4:01

GoogleCodeExporter commented 9 years ago
Actually, I didn't install Prudence via Ubuntu Software Center, but via the 
instructions at https://launchpad.net/~emblem-parade/+archive/prudence/

I just repeated the process with  prudence-kitchensink-1.1, and comparing the 
directory on linux with what I got on windows, I see several differences. Maybe 
this if fine if the server knows how to follow the path into directories that 
are installed elsewhere.  I can't tell where the installation put the other 
directories to check if they look right.

Original comment by daniel.l...@gmail.com on 5 Apr 2011 at 1:02

GoogleCodeExporter commented 9 years ago
Well, whatever it is doing, mongovision is working now.  Maybe 1.1 resolved 
some issues that the previous version had.

Original comment by daniel.l...@gmail.com on 5 Apr 2011 at 1:26

GoogleCodeExporter commented 9 years ago
I don't know what the difference between using the Software Center vs. other 
means would be. Any further information you can provide would be helpful.

(As for _dc=..., this is an extra semi-random param added by Ext JS 
specifically to hack through web caches. It should never be necessary with 
Prudence, because Prudence plays by the HTTP rules... But it can help avoid 
issues with other backends.)

Original comment by emblempa...@gmail.com on 5 Apr 2011 at 5:18

GoogleCodeExporter commented 9 years ago
I will close this issue for now due to things appearing to work now. :)

Original comment by tal.liron on 23 May 2011 at 9:03