Zotonic
Zotonic
zotonic@conference.zotonic.com
Wednesday, 4 April 2012< ^ >
arjan has set the subject to: Zotonic - the Erlang CMS
Room Configuration

GMT+2
[07:22:53] maas.maarten.zeeman46619 joins the room
[07:22:54] maas.maarten.zeeman46619 leaves the room
[07:22:54] maas.maarten.zeeman58440 joins the room
[08:12:21] arjan joins the room
[08:13:28] maas.maarten.zeeman58440 leaves the room
[10:53:18] arjan leaves the room
[11:08:35] arjan joins the room
[11:09:50] arjan leaves the room
[11:12:33] arjan joins the room
[13:02:27] maas.maarten.zeeman8117 joins the room
[13:02:27] maas.maarten.zeeman8117 is now known as maas.maarten.zeeman34481
[13:02:27] maas.maarten.zeeman34481 is now known as maas.maarten.zeeman8117
[13:02:27] maas.maarten.zeeman8117 leaves the room
[13:02:27] maas.maarten.zeeman34481 joins the room
[13:02:27] maas.maarten.zeeman34481 is now known as maas.maarten.zeeman90675
[13:02:27] maas.maarten.zeeman90675 leaves the room
[13:02:27] maas.maarten.zeeman90675 joins the room
[13:15:11] fhendrix joins the room
[13:17:20] fhendrix leaves the room
[13:52:34] arjan leaves the room
[14:19:55] maas.maarten.zeeman90675 leaves the room
[14:23:11] arjan joins the room
[14:28:06] fhendrix joins the room
[14:30:56] <fhendrix> Hi there, i have a problem with the email configuration. When I sent the contact form, errors appear in the console, and zotonic don't respond any more.
[14:30:56] maas.maarten.zeeman leaves the room
[14:35:08] <fhendrix> proberly a wrong configuration. the error message is:
[14:35:12] <fhendrix> error when i submit contact form:
** Generic server <0.315.0> terminating
** Last message in was {'$gen_cast',
{log,
{log_email,2,<<"vlljkt5jv9ipc8hcieyx">>,retry,
{error,econnrefused},
"mysite.********.com",
"wwwadmin@mysite.********.com",
"<noreply+vlljkt5jv9ipc8hcieyx@mail.********.com>",
undefined,1,undefined,undefined,
"_email_contact.tpl",[]}}}
** When Server state == {state,
{context,undefined,undefined,undefined,undefined,
undefined,mysite,'z_depcache$mysite',
'z_notifier$mysite',
'z_session_manager$mysite',
'z_dispatcher$mysite','z_template$mysite',
'z_scomp$mysite','z_dropbox$mysite',
'z_pivot_rsc$mysite',
'z_module_indexer$mysite',118839,undefined,en,
admin,1,[],[],[],[],[],[],[],[]},
[]}
** Reason for termination ==
** {badarg,[{io_lib,format,
["~p",{error,econnrefused}],
[{file,"io_lib.erl"},{line,133}]},
{mod_logging,record_to_log_message,4,
[{file,"modules/mod_logging/mod_logging.erl"},
{line,191}]},
{mod_logging,handle_other_log,2,
[{file,"modules/mod_logging/mod_logging.erl"},
{line,168}]},
{mod_logging,handle_cast,2,
[{file,"modules/mod_logging/mod_logging.erl"},
{line,94}]},
{gen_server,handle_msg,5,[{file,"gen_server.erl"},{line,597}]},
{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,227}]}]}
[15:05:04] <arjan> it seems you cannot send mail
[15:05:07] <arjan> error,econnrefused
[15:05:18] <arjan> it says
[15:05:54] <fhendrix> yes indeed I think my configuration isn't right
[15:07:01] <fhendrix> i changed the main configuration smtp_host and now i get the message bare new line detected
[15:08:19] <arjan> oh?
[15:08:31] <arjan> what is your smtp host?
[15:08:38] <arjan> can you copypaste the error output?
[15:09:20] <fhendrix> bare newline detected: <0.12176.0>
bare newline detected: <0.12178.0>
bare newline detected: <0.12413.0>
bare newline detected: <0.12415.0>
bare newline detected: <0.12737.0>
bare newline detected: <0.12739.0>
bare newline detected: <0.12920.0>
bare newline detected: <0.12922.0>
bare newline detected: <0.13142.0>
when i submit the contact form
[15:10:02] <fhendrix> {smtp_relay, true},
{smtp_host, "mail.******.com"},
[15:10:18] <fhendrix> in the main zotonic config fiel
[15:11:56] <fhendrix> and {smtp_bcc, "bcc@*****.com"}
[15:12:52] <arjan> ok
[15:13:38] <fhendrix> also in the site config file : {smtphost, "mail.*****.com"},
[15:14:59] <arjan> might be a problem at your email provider
[15:15:17] <arjan> are you familiar with erlang?
[15:15:39] <fhendrix> I did some programming in it
[15:15:52] <arjan> you might try starting the gen_smtp_server with different options
[15:15:56] <arjan> see https://github.com/Vagabond/gen_smtp
[15:16:07] <arjan> in zotonic it is started in src/smtp/z_email_receive_server.erl
[15:16:35] <arjan> try putting the session options, see if setting the allow_bare_newlines option helps?
[15:17:32] <fhendrix> ok I will look at it and come back to you
[15:19:15] <arjan> k
[15:19:34] <arjan> if it helps, we might expose that option in zotonic's config
[15:20:20] <fhendrix> what kind of problem I could have with my email provider? I expected to see a message in Zotonic for the admin in the email log, message was sent from the contact form
[15:22:06] <arjan> I don't know actually, it goes wrong somewhere inside gen_smtp
[15:22:12] <arjan> when it's communicating with the server
[15:22:17] <arjan> don' t know much about smtp
[15:27:04] <fhendrix> ok i will try gen_smtp first.
[16:15:52] fhendrix leaves the room
[16:51:06] arjan leaves the room
[16:53:39] arjan joins the room
[17:02:45] arjan leaves the room
[17:04:33] arjan joins the room
[18:09:16] <Marc Worrell> For above, there seems to be an error in the io_lib call, the 2nd arg should be a list and is now the error tuple.
[18:09:35] <Marc Worrell> ** {badarg,[{io_lib,format,
                    ["~p",{error,econnrefused}],
                    [{file,"io_lib.erl"},{line,133}]},
            {mod_logging,record_to_log_message,4,
                         [{file,"modules/mod_logging/mod_logging.erl"},
                          {line,191}]},
[18:15:31] <Marc Worrell> seems to be an older error, there is an explicit:
[18:15:32] <Marc Worrell> to_list({error, timeout}) ->
"timeout";
to_list(R) when is_tuple(R) ->
io_lib:format("~p", [R]);
to_list(V) ->
z_convert:to_list(V).
[18:15:40] <Marc Worrell> at least on master
[18:19:27] arjan leaves the room
[18:34:47] arjan joins the room
[18:55:48] arjan leaves the room
[18:59:44] maas.maarten.zeeman joins the room
[19:38:18] arjan joins the room
[20:17:50] arjan leaves the room
Powered by ejabberd Powered by Erlang Valid XHTML 1.0 Transitional Valid CSS!