Message from discussion
Zotonic indexer started crashing
Received: by 10.52.16.113 with SMTP id f17mr12140303vdd.3.1351742931903;
Wed, 31 Oct 2012 21:08:51 -0700 (PDT)
X-BeenThere: zotonic-developers@googlegroups.com
Received: by 10.52.20.7 with SMTP id j7ls1803384vde.0.gmail; Wed, 31 Oct 2012
21:08:51 -0700 (PDT)
Received: by 10.52.91.109 with SMTP id cd13mr7222739vdb.15.1351742931271;
Wed, 31 Oct 2012 21:08:51 -0700 (PDT)
Date: Wed, 31 Oct 2012 21:08:50 -0700 (PDT)
From: Amiramix <li...@gjunka.com>
To: zotonic-developers@googlegroups.com
Message-Id: <679d8a55-de40-4006-8775-c13181cdb3da@googlegroups.com>
In-Reply-To: <2F485E2B-3389-4F14-8372-EDD6D33B1088@me.com>
References: <e7e7d2de-24de-4ed3-a0a2-90ac2709f1c5@googlegroups.com>
<2F485E2B-3389-4F14-8372-EDD6D33B1088@me.com>
Subject: Re: [Zotonic-Dev] Zotonic indexer started crashing
MIME-Version: 1.0
Content-Type: multipart/mixed;
boundary="----=_Part_666_21896838.1351742930765"
------=_Part_666_21896838.1351742930765
Content-Type: multipart/alternative;
boundary="----=_Part_667_28704107.1351742930765"
------=_Part_667_28704107.1351742930765
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
Or maybe z_mediaclass should call z_module_indexer asynchronously, e.g. the
indexer would reply immediately with no reply and then post a response
later to z_mediaclass pid when the scanning is ready.
BTW is z_module_indexer scanning files on disk with each z_mediaclass
request? I noticed z_mediaclass asks 5 times for the same file
mediaclass.config each time asking for different media class.
On Wednesday, October 31, 2012 11:12:09 AM UTC, Marc Worrell wrote:
>
> I guess we need to give it a bit more time in that gen_server call.
>
> Are you running it on a virtual machine?
> Or is your machine quite busy?
>
> - Marc
>
>
> On 30 okt. 2012, at 20:06, Amiramix wrote:
>
> > I updated Zotonic from github and it started crashing:
> >
> > 18:59:17.955 [error] gen_server 'z_mediaclass$omc_web' terminated with
> reason:
> {timeout,{gen_server,call,['z_module_indexer$omc_web',{find_all,template,"mediaclass.config",generic}]}}
>
> > 18:59:17.966 [error] CRASH REPORT Process 'z_mediaclass$omc_web' with 0
> neighbours crashed with reason:
> {timeout,{gen_server,call,['z_module_indexer$omc_web',{find_all,template,"mediaclass.config",generic}]}}
>
> > 18:59:17.976 [error] Supervisor z_site_sup had child z_mediaclass
> started with
> z_mediaclass:start_link([{enabled,true},{hostname,"pdf-omc.local:8000"},{dbhost,"127.0.0.12"},{dbport,5432},{dbuser,"omc..."},...])
> at <0.291.0> exit with reason
> {timeout,{gen_server,call,['z_module_indexer$omc_web',{find_all,template,"mediaclass.config",generic}]}}
> in context child_terminated
> > 18:59:22.970 [error] Supervisor z_site_sup had child z_module_indexer
> started with
> z_module_indexer:start_link([{enabled,true},{hostname,"pdf-omc.local:8000"},{dbhost,"127.0.0.12"},{dbport,5432},{dbuser,"omc..."},...])
> at <0.294.0> exit with reason killed in context shutdown_error
> > 18:59:23.035 [error] Supervisor received unexpected message:
> {'ETS-TRANSFER','observers$omc_web',<0.281.0>,[]}
> >
> > 18:59:29.110 [error] gen_server 'z_template$omc_web' terminated with
> reason:
> {timeout,{gen_server,call,['z_module_indexer$omc_web',{find_all,template,"_admin_headeritem.tpl",desktop}]}}
>
> > 18:59:29.114 [error] CRASH REPORT Process 'z_template$omc_web' with 0
> neighbours crashed with reason:
> {timeout,{gen_server,call,['z_module_indexer$omc_web',{find_all,template,"_admin_headeritem.tpl",desktop}]}}
>
> >
> > Does it look familiar to anyone or I need to dig into the code?
> >
>
>
------=_Part_667_28704107.1351742930765
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: 7bit
Or maybe z_mediaclass should call z_module_indexer asynchronously, e.g. the indexer would reply immediately with no reply and then post a response later to z_mediaclass pid when the scanning is ready.<div><br></div><div>BTW is z_module_indexer scanning files on disk with each z_mediaclass request? I noticed z_mediaclass asks 5 times for the same file mediaclass.config each time asking for different media class.</div><div><br><br>On Wednesday, October 31, 2012 11:12:09 AM UTC, Marc Worrell wrote:<blockquote class="gmail_quote" style="margin: 0;margin-left: 0.8ex;border-left: 1px #ccc solid;padding-left: 1ex;">I guess we need to give it a bit more time in that gen_server call.
<br>
<br>Are you running it on a virtual machine?
<br>Or is your machine quite busy?
<br>
<br>- Marc
<br>
<br>
<br>On 30 okt. 2012, at 20:06, Amiramix wrote:
<br>
<br>> I updated Zotonic from github and it started crashing:
<br>>
<br>> 18:59:17.955 [error] gen_server 'z_mediaclass$omc_web' terminated with reason: {timeout,{gen_server,call,['z_<wbr>module_indexer$omc_web',{find_<wbr>all,template,"mediaclass.<wbr>config",generic}]}}
<br>> 18:59:17.966 [error] CRASH REPORT Process 'z_mediaclass$omc_web' with 0 neighbours crashed with reason: {timeout,{gen_server,call,['z_<wbr>module_indexer$omc_web',{find_<wbr>all,template,"mediaclass.<wbr>config",generic}]}}
<br>> 18:59:17.976 [error] Supervisor z_site_sup had child z_mediaclass started with z_mediaclass:start_link([{<wbr>enabled,true},{hostname,"pdf-<wbr>omc.local:8000"},{dbhost,"127.<wbr>0.0.12"},{dbport,5432},{<wbr>dbuser,"omc..."},...]) at <0.291.0> exit with reason {timeout,{gen_server,call,['z_<wbr>module_indexer$omc_web',{find_<wbr>all,template,"mediaclass.<wbr>config",generic}]}} in context child_terminated
<br>> 18:59:22.970 [error] Supervisor z_site_sup had child z_module_indexer started with z_module_indexer:start_link([{<wbr>enabled,true},{hostname,"pdf-<wbr>omc.local:8000"},{dbhost,"127.<wbr>0.0.12"},{dbport,5432},{<wbr>dbuser,"omc..."},...]) at <0.294.0> exit with reason killed in context shutdown_error
<br>> 18:59:23.035 [error] Supervisor received unexpected message: {'ETS-TRANSFER','observers$<wbr>omc_web',<0.281.0>,[]}
<br>>
<br>> 18:59:29.110 [error] gen_server 'z_template$omc_web' terminated with reason: {timeout,{gen_server,call,['z_<wbr>module_indexer$omc_web',{find_<wbr>all,template,"_admin_<wbr>headeritem.tpl",desktop}]}}
<br>> 18:59:29.114 [error] CRASH REPORT Process 'z_template$omc_web' with 0 neighbours crashed with reason: {timeout,{gen_server,call,['z_<wbr>module_indexer$omc_web',{find_<wbr>all,template,"_admin_<wbr>headeritem.tpl",desktop}]}}
<br>>
<br>> Does it look familiar to anyone or I need to dig into the code?
<br>>
<br>
<br></blockquote></div>
------=_Part_667_28704107.1351742930765--
------=_Part_666_21896838.1351742930765--