Re: [Zotonic-Dev] does not work sending mail
there is news, I still can not send mail ? понедельник, 1 августа 2016 г., 22:20:51 UTC+9 пользователь Marc Worrell написал: > > Looks like you got some timeout whilst sending the email. > The error is passed as a tuple, which the email logger doesn’t expect, so > it crashes. > > I have to check the source code to see where this timeout can come from. > > I assume you weren’t sending lots of emails at that moment? > It seems you use yandex as smtp gateway, don’t you? > > Might be a connect timeout on yandex, but I am not sure. > > - Marc > > > > On 31 Jul 2016, at 17:38, heiheshang > > wrote: > > zotonic | ==> /srv/zotonic/priv/log/console.log <== > zotonic | 2016-07-31 15:33:49.118 [info] > <0.25372.3>@z_email_server:spawned_email_sender_loop:591 [smtp] Sending > email to "heih@yandex.ru" (<<"ofrtynjva0tysn2g40f5">>), via relay " > mail.anriya.ru" > zotonic | 2016-07-31 15:33:59.134 [error] <0.25420.3> gen_server > <0.25420.3> terminated with reason: no function clause matching > epgsql_wire:encode_parameter({error,timeout}) line 197 > db | LOG: unexpected EOF on client connection with an open > transaction > zotonic | > zotonic | ==> /srv/zotonic/priv/log/crash.log <== > zotonic | 2016-07-31 15:33:59 =ERROR REPORT > zotonic | ** Generic server <0.25420.3> terminating > zotonic | ** Last message in was > {equery,{statement,[],[{column,<<"id">>,int8,8,-1,1}],[int4,varchar,varchar,bytea,varchar,varchar,varchar,int4,int4,int4,int4,varchar,bytea]},[{int4,2},{varchar,<<"ofrtynjva0tysn2g40f5">>},{varchar,retry},{bytea,{error,timeout}},{varchar," > mx.yandex.ru"},{varchar,"heih@yandex.ru"},{varchar,"<...@anriya.ru > >"},{int4,608},{int4,608},{int4,null},{int4,null},{varchar,"email_verify.tpl"},{bytea,<<1,50,106,58,131,106>>}]} > zotonic | ** When Server state == > {state,gen_tcp,#Port<0.254333>,<<>>,{366,538468823},on_message,{codec,[],[]},{[],[]},undefined,[{<<"application_name">>,<<>>},{<<"client_encoding">>,<<"UTF8">>},{<<"DateStyle">>,<<"ISO, > > MDY">>},{<<"integer_datetimes">>,<<"on">>},{<<"IntervalStyle">>,<<"postgres">>},{<<"is_superuser">>,<<"off">>},{<<"server_encoding">>,<<"UTF8">>},{<<"server_version">>,<<"9.4.5">>},{<<"session_authorization">>,<<"zotonic">>},{<<"standard_conforming_strings">>,<<"on">>},{<<"TimeZone">>,<<"UTC">>}],[],[],[],[],[],undefined,73} > zotonic | ** Reason for termination == > zotonic | ** > {function_clause,[{epgsql_wire,encode_parameter,[{error,timeout}],[{file,"/srv/zotonic/_build/default/lib/epgsql/src/epgsql_wire.erl"},{line,197}]},{epgsql_wire,encode_parameters,5,[{file,"/srv/zotonic/_build/default/lib/epgsql/src/epgsql_wire.erl"},{line,183}]},{epgsql_sock,command,2,[{file,"/srv/zotonic/_build/default/lib/epgsql/src/epgsql_sock.erl"},{line,218}]},{gen_server,try_handle_call,4,[{file,"gen_server.erl"},{line,615}]},{gen_server,handle_msg,5,[{file,"gen_server.erl"},{line,647}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,247}]}]} > zotonic | > zotonic | ==> /srv/zotonic/priv/log/error.log <== > zotonic | 2016-07-31 15:33:59.134 [error] <0.25420.3> gen_server > <0.25420.3> terminated with reason: no function clause matching > epgsql_wire:encode_parameter({error,timeout}) line 197 > zotonic | > zotonic | ==> /srv/zotonic/priv/log/crash.log <== > zotonic | 2016-07-31 15:33:59 =CRASH REPORT > zotonic | crasher: > zotonic | initial call: epgsql_sock:init/1 > zotonic | pid: <0.25420.3> > zotonic | registered_name: [] > zotonic | exception exit: > {{function_clause,[{epgsql_wire,encode_parameter,[{error,timeout}],[{file,"/srv/zotonic/_build/default/lib/epgsql/src/epgsql_wire.erl"},{line,197}]},{epgsql_wire,encode_parameters,5,[{file,"/srv/zotonic/_build/default/lib/epgsql/src/epgsql_wire.erl"},{line,183}]},{epgsql_sock,command,2,[{file,"/srv/zotonic/_build/default/lib/epgsql/src/epgsql_sock.erl"},{line,218}]},{gen_server,try_handle_call,4,[{file,"gen_server.erl"},{line,615}]},{gen_server,handle_msg,5,[{file,"gen_server.erl"},{line,647}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,247}]}]},[{gen_server,terminate,7,[{file,"gen_server.erl"},{line,812}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,247}]}]} > zotonic | ancestors: > [<0.30865.1>,<0.1468.0>,'z_db_pool$skl',<0.1462.0>,<0.279.0>,z_sites_manager,z_sites_sup,zotonic_sup,<0.265.0>] > zotonic | messages: [] > zotonic | links: [<0.30865.1>,#Port<0.254333>] > zotonic | dictionary: [{datetime_mod,epgsql_idatetime}] > zotonic | trap_exit: false > zotonic | status: running > zotonic | heap_size: 2586 > zotonic | stack_size: 27 > zotonic | reductions: 5503 > zotonic | neighbours: > zotonic | neighbour: > [{pid,<0.30865.1>},{registered_name,[]},{initial_call,{z_db_pgsql,init,['Argument__1']}},{current_function,{gen,do_call
Re: [Zotonic-Dev] does not work sending mail
I am sending only one message. I tried to google mail and Yandex Mail, does not work on the latest releases, to this work. I'm trying to send an email with registration понедельник, 1 августа 2016 г., 22:20:51 UTC+9 пользователь Marc Worrell написал: > > Looks like you got some timeout whilst sending the email. > The error is passed as a tuple, which the email logger doesn’t expect, so > it crashes. > > I have to check the source code to see where this timeout can come from. > > I assume you weren’t sending lots of emails at that moment? > It seems you use yandex as smtp gateway, don’t you? > > Might be a connect timeout on yandex, but I am not sure. > > - Marc > > > > On 31 Jul 2016, at 17:38, heiheshang > > wrote: > > zotonic | ==> /srv/zotonic/priv/log/console.log <== > zotonic | 2016-07-31 15:33:49.118 [info] > <0.25372.3>@z_email_server:spawned_email_sender_loop:591 [smtp] Sending > email to "heih@yandex.ru" (<<"ofrtynjva0tysn2g40f5">>), via relay " > mail.anriya.ru" > zotonic | 2016-07-31 15:33:59.134 [error] <0.25420.3> gen_server > <0.25420.3> terminated with reason: no function clause matching > epgsql_wire:encode_parameter({error,timeout}) line 197 > db | LOG: unexpected EOF on client connection with an open > transaction > zotonic | > zotonic | ==> /srv/zotonic/priv/log/crash.log <== > zotonic | 2016-07-31 15:33:59 =ERROR REPORT > zotonic | ** Generic server <0.25420.3> terminating > zotonic | ** Last message in was > {equery,{statement,[],[{column,<<"id">>,int8,8,-1,1}],[int4,varchar,varchar,bytea,varchar,varchar,varchar,int4,int4,int4,int4,varchar,bytea]},[{int4,2},{varchar,<<"ofrtynjva0tysn2g40f5">>},{varchar,retry},{bytea,{error,timeout}},{varchar," > mx.yandex.ru"},{varchar,"heih@yandex.ru"},{varchar,"<...@anriya.ru > >"},{int4,608},{int4,608},{int4,null},{int4,null},{varchar,"email_verify.tpl"},{bytea,<<1,50,106,58,131,106>>}]} > zotonic | ** When Server state == > {state,gen_tcp,#Port<0.254333>,<<>>,{366,538468823},on_message,{codec,[],[]},{[],[]},undefined,[{<<"application_name">>,<<>>},{<<"client_encoding">>,<<"UTF8">>},{<<"DateStyle">>,<<"ISO, > > MDY">>},{<<"integer_datetimes">>,<<"on">>},{<<"IntervalStyle">>,<<"postgres">>},{<<"is_superuser">>,<<"off">>},{<<"server_encoding">>,<<"UTF8">>},{<<"server_version">>,<<"9.4.5">>},{<<"session_authorization">>,<<"zotonic">>},{<<"standard_conforming_strings">>,<<"on">>},{<<"TimeZone">>,<<"UTC">>}],[],[],[],[],[],undefined,73} > zotonic | ** Reason for termination == > zotonic | ** > {function_clause,[{epgsql_wire,encode_parameter,[{error,timeout}],[{file,"/srv/zotonic/_build/default/lib/epgsql/src/epgsql_wire.erl"},{line,197}]},{epgsql_wire,encode_parameters,5,[{file,"/srv/zotonic/_build/default/lib/epgsql/src/epgsql_wire.erl"},{line,183}]},{epgsql_sock,command,2,[{file,"/srv/zotonic/_build/default/lib/epgsql/src/epgsql_sock.erl"},{line,218}]},{gen_server,try_handle_call,4,[{file,"gen_server.erl"},{line,615}]},{gen_server,handle_msg,5,[{file,"gen_server.erl"},{line,647}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,247}]}]} > zotonic | > zotonic | ==> /srv/zotonic/priv/log/error.log <== > zotonic | 2016-07-31 15:33:59.134 [error] <0.25420.3> gen_server > <0.25420.3> terminated with reason: no function clause matching > epgsql_wire:encode_parameter({error,timeout}) line 197 > zotonic | > zotonic | ==> /srv/zotonic/priv/log/crash.log <== > zotonic | 2016-07-31 15:33:59 =CRASH REPORT > zotonic | crasher: > zotonic | initial call: epgsql_sock:init/1 > zotonic | pid: <0.25420.3> > zotonic | registered_name: [] > zotonic | exception exit: > {{function_clause,[{epgsql_wire,encode_parameter,[{error,timeout}],[{file,"/srv/zotonic/_build/default/lib/epgsql/src/epgsql_wire.erl"},{line,197}]},{epgsql_wire,encode_parameters,5,[{file,"/srv/zotonic/_build/default/lib/epgsql/src/epgsql_wire.erl"},{line,183}]},{epgsql_sock,command,2,[{file,"/srv/zotonic/_build/default/lib/epgsql/src/epgsql_sock.erl"},{line,218}]},{gen_server,try_handle_call,4,[{file,"gen_server.erl"},{line,615}]},{gen_server,handle_msg,5,[{file,"gen_server.erl"},{line,647}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,247}]}]},[{gen_server,terminate,7,[{file,"gen_server.erl"},{line,812}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,247}]}]} > zotonic | ancestors: > [<0.30865.1>,<0.1468.0>,'z_db_pool$skl',<0.1462.0>,<0.279.0>,z_sites_manager,z_sites_sup,zotonic_sup,<0.265.0>] > zotonic | messages: [] > zotonic | links: [<0.30865.1>,#Port<0.254333>] > zotonic | dictionary: [{datetime_mod,epgsql_idatetime}] > zotonic | trap_exit: false > zotonic | status: running > zotonic | heap_size: 2586 > zotonic | stack_size: 27 > zotonic | reductions: 5503 > zotonic | neighbours: > zotonic | neigh
Re: [Zotonic-Dev] does not work sending mail
Looks like you got some timeout whilst sending the email. The error is passed as a tuple, which the email logger doesn’t expect, so it crashes. I have to check the source code to see where this timeout can come from. I assume you weren’t sending lots of emails at that moment? It seems you use yandex as smtp gateway, don’t you? Might be a connect timeout on yandex, but I am not sure. - Marc > On 31 Jul 2016, at 17:38, heiheshang wrote: > > zotonic | ==> /srv/zotonic/priv/log/console.log <== > zotonic | 2016-07-31 15:33:49.118 [info] > <0.25372.3>@z_email_server:spawned_email_sender_loop:591 [smtp] Sending email > to "heih@yandex.ru" (<<"ofrtynjva0tysn2g40f5">>), via relay > "mail.anriya.ru" > zotonic | 2016-07-31 15:33:59.134 [error] <0.25420.3> gen_server > <0.25420.3> terminated with reason: no function clause matching > epgsql_wire:encode_parameter({error,timeout}) line 197 > db | LOG: unexpected EOF on client connection with an open > transaction > zotonic | > zotonic | ==> /srv/zotonic/priv/log/crash.log <== > zotonic | 2016-07-31 15:33:59 =ERROR REPORT > zotonic | ** Generic server <0.25420.3> terminating > zotonic | ** Last message in was > {equery,{statement,[],[{column,<<"id">>,int8,8,-1,1}],[int4,varchar,varchar,bytea,varchar,varchar,varchar,int4,int4,int4,int4,varchar,bytea]},[{int4,2},{varchar,<<"ofrtynjva0tysn2g40f5">>},{varchar,retry},{bytea,{error,timeout}},{varchar,"mx.yandex.ru"},{varchar,"heih@yandex.ru"},{varchar,"<...@anriya.ru>"},{int4,608},{int4,608},{int4,null},{int4,null},{varchar,"email_verify.tpl"},{bytea,<<1,50,106,58,131,106>>}]} > zotonic | ** When Server state == > {state,gen_tcp,#Port<0.254333>,<<>>,{366,538468823},on_message,{codec,[],[]},{[],[]},undefined,[{<<"application_name">>,<<>>},{<<"client_encoding">>,<<"UTF8">>},{<<"DateStyle">>,<<"ISO, > > MDY">>},{<<"integer_datetimes">>,<<"on">>},{<<"IntervalStyle">>,<<"postgres">>},{<<"is_superuser">>,<<"off">>},{<<"server_encoding">>,<<"UTF8">>},{<<"server_version">>,<<"9.4.5">>},{<<"session_authorization">>,<<"zotonic">>},{<<"standard_conforming_strings">>,<<"on">>},{<<"TimeZone">>,<<"UTC">>}],[],[],[],[],[],undefined,73} > zotonic | ** Reason for termination == > zotonic | ** > {function_clause,[{epgsql_wire,encode_parameter,[{error,timeout}],[{file,"/srv/zotonic/_build/default/lib/epgsql/src/epgsql_wire.erl"},{line,197}]},{epgsql_wire,encode_parameters,5,[{file,"/srv/zotonic/_build/default/lib/epgsql/src/epgsql_wire.erl"},{line,183}]},{epgsql_sock,command,2,[{file,"/srv/zotonic/_build/default/lib/epgsql/src/epgsql_sock.erl"},{line,218}]},{gen_server,try_handle_call,4,[{file,"gen_server.erl"},{line,615}]},{gen_server,handle_msg,5,[{file,"gen_server.erl"},{line,647}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,247}]}]} > zotonic | > zotonic | ==> /srv/zotonic/priv/log/error.log <== > zotonic | 2016-07-31 15:33:59.134 [error] <0.25420.3> gen_server > <0.25420.3> terminated with reason: no function clause matching > epgsql_wire:encode_parameter({error,timeout}) line 197 > zotonic | > zotonic | ==> /srv/zotonic/priv/log/crash.log <== > zotonic | 2016-07-31 15:33:59 =CRASH REPORT > zotonic | crasher: > zotonic | initial call: epgsql_sock:init/1 > zotonic | pid: <0.25420.3> > zotonic | registered_name: [] > zotonic | exception exit: > {{function_clause,[{epgsql_wire,encode_parameter,[{error,timeout}],[{file,"/srv/zotonic/_build/default/lib/epgsql/src/epgsql_wire.erl"},{line,197}]},{epgsql_wire,encode_parameters,5,[{file,"/srv/zotonic/_build/default/lib/epgsql/src/epgsql_wire.erl"},{line,183}]},{epgsql_sock,command,2,[{file,"/srv/zotonic/_build/default/lib/epgsql/src/epgsql_sock.erl"},{line,218}]},{gen_server,try_handle_call,4,[{file,"gen_server.erl"},{line,615}]},{gen_server,handle_msg,5,[{file,"gen_server.erl"},{line,647}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,247}]}]},[{gen_server,terminate,7,[{file,"gen_server.erl"},{line,812}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,247}]}]} > zotonic | ancestors: > [<0.30865.1>,<0.1468.0>,'z_db_pool$skl',<0.1462.0>,<0.279.0>,z_sites_manager,z_sites_sup,zotonic_sup,<0.265.0>] > zotonic | messages: [] > zotonic | links: [<0.30865.1>,#Port<0.254333>] > zotonic | dictionary: [{datetime_mod,epgsql_idatetime}] > zotonic | trap_exit: false > zotonic | status: running > zotonic | heap_size: 2586 > zotonic | stack_size: 27 > zotonic | reductions: 5503 > zotonic | neighbours: > zotonic | neighbour: > [{pid,<0.30865.1>},{registered_name,[]},{initial_call,{z_db_pgsql,init,['Argument__1']}},{current_function,{gen,do_call,4}},{ancestors,[<0.1468.0>,'z_db_pool$skl',<0.1462.0>,<0.279.0>,z_sites_manager,z_sites_sup,zotonic_sup,<0.265.0>]},{messages,[]},{links,[<0.1468.0>,<0.25420.3>
[Zotonic-Dev] does not work sending mail
zotonic | ==> /srv/zotonic/priv/log/console.log <== zotonic | 2016-07-31 15:33:49.118 [info] <0.25372.3>@z_email_server:spawned_email_sender_loop:591 [smtp] Sending email to "heih@yandex.ru" (<<"ofrtynjva0tysn2g40f5">>), via relay "mail.anriya.ru" zotonic | 2016-07-31 15:33:59.134 [error] <0.25420.3> gen_server <0.25420.3> terminated with reason: no function clause matching epgsql_wire:encode_parameter({error,timeout}) line 197 db | LOG: unexpected EOF on client connection with an open transaction zotonic | zotonic | ==> /srv/zotonic/priv/log/crash.log <== zotonic | 2016-07-31 15:33:59 =ERROR REPORT zotonic | ** Generic server <0.25420.3> terminating zotonic | ** Last message in was {equery,{statement,[],[{column,<<"id">>,int8,8,-1,1}],[int4,varchar,varchar,bytea,varchar,varchar,varchar,int4,int4,int4,int4,varchar,bytea]},[{int4,2},{varchar,<<"ofrtynjva0tysn2g40f5">>},{varchar,retry},{bytea,{error,timeout}},{varchar,"mx.yandex.ru"},{varchar,"heih@yandex.ru"},{varchar,"<...@anriya.ru>"},{int4,608},{int4,608},{int4,null},{int4,null},{varchar,"email_verify.tpl"},{bytea,<<1,50,106,58,131,106>>}]} zotonic | ** When Server state == {state,gen_tcp,#Port<0.254333>,<<>>,{366,538468823},on_message,{codec,[],[]},{[],[]},undefined,[{<<"application_name">>,<<>>},{<<"client_encoding">>,<<"UTF8">>},{<<"DateStyle">>,<<"ISO, MDY">>},{<<"integer_datetimes">>,<<"on">>},{<<"IntervalStyle">>,<<"postgres">>},{<<"is_superuser">>,<<"off">>},{<<"server_encoding">>,<<"UTF8">>},{<<"server_version">>,<<"9.4.5">>},{<<"session_authorization">>,<<"zotonic">>},{<<"standard_conforming_strings">>,<<"on">>},{<<"TimeZone">>,<<"UTC">>}],[],[],[],[],[],undefined,73} zotonic | ** Reason for termination == zotonic | ** {function_clause,[{epgsql_wire,encode_parameter,[{error,timeout}],[{file,"/srv/zotonic/_build/default/lib/epgsql/src/epgsql_wire.erl"},{line,197}]},{epgsql_wire,encode_parameters,5,[{file,"/srv/zotonic/_build/default/lib/epgsql/src/epgsql_wire.erl"},{line,183}]},{epgsql_sock,command,2,[{file,"/srv/zotonic/_build/default/lib/epgsql/src/epgsql_sock.erl"},{line,218}]},{gen_server,try_handle_call,4,[{file,"gen_server.erl"},{line,615}]},{gen_server,handle_msg,5,[{file,"gen_server.erl"},{line,647}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,247}]}]} zotonic | zotonic | ==> /srv/zotonic/priv/log/error.log <== zotonic | 2016-07-31 15:33:59.134 [error] <0.25420.3> gen_server <0.25420.3> terminated with reason: no function clause matching epgsql_wire:encode_parameter({error,timeout}) line 197 zotonic | zotonic | ==> /srv/zotonic/priv/log/crash.log <== zotonic | 2016-07-31 15:33:59 =CRASH REPORT zotonic | crasher: zotonic | initial call: epgsql_sock:init/1 zotonic | pid: <0.25420.3> zotonic | registered_name: [] zotonic | exception exit: {{function_clause,[{epgsql_wire,encode_parameter,[{error,timeout}],[{file,"/srv/zotonic/_build/default/lib/epgsql/src/epgsql_wire.erl"},{line,197}]},{epgsql_wire,encode_parameters,5,[{file,"/srv/zotonic/_build/default/lib/epgsql/src/epgsql_wire.erl"},{line,183}]},{epgsql_sock,command,2,[{file,"/srv/zotonic/_build/default/lib/epgsql/src/epgsql_sock.erl"},{line,218}]},{gen_server,try_handle_call,4,[{file,"gen_server.erl"},{line,615}]},{gen_server,handle_msg,5,[{file,"gen_server.erl"},{line,647}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,247}]}]},[{gen_server,terminate,7,[{file,"gen_server.erl"},{line,812}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,247}]}]} zotonic | ancestors: [<0.30865.1>,<0.1468.0>,'z_db_pool$skl',<0.1462.0>,<0.279.0>,z_sites_manager,z_sites_sup,zotonic_sup,<0.265.0>] zotonic | messages: [] zotonic | links: [<0.30865.1>,#Port<0.254333>] zotonic | dictionary: [{datetime_mod,epgsql_idatetime}] zotonic | trap_exit: false zotonic | status: running zotonic | heap_size: 2586 zotonic | stack_size: 27 zotonic | reductions: 5503 zotonic | neighbours: zotonic | neighbour: [{pid,<0.30865.1>},{registered_name,[]},{initial_call,{z_db_pgsql,init,['Argument__1']}},{current_function,{gen,do_call,4}},{ancestors,[<0.1468.0>,'z_db_pool$skl',<0.1462.0>,<0.279.0>,z_sites_manager,z_sites_sup,zotonic_sup,<0.265.0>]},{messages,[]},{links,[<0.1468.0>,<0.25420.3>,<0.1467.0>]},{dictionary,[]},{trap_exit,false},{status,waiting},{heap_size,2586},{stack_size,25},{reductions,7109}] zotonic | 2016-07-31 15:33:59 =SUPERVISOR REPORT zotonic | Supervisor: {<0.1468.0>,poolboy_sup} zotonic | Context:child_terminated zotonic | Reason: {function_clause,[{epgsql_wire,encode_parameter,[{error,timeout}],[{file,"/srv/zotonic/_build/default/lib/epgsql/src/epgsql_wire.erl"},{line,197}]},{epgsql_wire,encode_parameters,5,[{file,"/srv/zotonic/_build/default/lib/epgsql/src/epgsq