-
Notifications
You must be signed in to change notification settings - Fork 16
message not inserting in DB and my erlang.log file says following:: #13
Comments
Hi, hmm yeah might be that emysql has changed a bit since I created this module. Maybe I'll find time to figure this out, otherwise you're more than welcome to figure out what happens :) Best, |
Ah, could you show us how you configured the module (the MySQL settings)? Please replace any sensitive info with something else but in similar form... |
Hi, Here is my config file settings for this module {mod_log_chat_mysql5, [{server, "localhost"}, {db, "xyz"}, {user, "user"}, {password, "pass"}, {pool_size, 1}, {encoding, utf8}]}, and one more thing i forgot to tell you, from read me file i confused in following point Copy all the Emysql files to your ejabberd system ebin folder as well. (Emysql/ebin/*) i copied all .beam file from Emysql/ebin/ is anything else i have to copied from Emysql to my ejabberd root directory ? i am using ubuntu and i installed ejabberd from .run file so tell me where exactly i have to copy emysql files if any. |
Hi, The ebin files you should copy to the folder within ejabberd where ejabberd's ebin files are. Don't really know where they are within your installation, but you might want to take a look at the installation folder of ejabberd. |
hi, i copied all ebin files to my installation thats ok. other then this need to copy any files from emysql src ? |
Probably the .app file as well, did you copy it? |
hi, yes i copied emysql.app file where all beam file presents |
Ok, thanks. Taking a look as soon as possible now. |
okay |
when starting the server, do you have in
(you might need to increase the loglevel for that) |
hi, yes i found same log +++++++++ |
yeah well, then I know what the problem is. the module was created for an older version of ejabberd and in the newer ones they changed some APIs, e.g. the one for getting options. |
Okay thanks i am using ejabberd 13.12 and 14.12 |
hey, I commited a fix: 12d7460 should work now, even though logging doesn't seem to work because of some stupid stuff going on. Anyway. To compile you can follow the same steps as before, except that you need to copy |
Hi, Thanks for update , I do compile and restart ejabberd and got this error 2015-01-07 05:50:31.843 [warning] <0.6.0> lager_error_logger_h dropped 1 messages in the last second that exceeded the limit of 50 messages/sec is pool_size necessary ? |
I guess this is from stopping ejabberd, no? Can you show when starting it? |
Actually suddenly something goes wrong and i am getting this Crash dump was written to: /opt/ejabberd-13.12/logs/erl_crash_20150107-074812.dump please tell me if you know abuot this , i am not able to start ejabberd only. once this one is fixed i can check this module. |
Hi, ejabberd started now i recompile module all fine but no entries in DB starting erlang.log as below =PROGRESS REPORT==== 7-Jan-2015::09:31:12 === |
Hi, something wrong please consider this scenario. when i compile your module copy beam file to ejabberd and start ejabberd its work. Crash dump was written to: /opt/ejabberd-13.12/logs/erl_crash_20150107-074812.dump now if i reboot my entire server and start ejabberd then it get started and again i do stop ejabberd same thing happening. also at the end no messages in DB. |
I think this has something to do with your setup itself, and not with the module. Could you please double-check and if it doesn't work please post more logs |
I am facing the same problem. ejabberd version 14.07. compiled from source on ubuntu 14.04.
|
Is this happening right on startup or when stopping ejabberd? |
hi, As i told you before after you updated this module according new version same issue coming. and this is happend when we stop ejabberd and again if tried to start ejaaberd same error occurce and ejabberd crashed. once i remove .beam file of this module ejabberd get started. |
It happens right at start. but not the first start after adding module.
|
if you comment out
|
for those who have error "pool_not_found", try to change the code to: in line 78. The error will gone, but still not be able to save the message. |
anybody got the solution? |
My:::: Emakefile:::::
{'../ejabberd-dev/src/gen_mod',
[{outdir, "/opt/ejabberd-13.12/lib/ejabberd-13.12/ebin"},{i,"/opt/ejabberd-13.12/lib/ejabberd-13.12/include"}]}.
{'src/*', [{outdir, "ebin"},{i,"/opt/ejabberd-13.12/lib/ejabberd-13.12/include"}]}.
after compiling i copied .beam file into
/opt/ejabberd-13.12/lib/ejabberd-13.12/ebin
also copied /Emysql/ebin/* to /opt/ejabberd-13.12/lib/ejabberd-13.12/ebin
then restart ejabberd no error but erlang.log file says as follow:
=CRASH REPORT==== 26-Dec-2014::09:55:53 ===
crasher:
initial call: mod_log_chat_mysql5:init/1
pid: <0.402.0>
registered_name: []
exception exit: {badarg,
[{emysql,config_ok,1,[{file,"emysql.erl"},{line,247}]},
{emysql,add_pool,1,[{file,"emysql.erl"},{line,276}]},
{mod_log_chat_mysql5,init,1,
[{file,"src/mod_log_chat_mysql5.erl"},{line,76}]},
{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 function gen_server:init_it/6 (gen_server.erl, line 328)
ancestors: [ejabberd_sup,<0.38.0>]
messages: []
links: [<0.299.0>]
dictionary: []
trap_exit: false
status: running
heap_size: 1598
stack_size: 27
reductions: 342
neighbours:
The text was updated successfully, but these errors were encountered: