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

404 not found #218

Open
Chensienyong opened this issue Jan 15, 2016 · 10 comments
Open

404 not found #218

Chensienyong opened this issue Jan 15, 2016 · 10 comments

Comments

@Chensienyong
Copy link

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
Copy link
Owner

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
Copy link
Author

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

@bobthecow
Copy link
Owner

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

@Chensienyong
Copy link
Author

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

@bobthecow
Copy link
Owner

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

@Chensienyong
Copy link
Author

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

@bobthecow
Copy link
Owner

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

@Chensienyong
Copy link
Author

yup

@bobthecow
Copy link
Owner

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
Copy link
Author

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.

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