Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Cannot add site
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  Messages 26 - 42 of 42 - Collapse all  -  Translate all to Translated (View all originals) < Older 
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Alexey Marunin  
View profile  
 More options Oct 1 2012, 5:48 pm
From: Alexey Marunin <gmaric...@gmail.com>
Date: Mon, 1 Oct 2012 14:48:14 -0700 (PDT)
Local: Mon, Oct 1 2012 5:48 pm
Subject: Re: Cannot add site

Hi Amiramix

So, the hostname is now OK. But as I understood from previous emails

> addsite does work for you now, doesn't it?

Yes, now all commands work fine. Seems problem was in the incorrect hostname

> The lack of pictures is probably due to the fact that module Bootstrap
> isn't enabled by default. At least that was the reason for me.

How check status of this module? And how enable it?
I try to build latest ImageMagick on my server - but not enough RAM to do
it. I think because of 64bit-architecture (on the same system but
x86-architecture ImageMagick successfully built). So may be your advice
helps me

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Alain O'Dea  
View profile  
 More options Oct 1 2012, 9:07 pm
From: Alain O'Dea <alain.o...@gmail.com>
Date: Mon, 1 Oct 2012 18:07:43 -0700 (PDT)
Local: Mon, Oct 1 2012 9:07 pm
Subject: Re: Cannot add site

Hi Alexey:

You can enable modules under System | Modules in Admin.  It is also
accessible at http://example.com/admin/modules where example.com is your
domain name :)

Drop me a line if you need assistance.

Best,
Alain


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Alexey Marunin  
View profile  
 More options Oct 2 2012, 3:27 pm
From: Alexey Marunin <gmaric...@gmail.com>
Date: Tue, 2 Oct 2012 12:27:04 -0700 (PDT)
Local: Tues, Oct 2 2012 3:27 pm
Subject: Re: Cannot add site

Hi Alain

> You can enable modules under System | Modules in Admin.  It is also
> accessible at http://example.com/admin/modules where example.com is your
> domain name :)

