Problem with node name
Raimo Niskanen
raimo@REDACTED
Thu Jun 23 09:01:37 CEST 2005
I think the problem is not in mnesia; it is just that '-' is not
a valid character in an atom, so the atom must be quoted with
single quotes: 'a-tom'.
A you see in the error printout:
> application_controller: syntax error before: e055: [master1@REDACTED]
the node name atom has not been quoted, so it is interpreted as:
[ 'master1@REDACTED' - 6881 'e055' ]
hence, invalid syntax.
You will have to convince your shell to pass the single quotes
into the erl program. Perhaps try:
erl -sname mb1 -mnesia extra_db_nodes "['master1@REDACTED']" \
-s mnesia start
Are you shure the '[]' brackets are supposed to bee there too?
joelr1@REDACTED (Joel Reymont) writes:
> On Jun 22, 2005, at 8:51 PM, Chandrashekhar Mullaparthi wrote:
>
> > Putting the nodename within '' takes care of all the funny
> > characters in the nodename.
>
> This is what I mean:
>
> erl -sname mb1 -mnesia extra_db_nodes \[master1@REDACTED\] -s
> mnesia start
> Erlang (BEAM) emulator version 5.4.8 [source] [hipe]
>
> Eshell V5.4.8 (abort with ^G)
> (mb1@REDACTED)1>
> =ERROR REPORT==== 22-Jun-2005::20:58:07 ===
> application_controller: syntax error before: e055: [master1@REDACTED]
> (mb1@REDACTED)1>
>
> erl -sname mb1 -mnesia extra_db_nodes \['master1@REDACTED'\] -s
> mnesia start
> Erlang (BEAM) emulator version 5.4.8 [source] [hipe]
>
> Eshell V5.4.8 (abort with ^G)
> (mb1@REDACTED)1>
> =ERROR REPORT==== 22-Jun-2005::20:59:19 ===
> application_controller: syntax error before: e055: [master1@REDACTED]
>
> (mb1@REDACTED)1> halt().
>
--
/ Raimo Niskanen, Erlang/OTP, Ericsson AB
More information about the erlang-questions
mailing list