Zotonic indexer started crashing

37 views
Skip to first unread message

Amiramix

unread,
Oct 30, 2012, 3:06:39 PM10/30/12
to zotonic-d...@googlegroups.com
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?

Marc Worrell

unread,
Oct 31, 2012, 7:11:52 AM10/31/12
to zotonic-d...@googlegroups.com
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

Amiramix

unread,
Oct 31, 2012, 7:31:31 AM10/31/12
to zotonic-d...@googlegroups.com
It happens only when I edit one of my templates. At the next page refresh I see this crash and it is immediate. I noticed that I don't have the mediaclass.config file anywhere in my site, and that it is present in mod_admin and mod_base_site. It seems that it isn't obligatory because other modules don't have it either, including the blog template site.

I am running from a VM running on my laptop so it's not busy at all.

It is strange because it started happening just 2 days ago. It was all fine until then, I used to have occasional crashes, maybe even the same one, but this time it started happening on a regular basis. And there are no code changes either in Zotonic or my site that would indicate why the problem started just now.

Amiramix

unread,
Nov 1, 2012, 12:08:50 AM11/1/12
to zotonic-d...@googlegroups.com
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:
Reply all
Reply to author
Forward
0 new messages