This module activated in my admin. But pictures still don`t display
correctly

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Alain O'Dea  
View profile  
 More options Oct 2 2012, 9:35 pm
From: Alain O'Dea <alain.o...@gmail.com>
Date: Tue, 2 Oct 2012 18:35:12 -0700 (PDT)
Local: Tues, Oct 2 2012 9:35 pm
Subject: Re: Cannot add site

Hi Alexey:

I have run into this a few times.

Do you have the module for your site activated?  For me it is simply called
"blog zotonic site".  If this is deactivated, you will not get a functional
site.

Do you also have Zotonic Base activated?

I hope you don't mind the trial and error approach.  It can be quite
difficult to know the specific issue sometimes :)

Best,
Alain


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Alexey Marunin  
View profile  
 More options Oct 3 2012, 4:10 pm
From: Alexey Marunin <gmaric...@gmail.com>
Date: Wed, 3 Oct 2012 13:10:12 -0700 (PDT)
Local: Wed, Oct 3 2012 4:10 pm
Subject: Re: Cannot add site

> Do you have the module for your site activated?  For me it is simply
> called "blog zotonic site".  If this is deactivated, you will not get a
> functional site.

Yes, green light :)

Do you also have Zotonic Base activated?


Yes

> I hope you don't mind the trial and error approach.  It can be quite
> difficult to know the specific issue sometimes :)

I know sometimes difficult questions have a simple solution :)

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Dawid Figiel  
View profile  
 More options Oct 15 2012, 8:15 pm
From: Dawid Figiel <dawid.fig...@gmail.com>
Date: Mon, 15 Oct 2012 17:15:38 -0700 (PDT)
Local: Mon, Oct 15 2012 8:15 pm
Subject: Re: Cannot add site

Hello,

I also have some hostname related problems:

dawid@asusek:$ cd bin
dawid@asusek:$ ./zotonic start
Starting zotonic zotonic...@asusek.local
dawid@asusek:$ ./zotonic status
Running: zotonic...@asusek.local

Sites Status:
=============
{"init terminating in
do_boot",{function_clause,[{zotonic,'-status/1-lc$^0/1-0-',[{badrpc,nodedow n}],[{file,"src/zotonic.erl"},{line,83}]},{zotonic,status,1,[{file,"src/zot onic.erl"},{line,83}]},{init,start_it,1,[]},{init,start_em,1,[]}]}}

Crash dump was written to: erl_crash.dump
init terminating in do_boot ()

dawid@asusek:$ erl_call -name  zotonic...@asusek.local
erl_call: failed to connect to node zotonic...@asusek.local

dawid@asusek:$ ./zotonic stop
Stopping zotonic zotonic...@asusek.local
Stopping:'zotonic...@asusek.local'
There is no node with this name

(zotonic...@asusek.local)3> zotonic:status().
zotonic_status      - running
ok

My environment:

Zotonic - from git repository.

host 127.0.0.1
1.0.0.127.in-addr.arpa domain name pointer localhost.

/etc/hosts:
127.0.0.1 localhost
127.0.0.1 asusek

nslookup 127.0.0.1Server:               127.0.0.1
Address:        127.0.0.1#53

1.0.0.127.in-addr.arpa  name = localhost.

ALSO:
(zotonic...@asusek.local)4> net_adm:localhost().
"asusek"
(zotonic...@asusek.local)5> inet:gethostname().
{ok,"asusek"}
(zotonic...@asusek.local)6> erlang:get_cookie().
'LJAVWETBDROCJZORXVBI'
(zotonic...@asusek.local)7> node().
'zotonic...@asusek.local'

2nd node:
(zotonic002@asusek)1> erlang:get_cookie().
'LJAVWETBDROCJZORXVBI'
(zotonic002@asusek)2> node().
zotonic002@asusek
(zotonic002@asusek)5> rpc:call('zotonic...@asusek.local', z_sites_manager, get_sites_status, []).

=ERROR REPORT==== 16-Oct-2012::01:52:26 ===
** System NOT running to use fully qualified hostnames **
** Hostname asusek.local is illegal **
{badrpc,nodedown}
(zotonic002@asusek)6> rpc:call('zotonic001@asusek', z_sites_manager, get_sites_status, []).      
{badrpc,nodedown}

Probably I have some mismatches with DNS, or some hostsname issues...
How can I fix this?

Cheers,

Dawid


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Dawid Figiel  
View profile  
 More options Oct 15 2012, 8:18 pm
From: Dawid Figiel <dawid.fig...@gmail.com>
Date: Mon, 15 Oct 2012 17:18:57 -0700 (PDT)
Local: Mon, Oct 15 2012 8:18 pm
Subject: Re: Cannot add site

Hello,

I also have some related problems:

dawid@asusek:$ cd bin
dawid@asusek:$ ./zotonic start
Starting zotonic zotonic...@asusek.local
dawid@asusek:$ ./zotonic status
Running: zotonic...@asusek.local

Sites Status:
=============
{"init terminating in
do_boot",{function_clause,[{zotonic,'-status/1-lc$^0/1-0-',[{badrpc,nodedow n}],[{file,"src/zotonic.erl"},{line,83}]},{zotonic,status,1,[{file,"src/zot onic.erl"},{line,83}]},{init,start_it,1,[]},{init,start_em,1,[]}]}}

Crash dump was written to: erl_crash.dump
init terminating in do_boot ()

dawid@asusek:$ erl_call -name  zotonic...@asusek.local
erl_call: failed to connect to node zotonic...@asusek.local

dawid@asusek:$ ./zotonic stop
Stopping zotonic zotonic...@asusek.local
Stopping:'zotonic...@asusek.local'
There is no node with this name

(zotonic...@asusek.local)3> zotonic:status().
zotonic_status      - running
ok

My environment:

Zotonic - from git repository.

host 127.0.0.1
1.0.0.127.in-addr.arpa domain name pointer localhost.

/etc/hosts:
127.0.0.1 localhost
127.0.0.1 asusek

nslookup 127.0.0.1Server:               127.0.0.1
Address:        127.0.0.1#53

1.0.0.127.in-addr.arpa  name = localhost.

(I hope this error has nothing to do with Postgres).

ALSO:
(zotonic...@asusek.local)4> net_adm:localhost().
"asusek"
(zotonic...@asusek.local)5> inet:gethostname().
{ok,"asusek"}
(zotonic...@asusek.local)6> erlang:get_cookie().
'LJAVWETBDROCJZORXVBI'
(zotonic...@asusek.local)7> node().
'zotonic...@asusek.local'

2nd node:
(zotonic002@asusek)1> erlang:get_cookie().
'LJAVWETBDROCJZORXVBI'
(zotonic002@asusek)2> node().
zotonic002@asusek
(zotonic002@asusek)5> rpc:call('zotonic...@asusek.local', z_sites_manager, get_sites_status, []).

=ERROR REPORT==== 16-Oct-2012::01:52:26 ===
** System NOT running to use fully qualified hostnames **
** Hostname asusek.local is illegal **
{badrpc,nodedown}
(zotonic002@asusek)6> rpc:call('zotonic001@asusek', z_sites_manager, get_sites_status, []).      
{badrpc,nodedown}

Probably I have some mismatches with DNS, or some hostname issues...
How can I fix this?

Cheers,

Dawid


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Dawid Figiel  
View profile  
 More options Oct 15 2012, 8:28 pm
From: Dawid Figiel <dawid.fig...@gmail.com>
Date: Tue, 16 Oct 2012 02:28:30 +0200
Local: Mon, Oct 15 2012 8:28 pm
Subject: Re: [Zotonic-Usr] Re: Cannot add site
OK, I found the reason...

sudo su
echo "127.0.0.1  yoursite.local" >> /etc/hosts

This '.local' is confusing ;)

Good night!

D.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Kunthar  
View profile  
 More options Oct 15 2012, 9:10 pm
From: Kunthar <kunt...@gmail.com>
Date: Tue, 16 Oct 2012 04:10:29 +0300
Local: Mon, Oct 15 2012 9:10 pm
Subject: Re: [Zotonic-Usr] Re: Cannot add site
One more seafarer saved the night in the ocean :-)

--
BR,
\|/ Kunthar

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Arjan Scherpenisse  
View profile  
 More options Oct 30 2012, 4:21 pm
From: Arjan Scherpenisse <ar...@scherpenisse.net>
Date: Tue, 30 Oct 2012 21:21:28 +0100
Local: Tues, Oct 30 2012 4:21 pm
Subject: Re: [Zotonic-Usr] Cannot add site

I just committed some changes which deal with the issues in this thread:

- Zotonic now uses code:priv_dir to locate the *erl_call* binary within
the distribution, so that should always work (famous last words)
- Zotonic now runs using *-sname* by default; which prevents these
hostname issues people were getting.  No more need to add *foo.local* to
your hosts file!

Hopefully this makes everybody's life easier.

Arjan

On 09/23/2012 07:42 PM, Alexey Marunin wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jan Willem Luiten  
View profile  
 More options Nov 1 2012, 8:30 am
From: Jan Willem Luiten <janwillem.lui...@gmail.com>
Date: Thu, 1 Nov 2012 05:30:23 -0700 (PDT)
Local: Thurs, Nov 1 2012 8:30 am
Subject: Re: [Zotonic-Usr] Cannot add site

Hmmm,

I did a fresh clone and get the following error:

{error_logger,{{2012,11,1},{13,27,9}},"Can't set short node name!\nPlease
check your configuration\n",[]}
{error_logger,{{2012,11,1},{13,27,9}},crash_report,[[{initial_call,{net_ker nel,init,['Argument__1']}},{pid,<0.19.0>},{registered_name,[]},{error_info, {exit,{error,badarg},[{gen_server,init_it,6,[{file,"gen_server.erl"},{line, 320}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,227}]}]}},{ ancestors,[net_sup,kernel_sup,<0.9.0>]},{messages,[]},{links,[<0.16.0>]},{d ictionary,[{longnames,false}]},{trap_exit,true},{status,running},{heap_size ,377},{stack_size,24},{reductions,206}],[]]}
{error_logger,{{2012,11,1},{13,27,9}},supervisor_report,[{supervisor,{local ,net_sup}},{errorContext,start_error},{reason,{'EXIT',nodistribution}},{off ender,[{pid,undefined},{name,net_kernel},{mfargs,{net_kernel,start_link,[[' zotonic...@combenoire.local',shortnames]]}},{restart_type,permanent},{shutdown,2000}, {child_type,worker}]}]}
{error_logger,{{2012,11,1},{13,27,9}},supervisor_report,[{supervisor,{local ,kernel_sup}},{errorContext,start_error},{reason,shutdown},{offender,[{pid, undefined},{name,net_sup},{mfargs,{erl_distribution,start_link,[]}},{restar t_type,permanent},{shutdown,infinity},{child_type,supervisor}]}]}
{error_logger,{{2012,11,1},{13,27,9}},std_info,[{application,kernel},{exite d,{shutdown,{kernel,start,[normal,[]]}}},{type,permanent}]}
{"Kernel pid
terminated",application_controller,"{application_start_failure,kernel,{shut down,{kernel,start,[normal,[]]}}}"}

Crash dump was written to: erl_crash.dump
Kernel pid terminated (application_controller)
({application_start_failure,kernel,{shutdown,{kernel,start,[normal,[]]}}})

Op dinsdag 30 oktober 2012 21:21:30 UTC+1 schreef Arjan Scherpenisse het
volgende:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Andreas Stenius  
View profile  
 More options Nov 1 2012, 8:42 am
From: Andreas Stenius <andreas.sten...@astekk.se>
Date: Thu, 1 Nov 2012 13:42:32 +0100
Local: Thurs, Nov 1 2012 8:42 am
Subject: Re: [Zotonic-Usr] Cannot add site

There was a change recently regarding this (
https://github.com/zotonic/zotonic/commit/62b80da1d712ce1b91802450a56...)

Commit message was:

core: Make configurable whether we run with -name or with -sname

This fixes the fact that Zotonic always required a FQDN and the
"zotonic shell" command was not working reliably.

Zotonic now defaults to running with "-sname". To use "-name", set the
envirnoment variable ZOTONIC_DISTRIBUTED=true. Distributed
mode *really* requires a proper FQDN as returned by "hostname -f".

A better way to determine if Zotonic is running has also been added,
using "erl_call", and we determine more reliably where the "erl_call"
binary is located.

//Andreas

2012/11/1 Jan Willem Luiten <janwillem.lui...@gmail.com>


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Arjan Scherpenisse  
View profile  
 More options Nov 1 2012, 10:35 am
From: Arjan Scherpenisse <ar...@scherpenisse.net>
Date: Thu, 01 Nov 2012 15:35:46 +0100
Local: Thurs, Nov 1 2012 10:35 am
Subject: Re: [Zotonic-Usr] Cannot add site

This is an interesting one.

Do you start with "zotonic start" or "zotonic debug"?

With either of those, can you open src/scripts/zotonic-start (or
zotonic-debug) and, on the last line of the file add an "echo" in frond
of the call to $ERL?

so the line becomes something like:

echo $ERL -env ERL_MAX_PORTS $MAX_PORTS +P $MAX_PROCESSES +K
$KERNEL_POLL -pa $PA $NAME_ARG $NODENAME@$HOSTNAME -boot start_sasl
-config $ZOTONIC/priv/erlang.config -heart -detached -s zotonic

and then run zotonic start, copypaste that line here.

Hmm, come to think of it, does the *-sname* part need a hostname (-sname
foo@bar) at all, or without? (just -sname foo)
Erlang gurus, are you listening? :)

Arjan

On 11/01/2012 01:30 PM, Jan Willem Luiten wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Arjan Scherpenisse  
View profile  
 More options Nov 1 2012, 10:36 am
From: Arjan Scherpenisse <ar...@scherpenisse.net>
Date: Thu, 01 Nov 2012 15:36:12 +0100
Local: Thurs, Nov 1 2012 10:36 am
Subject: Re: [Zotonic-Usr] Cannot add site

Oh, reporting your OS, OS version, erlang version, might also help :)

On 11/01/2012 01:30 PM, Jan Willem Luiten wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jan Willem Luiten  
View profile  
 More options Nov 1 2012, 10:44 am
From: Jan Willem Luiten <janwillem.lui...@gmail.com>
Date: Thu, 1 Nov 2012 07:44:48 -0700 (PDT)
Local: Thurs, Nov 1 2012 10:44 am
Subject: Re: [Zotonic-Usr] Cannot add site

Hello Arjan,

Running Mac OS X version 10.7.5, erlang R15B02. Zotonic will start with the
following command:

$ ZOTONIC_DISTRIBUTED=true bin/zotonic debug

But that was not the issue.

Here's the result from the echo:

erl -env ERL_MAX_PORTS 256 +P 10000000 +K true -pa
/Users/janwillem/github/local/my_zotonic/ebin
/Users/janwillem/github/local/my_zotonic/deps/bert.erl/ebin
/Users/janwillem/github/local/my_zotonic/deps/dh_date/ebin
/Users/janwillem/github/local/my_zotonic/deps/gen_smtp/ebin
/Users/janwillem/github/local/my_zotonic/deps/iconv/ebin
/Users/janwillem/github/local/my_zotonic/deps/lager/ebin
/Users/janwillem/github/local/my_zotonic/deps/mimetypes/ebin
/Users/janwillem/github/local/my_zotonic/deps/mochiweb/ebin
/Users/janwillem/github/local/my_zotonic/deps/ua_classifier/ebin
/Users/janwillem/github/local/my_zotonic/deps/webzmachine/ebin
/Users/janwillem/github/local/my_zotonic/deps/z_stdlib/ebin
/Users/janwillem/github/local/my_zotonic/modules/mod_oauth/deps/erlang-oaut h/ebin
/Users/janwillem/github/local/my_zotonic/priv/modules/*/deps/*/ebin
/Users/janwillem/github/local/my_zotonic/priv/sites/*/modules/*/deps/*/ebin
-sname zotonic...@combenoire.local -boot start_sasl -config
/Users/janwillem/github/local/my_zotonic/priv/erlang.config -heart
-detached -s zotonic

Regards,

Jan Willem.

Op donderdag 1 november 2012 15:36:14 UTC+1 schreef Arjan Scherpenisse het
volgende:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Andreas Stenius  
View profile  
 More options Nov 1 2012, 11:23 am
From: Andreas Stenius <andreas.sten...@astekk.se>
Date: Thu, 1 Nov 2012 16:23:21 +0100
Local: Thurs, Nov 1 2012 11:23 am
Subject: Re: [Zotonic-Usr] Cannot add site

From: http://erlang.org/doc/man/erl.html

*-sname Name*

Makes the Erlang runtime system into a distributed node, similar to -name,
but the host name portion of the node name Name@Host will be the short
name, not fully qualified.

This is sometimes the only way to run distributed Erlang if the DNS (Domain
Name System) is not running. There can be no communication between nodes
running with the -sname flag and those running with the -name flag, as node
names must be unique in distributed Erlang systems.

*-name Name*

Makes the Erlang runtime system into a distributed node. This flag invokes
all network servers necessary for a node to become distributed. See
net_kernel(3) <http://erlang.org/doc/man/net_kernel.html>. It is also
ensured that epmd runs on the current host before Erlang is started. See
epmd(1) <http://erlang.org/doc/man/epmd.html>.

The name of the node will be Name@Host, where Host is the fully qualified
host name of the current host. For short names, use the -sname flag instead.

2012/11/1 Arjan Scherpenisse <ar...@scherpenisse.net>


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Arjan Scherpenisse  
View profile  
 More options Nov 1 2012, 11:54 am
From: Arjan Scherpenisse <ar...@scherpenisse.net>
Date: Thu, 01 Nov 2012 16:54:32 +0100
Local: Thurs, Nov 1 2012 11:54 am
Subject: Re: [Zotonic-Usr] Cannot add site

Thanks!

In the chatroom we figured out what's wrong. I pushed a fix.

Arjan

On 11/01/2012 03:44 PM, Jan Willem Luiten wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages < Older 
« Back to Discussions « Newer topic     Older topic »