runner36 / rock-php

Automatically exported from code.google.com/p/rock-php
0 stars 0 forks source link

Execute failed:need to login function (){ return db.getCollectionNames(); } #233

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. sudo pecl install mongo (1.3.0)
2. open rockmongo 1.1.4
3. login with credentials (mongo auth = true)
4. Subject error appear in tables panel
5. All rockmongo functions no working.

RockMongo Version (1.1.4)
Operation System (Ubuntu 12.10 Desktop/Server)
PHP Version (5.4.6)
php_mongo Version (1.3.0)
MongoDB version (2.2.2)

Original issue reported on code.google.com by provale...@gmail.com on 3 Dec 2012 at 12:53

Attachments:

GoogleCodeExporter commented 8 years ago
Same error with :
rockmongo 1.1.4 (mongo auth = true)
PHP 5.2.17
php_mongo 1.3.0
MongoDB 2.2.1

Original comment by ghislain...@gmail.com on 3 Dec 2012 at 10:32

GoogleCodeExporter commented 8 years ago
MeTo

Original comment by xiaomi....@gmail.com on 4 Dec 2012 at 9:59

GoogleCodeExporter commented 8 years ago
Same error with:

Web server  Apache/2.2.15
PHP version PHP 5.3.3
PHP extension   mongo/1.3.0

mongo.allow_empty_keys  0   0
mongo.allow_persistent  1   1
mongo.chunk_size    262144  262144
mongo.cmd   $   $
mongo.default_host  localhost   localhost
mongo.default_port  27017   27017
mongo.is_master_interval    NULL    NULL
mongo.long_as_object    0   1
mongo.native_long   0   1
mongo.no_id 0   0
mongo.ping_interval NULL    NULL
mongo.utf8  1   1

version 2.2.2
gitVersion  d1b43b61a5308c4ad0679d34b262c5af9d664267
sysInfo Linux ip-10-2-29-40 2.6.21.7-2.ec2.v1.2.fc8xen #1 SMP Fri Nov 20 
17:48:28 EST 2009 x86_64 BOOST_LIB_VERSION=1_49
versionArray    [2,2,2,0]
bits    64
debug   FALSE
maxBsonObjectSize   16777216

Original comment by a...@hivext.net on 4 Dec 2012 at 11:59

GoogleCodeExporter commented 8 years ago
Can anyone solve this problem?

Original comment by provale...@gmail.com on 11 Dec 2012 at 2:27

GoogleCodeExporter commented 8 years ago
Yes it's very annoying...

It happens either with control_auth = true or mongo_auth=true

with mongo_auth=true, the login goes through but all subsequent calls seems to 
be not authenticated.

Stefano

Original comment by stef...@holiday69.it on 11 Dec 2012 at 4:26

GoogleCodeExporter commented 8 years ago
There are too many segfault issue in MongoDB php driver after 1.3.0, so every 
one is not encouraged to this version. 

http://pecl.php.net/package-changelog.php?package=mongo

Original comment by iwind....@gmail.com on 13 Dec 2012 at 10:25

GoogleCodeExporter commented 8 years ago
When it will be fixed approximately?

Original comment by provale...@gmail.com on 13 Dec 2012 at 11:08

GoogleCodeExporter commented 8 years ago
I've also tried to update to the driver version mongo/1.3.2RC1 but with no luck

So the problem is present with both
mongo/1.3.1
mongo/1.3.2RC1

Stefano

Original comment by stef...@holiday69.it on 17 Dec 2012 at 5:02

GoogleCodeExporter commented 8 years ago
I was able to reproduce it with mongo/1.2.12

I guess it's a bug in rockmongo rather than in the php extension

PS: the fix in the GIT repo pushed 3 days ago does NOT work

Stefano

Original comment by stef...@holiday69.it on 17 Dec 2012 at 5:17

GoogleCodeExporter commented 8 years ago
Hi, everyone, please download latest mongo extension from 
http://pecl.php.net/package/mongo and latest RockMongo 1.1.5 from 
http://rockmongo.com/downloads, they will fix the issue.

Original comment by iwind....@gmail.com on 20 Dec 2012 at 10:14

GoogleCodeExporter commented 8 years ago
Thanks, this is working great !

Original comment by quentin.dreyer on 20 Dec 2012 at 10:39

GoogleCodeExporter commented 8 years ago

Original comment by iwind....@gmail.com on 3 Jan 2013 at 7:10

GoogleCodeExporter commented 8 years ago
Hello 

The issue is still there for me!

I'm using php 5.3.10 under Ubuntu with mongo pecl extension 1.3.2

I was able to reproduce with php 5.3.10 and mongo/1.3.2RC1

Can anybody tell me what's their working configuration??

Thank you

Original comment by stef...@holiday69.it on 6 Jan 2013 at 10:38

GoogleCodeExporter commented 8 years ago
I've fixed the issue and submitted a pull request:

https://github.com/iwind/rockmongo/pull/13

Basically the issue had been fixed only if using mongodb authentication and not 
control authentication.

Now it works for both

Stefano

Original comment by stef...@holiday69.it on 6 Jan 2013 at 11:23