Zotonic
Zotonic
zotonic@conference.zotonic.com
Sunday, 17 March 2013< ^ >
arjan has set the subject to: Zotonic - the Erlang Content Management Framework
Room Configuration

GMT+1
[06:11:54] simon.smithies joins the room
[06:26:50] vladimir.chujkov joins the room
[06:34:33] vladimir.chujkov leaves the room
[06:51:30] simon.smithies leaves the room
[07:05:43] simon.smithies joins the room
[08:01:50] arcusfelis joins the room
[08:40:25] vladimir.chujkov joins the room
[09:16:30] vladimir.chujkov leaves the room
[09:19:17] vladimir.chujkov joins the room
[09:29:21] arcusfelis leaves the room
[09:33:01] vladimir.chujkov leaves the room
[09:56:50] Arjan joins the room
[09:57:12] <simon.smithies> Hi Marc
[09:57:27] <simon.smithies> got your message re updating webzmachine etc
[09:57:40] <simon.smithies> you're right - some diffs there
[09:58:16] <simon.smithies> I have a merge confict in lager.app.src
[10:07:10] arcusfelis joins the room
[10:12:56] <Arjan> are you running on zotonic master?
[10:14:52] <simon.smithies> yes
[10:15:41] <simon.smithies> not sure how I can have a merge conflict when I never commit anything ... just trying to make sure I have not screwed anything up somehow
[10:15:54] <Arjan> lager is not supposed to be in our git anyway
[10:16:08] <Arjan> you can just rm -rf deps/lager
[10:16:16] <Arjan> or even rm -rf deps/*
[10:16:28] <Arjan> and then make again -- that should pull in all the latest deps
[10:16:36] <simon.smithies> then pull again?
[10:16:44] <Arjan> no just make
[10:16:54] <Arjan> the deps are managed by rebar
[10:17:14] <simon.smithies> what is rebar? (btw)
[10:17:35] <Arjan> it's the erlang build tool
[10:17:39] simon.smithies leaves the room
[10:17:44] simon.smithies joins the room
[10:22:02] <simon.smithies> up and running ... getting some nice "site started" messages now that I wasn't before
[10:23:08] <simon.smithies> but has crashed again
[10:23:11] <simon.smithies> :(
[10:29:41] <Arjan> in debug mode?
[10:29:47] <simon.smithies> yes
[10:29:59] <Arjan> so it exits again to the terminal?
[10:30:05] <Arjan> does it say anything when it does that?
[10:30:17] <simon.smithies> no, terminal hangs
[10:30:33] <Arjan> hangs?
[10:30:39] <Arjan> stops responding?
[10:30:44] <simon.smithies> yep
[10:30:48] <simon.smithies> same wit hwebpage
[10:31:10] <Arjan> that is weird
[10:31:15] <simon.smithies> then when I close the terminal session, the webpage is rejected
[10:31:29] <Arjan> ok so when it hangs
[10:31:33] <Arjan> can you open a second terminal
[10:31:45] <simon.smithies> yes
[10:31:48] <Arjan> and then see with 'ps' if zotonic is still running
[10:31:53] <Arjan> ps aux|grep beam
[10:31:55] <Arjan> or something
[10:32:39] <simon.smithies> yep - it looks as though there is no zotonic runnig, but often there's an erlang process
[10:33:12] <Arjan> ok yes
[10:33:16] <Arjan> that erlang process probably is zotonic
[10:33:33] <Arjan> from the second terminal, can you connect to zotonic?
[10:33:39] <Arjan> e.g. do "zotonic status"
[10:33:45] <Arjan> or "zotonic shell"
[10:33:58] <simon.smithies> I can do zotonic shell actually, yes
[10:34:08] <simon.smithies> just waiting for it to die again
[10:34:26] <Arjan> if you do zotonic shell, you are dropped in the erlang prompt, right?
[10:34:32] <simon.smithies> yep
[10:34:35] <Arjan> cool
[10:34:55] <Arjan> can you there type:
[10:34:58] <Arjan> etop:start().
[10:35:10] <Arjan> to see what it's up to
[10:37:01] <simon.smithies> I just started a site and have a message in my regular debug log that I haven't seen before
[10:37:12] <simon.smithies> [info] Site started: jail (<0.16755.0>)
Application initialization failed: no display name and no $DISPLAY environment variable
Error in startup script: no display name and no $DISPLAY environment variable
while executing
"load /usr/lib/libtk8.4.so.0 Tk"
("package ifneeded" script)
invoked from within
"package require Tk 8.3"
(file "/usr/lib/erlang/lib/gs-1.5.15.1/priv/gstk.tcl" line 7
[10:37:24] <Arjan> ah yes that is due to etop
[10:37:30] <simon.smithies> ah ok
[10:37:34] <Arjan> can you stop the zotonic shell, ctrl-c twice
[10:37:38] <Arjan> and then type: "zotonic etop"
[10:37:43] <Arjan> that will give you a text version of etop
[10:38:02] <simon.smithies> ok
[10:38:15] <Arjan> it will spit out a listing periodically
[10:38:39] <simon.smithies> zotonic shell is not responding
[10:39:07] <simon.smithies> but the debug shell in my original terminal session is still responding
[10:39:59] <Arjan> weird
[10:40:30] <simon.smithies> I'll open a new terminal and do as you suggest above
[10:41:47] <simon.smithies> so I have my etop listing
[10:42:23] <simon.smithies> could this be a problem with my terminal user's session?
[10:42:53] <simon.smithies> I log in to the server as me, then su to the zotonic user
[10:43:02] <Arjan> can you show me the listing?
[10:43:21] <Arjan> so zotonic is now still running, but it does not respond when visiting localhost:8000?
[10:44:07] <simon.smithies> etop: http://pastebin.com/3eb83k6A
[10:44:35] <simon.smithies> No ... currently the site is still up
[10:45:20] <simon.smithies> it was just the zotonic shell that hung
[10:46:50] <simon.smithies> eventually the zotonic shell hang produced this message in the debug shell that is running the site:
[10:46:51] <simon.smithies> (zotonic001@vps783)1>
(zotonic001@vps783)1> 22:45:24.562 [error] ** Node zotonic001_shell_13421@vps783 not responding **
** Removing (timedout) connection **
22:50:15.751 [error] ** Node zotonic001_etop@vps783 not responding **
** Removing (timedout) connection **
[10:48:46] <simon.smithies> It's still up ... this is longer than usual
[10:53:08] <simon.smithies> I've got to go ... work in the morning
[10:53:33] <simon.smithies> site is still up but will have to stop it, and restart in heart mode
[10:53:39] <Arjan> yep
[10:53:44] <Arjan> alrighty
[10:53:49] <Arjan> fingers crossed.. :)
[10:54:00] <simon.smithies> yes indeed!
[10:57:06] <simon.smithies> has crashed!!!
[10:57:20] <simon.smithies> etop no longer updating
[10:57:49] <simon.smithies> have to deal wit hthis later
[10:57:52] <simon.smithies> cu
[10:58:05] simon.smithies leaves the room
[10:58:20] simon.smithies joins the room
[10:59:46] simon.smithies leaves the room
[11:32:04] vladimir.chujkov joins the room
[12:37:53] vladimir.chujkov leaves the room
[12:43:51] vladimir.chujkov joins the room
[13:10:24] vladimir.chujkov leaves the room
[14:16:39] vladimir.chujkov joins the room
[14:57:55] Arjan leaves the room
[15:19:50] vladimir.chujkov leaves the room
[15:32:17] vladimir.chujkov joins the room
[17:45:42] Arjan joins the room
[17:47:40] Arjan leaves the room
[17:54:46] vladimir.chujkov leaves the room
[19:37:00] vladimir.chujkov joins the room
[19:55:19] Maas joins the room
[20:00:06] Arjan joins the room
[20:23:45] arcusfelis leaves the room
[20:35:48] <Maas> Checking ./rebar update-deps. I'm running it with -vvv and don't see any git pulls being done. There is a change in z_stdlib so I know it should update something...
[20:40:16] <Arjan> (M↑ ?3) ixion ~/devel/zotonic> rebar update-deps
==> lager (update-deps)
==> bert (update-deps)
==> dh_date (update-deps)
==> eiconv (update-deps)
==> gen_smtp (update-deps)
==> mimetypes (update-deps)
==> mochiweb (update-deps)
==> ua_classifier (update-deps)
==> webzmachine (update-deps)
==> z_stdlib (update-deps)
==> bear (update-deps)
==> meck (update-deps)
==> folsom (update-deps)
Updating bear from {git,"git://github.com/boundary/bear.git",{tag,"0.1.3"}}
Updating meck from {git,"git://github.com/eproxus/meck","master"}
==> zotonic (update-deps)
Updating lager from {git,"git://github.com/basho/lager.git",{tag,"1.2.2"}}
Updating bert from {git,"git://github.com/zotonic/bert.erl.git","master"}
Updating dh_date from {git,"git://github.com/zotonic/dh_date.git","master"}
Updating eiconv from {git,"git://github.com/zotonic/eiconv.git","master"}
Updating gen_smtp from {git,"git://github.com/zotonic/gen_smtp.git","master"}
Updating mimetypes from {git,"git://github.com/zotonic/mimetypes.git",
"master"}
Updating mochiweb from {git,"git://github.com/zotonic/mochiweb.git","master"}
Updating ua_classifier from {git,"git://github.com/zotonic/ua_classifier.git",
"master"}
Updating webzmachine from {git,"git://github.com/zotonic/webzmachine.git",
"master"}
Updating z_stdlib from {git,"git://github.com/zotonic/z_stdlib.git","master"}
From git://github.com/zotonic/z_stdlib
2bc0713..7415a35 master -> origin/master
Updating bear from {git,"git://github.com/boundary/bear.git","master"}
Updating folsom from {git,"git://github.com/boundary/folsom.git","master"}
Updating meck from {git,"git://github.com/eproxus/meck.git","master"}
[20:40:21] <Arjan> seems to work for me
[20:40:26] <Arjan> my commit of march 14 is the last
[20:41:13] <Maas> No it isn't mar 17 is the last commit.
[20:41:25] <Maas> This it what it does to update:
[20:41:27] <Maas> Updating z_stdlib from {git,"git://github.com/zotonic/z_stdlib.git","master"}
INFO: sh info:
cwd: "/Users/Maas/Work/git/zotonic/zotonic"
cmd: "/usr/bin/git" --version
DEBUG: opts: [{env,[{"LANG","C"}]},{use_stdout,false}]
[20:41:49] <Maas> Doesn't look like an update command to me.
[20:41:56] <Arjan> are you using a current rebar?
[20:42:07] <Arjan> rebar -V
[20:42:12] <Maas> I removed it and let the makefile download the last version
[20:42:41] <Maas> $ ./rebar -V
rebar version: 2 date: 20120417_234834 vcs: git afffb48
[20:43:02] <Maas> Do we download an old version or something?
[20:44:21] <Maas> scary. looking at the rebar repo we should get it from here...
[20:44:23] <Maas> https://github.com/rebar/rebar/wiki/rebar
[20:44:35] <Arjan> yep
[20:44:40] <Arjan> that seems like an error in z_stdlib
[20:44:49] <Maas> Makefile says... http://cloud.github.com/downloads/basho/rebar/rebar
[20:44:56] <Arjan> everybody should have rebar in their $PATH
[20:45:01] <Arjan> all this rebar downloading all over the place
[20:45:08] <Arjan> is stupid
[20:48:50] <Maas> It is very dangerous. But this whole rebar thing is a moving target.
[20:49:39] <Maas> The zotonic makefile points to cloud.github...
[20:50:10] <Maas> whtn the https://github.com link you are now referred to raw.github and get a 2 month newer version of rebar
[20:51:13] <Maas> Which stil doesn't update...
[20:52:48] <Maas> Now I have $ ./rebar -V
rebar 2.0.0 R14B04 20120604_145614 git 0f24d93
[20:58:17] <Maas> DEBUG: opts: [{cd,"/Users/Maas/Work/git/zotonic/zotonic/deps/webzmachine"}]
Updating z_stdlib from {git,"git://github.com/zotonic/z_stdlib.git","master"}
INFO: sh info:
cwd: "/Users/Maas/Work/git/zotonic/zotonic"
cmd: "/usr/bin/git" --version
DEBUG: opts: [{env,[{"LANG","C"}]},{use_stdout,false}]
INFO: sh info:
cwd: "/Users/Maas/Work/git/zotonic/zotonic"
cmd: git fetch origin
DEBUG: opts: [{cd,"/Users/Maas/Work/git/zotonic/zotonic/deps/z_stdlib"}]
INFO: sh info:
cwd: "/Users/Maas/Work/git/zotonic/zotonic"
cmd: git checkout -q master
DEBUG: opts: [{cd,"/Users/Maas/Work/git/zotonic/zotonic/deps/z_stdlib"}]
[20:59:53] <Maas> This is what it does to update something. To me it looks like it tries to cd to z_stdlib dir, but this doesn't work...
[21:00:32] <Maas> Then it does a checkout -q master in zotonic's main directory
[21:02:00] <Maas> I wonder if this is the source of the github DDOS attack :-)
[21:06:43] Maas leaves the room
[22:24:50] Maas joins the room
[23:04:24] <Maas> Our rebar.config was bad.
[23:04:49] <Maas> pushing fix...
[23:31:36] Maas leaves the room
[23:43:53] Arjan leaves the room
Powered by ejabberd Powered by Erlang Valid XHTML 1.0 Transitional Valid CSS!