Setting up Zotonic from hg repository

3 views
Skip to first unread message

Ivan Uemlianin

unread,
Jan 13, 2010, 8:29:52 AM1/13/10
to Zotonic users
Dear All

I am just trying out Zotonic. Version 0.2.0 compiles and runs fine;
The version from the hg repository compiles OK, but when I run it I
get an error (and no website). The error is a long string of progress
reports, then a crash report and some supervisor reports. Below are
the crash and supervisor reports.

Please can anyone advise on what is the difference between the two
versions, and why one is not running?

Thanks and best wishes

Ivan


=INFO REPORT==== 13-Jan-2010::13:16:35 ===
DEBUG: z_datamodel:150 "manage_resource: resource exists but is not
managed by us."

=INFO REPORT==== 13-Jan-2010::13:16:35 ===
DEBUG: z_datamodel:151 500

=INFO REPORT==== 13-Jan-2010::13:16:35 ===
DEBUG: z_datamodel:152 page_home

=CRASH REPORT==== 13-Jan-2010::13:16:35 ===
crasher:
initial call: default:init/1
pid: <0.103.0>
registered_name: []
exception exit: {{badmatch,{error,{unknown_rsc,administrator}}},
[{m_rsc,name_to_id_check,2},
{z_datamodel,manage_edge,3},
{z_datamodel,'-manage/3-lc$^4/1-4-',3},
{z_datamodel,manage,3},
{default,init,1},
{gen_server,init_it,6},
{proc_lib,init_p_do_apply,3}]}
in function gen_server:init_it/6
ancestors: ['z_module_sup
$default',<0.86.0>,z_sites_sup,zotonic_sup,
<0.55.0>]
messages: []
links: [<0.102.0>]
dictionary: []
trap_exit: true
status: running
heap_size: 6765
stack_size: 24
reductions: 19642
neighbours:

