bobthecow / genghis

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

Wiredtiger Support - Undefined index: fileSize #208

Open henryoswald opened 9 years ago

henryoswald commented 9 years ago

Hi,

we are running 2.3.11 with the driver mongo 1.6.10 stable and have found that the new wiredtiger engine is not running correctly. The error we get is "PHP error: Undefined index: fileSize"

Are there plans to support wiredtiger?

bobthecow commented 9 years ago

Thanks for bringing this up. I just fixed it in the develop branch. Feel free to use that version until a new release ships!

henryoswald commented 9 years ago

Thanks Bob,

i've upgraded and the server can see the mongo servers now but its displaying an unknown error. Do you have any idea when a new release will be out?

Thanks a lot for this tool we use it a lot internally.

bobthecow commented 9 years ago

Sorry, I don't know when a new release will be out yet.

Any idea what the unknown error is? I've only got a very simple test database on WiredTiger to play with, so it's entirely possible I'm missing some glaring incompatibility :)

henryoswald commented 9 years ago

Hey thanks for being so responsive.

I spun up a new box with a local wiredtiger instance and the issue seems to be to specifying the db name so mongodb://localhost:27017 will work, mongodb://localhost:27017/mydatabase will fail

henryoswald commented 9 years ago

Hey Bob,

We would be happy to sponsor work on fixing this if it would possibly help? I am a bit out of my comfort zone with PHP. I've tried getting genghis-dev.php running but hit my head on mustache InvalidArgumentException errors.

FYI When specifying the db name in the connection string the response code sent back is a 404.

bobthecow commented 9 years ago

I'm completely unable to reproduce this. With the develop branch, I'm able to connect to a WiredTiger mongo server, both with and without a db name specified, both with and without authentication, and Genghis isn't throwing any errors.

Can you give me more info about your setup so I can try to reproduce it?

henryoswald commented 9 years ago

Thanks Bob.

I am using the latest genghis-develop branch, running genghis.php using nginx. If i specify mongodb://localhost:27017/mydatabase I am able to click though and see the collections, unknown errors are shown throughout and documents are not visable.

If it can help I have a box with this issue I can give you access to. just need to ping me your public key.

cookandy commented 8 years ago

I am also having the same problem. I am using the latest genghis php file and am getting the same error as @henryoswald.

Genghis automatically creates a 'localhost' entry which doesn't work for me (because I have authentication turned on).

I create a database called "test", owned by a user called "test", and when I add test:password@localhost/test to genghis and hover over it I see the error:

PHP error: Undefined index: fileSize

However, if I add the connection admin:password@localhost:27017/admin, everything works and I can see the databases (including the test database).

I'm happy to provide any additional details if needed.

henryoswald commented 8 years ago

Hey guys, has anyone had any luck with this issue yet? Im out of my depth on this code base as I know basically 0 php.

Celelibi commented 7 years ago

This bug is more than a year old. Merging the develop branch and releasing the fix would be nice.