Skip to content

Loading…

boss.config parsing doesn't work reliably on Ubuntu LINUX 12.04 LTS #242

Closed
kotedo opened this Issue · 4 comments

3 participants

@kotedo

Hi,

If I specify the new

{db_replication_set, {<<"rs0">>, [{localhost,27017}, {localhost,27018}, {localhost,27019}]}},

replication option in boss.conf, it doesn't get passed on to the init/1 function in ../ChicagoBoss/deps/boss_db/src/db_adapters/boss_db_adapter_mongodb.erl

The Options array holds db_database and other options, but it is missing the db_replication_set option and as such it can't connect to the database replSet.

--Kai

The very same checkout of ChicagoBoss, no changes made, just transferred, doesn't work.

@evanmiller
@kotedo

See the log entries below for the error I am seeing ...

This ONLY happens on a secondary or tertiary app node; the first one comes up fine.

19:48:53.504 [info] Application mongodb started on node 'openf003@prod-dc1-openf-app003.company.corp'
19:48:53.504 [error] CRASH REPORT Process <0.96.0> with 0 neighbours exited with reason: no function clause matching mongo_replset:connect([{<<"openF0">>,[{'10.xx.yy.y1',40001},{'10.xx.yy.y2',40003}]}], infinity) line 42 in gen_server:init_it/6 line 328
19:48:53.509 [error] Supervisor poolboy_sup had child boss_db_controller started with {boss_db_controller,start_link,undefined} at <0.96.0> exit with reason no function clause matching mongo_replset:connect([{<<"openF0">>,[{'10.xx.yy.y1',40001},{'10.xx.yy.y2',40003}]}], infinity) line 42 in context child_terminated
19:48:53.512 [error] CRASH REPORT Process <0.94.0> with 0 neighbours exited with reason: no match of right hand value {error,{function_clause,[{mongo_replset,connect,[[{<<"openF0">>,[{'10.xx.yy.y1',40001},{'10.xx.yy.y1',40003}]}],infinity],[{file,"src/mongo_replset.erl"},{line,42}]},{boss_db_adapter_mongodb,init,1,[{file,"src/db_adapters/boss_db_adapter_mongodb.erl"},{line,34}]},{boss_db_controller,init,1,[{file,"src/boss_db_controller.erl"},{line,31}]},{gen_server,init_it,6,[{file,"gen_server.erl"},{line,304}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,239}]}]}} in poolboy:new_worker/2 line 348 in gen_fsm:init_it/6 line 379
@evanmiller

You have a configuration problem, probably an extra set of brackets around the repl_set info.

@zkessin

I think this issue can be closed

@zkessin zkessin closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.