MongoBooster - can't connect after update

Hi, I just updated to 2.4.0 and I am unable to connect to my MongoDB using mongobooster (and other programs I am trying). I am getting a connection refused error / network is unreachable.

My web admin is working fine, and everything else is working fine. 

Any idea what could be the problem? 

My debug logs give me this error: (i blocked out the ip address below)

2018/01/31 09:39:02 [error] 1344#0: *45495 lua entry thread aborted: runtime error: /usr/local/coronium/lualib/resty/moongoo.lua:91: attempt to index local ‘ismaster’ (a nil value)
stack traceback:
coroutine 0:
/usr/local/coronium/lualib/resty/moongoo.lua: in function ‘connect’
/usr/local/coronium/lualib/resty/moongoo/cursor.lua:140: in function ‘findOne’
[string “coronium.data”]: in function ‘get’
[string “api.data”]: in function <[string “api.data”]:0>
[string “coronium.input”]: in function ‘request’
content_by_lua(coronium.locations.conf:115):2: in function , client: ***, server: , request: “POST / HTTP/1.1”, host: “****.ap-southeast-2.compute.amazonaws.com:10001”(coronium.locations.conf:115):1>

I am also getting a whole bunch of these errors:

2018/01/31 09:39:04 [error] 1344#0: *45631 limiting requests, excess: 20.420 by zone “apilimit”, client: 1***.**6.173, server: , request: “POST / HTTP/1.1”, host: “***-169.ap-southeast-2.compute.amazonaws.com:10001”

Hi,

I’m looking into it. The limiting requests is the api throttle so something is hitting the server too fast from the client. Are you running any loops of queries?

-dev

Hi,

I’ve posted a patch that should hopefully resolve the Mongo issue.

https://forums.coronalabs.com/topic/71624-coronium-core-240-update-mongo-patch/

-dev

My debug logs give me this error: (i blocked out the ip address below)

2018/01/31 09:39:02 [error] 1344#0: *45495 lua entry thread aborted: runtime error: /usr/local/coronium/lualib/resty/moongoo.lua:91: attempt to index local ‘ismaster’ (a nil value)
stack traceback:
coroutine 0:
/usr/local/coronium/lualib/resty/moongoo.lua: in function ‘connect’
/usr/local/coronium/lualib/resty/moongoo/cursor.lua:140: in function ‘findOne’
[string “coronium.data”]: in function ‘get’
[string “api.data”]: in function <[string “api.data”]:0>
[string “coronium.input”]: in function ‘request’
content_by_lua(coronium.locations.conf:115):2: in function , client: ***, server: , request: “POST / HTTP/1.1”, host: “****.ap-southeast-2.compute.amazonaws.com:10001”(coronium.locations.conf:115):1>

I am also getting a whole bunch of these errors:

2018/01/31 09:39:04 [error] 1344#0: *45631 limiting requests, excess: 20.420 by zone “apilimit”, client: 1***.**6.173, server: , request: “POST / HTTP/1.1”, host: “***-169.ap-southeast-2.compute.amazonaws.com:10001”

Hi,

I’m looking into it. The limiting requests is the api throttle so something is hitting the server too fast from the client. Are you running any loops of queries?

-dev

Hi,

I’ve posted a patch that should hopefully resolve the Mongo issue.

https://forums.coronalabs.com/topic/71624-coronium-core-240-update-mongo-patch/

-dev