Open cmullaparthi opened 6 years ago
Host platform
$ uname -a
Darwin bigmac 16.7.0 Darwin Kernel Version 16.7.0: Thu Jan 11 22:59:40 PST 2018; root:xnu-3789.73.8~1/RELEASE_X86_64 x86_64
Erlang/OTP 20.0
Looks like the website is up, but it throws all these warnings in the console.
zotonic_1 | 14:55:51.857 [info] Unknown search query {ginger_geo,[{cat,"person"}]}
zotonic_1 | []
zotonic_1 | 14:55:51.871 [warning] Query: unknown category '<<"blog_post">>'
zotonic_1 | 14:55:51.873 [warning] Query: unknown category '<<"presentation_post">>'
zotonic_1 | 14:55:51.874 [warning] Query: unknown category '<<"video_post">>'
zotonic_1 | 14:55:51.877 [warning] Query: unknown category '<<"vacancy_post">>'
zotonic_1 | 14:55:51.878 [error] z_db error {error,error,<<"42P01">>,<<"relation \"pivot_vacancy\" does not exist">>,[{position,<<"38">>}]} in query "select rsc.id from rsc rsc left join pivot_vacancy pivot1 on (rsc.id = pivot1.id) where false and rsc.pivot_category_nr = -1 order by rsc.id DESC offset $1 limit $2" with [0,3]
zotonic_1 | 14:55:51.878 [error] Error in m.search[{query,[{cat,["vacancy_post"]},{custompivot,"vacancy"},{pagelen,3}]}] error: {error,{error,error,<<"42P01">>,<<"relation \"pivot_vacancy\" does not exist">>,[{position,<<"38">>}]}}
zotonic_1 | 14:55:51.893 [warning] Query: unknown category '<<"supporter">>'
zotonic_1 | 14:55:52.228 [info] Unknown search query {ginger_geo,[{cat,"person"}]}
zotonic_1 | [{erlang,send,[webmachine_logger,{'$gen_cast',{log_access,{wm_log_data,341938473,controller_file,{1520,866552,127083},'GET',{9,{"host",{'Host',"erlangcentral.docker.test"},{"cookie",{'Cookie',"z_sid=5obyG2Mt73145UFMX45zKU6YaNKPEoWN"},{"connection",{'Connection',"keep-alive"},{"accept",{'Accept',"text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"},nil,{"accept-language",{'Accept-Language',"en-gb"},{"accept-encoding",{'Accept-Encoding',"gzip, deflate"},nil,nil},nil}},nil},nil},{"upgrade-insecure-requests",{"Upgrade-Insecure-Requests","1"},{"referer",{'Referer',"http://erlangcentral.docker.test/"},nil,nil},{"user-agent",{'User-Agent',"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/604.5.6 (KHTML, like Gecko) Version/11.0.3 Safari/604.5.6"},nil,nil}}}},"172.18.0.1","/lib/images/spinner.gif",{1,1},200,3494,undefined,{1520,866552,130571},{dict,4,16,16,8,80,48,{[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[]},{{[],[],[],[[ua_class|desktop],[ua_props,{is_user_select,false},{has_pointer,true},{is_desktop,true},{is_crawler,false},{is_wireless_device,false},{is_tablet,false},{ajax_support_javascript,true},{device_os,<<"-">>},{displayWidth,1600},{displayHeight,900},{inputDevices,<<"-">>},{parentId,<<"generic-">>},{model,<<"browser">>},{vendor,<<"desktop">>},{id,<<"desktopDevice">>}]],[[zotonic_host|erlangcentral]],[[controller_module|controller_file]],[],[],[],[],[],[],[],[],[],[]}}}}}},[noconnect]],[]},{gen_server,do_send,2,[{file,"gen_server.erl"},{line,416}]},{gen_server,do_cast,2,[{file,"gen_server.erl"},{line,232}]},{z_stats,log_access,1,[{file,"src/support/z_stats.erl"},{line,61}]},{webmachine_decision_core,do_log,1,[{file,"src/webmachine_decision_core.erl"},{line,170}]},{webmachine_mochiweb,loop,2,[{file,"src/webmachine_mochiweb.erl"},{line,105}]},{mochiweb_http,headers,5,[{file,"src/mochiweb_http.erl"},{line,104}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,240}]}]
zotonic_1 | 14:55:52.230 [warning] Query: unknown category '<<"blog_post">>'
zotonic_1 | 14:55:52.231 [warning] Query: unknown category '<<"presentation_post">>'
zotonic_1 | 14:55:52.231 [warning] Query: unknown category '<<"video_post">>'
zotonic_1 | 14:55:52.234 [warning] Query: unknown category '<<"vacancy_post">>'
zotonic_1 | 14:55:52.235 [error] z_db error {error,error,<<"42P01">>,<<"relation \"pivot_vacancy\" does not exist">>,[{position,<<"38">>}]} in query "select rsc.id from rsc rsc left join pivot_vacancy pivot1 on (rsc.id = pivot1.id) where false and rsc.pivot_category_nr = -1 order by rsc.id DESC offset $1 limit $2" with [0,3]
zotonic_1 | 14:55:52.235 [error] Error in m.search[{query,[{cat,["vacancy_post"]},{custompivot,"vacancy"},{pagelen,3}]}] error: {error,{error,error,<<"42P01">>,<<"relation \"pivot_vacancy\" does not exist">>,[{position,<<"38">>}]}}
zotonic_1 | 14:55:52.236 [warning] Query: unknown category '<<"supporter">>'
These warnings indicate an incompletely initialised system, as data is missing. The cause seems to be a race condition in Zotonic’s site startup procedure, which I cannot reproduce locally.
@cmullaparthi Can you check whether everything was compiled correctly? Just above the Starting Zotonic zotonic001@...
in the logs.
I followed the instructions in README.md. There are these errors right at the end.