Open alfredli opened 11 years ago
Are you having trouble connecting to Genghis, or having trouble getting Genghis to connect to Mongo?
i've been using genghis.php in my project for a while now and it has been working beautifully except now i'm having the same problem, can't connect to localhost. version 2.3.0 works and 2.3.1 is where the problem started. i have been trying to figure out what changed between the versions but so far i've had no luck and i'm just sticking with 2.3.0 for the time being.
What version of the Mongo PECL driver do you have installed?
<?php echo Mongo::VERSION;
I have 1.3.2RC1 which is the latest from https://github.com/mongodb/mongo-php-driver/downloads
The problem is that my work computer has 64 bit Windows 8 on it and it was a bit of a pain to get it up and running with WAMP (had to use 32 bit version) and Mongo so i don't want to mess with anything. And besides, Genghis 2.3.0 works quite well for my needs. The final version of the project is gonna be deployed to a linux server so i don't think there will be any issues once we get there.
And by the way, thank you for your work, Genghis is a great piece of software!
Very little PHP code actually changed between v2.3.0
and v2.3.1
, so it shouldn't be hard to track your issue down. It's gotta be ccecae74661baf4a4202ee40729866489bb30d57 or e73cedba3b42bda9720619e64dac04d5ea663c14 ...
Do you mind helping me track it down?
not at all, where should i start?
alright, so with https://github.com/bobthecow/genghis/commit/ccecae74661baf4a4202ee40729866489bb30d57 i can still connect, but with https://github.com/bobthecow/genghis/commit/e73cedba3b42bda9720619e64dac04d5ea663c14 i get the 'Unable to connect to Mongo server at localhost' error. so it's gotta be that 'timeout' option i'm thinking
Ahh. Yep. That was added in 1.3.4.
I didn't realize you were using the download from the github download page. GitHub stopped allowing users to upload files to "downloads" about six months ago, so that list is way out of date. 10gen should probably take it down to keep people from using it. I'll ping 'em.
just an fyi, i downloaded 1.4.1 from https://s3.amazonaws.com/drivers.mongodb.org/php/index.html and now genghis doesn't connect with 2.3.0 or 2.3.1
Heh. Try it with 2.3.5?
Docs are being fixed here: https://github.com/mongodb/docs-ecosystem/pull/61
i did, same results.
Thanks. I'll look into it further.
Do you mind checking the develop
branch version? It has a couple of fixes that might be related to your problem.
ok, so still no connection with genghis develop branch v.2.3.5 and mongo driver v.1.4.1 but the error has more info now: "Failed to connect to: localhost:27017: Previous connection attempts failed, server blacklisted"
In addition, the develop branch does work if i roll back the mongo driver to v.1.3.2RC1. So whatever those fixes are, they work with at least that version of the mongo driver.
Thanks. I've never seen a "server blacklisted" error when connecting to Mongo before. I'll look into it further.
@alfredli Does the develop
branch version of Genghis work for you?
Thanks! I got the same issue and I used php_mongo-1.3.2RC1-5.4-vc9-x86_64.dll
after I have installed the mongo.so in the php.ini... and open your genghis.php in localhost. It show the page but show the localhost cannot be connected. under the server tag: I have tried localhost, localhost:8888, 127.0.0.1 and 127.0.0.1:8888, still no luck ( I am in MAMP and MacOSX). Thx.