Zotonic
Zotonic
zotonic@conference.zotonic.com
Wednesday, 11 September 2013< ^ >
Arjan has set the subject to: Zotonic - The Erlang Web Framework & CMS
Room Configuration

GMT+2
[00:37:16] cillian.deroiste leaves the room
[02:01:16] <z-bot> [frank___] hi
[02:01:41] Mawuli Adzaku leaves the room
[02:02:13] <z-bot> [frank___] is the latest git compilable ?
[02:02:47] <z-bot> [frank___] 0.9.2 crashes.
[02:03:26] Mawuli Adzaku joins the room
[02:06:15] <z-bot> [frank___] I cannot compile the git version.
[02:54:14] Mawuli Adzaku leaves the room
[03:50:29] <z-bot> [frank___] found 0 name clashes in code paths.
[09:14:47] arjan joins the room
[09:15:23] arjan leaves the room
[09:18:00] arjan joins the room
[09:22:07] cillian.deroiste joins the room
[09:32:33] maas.maarten.zeeman joins the room
[09:52:25] arjan leaves the room
[09:55:16] arjan joins the room
[10:01:07] arjan leaves the room
[10:03:32] arjan joins the room
[12:43:45] Steffen Hanikel joins the room
[12:49:55] Kaos joins the room
[12:52:44] <z-bot> [kaos] frank___, both 0.9.2 and master should compile just fine.
[13:26:03] <z-bot> [frank___] Yes. I recompiled openssl now zotonic compiles and runs but found 0 nam clashes in code paths. I am looking database problems. I created postgreSQL database zotonic and user zotonic password zotonic, run zotonic as user zotonic.
[13:27:20] <z-bot> [frank___] I am using git revision found erlang.config syntax error.
[13:27:43] <z-bot> [frank___] {emqtt, [ {auth, {z_mqtt_auth, []}}, {access_control, {z_mqtt_auth, with_access_control}}, {listeners, [ %%% Unescape to enable MQTT on the given port %% {1883, [ %% binary, %% {packet, raw}, %% {reuseaddr, true}, %% {backlog, 128}, %% {nodelay, true} %%]} ]} ]},
[13:28:13] <z-bot> [frank___] This is the emqtt portion I fixed.
[13:28:41] <z-bot> [frank___] revision 0.9.2 has eiconv problem.
[13:45:06] Steffen Hanikel leaves the room
[13:48:31] <Marc Worrell> Frank, what did you change in that config?
[13:56:46] arjan leaves the room
[14:05:46] <z-bot> [frank___] when I run zotonic, it says erlang.config syntax error. I go into the file, I found }] not match. So I commnet out one ]}. Now it won't complain. But says found 0 name clashes.
[14:07:21] <z-bot> [frank___] {1883, [ binary, {packet, raw}, {reuseaddr, true}, {backlog, 128}, {nodelay, true} ]}
[14:07:57] <z-bot> [frank___] erlang.config
[14:10:45] arjan joins the room
[14:12:09] <Marc Worrell> The 0 name clashes is actually a good message :-)
[14:12:16] <Marc Worrell> That means that there aren't any problems.
[14:12:36] <Marc Worrell> I will check that config .in file.
[14:14:32] <z-bot> [frank___] But there are nothing listening 8000.
[14:14:35] <Marc Worrell> Thanks, pushed a fix to that config syntax error
[14:15:16] <z-bot> [frank___] I just did a git pull.
[14:16:20] <z-bot> [frank___] zotonic is just listening at port 4369.
[14:16:32] <z-bot> [frank___] Nobody is listening port 8000
[14:18:32] <z-bot> [frank___] I just did a gmake and bin/zotonic debug
[14:18:46] <z-bot> [frank___] nobody is listening 8000
[14:22:58] <z-bot> [frank___] [zotonic@meyer ~]$ bin/zotonic start Starting Zotonic zotonic001@meyer gmake: *** [compile-deps] Error 1 [zotonic@meyer ~]$
[14:23:45] <z-bot> [frank___] If I use bin/zotonic start, it give me a compile-deps error
[14:24:16] <z-bot> [frank___] [zotonic@meyer ~]$ bin/zotonic debug Erlang R15B03 (erts-5.9.3.1) [source] [64-bit] [smp:2:2] [async-threads:0] [kernel-poll:true] ** Found 0 name clashes in code paths Eshell V5.9.3.1 (abort with ^G) (zotonic001@meyer)1> [zotonic@meyer ~]$
[14:25:07] <z-bot> [frank___] If I use command bin/zotonic debug, it give me a found 0 name clashes in code paths. and nobody listening 8000
[14:25:39] <z-bot> [frank___] [zotonic@meyer ~]$ sockstat |grep 8000 [zotonic@meyer ~]$
[14:26:14] <z-bot> [frank___] root@meyer:/usr/local/zotonic/priv/sites # sockstat |grep 8000 root@meyer:/usr/local/zotonic/priv/sites #
[14:43:44] <z-bot> [frank___] root@meyer:/usr/local/zotonic/priv/sites # su pgsql $ psql zotonic psql (9.3beta2) Type "help" for help. zotonic=# \dt No relations found. zotonic=#
[14:43:57] <z-bot> [frank___] I did see any table in database zotonic.
[15:00:30] <z-bot> [frank___] not
[15:33:42] Steffen Hanikel joins the room
[17:02:48] Steffen Hanikel leaves the room
[17:21:35] Mawuli Adzaku joins the room
[17:24:11] Mawuli Adzaku leaves the room
[17:24:41] Steffen Hanikel joins the room
[17:26:02] Mawuli Adzaku joins the room
[17:26:58] arjan leaves the room
[17:27:19] Mawuli Adzaku leaves the room
[17:27:40] Mawuli Adzaku joins the room
[17:39:07] Steffen Hanikel leaves the room
[17:44:13] maas.maarten.zeeman leaves the room
[18:13:30] Mawuli Adzaku leaves the room
[18:16:36] Mawuli Adzaku joins the room
[18:50:32] Mawuli Adzaku leaves the room
[18:52:14] Mawuli Adzaku joins the room
[19:13:50] Steffen Hanikel joins the room
[19:47:46] <Steffen Hanikel> wow, is it true, that there is no way to get stderr and stdin seperatly from an external process?
[19:48:10] <Steffen Hanikel> I guess I have to take a look at erlexec
[20:01:22] arjan joins the room
[20:40:59] <Steffen Hanikel> arjan: Marc Worrell what's better spawning an external process, or writing a nif wrapper?
[20:41:46] <Steffen Hanikel> I'm currently writing the module for a sass parser, which I hope to integrate into a the general preprocessor framework for lib files
[20:42:42] <Steffen Hanikel> I modified the sass parser to write the included files to stderr, but I could also call the library directly
[20:48:08] arjan leaves the room
[20:49:45] arjan joins the room
[21:15:13] <Marc Worrell> such a parser can run for quite some time, in such cases it is better to use a port driver - as the nif will block one of the schedulers of the Erlang VM
[21:26:16] arjan leaves the room
[22:05:39] arjan joins the room
[22:08:10] <Mawuli Adzaku> Hi Steffen
[22:08:28] <Mawuli Adzaku> If you decide on using a port driver, then you can also try erlsh(https://github.com/proger/erlsh), an alternative to erlexec. I haven't used it though.
[22:10:30] <Mawuli Adzaku> I am actually in the midst of deciding on which one to use :/
[22:11:46] <Steffen Hanikel> hmm ...
[22:12:03] <Steffen Hanikel> I'd really like to get a seperate stderr and stdout
[22:12:22] <Steffen Hanikel> but the standard library provides no way for that o_o
[22:13:58] <Steffen Hanikel> erlexec looks like python subprocess which is actually very nice
[22:16:06] <Mawuli Adzaku> Ok, guess I have to take a closer look at erlexec then
[22:55:03] arjan leaves the room
[23:14:27] <Steffen Hanikel> damn, erlexec doesn't accept a string list as parameter list
[23:14:31] <Steffen Hanikel> that's really missing
[23:14:47] <Steffen Hanikel> if you don't want to escape all strings
[23:17:25] <z-bot> [Frank_Toronto] Hello! I just did a git pull and gmake clean and gmake, then bin/zotonic debug,
[23:17:45] <z-bot> [Frank_Toronto] [zotonic@meyer ~]$ bin/zotonic debug Erlang R15B03 (erts-5.9.3.1) [source] [64-bit] [smp:2:2] [async-threads:0] [kernel-poll:true] ** Found 0 name clashes in code paths Eshell V5.9.3.1 (abort with ^G)
[23:17:57] <z-bot> [Frank_Toronto] There is no port 8000 listening.
[23:18:19] <z-bot> [Frank_Toronto] root@meyer:/usr/local/zotonic # sockstat |grep 8000 root@meyer:/usr/local/zotonic #
[23:19:16] <z-bot> [Frank_Toronto] Can you help me?
[23:20:23] <z-bot> [Frank_Toronto] root@meyer:/usr/local/zotonic # su pgsql $ psql -l List of databases Name | Owner | Encoding | Collate | Ctype | Access privileges -----------+-------+----------+---------+-------+------------------- mydjango | pgsql | UTF8 | C | C | postgres | pgsql | UTF8 | C | C | standard | pgsql | UTF8 | C | C | template0 | pgsql | UTF8 | C | C |
[23:21:28] <z-bot> [Frank_Toronto] =Tc/pgsql + | | | | | pgsql=CTc/pgsql + | | | | | zotonic=CTc/pgsql
[23:21:59] <z-bot> [Frank_Toronto] I have no table in database zotonic
[23:23:59] <Steffen Hanikel> Frank_Toronto does zotonic debug tell anything else?
[23:24:20] <Steffen Hanikel> anything in priv/log?
[23:25:02] <z-bot> [Frank_Toronto] that is the problem. The log folder is empty.
[23:25:36] <z-bot> [Frank_Toronto] $ ls $ pwd /usr/local/zotonic/priv/log $
[23:25:55] <z-bot> [Frank_Toronto] Can you help me to open the log?
[23:26:09] <Steffen Hanikel> Mawuli Adzaku: too bad, erlexec doesn't support piping of processes
[23:26:23] <Steffen Hanikel> zotonic debug doesnÄ ttell anything else?
[23:26:35] <z-bot> [Frank_Toronto] no.
[23:26:42] <z-bot> [Frank_Toronto] the diretory is empty
[23:26:46] <Steffen Hanikel> i'm using R14B04 and master and it works quite well
[23:26:47] <Steffen Hanikel> weird
[23:27:12] <z-bot> [Frank_Toronto] $ erl Erlang R15B03 (erts-5.9.3.1) [source] [64-bit] [smp:2:2] [async-threads:0] [kernel-poll:false] Eshell V5.9.3.1 (abort with ^G) 1>
[23:28:11] <z-bot> [Frank_Toronto] root@meyer:/usr/local/zotonic # uname -a FreeBSD meyer.pccom.ca 9.2-PRERELEASE FreeBSD 9.2-PRERELEASE #0: Thu Aug 22 08:45:55 EDT 2013 root@meyer.pccom.ca:/usr/obj/usr/src/sys/GENERIC amd64 root@meyer:/usr/local/zotonic #
[23:29:37] <z-bot> [Frank_Toronto] [zotonic@meyer ~]$ bin/zotonic status erl_call: failed to connect to node zotonic001@meyer Zotonic is not running. You need to start Zotonic first to use this command. [zotonic@meyer ~]$
[23:29:54] <Steffen Hanikel> can you show me git show-ref HEAD ?
[23:30:15] <Steffen Hanikel> 7a6d4ac4931efb6024d8d53dc55f6520b1ddfa05 core: fix for name of zotonic emqtt auth module.
works fine for me
[23:30:39] <z-bot> [Frank_Toronto] root@meyer:/usr/local/zotonic # git show-ref HEAD 1e50d603148202dd079092917b9d3e1128a7fa43 refs/remotes/origin/HEAD root@meyer:/usr/local/zotonic #
[23:31:42] <Steffen Hanikel> hmm ... i'm afraid I can't help you anymore
[23:31:50] <Steffen Hanikel> i'm quite new to zotonic and erlang
[23:31:51] <z-bot> [Frank_Toronto] Thank you!
[23:32:43] <z-bot> [Frank_Toronto] Let me go back to erlang 14.
[23:46:04] <z-bot> [Frank_Toronto] Cannot install erlang 14 on FreeBSD 9.2
Powered by ejabberd Powered by Erlang Valid XHTML 1.0 Transitional Valid CSS!