{error,undef,...language,...

49 views
Skip to first unread message

Iván Martínez

unread,
Aug 12, 2011, 2:22:17 PM8/12/11
to Zotonic users
Hello all,
After following the installation procedure and creating a
"laptop.masterion.net" site I put the address http://laptop.masterion.net:8000/
in my local browser but I can't see anything and I get the error
below. My system is a Linux Fedora 14. What can be wrong?. Thank you.
Ivan

=ERROR REPORT==== 12-Aug-2011::20:10:12 ===
webmachine error: path="/"
{error,
{error,undef,
[{'template_laptop.masterion.z_context',language,
[{context,
{wm_reqdata,#Port<0.4525>,
{dict,5,16,16,8,80,48,
{[],[],[],[],[],[],[],[],[],[],[],[],[],[],
[],[]},
{{[],[],[],[],
[[zotonic_host|'laptop.masterion.net'],
['chosen-charset',117,116,102,45,56]],
[[resource_module|resource_page],
['content-type',
116,101,120,116,47,104,116,109,
108]],
[],
[['content-encoding',
105,100,101,110,116,105,116,
121]],
[],[],[],[],[],[],[],[]}}},
undefined,"127.0.0.1",undefined,
{wm_log_data,1001313172611463963,undefined,
{1313,172611,487768},
'GET',
{9,
{"host",
{'Host',"laptop.masterion.net:8000"},
{"accept",
{'Accept',
"text/html,application/xhtml
+xml,application/xml;q=0.9,*/*;q=0.8"},
nil,
{"accept-language",
{'Accept-Language',"en-us,en;q=0.5"},
{"accept-encoding",
{'Accept-Encoding',"gzip,deflate"},
{"accept-charset",
{'Accept-Charset',
"ISO-8859-1,utf-8;q=0.7,*;q=0.7"},
nil,nil},
nil},
{"connection",
{'Connection',"keep-alive"},
nil,
{"cookie",

{'Cookie',"z_pid=8YeLT65f8RXoYJYrHATA"},
nil,nil}}}},
{"user-agent",
{'User-Agent',
"Mozilla/5.0 (X11; U; Linux i686; en-
US; rv:1.9.2.18) Gecko/20110621 Fedora/3.6.18-1.fc14 Firefox/3.6.18"},
{"keep-alive",{'Keep-
Alive',"115"},nil,nil},
nil}}},
"127.0.0.1","/",
{1,1},
404,0,undefined,undefined},
'GET',
{1,1},
[],"/","/",
{dict,2,16,16,8,80,48,
{[],[],[],[],[],[],[],[],[],[],[],[],[],[],
[],[]},
{{[],[],[],[],
[[zotonic_host|'laptop.masterion.net']],
[],[],[],
[[zotonic_dispatch|home]],
[],[],[],[],[],[],[]}}},
[],".",500,1073741824,
[{"z_pid","8YeLT65f8RXoYJYrHATA"}],
[],
[{"accept",
"text/html,application/xhtml+xml,application/
xml;q=0.9,*/*;q=0.8"},
{"accept-
charset","ISO-8859-1,utf-8;q=0.7,*;q=0.7"},
{"accept-encoding","gzip,deflate"},
{"accept-language","en-us,en;q=0.5"},
{"connection","keep-alive"},
{"cookie","z_pid=8YeLT65f8RXoYJYrHATA"},
{"host","laptop.masterion.net:8000"},
{"keep-alive","115"},
{"user-agent",
"Mozilla/5.0 (X11; U; Linux i686; en-US; rv:
1.9.2.18) Gecko/20110621 Fedora/3.6.18-1.fc14 Firefox/3.6.18"}],
not_fetched_yet,false,
{5,
{"set-cookie",
{"Set-Cookie",
"z_sid=6DIkO65YY18sSbmuhw2b; Version=1;
Path=/; HttpOnly"},
{"cache-control",
{"Cache-Control",
"no-store, no-cache, must-revalidate, post-
check=0, pre-check=0"},
nil,
{"expires",
{"Expires","Wed, 10 Dec 2008 14:30:00 GMT"},
{"content-type",
{"Content-Type","text/html;
charset=utf-8"},
nil,nil},
{"p3p",
{"P3P",
"CP=\"NOI ADM DEV PSAi COM NAV OUR OTRo
STP IND DEM\""},
nil,nil}}},
nil}},
<<>>,[],none,
[{last_modified,undefined},
{generate_etag,undefined},
{encodings_provided,
[{"identity",
#Fun<webmachine_resource.0.106118119>}]},
{charsets_provided,
[{"utf-8",#Fun<resource_page.
0.129110770>}]},
{content_types_provided,[{"text/
html",to_html}]}]},

resource_page,<0.458.0>,<0.462.0>,"Y6BcWmPoZUtuXfi5isN0",
'laptop.masterion.net','z_depcache
$laptop.masterion.net',
'z_notifier$laptop.masterion.net',
'z_session_manager$laptop.masterion.net',
'z_dispatcher$laptop.masterion.net',
'z_template$laptop.masterion.net',
'z_scomp$laptop.masterion.net',
'z_dropbox$laptop.masterion.net',
'z_pivot_rsc$laptop.masterion.net',
'z_module_indexer$laptop.masterion.net',
77871,undefined,en,
undefined,undefined,[],[],[],[],[],[],[],
[{session_id,"6DIkO65YY18sSbmuhw2b"},
{set_session_id,true},
{q,[{"zotonic_host","laptop.masterion.net"},
{"zotonic_dispatch","home"}]},
{id,page_home},
{template,"home.tpl"},
{zotonic_dispatch,home}]}]},

{'template_laptop.masterion.net__home_ivanmr_documents_instalaciones_zotonic_priv_sites_laptop_masterion_net_templates_home_tpl',
render2,2},

{'template_laptop.masterion.net__home_ivanmr_documents_instalaciones_zotonic_priv_sites_laptop_masterion_net_templates_home_tpl',
render,2},
{z_template,render1,4},
{resource_page,html,1},
{resource_page,to_html,2},
{webmachine_resource,resource_call,3},
{webmachine_resource,do,3}]}}

Arjan Scherpenisse

unread,
Aug 12, 2011, 2:35:26 PM8/12/11
to zotoni...@googlegroups.com
Hi Iv�n,

I think your 'host' part of your config needs to be a simple string
without any dots. The name of a zotonic site should be valid as a simple
Erlang atom: it should be lowercase and only contain letters, numbers
and the underscore character.

http://zotonic.com/documentation/801/working-with-sites

That might be the problem?

Arjan

Iván Martínez

unread,
Aug 12, 2011, 2:47:08 PM8/12/11
to Zotonic users
Wow, thanks for the fast response!. Yes, I had the same problem with
"masterion.zotonic" but it worked with "masterionz". But the address
in a production system can't be a string without dots. Does it mean in
such situation a HTTP frontend is required, as explained here?:
http://zotonic.com/documentation/777/deployment
Thank you,
Ivan

On Aug 12, 8:35 pm, Arjan Scherpenisse <ar...@scherpenisse.net> wrote:
> Hi Iv n,
>
> I think your 'host' part of your config needs to be a simple string
> without any dots. The name of a zotonic site should be valid as a simple
> Erlang atom: it should be lowercase and only contain letters, numbers
> and the underscore character.
>
> http://zotonic.com/documentation/801/working-with-sites
>
> That might be the problem?
>
> Arjan
>
> On 08/12/2011 08:22 PM, Iv n Mart nez wrote:
>
>
>
>
>
> > Hello all,
> > After following the installation procedure and creating a
> > "laptop.masterion.net" site I put the addresshttp://laptop.masterion.net:8000/

Arjan Scherpenisse

unread,
Aug 12, 2011, 2:52:16 PM8/12/11
to zotoni...@googlegroups.com
There is a difference between the 'host' config entry, which is the
canonical name for the site you're developing, and the 'hostname' config
entry, which is the hostname at which that site will be running. That
last one can perfectly well contain dots. Here is an excerpt from a test
site from mine:

{host, foobar},
{hostname, "127.0.0.1:8000"},

Arjan

Iván Martínez

unread,
Aug 12, 2011, 3:07:26 PM8/12/11
to Zotonic users
I see, thanks a lot.
Ivan

Arjan Scherpenisse

unread,
Sep 5, 2011, 9:09:46 AM9/5/11
to zotoni...@googlegroups.com
I just fixed the addsite command to check on this.

Arjan

Reply all
Reply to author
Forward
0 new messages