Skip to content
This repository has been archived by the owner on Jul 5, 2023. It is now read-only.

I see no mongo servers #180

Open
ghost opened this issue Jul 8, 2014 · 10 comments
Open

I see no mongo servers #180

ghost opened this issue Jul 8, 2014 · 10 comments

Comments

@ghost
Copy link

ghost commented Jul 8, 2014

I installed the unpacked zip in ~/html/genhigs

In this dir I use .htaccess:

RewriteEngine On
## Uncomment and update the path if Genghis is not in your web root.
RewriteBase /genghis

## Use pretty URLs
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule (.*) genghis.php/$1 [L,QSA]

I can access https:///genghis/genghis.php

I see a page with a Gengis Logo top left and the Text:

Genghis, by Justin Hileman.

Keyboard shortcuts available

but nothing else. No Navigation, so Server selction.
What is my fault?

@bobthecow
Copy link
Owner

Does the page have any style? Do you see plain text, or a top bar and grey background and styled Genghis logo?

@ghost
Copy link
Author

ghost commented Jul 8, 2014

This afternoon I got a page without the welcome banner.

Now I open and see this.

What have I to enter to add my server?

Best Charly


Von: Justin Hileman [mailto:notifications@github.com]
Gesendet: Dienstag, 8. Juli 2014 16:56
An: bobthecow/genghis
Cc: oehlrich
Betreff: Re: [genghis] I see no mongo servers (#180)

Does the page have any style? Do you see plain text, or a top bar and grey
background and styled Genghis logo?

Reply to this email directly or view
#180 (comment) it
on GitHub.
<https://github.com/notifications/beacon/2545191__eyJzY29wZSI6Ik5ld3NpZXM6Qm
VhY29uIiwiZXhwaXJlcyI6MTcyMDQ1MDU3NywiZGF0YSI6eyJpZCI6MzY0NjkzODR9fQ==--2605
0a70662801a6f8b6e42563322d36ea965062.gif>

@bobthecow
Copy link
Owner

Do you mind posting a screenshot?

@ghost
Copy link
Author

ghost commented Jul 9, 2014

Well, I don't how to put in an screenshot here.
My newest finding is, that it seems to be an IE11 issue because the output differs between Fireforx and IE11.
In Firefox I get an Image with the thext "Welcome to Genghis The single-file MongoDB admin app"
In IE11 I do not see this!
Using Firefox I also see a box with "Servers" and an error that it can not connect to "localhost:27017". How can I add a new Server or Change the Default Connection to use "localhost:20623"?

@ghost
Copy link
Author

ghost commented Jul 9, 2014

Well, further investigations and I entered:
mongodb://username:password@localhost:20623
and I get the connection, see databases and collections, Yippiiii!!

So my problem was drilled down to an IE11 issue.

@bobthecow
Copy link
Owner

I'm glad you worked it out :)

I'll leave this issue open until I get a chance to check out IE11 and see what's up. Thanks for letting me know.

@cedx
Copy link

cedx commented Jul 28, 2014

Same issue here: Genghis is not working with IE11. In the JS console, I can see the following error:
"jQuery is undefined".

The related call is located in the HEAD tag:
jQuery(function() { Genghis.boot(''); });

@bobthecow
Copy link
Owner

jQuery is definitely defined in the JS asset. Are you seeing a 404 or other error when the app gets script.js?

@cedx
Copy link

cedx commented Jul 28, 2014

All HTTP requests get a 200 status code, except for scripts.js: a 404 code is returned, and the MIME type is marked as application/json. If a use Chrome or Firefox, I get the expected 200 code and application/x-javascript type.

@cedx
Copy link

cedx commented Jul 29, 2014

Some more info: if I try to download the file manually (typing http://my.genghis.vhost/assets/script.js?v=2.3.11 in IE address bar), the content seems OK (400 Kb containing Modernizr, Backbone, etc.).

If I create an assets folder and put the script.js file Inside, in order to let the Web server handle it instead of genghis.php script, the jQuery error disappears but I get another error : A "url" property or function must be specified (this error is also raised when using Chrome or Firefox, so it may be another issue or related to my MongoDB install).

So I think the problem is related to the way genghis.php script serve the assets. My Web server delivers JS files as application/javascript instead of application/x-javascript. Maybe a hidden bug in IE11 with the application/x-javascript MIME type?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants