Message from discussion
Cannot add site
Received: by 10.180.24.135 with SMTP id u7mr1527915wif.3.1348471513807;
Mon, 24 Sep 2012 00:25:13 -0700 (PDT)
X-BeenThere: zotonic-users@googlegroups.com
Received: by 10.180.73.17 with SMTP id h17ls1539941wiv.0.canary; Mon, 24 Sep
2012 00:25:13 -0700 (PDT)
Received: by 10.180.94.98 with SMTP id db2mr1527155wib.2.1348471513419;
Mon, 24 Sep 2012 00:25:13 -0700 (PDT)
Received: by 10.180.94.98 with SMTP id db2mr1527154wib.2.1348471513405;
Mon, 24 Sep 2012 00:25:13 -0700 (PDT)
Return-Path: <andreas.sten...@gmail.com>
Received: from mail-wi0-f176.google.com (mail-wi0-f176.google.com [209.85.212.176])
by gmr-mx.google.com with ESMTPS id cx9si585091wib.0.2012.09.24.00.25.13
(version=TLSv1/SSLv3 cipher=OTHER);
Mon, 24 Sep 2012 00:25:13 -0700 (PDT)
Received-SPF: pass (google.com: domain of andreas.sten...@gmail.com designates 209.85.212.176 as permitted sender) client-ip=209.85.212.176;
Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of andreas.sten...@gmail.com designates 209.85.212.176 as permitted sender) smtp.mail=andreas.sten...@gmail.com; dkim=pass header...@gmail.com
Received: by wibhn17 with SMTP id hn17so3373222wib.5
for <zotonic-users@googlegroups.com>; Mon, 24 Sep 2012 00:25:13 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20120113;
h=mime-version:sender:in-reply-to:references:date
:x-google-sender-auth:message-id:subject:from:to:content-type;
bh=ZdpG2SfkC3YQCGKrX61j1ywM/ccUfsmRVilGj0TzjTg=;
b=0Bd5F39i+sMOb5E0l/TD6kdPNR/zqGM0PwHnRv/07goSDaNPGzSq9MyKHUsuHQ5kh0
+xj0mAj2lO4ZObcuvNJAZVsEDt00ezkAaT5i3bvGbJ05NR2wVSjOflzOFsy1P5lwG8FA
vt03HO8C8Ul4aEqwLFCmTgjm2eQs6mfPyeWvekTAt4IDTOfNAIbyVJ0nTi2YSxhuveXf
MKvCHrq+d0zj2RxJGFNjW738F01v8GEn7XmKyqw1ptFiQqRzCBwZ95LD+rX/tyVUOX5m
eFxnBWN0JPJtecI4LSXH9+hEobUohxUCJv2u+YxyJezXK3O7t29vRsFOrMtgJ2Q10vy9
5+VQ==
MIME-Version: 1.0
Received: by 10.180.100.131 with SMTP id ey3mr12292935wib.15.1348471513231;
Mon, 24 Sep 2012 00:25:13 -0700 (PDT)
Sender: andreas.sten...@gmail.com
Received: by 10.194.14.106 with HTTP; Mon, 24 Sep 2012 00:25:13 -0700 (PDT)
In-Reply-To: <5607ef89-eb62-40c9-8f5d-6fa30941e42c@googlegroups.com>
References: <c586fc87-7f39-449a-9423-8922e6a17345@googlegroups.com>
<5607ef89-eb62-40c9-8f5d-6fa30941e42c@googlegroups.com>
Date: Mon, 24 Sep 2012 09:25:13 +0200
Message-ID: <CABCxKrdMYN8nEi4Sf0a2qHrydNzO3hYa5aumczXa5nJNRk6...@mail.gmail.com>
Subject: Re: [Zotonic-Usr] Re: Cannot add site
From: Andreas Stenius <andreas.sten...@astekk.se>
To: zotonic-users@googlegroups.com
Content-Type: multipart/alternative; boundary=f46d0444ec19892fda04ca6d7dc5
--f46d0444ec19892fda04ca6d7dc5
Content-Type: text/plain; charset=ISO-8859-1
I think we ought to have some more diagnostics built in to try to pin point
the issue when
there's a node we fail to communicate with, as this is rather basic, to be
able to do anything else.
Ah, so I went ahead and opened an issue for it:
https://github.com/zotonic/zotonic/issues/423
//Andreas
2012/9/24 Amiramix <li...@gjunka.com>
> It may not be enough to change hostname. It wasn't in my case at least.
> Zotonic required that the full qualified name is returned, e.g. that both
> forward and backward dns entries are present.
>
> First of all check what "host YOURIP" returns. It should return the
> hostname. You can also try "nslookup YOURIP", e.g.:
>
> host 192.168.1.68
> or
> nslookup 192.168.1.68
>
> Where YOURIP or 192.168.1.68 in the example above is the IP of your
> server. With dig you could do:
>
> dig youhostname.com
> dig -x YOURIP
>
> In Erlang shell, after starting Zotonic, you can try net_adm:localhost().
> and inet:gethostname().
>
> Please post outputs of those commands. I don't remember what the values
> were in my case but I do remember that until I sorted them out to return
> proper values the Erlang node couldn't resolve the hostname properly and be
> communicated with by commands like zotonic-addsite.
>
>
> On Sunday, September 23, 2012 6:42:00 PM UTC+1, Alexey Marunin wrote:
>>
>> Hi, all!
>>
>> Try to create new site:
>>
>> cd bin
>> ./zotonic addsite
>>
>> Zotonic is not running. You need to start zotonic first to use this
>> command.
>>
>> But
>> ps -fe | grep zotonic
>> zotonic 28767 1 1 21:34 ? 00:00:03
>> /usr/lib/erlang/erts-5.8/bin/**beam -- -root /usr/lib/erlang -progname
>> erl -- -home /home/zotonic -- -pa /home/zotonic/zotonic/0.9.0/**ebin
>> /home/zotonic/zotonic/0.9.0/**deps/bert.erl/ebin
>> /home/zotonic/zotonic/0.9.0/**deps/dh_date/ebin
>> /home/zotonic/zotonic/0.9.0/**deps/gen_smtp/ebin
>> /home/zotonic/zotonic/0.9.0/**deps/iconv/ebin
>> /home/zotonic/zotonic/0.9.0/**deps/lager/ebin
>> /home/zotonic/zotonic/0.9.0/**deps/mimetypes/ebin
>> /home/zotonic/zotonic/0.9.0/**deps/mochiweb/ebin
>> /home/zotonic/zotonic/0.9.0/**deps/ua_classifier/ebin
>> /home/zotonic/zotonic/0.9.0/**deps/webzmachine/ebin
>> /home/zotonic/zotonic/0.9.0/**modules/mod_oauth/deps/erlang-**oauth/ebin
>> /home/zotonic/zotonic/0.9.0/**priv/modules/*/deps/*/ebin
>> /home/zotonic/zotonic/0.9.0/**priv/sites/*/modules/*/deps/*/**ebin -name
>> zotonic09@localhost -boot start_sasl -heart -noshell -noinput -s zotonic
>> zotonic 28768 28767 0 21:34 ? 00:00:00 heart -pid 28767
>>
>> What I do wrong?
>>
>> PS. Sorry for my bad English :)
>>
>>
>>
--f46d0444ec19892fda04ca6d7dc5
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
I think we ought to have some more diagnostics built in to try to pin point=
the issue when<div>there's a node we fail to communicate with, as this=
is rather basic, to be able to do anything else.</div><div><br></div><div>
Ah, so I went ahead and opened an issue for it:=A0
<a href=3D"https://github.com/zotonic/zotonic/issues/423">https://github.co=
m/zotonic/zotonic/issues/423</a>=A0</div><div><br>//Andreas</div><div><br><=
div class=3D"gmail_quote">2012/9/24 Amiramix <span dir=3D"ltr"><<a href=
=3D"mailto:li...@gjunka.com" target=3D"_blank">li...@gjunka.com</a>></sp=
an><br>
<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex">It may not be enough to change hostname. It =
wasn't in my case at least. Zotonic required that the full qualified na=
me is returned, e.g. that both forward and backward dns entries are present=
.<br>
<br>First of all check what "host YOURIP" returns. It should retu=
rn the hostname. You can also try "nslookup YOURIP", e.g.:<br><br=
>host 192.168.1.68<br>or<br>nslookup 192.168.1.68<br><br>Where YOURIP or 19=
2.168.1.68 in the example above is the IP of your server. With dig you coul=
d do:<br>
<br>dig <a href=3D"http://youhostname.com" target=3D"_blank">youhostname.co=
m</a><br>dig -x YOURIP<br><br>In Erlang shell, after starting Zotonic, you =
can try net_adm:localhost(). and inet:gethostname().<br><br>Please post out=
puts of those commands. I don't remember what the values were in my cas=
e but I do remember that until I sorted them out to return proper values th=
e Erlang node couldn't resolve the hostname properly and be communicate=
d with by commands like zotonic-addsite.<div class=3D"HOEnZb">
<div class=3D"h5"><br><br>On Sunday, September 23, 2012 6:42:00 PM UTC+1, A=
lexey Marunin wrote:<blockquote class=3D"gmail_quote" style=3D"margin:0;mar=
gin-left:0.8ex;border-left:1px #ccc solid;padding-left:1ex">Hi, all!<div><b=
r>
</div><div>Try to create new site:</div><div><br></div><div>cd bin<br></div=
><div>./zotonic addsite</div><div><br></div><div>Zotonic is not running. Yo=
u need to start zotonic first to use this command.<br></div><div><br></div>
<div>But</div><div>ps -fe | grep zotonic</div><div><div>zotonic =A028767 =
=A0 =A0 1 =A01 21:34 ? =A0 =A0 =A0 =A000:00:03 /usr/lib/erlang/erts-5.8/bin=
/<u></u>beam -- -root /usr/lib/erlang -progname erl -- -home /home/zotonic =
-- -pa /home/zotonic/zotonic/0.9.0/<u></u>ebin /home/zotonic/zotonic/0.9.0/=
<u></u>deps/bert.erl/ebin /home/zotonic/zotonic/0.9.0/<u></u>deps/dh_date/e=
bin /home/zotonic/zotonic/0.9.0/<u></u>deps/gen_smtp/ebin /home/zotonic/zot=
onic/0.9.0/<u></u>deps/iconv/ebin /home/zotonic/zotonic/0.9.0/<u></u>deps/l=
ager/ebin /home/zotonic/zotonic/0.9.0/<u></u>deps/mimetypes/ebin /home/zoto=
nic/zotonic/0.9.0/<u></u>deps/mochiweb/ebin /home/zotonic/zotonic/0.9.0/<u>=
</u>deps/ua_classifier/ebin /home/zotonic/zotonic/0.9.0/<u></u>deps/webzmac=
hine/ebin /home/zotonic/zotonic/0.9.0/<u></u>modules/mod_oauth/deps/erlang-=
<u></u>oauth/ebin /home/zotonic/zotonic/0.9.0/<u></u>priv/modules/*/deps/*/=
ebin /home/zotonic/zotonic/0.9.0/<u></u>priv/sites/*/modules/*/deps/*/<u></=
u>ebin -name zotonic09@localhost -boot start_sasl -heart -noshell -noinput =
-s zotonic</div>
<div>zotonic =A028768 28767 =A00 21:34 ? =A0 =A0 =A0 =A000:00:00 heart -pid=
28767</div></div><div><br></div><div>What I do wrong?</div><div><br></div>=
<div>PS. Sorry for my bad English :)</div><div><br></div><div><br></div></b=
lockquote>
</div></div></blockquote></div><br></div>
--f46d0444ec19892fda04ca6d7dc5--