-
Notifications
You must be signed in to change notification settings - Fork 163
"Unkown Error" when connecting to secondary server in replica set. #133
Comments
Do you mind checking your JavaScript console or Network tab and looking for errors for me? |
In the Javascript console I have the following: GET http://dropbox.dev/ksl/genghis/genghis.php/servers/mongodb-rs1.ksl.com/databases 500 (Internal Server Error) Here's the response from the network tab, which you might find useful. In particular, the "500: not master and slaveOk=false" error. According to the interwebs, this is the same error I would get if I tried to read from a slave if I hadn't run rs.slaveOk() in a console (which prevents you from accidentally treating "eventually consistent" data as if it were current). Maybe that could be added as a command you initially send to mongo on connection. <title>Genghis — 500: not master and slaveOk=false</title>500: not master and slaveOk=falseIf you think you've reached this message in error, please press 0 to speak with an operator. Otherwise, hang up and try again. Genghis, by Justin Hileman. |
Gotcha. Just add |
Yeah, that should have worked :-/ |
I have v2.3.8 and I tried adding ?slaveOk=true but I get an error: "Unsupported connection option - slaveOk" In the (PHP) code I see a switch statement that explicitly calls out "slaveOk" in one of the cases that throws the "Unsupported connection option..." exception. Is connecting to a slave now explicitly disabled? |
You're absolutely right. I'd forgotten that |
+1. I also have this "Error: A "url" property or function must be specified", even when I select the primary server. |
I have something similar but before this error, I have another one:
|
@shordeaux Yours is definitely an error, but is completely unrelated :) Commenting on your pull request. |
I'm running 6 Mongo servers. Only one of those is the primary (which changes from time to time). I'm able to connect to the primary server using Genghis, but I'm not able to connect to any of the secondary servers. When I do, I get an "Unknown Error" at the top and a waiting indicator that never finishes.
The text was updated successfully, but these errors were encountered: