Mnesia can't work with a database after node name got changed. You need to
export old database, create new one then import old one
- http://erlang.org/doc/apps/mnesia/Mnesia_chap7.html#id78870
вторник, 3 марта 2015 г., 20:35:45 UTC+3 пользователь Rana Aich написал:
>
> Hi All,
>
> I'm having a strange problem when I work with Chicagoboss at my home. Once
> a week I work from home, as I'm doing today. When I start Chicagoboss in
> the office it's perfectly alright. When I'm working at office my
> boss.config configuration looks as follows:
>
> {session_adapter, mnesia},
> {session_key, "_boss_session"},
> {session_exp_time, 525600},
> {session_enable, true},
> % {session_mnesia_nodes, [node()]}, % <- replace "node()" with a node
> name
> {session_mnesia_nodes, ['myapp@abc-cn123456-wifi']}, % <- replace
> "node()" with a node name
> % {session_domain, ".domain.com"},
>
> But when I work from home the computer name changes as I connect to my
> home wifi. The Computer name shows ABC-CN123456
> and I change my boss.config accordingly.
>
> At home my boss.config is as follows. And I delete the Mnesia directory to
> start the development phase from the scratch.
>
> {session_adapter, mnesia},
> {session_key, "_boss_session"},
> {session_exp_time, 525600},
> {session_enable, true},
> % {session_mnesia_nodes, [node()]}, % <- replace "node()" with a node
> name
> {session_mnesia_nodes, ['myapp@ABC-CN123456']}, % <- replace "node()"
> with a node name
> % {session_domain, ".domain.com"},
>
> But I'm having difficulty in starting Chicagoboss with init-dev.sh.
>
> It seems the cowboy is restarting always after 7-8 secs interval.
>
> I'm sure there is a solution to it. What would be correct boss.config
> values for session_mnesia_nodes so that I don't have to reconfigure again
> when the computer name changes. Any help will be really appreciated.
>
>
>
>
--
You received this message because you are subscribed to the Google Groups
"ChicagoBoss" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
Visit this group at http://groups.google.com/group/chicagoboss.
To view this discussion on the web visit
https://groups.google.com/d/msgid/chicagoboss/33d00807-e6a2-42c8-810e-638d0aeddd68%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.