bobthecow / genghis

The single-file MongoDB admin app
http://genghisapp.com
MIT License
1.45k stars 166 forks source link

404 not found #218

Open Chensienyong opened 8 years ago

Chensienyong commented 8 years ago

hi guys, i'm kinda new to mongo and using sails. So the thing is, when i'm opening genghisapp and try to create database from browser, let's say the name is 'test', it shows in table with size n/a.. when i try to open it, it shows

404: Database Not Found Please try again.

and that database just gone when i return. The same shows at collection

404: Collection Not Found Please try again.

bobthecow commented 8 years ago

Open up the Network tab of the developer console of your browser, and check to see if there's a non-200 response after creating a database or collection?

Chensienyong commented 8 years ago

thanks for fast respond. nope, when create database or collection it give 200 POST response, but opening it give 404 GET response.

bobthecow commented 8 years ago

Are you using any special characters in the DB (or collection) name?

Chensienyong commented 8 years ago

no, i use lowercase letter name, like 'activity', 'user' and other.

bobthecow commented 8 years ago

That's strange. Which backend are you using (ruby or php)?

Chensienyong commented 8 years ago

how do i know which backend i use? i install using gem, does that mean i use ruby?

bobthecow commented 8 years ago

Yep, that's Ruby. And you're starting it via genghisapp on the command line?

Chensienyong commented 8 years ago

yup

bobthecow commented 8 years ago

Hrm. I've seen similar issues when running behind Apache and using fancy characters in names. I've never run into anything like it with the Ruby backend running from the command line.

Open up a terminal and run show dbs; in mongo. Check whether it's actually creating the database and having trouble showing it, or if it's failing to create in the first place.

Chensienyong commented 8 years ago

it's fail to create. everytime i create it shows the database there, but after refresh the page it gone already. and i tried show dbs; right after create database and show only local database which i don't create.