Forums

pymongo.errors.ConnectionFailure: could not connect to SERVER.mongolab.com:PORT: [Errno 111] Connection refused

Hi all. I have test application like blog (bottle) and database on MongoLab.com. On my home PC project works good. But when I run it on PA, I take next error:

2013-04-30 10:02:30,888 :Traceback (most recent call last): 2013-04-30 10:02:30,889 :pymongo.errors.ConnectionFailure: could not connect to ds059947.mongolab.com:59947: [Errno 111] Connection refused

What do you thing about it? Thanks.

Best regard, Ildus.

@Ildus: First welcome to PA. Second, the bad news is that free accounts can only go outbound to certain sites, there is a white list. And the sites they get to can only be gotten via 80 and 443 (http and https).

According to their site, MongoLab.com says they have connectivity via a REST API. Thus you should be able to connect on a free PA account. Just need to figure out how to use the REST interface.

Thank you very much. I try to use a REST API. =)

My pleasure!! There are several helpful people here, so never hesitate to post. As a pointer reading the PA FAQ is definitely worth the time.