Well i got in more and realized ranch,cowlib, and cowboy does not start
automatically so http listener doesnt start and nothing happens without
server.
Do you have any idea why they are not starting automatically?
I am using the current CB master for OTP 18, and running erlang 18.2.
Mert
29 Şubat 2016 Pazartesi 23:35:19 UTC+2 tarihinde Mert Öztürk yazdı:
>
> Hello,
>
> Just realized {db_shards, [ was wrong for only using MySQL and corrected
> it.
> Now i faced with a simple_bridge issue like below;
>
> Application simple_bridge exited with reason: bad return value 'no backend
> defined' from simple_bridge_app:start(normal, [])
>
> May i get help about this?
>
> Thanks
> Mert
>
> 29 Şubat 2016 Pazartesi 21:45:29 UTC+2 tarihinde Mert Öztürk yazdı:
>>
>> Hello,
>>
>> I am using the current CB master for OTP 18, and running erlang 18.2.
>> In my local, everything was going fine with MySQL connection. Now i am
>> trying to setup my CB app on remote vps but can not connect to MySQL. I
>> checked a lot but couldnt figure out the problem.
>> My db shards model looks like this in boss.config;
>>
>> {db_shards, [
>> [
>> {db_host, "localhost"},
>> {db_adapter,mysql},
>> {db_port, 3306},
>> {db_write_mode, safe},
>> {db_read_mode, master},
>> {db_username, "root"},
>> {db_password, "123456"},
>> {db_name, "all_data"},
>> {db_shard_id,all_data},
>> {db_shard_models, [data1,data2,data3,data4,data5,data6]}
>>
>> ]
>> ]},
>>
>> Although i check root password and all root privileges still can not
>> connect to the database named "all_data" containing tables:
>> data1,data2,data3,data4,data5,data6
>> I get the following error;
>>
>> [error] gen_server <0.105.0> terminated with reason: no match of right
>> hand value {connection_error,{error,failed_changing_database}} in
>> boss_db_controller:'-make_shards/2-fun-0-'/4 line 370
>> 14:32:16.358 [error] gen_server <0.104.0> terminated with reason: no
>> match of right hand value
>> {connection_error,{error,failed_changing_database}} in
>> boss_db_controller:'-make_shards/2-fun-0-'/4 line 370
>> 14:32:16.359 [error] gen_server <0.103.0> terminated with reason: no
>> match of right hand value
>> {connection_error,{error,failed_changing_database}} in
>> boss_db_controller:'-make_shards/2-fun-0-'/4 line 370
>> 14:32:16.359 [error] gen_server <0.102.0> terminated with reason: no
>> match of right hand value
>> {connection_error,{error,failed_changing_database}} in
>> boss_db_controller:'-make_shards/2-fun-0-'/4 line 370
>> 14:32:16.359 [error] gen_server <0.101.0> terminated with reason: no
>> match of right hand value
>> {connection_error,{error,failed_changing_database}} in
>> boss_db_controller:'-make_shards/2-fun-0-'/4 line 370
>> 14:32:16.382 [error] CRASH REPORT Process <0.105.0> with 0 neighbours
>> exited with reason: no match of right hand value
>> {connection_error,{error,failed_changing_database}} in
>> boss_db_controller:'-make_shards/2-fun-0-'/4 line 370 in
>> gen_server:terminate/7 line 826
>> 14:32:16.383 [error] CRASH REPORT Process <0.104.0> with 0 neighbours
>> exited with reason: no match of right hand value
>> {connection_error,{error,failed_changing_database}} in
>> boss_db_controller:'-make_shards/2-fun-0-'/4 line 370 in
>> gen_server:terminate/7 line 826
>> 14:32:16.383 [error] CRASH REPORT Process <0.103.0> with 0 neighbours
>> exited with reason: no match of right hand value
>> {connection_error,{error,failed_changing_database}} in
>> boss_db_controller:'-make_shards/2-fun-0-'/4 line 370 in
>> gen_server:terminate/7 line 826
>> 14:32:16.383 [error] CRASH REPORT Process <0.102.0> with 0 neighbours
>> exited with reason: no match of right hand value
>> {connection_error,{error,failed_changing_database}} in
>> boss_db_controller:'-make_shards/2-fun-0-'/4 line 370 in
>> gen_server:terminate/7 line 826
>> 14:32:16.384 [error] CRASH REPORT Process <0.101.0> with 0 neighbours
>> exited with reason: no match of right hand value
>> {connection_error,{error,failed_changing_database}} in
>> boss_db_controller:'-make_shards/2-fun-0-'/4 line 370 in
>> gen_server:terminate/7 line 826
>> 14:32:16.384 [error] Supervisor {<0.100.0>,poolboy_sup} had child
>> undefined started with {boss_db_controller,start_link,undefined} at
>> <0.105.0> exit with reason no match of right hand value
>> {connection_error,{error,failed_changing_database}} in
>> boss_db_controller:'-make_shards/2-fun-0-'/4 line 370 in context
>> child_terminated
>> 14:32:16.384 [error] Supervisor {<0.100.0>,poolboy_sup} had child
>> undefined started with {boss_db_controller,start_link,undefined} at
>> <0.104.0> exit with reason no match of right hand value
>> {connection_error,{error,failed_changing_database}} in
>> boss_db_controller:'-make_shards/2-fun-0-'/4 line 370 in context
>> child_terminated
>> 14:32:16.385 [error] Supervisor {<0.100.0>,poolboy_sup} had child
>> undefined started with {boss_db_controller,start_link,undefined} at
>> <0.103.0> exit with reason no match of right hand value
>> {connection_error,{error,failed_changing_database}} in
>> boss_db_controller:'-make_shards/2-fun-0-'/4 line 370 in context
>> child_terminated
>> 14:32:16.385 [error] Supervisor {<0.100.0>,poolboy_sup} had child
>> undefined started with {boss_db_controller,start_link,undefined} at
>> <0.102.0> exit with reason no match of right hand value
>> {connection_error,{error,failed_changing_database}} in
>> boss_db_controller:'-make_shards/2-fun-0-'/4 line 370 in context
>> child_terminated
>> 14:32:16.386 [error] Supervisor {<0.100.0>,poolboy_sup} had child
>> undefined started with {boss_db_controller,start_link,undefined} at
>> <0.101.0> exit with reason no match of right hand value
>> {connection_error,{error,failed_changing_database}} in
>> boss_db_controller:'-make_shards/2-fun-0-'/4 line 370 in context
>> child_terminated
>>
>> Your help would be appreciated.
>> Regards
>> Mert
>>
>>
>>
--
You received this message because you are subscribed to the Google Groups
"ChicagoBoss" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
Visit this group at https://groups.google.com/group/chicagoboss.
To view this discussion on the web visit
https://groups.google.com/d/msgid/chicagoboss/6d63dca4-b40c-45d9-8c99-5d32142eb041%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.