Zotonic
Zotonic
zotonic@conference.zotonic.com
Friday, 6 April 2012< ^ >
arjan has set the subject to: Zotonic - the Erlang CMS
Room Configuration

GMT+2
[00:32:37] maas.maarten.zeeman leaves the room
[07:24:44] maas.maarten.zeeman joins the room
[07:31:54] maas.maarten.zeeman leaves the room
[08:22:38] arjan joins the room
[08:55:02] arjan leaves the room
[08:59:02] arjan joins the room
[09:11:21] arjan leaves the room
[09:59:48] arjan joins the room
[13:37:31] mconnors@jabber.org joins the room
[14:11:21] mconnors@jabber.org leaves the room
[15:47:05] spanier.michael joins the room
[15:50:12] <spanier.michael> hi anyone out there?
[15:58:06] <arjan> hi
[15:58:25] <arjan> I'm here indeed
[15:58:28] <arjan> idling :P
[15:58:44] <spanier.michael> ;-)
[15:59:36] <spanier.michael> I'm quite neu to erlang and try to get zotonic up and running. So I'm looking for help. If I start zotonic I get the Init terminating in do_boot error
[16:00:26] <spanier.michael> Any idea how to tackle the problem?
[16:00:33] <arjan> did you do 'make'?
[16:00:38] <arjan> before running
[16:01:00] <spanier.michael> hmm sek.
[16:02:23] <spanier.michael> hm thats now _very_ embarrassing .. obviously i didn't
[16:03:25] <arjan> :)
[16:03:33] <arjan> no problem
[16:05:45] <spanier.michael> so now it looks like I have some credentials oroblems during stattup
[16:07:11] <arjan> ah yes
[16:07:12] <arjan> postgres
[16:07:24] <arjan> did you read the installation instructions?
[16:07:48] <spanier.michael> yes but I guess I made some mistakes. I had to adjust to get it running with centos
[16:09:29] <arjan> ok
[16:09:41] <arjan> did you do the pg_hba.conf change to postgres?
[16:10:01] <spanier.michael> brb baby is crying
[16:10:05] <arjan> :)
[16:10:08] <arjan> I know the sound :P
[16:12:28] <spanier.michael> so I have host all all 127.0.0.1/32 trust in pg_hba.conf
[16:12:48] <arjan> what's the error you're getting?
[16:13:13] <spanier.michael> =SUPERVISOR REPORT==== 6-Apr-2012::13:47:47 ===
Supervisor: {<0.243.0>,z_site_sup}
Context: start_error
Reason: {{badmatch,{error,invalid_authorization_specification}},
[16:14:20] <arjan> mmm weird
[16:14:35] <spanier.michael> I guess a wrong db password .. checking
[16:14:50] <arjan> http://groups.google.com/group/zotonic-users/browse_thread/thread/1077a0805563604b
[16:15:03] <arjan> reading that thread maybe helps
[16:15:10] <arjan> The error 'invalid_authorization_specification' is corresponds to error 28000 in PostgreSQL.
This error means that the supplied password was incorrect.
[16:15:32] <arjan> mm wait
[16:15:35] <arjan> did you restart postgres?
[16:15:47] <arjan> The problem was that postgresql was using IDENT for authentication and
this doesn't allow username and password authentication. Edit the
file /var/lib/pgsql/data/pg_hba.conf and replace "ident" with "trust".
More info here http://www.cyberciti.biz/faq/psql-fatal-ident-authentication-failed-f... <http://www.google.com/url?sa=D&amp;q=http://www.cyberciti.biz/faq/psql-fatal-ident-authentication-failed-for-user/&amp;usg=AFQjCNG9lmiiwtSDDOY8X9d3XSb03s_IlA>
[16:17:14] <spanier.michael> so zotonic has to run under the system user zotonic?
[16:17:32] <spanier.michael> I mean the erlang vm
[16:18:01] <arjan> not necesarily
[16:18:12] <arjan> it is good practice to do it like that
[16:18:21] <arjan> but for development I just run it under my own user
[16:18:47] <spanier.michael> ok I'm one step further ERROR REPORT==== 6-Apr-2012::14:04:18 ===
ERROR: "~p:~p Error starting module ~p, datamodel initialization error: ~p" - [z_module_manager
[16:19:23] <arjan> it got truncated
[16:19:35] <arjan> is that the full msg?
[16:19:42] <spanier.michael> no ...
[16:20:03] <spanier.michael> =INFO REPORT==== 6-Apr-2012::14:04:18 ===
[mytest] info @ z_datamodel:148 Creating new resource 'page_about'
(zotonic001@localhost.localdomain <mailto:zotonic001@localhost.localdomain>)1>
=CRASH REPORT==== 6-Apr-2012::14:04:18 ===
crasher:
initial call: mod_logging:init/1
pid: <0.172.0>
registered_name: []
exception exit: {{case_clause,
{error,
{error,error,<<"23505">>,
<<"duplicate key value violates unique constraint \"pg_type_typname_nsp_index\"">>,
[]}}},
[{z_db,q,3},
{m_log_email,install,1},
{mod_logging,init,1},
{gen_server,init_it,6},
{proc_lib,init_p_do_apply,3}]}
in function gen_server:init_it/6
ancestors: [<0.161.0>,'z_module_manager$mytest',<0.140.0>,<0.135.0>,
z_sites_manager,zotonic_sup,<0.75.0>]
messages: []
links: [<0.161.0>]
dictionary: []
trap_exit: false
status: running
heap_size: 610
stack_size: 24
reductions: 612
neighbours:
(zotonic001@localhost.localdomain <mailto:zotonic001@localhost.localdomain>)1>
[16:21:58] <arjan> wow, thats weird
[16:22:08] <spanier.michael> I hosed the Installation
[16:22:12] <arjan> can you try it again?
[16:22:17] <spanier.michael> I'lll redo it from scratch
[16:22:49] <spanier.michael> I guess I'll drop the db and unpack the software again
[16:23:08] <arjan> dont need to drop the software
[16:23:11] <arjan> it's only the database
[16:23:13] <arjan> try recreating it
[16:23:18] <spanier.michael> ok
[16:23:39] <arjan> seems like some weird timing issue, http://archives.postgresql.org/pgsql-bugs/2010-03/msg00082.php
[16:27:25] <spanier.michael> so droped the db and recreated it with the SQL from the install doc
[16:30:03] <arjan> ok
[16:30:57] <spanier.michael> ok, it up and running. As I created (from the testing) 3 sites, I Guess that the errors I see come form these Sites in priv/sites
[16:31:50] <arjan> do you have the same error?
[16:32:05] <spanier.michael> yes
[16:32:15] <arjan> might indeed be an installation issue
[16:32:25] <spanier.michael> =INFO REPORT==== 6-Apr-2012::14:14:11 ===
[mytest] info @ z_datamodel:148 Creating new resource 'page_about'
=CRASH REPORT==== 6-Apr-2012::14:14:11 ===
crasher:
initial call: mod_logging:init/1
pid: <0.205.0>
registered_name: []
exception exit: {{case_clause,
{error,
{error,error,<<"23505">>,
<<"duplicate key value violates unique constraint \"pg_type_typname_nsp_index\"">>,
[]}}},
[{z_db,q,3},
{m_log_email,install,1},
{mod_logging,init,1},
{gen_server,init_it,6},
{proc_lib,init_p_do_apply,3}]}
in function gen_server:init_it/6
ancestors: [<0.192.0>,'z_module_manager$mytest2',<0.174.0>,<0.136.0>,
z_sites_manager,zotonic_sup,<0.76.0>]
messages: []
links: [<0.192.0>]
dictionary: []
trap_exit: false
status: running
heap_size: 610
stack_size: 24
reductions: 325
neighbours:
[16:32:27] <arjan> did you first create 3 sites and only then ran it for the first time?
[16:33:22] <spanier.michael> As mytest2 was created before I droped the db, the error comes from the old installation
[16:33:35] <spanier.michael> I rm -rf the mytest dirs
[16:33:52] <spanier.michael> so now the startup is clean
[16:34:28] <arjan> ok
[16:34:47] <arjan> if you add one site at the time it probably won't happen?
[16:34:53] <arjan> did your sites use the same database?
[16:35:02] <spanier.michael> yes
[16:35:58] <arjan> ah OK
[16:36:08] <arjan> well that is actually not supported, multiple sites using the same database
[16:36:16] <arjan> except when you put each site in a different postgres schema
[16:36:23] <arjan> with the 'dbschema' config option
[16:36:45] <spanier.michael> ah ok, good to know
[16:38:48] <spanier.michael> ok so the new "blog" is up, and I started it. how do I get in the admin gui? blog:8000/admin does not work?
[16:39:24] <spanier.michael> ah admin admin
[16:50:07] <spanier.michael> I have another one. The site I created is a blog made with addsite and blog as template. Now the article template is not found. Any idea? I can see the template in the sites templates directory
[17:00:44] <arjan> oh?
[17:00:55] <arjan> it does not use the template? or do you get a message?
[17:01:25] <spanier.michael> I get a 500 with this error ...
[17:01:26] <spanier.michael> {error,{throw,{error,{template_not_found,"article.tpl",enoent}},
[{z_template,render,3},
{resource_page,html,1},
{resource_page,to_html,2},
{webmachine_resource,resource_call,3},
{webmachine_resource,do,3},
{webmachine_decision_core,decision,3},
{webmachine_decision_core,handle_request,2},
{webmachine_mochiweb,loop,2}]}}
[17:02:01] <arjan> ah ok
[17:02:05] <arjan> lets see
[17:02:16] <spanier.michael> http://blog:8000/article/316/want-to-learn-more (obviously not reachable over the net, but this is the default content)
[17:02:54] <arjan> k
[17:03:04] <arjan> can you try on the zotonic console:
[17:03:06] <arjan> z:flush().
[17:03:19] <arjan> or use the flush cache button in the admin under 'system'
[17:03:27] <spanier.michael> done. Statuscode ok
[17:03:36] <arjan> k
[17:03:48] <spanier.michael> but I still get the 500 error
[17:05:25] <arjan> is the template really there?
[17:05:31] <arjan> e.g. in your site blog/templates/article.tpl
[17:05:50] <spanier.michael> [michael@localhost templates]$ pwd
/home/michael/zotonic/priv/sites/blog/templates
[michael@localhost templates]$ ls
archives.tpl _article_prevnext.tpl base.tpl _email_contact.tpl page.tpl
_article_chapeau.tpl _article_sidebar.tpl _body_media.tpl home.tpl _sidebar.tpl
_article_keywords.tpl _article_summary.tpl by_keyword.tpl _listitem.tpl
_article_meta.tpl article.tpl contact.tpl page.query.tpl
[17:06:44] <arjan> looks right
[17:06:50] <arjan> can you check in the modules overview in the admin
[17:07:01] <arjan> if the topmost module, your site, is running?
[17:07:08] <arjan> e.g., green bullet next to it
[17:07:53] <spanier.michael> thats the ACL Admins only prio 500 running, but blog zotonic site (prio 10) ist not running
[17:09:31] <spanier.michael> ok that was the problem
[17:14:00] <arjan> ok
[17:14:02] <arjan> startup trouble
[17:14:07] <spanier.michael> :-)
[17:14:18] <arjan> maybe just restarting might also have fixed it
[17:14:20] <spanier.michael> but its a great system ... I really like it
[17:14:27] <arjan> thanks :D
[17:14:44] <arjan> we're working on it full force still
[17:14:45] <spanier.michael> the gui is very responsive
[17:14:47] <arjan> next week 0.8 release
[17:15:01] <arjan> after that we're porting the admin interface to the bootstrap framework
[17:15:02] <spanier.michael> an modern ...
[17:15:20] <spanier.michael> any screens of itß
[17:15:29] <spanier.michael> /s/ß/?/
[17:21:15] <arjan> yeah
[17:21:23] <arjan> let me find them
[17:21:35] <arjan> http://dl.dropbox.com/u/5400369/zo/gettingthere.png
[17:22:23] <arjan> http://dl.dropbox.com/u/5400369/zo/boostrap2.png
[17:22:30] <arjan> Hey, I'm off
[17:22:32] <arjan> weekend :D
[17:22:46] <arjan> talk to you later. good luck zotonicing!
[17:22:47] <spanier.michael> ok thanks for your supprt.
[17:23:46] <arjan> any time :)
[17:29:32] arjan leaves the room
[19:15:27] arjan joins the room
[19:30:17] arjan leaves the room
[20:14:37] spanier.michael leaves the room
[22:08:13] spanier.michael joins the room
Powered by ejabberd Powered by Erlang Valid XHTML 1.0 Transitional Valid CSS!