=SUPERVISOR REPORT==== 13-Jan-2010::13:16:35 ===
Supervisor: {local,'z_module_sup$default'}
Context: start_error
Reason: {{badmatch,{error,{unknown_rsc,administrator}}},
[{m_rsc,name_to_id_check,2},
{z_datamodel,manage_edge,3},
{z_datamodel,'-manage/3-lc$^4/1-4-',3},
{z_datamodel,manage,3},
{default,init,1},
{gen_server,init_it,6},
{proc_lib,init_p_do_apply,3}]}
Offender: [{pid,undefined},
{name,default},
{mfa,
{default,start_link,
[[{context,

{context,undefined,undefined,undefined,

undefined,undefined,undefined,default,
'z_depcache$default','z_notifier
$default',
'z_session_manager$default',
'z_visitor_manager$default',
'z_dispatcher$default',
'z_template$default','z_scomp
$default',
'z_dropbox$default','z_pivot_rsc
$default',
'z_module_indexer$default',
'z_module_sup
$default',undefined,en,
undefined,undefined,[],[],[],[],[],
[],[],
[]}},
{enabled,true},
{host,default},
{hostname,"localhost:8000"},
{hostalias,"www.example.com"},
{dbhost,"localhost"},
{dbport,5432},
{dbuser,"zotonic"},
{dbpassword,"123"},
{dbdatabase,"zotonic"},
{adminpassword,"admin"},
{sign_key_simple,<<"123">>},
{sign_key,<<"123">>},
{title,<<"Your first blog">>},
{subtitle,
<<"Built with Zotonic, the Erlang
CMS.">>},
{pagelen,5}]]}},
{restart_type,permanent},
{shutdown,5000},
{child_type,worker}]


=SUPERVISOR REPORT==== 13-Jan-2010::13:16:35 ===
Supervisor: {<0.86.0>,z_site_sup}
Context: start_error
Reason: shutdown
Offender: [{pid,undefined},
{name,z_module_sup},
{mfa,
{z_module_sup,start_link,
[[{enabled,true},
{host,default},
{hostname,"localhost:8000"},
{hostalias,"www.example.com"},
{dbhost,"localhost"},
{dbport,5432},
{dbuser,"zotonic"},
{dbpassword,"123"},
{dbdatabase,"zotonic"},
{adminpassword,"admin"},
{sign_key_simple,<<"123">>},
{sign_key,<<"123">>},
{title,<<"Your first blog">>},
{subtitle,
<<"Built with Zotonic, the Erlang
CMS.">>},
{pagelen,5}]]}},
{restart_type,permanent},
{shutdown,5000},
{child_type,worker}]


=SUPERVISOR REPORT==== 13-Jan-2010::13:16:35 ===
Supervisor: {local,z_sites_sup}
Context: start_error
Reason: shutdown
Offender: [{pid,undefined},
{name,default},
{mfa,
{z_site_sup,start_link,
[[{enabled,true},
{host,default},
{hostname,"localhost:8000"},
{hostalias,"www.example.com"},
{dbhost,"localhost"},
{dbport,5432},
{dbuser,"zotonic"},
{dbpassword,"123"},
{dbdatabase,"zotonic"},
{adminpassword,"admin"},
{sign_key_simple,<<"123">>},
{sign_key,<<"123">>},
{title,<<"Your first blog">>},
{subtitle,
<<"Built with Zotonic, the Erlang
CMS.">>},
{pagelen,5}]]}},
{restart_type,permanent},
{shutdown,5000},
{child_type,worker}]


=SUPERVISOR REPORT==== 13-Jan-2010::13:16:35 ===
Supervisor: {local,zotonic_sup}
Context: start_error
Reason: shutdown
Offender: [{pid,undefined},
{name,z_sites_sup},
{mfa,{z_sites_sup,start_link,[]}},
{restart_type,permanent},
{shutdown,5000},
{child_type,worker}]


=INFO REPORT==== 13-Jan-2010::13:16:35 ===
application: zotonic
exited: {shutdown,{zotonic_app,start,[normal,[]]}}
type: temporary

Arjan Scherpenisse

unread,
Jan 13, 2010, 8:46:14 AM1/13/10
to zotoni...@googlegroups.com
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Ivan,

this is a migration issue: in the hg tip we have changed some stuff.
We should provide a proper upgrade mechanism but that is planned for the
0.9 release.

For now you can do 2 things:
- - drop the database and recreate it..
- - give the administrator the name 'administrator' in the db:
UPDATE rsc SET name = 'administrator' WHERE id = 1;

let me know if it works!

Arjan

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAktNzqYACgkQigE4AbflYerO3QCeO2IiDC/NpznkBu2qmklGChRX
AA8AoITCkWGQKXBMJd/LxWx5F+J9+9yO
=c6xu
-----END PGP SIGNATURE-----

Ivan Uemlianin

unread,
Jan 13, 2010, 8:59:56 AM1/13/10
to zotoni...@googlegroups.com
Dear Arjan

Thanks v much, now working!

I opted for your second option. Now both versions work. Is there any
reason for keeping hold of the old one, or is the hg checkout stable?

Best

Ivan

Arjan Scherpenisse wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hi Ivan,
>
> this is a migration issue: in the hg tip we have changed some stuff.
> We should provide a proper upgrade mechanism but that is planned for the
> 0.9 release.
>
> For now you can do 2 things:
> - - drop the database and recreate it..
> - - give the administrator the name 'administrator' in the db:
> UPDATE rsc SET name = 'administrator' WHERE id = 1;
>
> let me know if it works!
>
> Arjan
>


--
============================================================
Ivan A. Uemlianin
Speech Technology Research and Development

iv...@llaisdy.com
www.llaisdy.com
llaisdy.wordpress.com
www.linkedin.com/in/ivanuemlianin

"Froh, froh! Wie seine Sonnen, seine Sonnen fliegen"
(Schiller, Beethoven)
============================================================

Arjan Scherpenisse

unread,
Jan 13, 2010, 9:20:42 AM1/13/10
to zotoni...@googlegroups.com
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

For development purposes, using the hg tip is fine. It has more features
:) We're working towards a 0.3 which will be released somewhere next week.

Arjan

Ivan Uemlianin wrote:
> Dear Arjan
>
> Thanks v much, now working!
>
> I opted for your second option. Now both versions work. Is there any
> reason for keeping hold of the old one, or is the hg checkout stable?
>
> Best
>
> Ivan
>
>
>
> Arjan Scherpenisse wrote:
>> -----BEGIN PGP SIGNED MESSAGE-----
>> Hash: SHA1
>>
>> Hi Ivan,
>>
>> this is a migration issue: in the hg tip we have changed some stuff.
>> We should provide a proper upgrade mechanism but that is planned for the
>> 0.9 release.
>>
>> For now you can do 2 things:
>> - - drop the database and recreate it..
>> - - give the administrator the name 'administrator' in the db:
>> UPDATE rsc SET name = 'administrator' WHERE id = 1;
>>
>> let me know if it works!
>>
>> Arjan
>>
>
>

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAktN1roACgkQigE4AbflYeoiuACfaNpJoPK/7i3TzUcvZk3PswiR
/OcAn3tn5st6dCsg9kCBAZi0J3N80hpf
=3H3h
-----END PGP SIGNATURE-----

Reply all
Reply to author
Forward
0 new messages