Tuesday, 2015-05-19

*** jcrossley3 is now known as jcrossley3-away00:00
*** marianoguerra <marianoguerra!~marianogu@emesene/grandpa/marianoguerra> has quit IRC (Ping timeout: 256 seconds)00:08
*** astoon <astoon!~astoon@91.202.45.54> has joined #immutant00:15
*** astoon <astoon!~astoon@91.202.45.54> has quit IRC (Quit: astoon)00:30
*** bostonaholic <bostonaholic!~textual@c-50-134-212-204.hsd1.co.comcast.net> has quit IRC (Quit: My Mac has gone to sleep. ZZZzzz…)01:03
*** cemerick <cemerick!~cemerick@c-24-34-140-98.hsd1.ma.comcast.net> has joined #immutant01:28
*** bostonaholic <bostonaholic!~textual@c-50-134-212-204.hsd1.co.comcast.net> has joined #immutant02:21
*** statonjr <statonjr!~statonjr@cpe-71-75-100-118.carolina.res.rr.com> has quit IRC (Quit: statonjr)02:30
*** cap10morgan <cap10morgan!~cap10morg@c-50-134-198-253.hsd1.co.comcast.net> has quit IRC (Quit: (null))03:23
*** cap10morgan <cap10morgan!~cap10morg@c-50-134-198-253.hsd1.co.comcast.net> has joined #immutant03:24
*** cap10morgan_ <cap10morgan_!~cap10morg@c-50-134-198-253.hsd1.co.comcast.net> has joined #immutant03:27
*** cap10morgan <cap10morgan!~cap10morg@c-50-134-198-253.hsd1.co.comcast.net> has quit IRC (Ping timeout: 272 seconds)03:29
*** cap10morgan_ <cap10morgan_!~cap10morg@c-50-134-198-253.hsd1.co.comcast.net> has quit IRC (Ping timeout: 272 seconds)03:32
*** cap10morgan_ <cap10morgan_!~cap10morg@2601:1:b200:1c6:50bc:d00:9686:5afc> has joined #immutant04:28
*** mikeb293 <mikeb293!~mikeb293@ip68-229-28-134.lv.lv.cox.net> has joined #immutant05:17
*** mikeb293 <mikeb293!~mikeb293@ip68-229-28-134.lv.lv.cox.net> has quit IRC ()05:41
*** cap10morgan_ <cap10morgan_!~cap10morg@2601:1:b200:1c6:50bc:d00:9686:5afc> has quit IRC (Ping timeout: 256 seconds)05:46
*** dm3 <dm3!~dm3@pub151248158012.dh-hfc.datazug.ch> has joined #immutant06:46
*** qwerty_nor <qwerty_nor!~Thunderbi@5.248.107.224> has joined #immutant06:47
*** bostonaholic <bostonaholic!~textual@c-50-134-212-204.hsd1.co.comcast.net> has quit IRC (Quit: My Mac has gone to sleep. ZZZzzz…)07:12
*** dm3 <dm3!~dm3@pub151248158012.dh-hfc.datazug.ch> has quit IRC (Remote host closed the connection)07:14
*** cap10morgan_ <cap10morgan_!~cap10morg@2601:1:b200:1c6:50bc:d00:9686:5afc> has joined #immutant07:30
*** cemerick <cemerick!~cemerick@c-24-34-140-98.hsd1.ma.comcast.net> has quit IRC (Ping timeout: 272 seconds)07:31
*** cap10morgan_ <cap10morgan_!~cap10morg@2601:1:b200:1c6:50bc:d00:9686:5afc> has quit IRC (Ping timeout: 256 seconds)07:34
*** dm3 <dm3!~dm3@pub158181119172.dh-hfc.datazug.ch> has joined #immutant07:58
*** marianoguerra <marianoguerra!~marianogu@195.245.197.229> has joined #immutant08:33
*** marianoguerra <marianoguerra!~marianogu@emesene/grandpa/marianoguerra> has joined #immutant08:33
*** astoon <astoon!~astoon@91.202.45.54> has joined #immutant09:04
*** cap10morgan_ <cap10morgan_!~cap10morg@c-50-134-198-253.hsd1.co.comcast.net> has joined #immutant09:19
*** cap10morgan_ <cap10morgan_!~cap10morg@c-50-134-198-253.hsd1.co.comcast.net> has quit IRC (Ping timeout: 276 seconds)09:23
*** astoon <astoon!~astoon@91.202.45.54> has quit IRC (Quit: astoon)09:35
*** statonjr <statonjr!~statonjr@cpe-71-75-100-118.carolina.res.rr.com> has joined #immutant10:43
*** cap10morgan_ <cap10morgan_!~cap10morg@2601:1:b200:1c6:50bc:d00:9686:5afc> has joined #immutant11:07
*** cap10morgan_ <cap10morgan_!~cap10morg@2601:1:b200:1c6:50bc:d00:9686:5afc> has quit IRC (Ping timeout: 265 seconds)11:12
*** bbrowning_away is now known as bbrowning11:40
*** cap10morgan_ <cap10morgan_!~cap10morg@2601:1:b200:1c6:50bc:d00:9686:5afc> has joined #immutant12:08
*** cap10morgan_ <cap10morgan_!~cap10morg@2601:1:b200:1c6:50bc:d00:9686:5afc> has quit IRC (Ping timeout: 256 seconds)12:13
*** dm3_ <dm3_!~dm3@pub158181119172.dh-hfc.datazug.ch> has joined #immutant12:37
*** dm3 <dm3!~dm3@pub158181119172.dh-hfc.datazug.ch> has quit IRC (Ping timeout: 255 seconds)12:40
*** jcrossley3-away is now known as jcrossley312:57
*** cap10morgan_ <cap10morgan_!~cap10morg@2601:1:b200:1c6:50bc:d00:9686:5afc> has joined #immutant13:00
*** tcrawley-away is now known as tcrawley13:04
*** cap10morgan_ <cap10morgan_!~cap10morg@2601:1:b200:1c6:50bc:d00:9686:5afc> has quit IRC (Ping timeout: 256 seconds)13:09
*** bobmcw <bobmcw!~bobmcw@redhat/jboss/bobmcw> has joined #immutant13:11
*** statonjr <statonjr!~statonjr@cpe-71-75-100-118.carolina.res.rr.com> has quit IRC (Read error: Connection reset by peer)13:14
*** statonjr <statonjr!~statonjr@cpe-71-75-100-118.carolina.res.rr.com> has joined #immutant13:17
*** cemerick <cemerick!~cemerick@c-24-34-140-98.hsd1.ma.comcast.net> has joined #immutant13:18
*** lance|afk is now known as lanceball13:38
*** marianoguerra <marianoguerra!~marianogu@emesene/grandpa/marianoguerra> has quit IRC (Quit: Lost terminal)13:42
*** marianoguerra <marianoguerra!~marianogu@195.245.197.229> has joined #immutant13:44
*** marianoguerra <marianoguerra!~marianogu@emesene/grandpa/marianoguerra> has joined #immutant13:44
*** egli` <egli`!~user@sputnik.sbs.ch> has joined #immutant13:57
egli`I get this really weird error when starting a fresh wildfly install14:08
egli`https://gist.github.com/egli/214f1d7164f77464f66a14:08
*** agarman <agarman!~agarman@169.130.108.20> has quit IRC (Ping timeout: 258 seconds)14:09
tcrawleyegli`: you may be out of file descriptors. what does `ulimit -n` tell you?14:09
egli`102414:10
tcrawleythat's pretty low. I'd recommend bumping that up. I have mine set to 8192.14:11
egli`ok, will try14:11
tcrawleywhat OS are you on?14:11
egli`ubuntu14:11
tcrawleyin that case, edit /etc/security/limits.conf14:11
egli`k14:12
tcrawleythen log out/in14:12
tcrawleyI don't think it requires a reboot14:12
*** bostonaholic <bostonaholic!~textual@c-50-134-212-204.hsd1.co.comcast.net> has joined #immutant14:12
*** egli` <egli`!~user@sputnik.sbs.ch> has quit IRC (Read error: Connection reset by peer)14:14
*** cap10morgan_ <cap10morgan_!~cap10morg@75-148-43-81-Colorado.hfc.comcastbusiness.net> has joined #immutant14:15
*** agarman <agarman!~agarman@169.130.108.37> has joined #immutant14:15
*** egli` <egli`!~user@sputnik.sbs.ch> has joined #immutant14:18
egli`dang, exact same error message14:18
egli`even after I wiped the wildfly dir and started afresh with an unzipped download14:19
cap10morgan_anyone have any idea what could be happening here? https://gist.github.com/cap10morgan/0f7070e7b3a5ffe7aee314:23
cap10morgan_datomic attempting to connect in immutant 2.0.0 on wildfly 8.2.0.Final on AWS (DynamoDB datastore)14:23
egli`hm, on the other machine where everything works, it doesn't seem to start a hornetq server14:23
egli`just says "server is now live"14:24
cap10morgan_the ThreadPoolExecutor says it's shutting down, but we don't have (shutdown-agents) anywhere. this *is* after an undeploy and re-deploy of the same app in the same wildfly instance, though.14:24
egli`but on this machine it says "live server is starting with HornetQ configuration ..."14:25
tcrawleyegli`: does ulimit -n report the new value?14:33
egli`tcrawley: it reports 4096, funnily enough14:34
egli`but the case might be here http://stackoverflow.com/questions/16266337/hornetq-cant-start-error-native-error-cant-open-close-file14:34
jbossbotTitle: ubuntu - hornetq can't start, error: NATIVE_ERROR_CANT_OPEN_CLOSE_FILE - Stack Overflow14:34
tcrawleycap10morgan_: we call 'shutdown-agents on your behalf when an app is undeployed, which may cause that14:34
*** egli` <egli`!~user@sputnik.sbs.ch> has quit IRC (Remote host closed the connection)14:36
tcrawleyegli: ah, yeah, maybe so. we have to do something similar in our CI environment. See https://github.com/immutant/immutant/tree/thedeuce/etc/bin/ci-prep-wildfly.sh#L2414:36
*** egli` <egli`!~user@sputnik.sbs.ch> has joined #immutant14:38
jcrossley3cap10morgan_: i wonder if registering an at-exit handler would help there14:38
*** troyh <troyh!~textual@75-148-43-81-Colorado.hfc.comcastbusiness.net> has joined #immutant14:38
tcrawleyjcrossley3: good idea. a fn to shutdown the scanner c.async loop14:39
tcrawleycap10morgan_: ^14:39
*** agarman <agarman!~agarman@169.130.108.37> has quit IRC (Remote host closed the connection)14:41
*** agarman <agarman!~agarman@169.130.108.37> has joined #immutant14:42
egli`tcrawley: I installed libaio1 and libaio-dev, that didn't help14:43
egli`your hack to the config file did help14:43
egli`now it starts. Thanks14:43
tcrawleygood deal14:44
egli`what I don't understand is why it worked on the other machine14:44
egli`same openjdk14:44
tcrawleyis the other machine identical?14:45
tcrawleyare these VM's?14:45
egli`without the journal-type14:45
egli`no one is a real machine and one is a xen box14:45
tcrawleyis it failing on the xen box?14:46
egli`no it's failing on my laptop (the third machine)14:46
*** agarman <agarman!~agarman@169.130.108.37> has quit IRC (Ping timeout: 272 seconds)14:46
tcrawleydo you have an encrypted fs?14:47
cap10morgan_tcrawley jcrossley3: hmm, I'll look into that14:48
egli`tcrawley: hm, I probably do14:48
tcrawleyegli`: that may be the cause then14:48
egli`tcrawley: k14:48
egli`ok, finally got the demo app in-container with a repl :-)14:50
egli`yay14:51
egli`if you deploy the war to wildfly it'll start all the examples14:52
egli`I just commented out all the invokations in -main14:52
*** tcrawley is now known as tcrawley-away15:26
*** egli` <egli`!~user@sputnik.sbs.ch> has quit IRC (Remote host closed the connection)15:27
*** agarman <agarman!~agarman@169.130.108.20> has joined #immutant15:42
*** mgoldmann is now known as mgoldmann|away16:00
*** bbrowning is now known as bbrowning_away16:27
*** mgoldmann|away <mgoldmann|away!~mgoldmann@redhat/jboss/mgoldmann> has quit IRC (Quit: Lost terminal)16:31
*** marianoguerra <marianoguerra!~marianogu@emesene/grandpa/marianoguerra> has quit IRC (Ping timeout: 276 seconds)16:53
*** bbrowning_away is now known as bbrowning17:15
*** tcrawley-away is now known as tcrawley17:27
jcrossley3tcrawley: i think i could make a good case for exposing kwargs-or-map->map in the public api17:32
tcrawleywhat's your case?17:32
jcrossley3jeremy's issue on the ml :)17:32
jcrossley3i implied that we could be smarter about it, but we can't17:33
jcrossley3we have no idea which one should take precedence17:33
jcrossley3jeremy's app knows, but we don't give him the tools to tell us17:34
jcrossley3it would also solve the awkwardness of using "host" and "port" as keys in the demo (where he got the idea)17:36
tcrawleymy counter would be that we should remove the :foo -foo +foo processing17:36
cap10morgan_tcrawley & jcrossley3: I'm now closing my core.async channels in an at-exit fn, but still seeing the same error when it tries to connect to datomic. :/17:37
jcrossley3tcrawley: obviously, since jeremy is using exactly that :)17:37
tcrawleycap10morgan_: is it trying to connect to datomic after shutdown has initiated? is this the old deploy trying to connect or the new one?17:37
cap10morgan_tcrawley: should be the new one17:38
cap10morgan_I've undeployed, verified that it's gone, then deployed a new one, then injected a rabbitmq message that triggers the initial datomic connection and get this error.17:38
jcrossley3cap10morgan_: is the datomic peer in the same classloader as the app being undeployed?17:38
tcrawleycap10morgan_: the only way agents would be stopped in the new runtime is if the runtime is hanging around and it's using the same one for both deploys17:38
cap10morgan_jcrossley3: I have no idea.17:38
tcrawleycap10morgan_: can you print out the classloader tree for (.getClassLoader clojure.lang.RT) when it occurs?17:40
cap10morgan_sure17:40
tcrawley(loop [cl (.getClassLoader clojure.lang.RT)] (println cl) (when (.getParent cl) (recur (.getParent cl)))) should do the trick17:41
tcrawleyjcrossley3: If we're going to ask users to manipulate the options, why not just ask them to make sure all keys are keywords instead of providing them with a special fn?17:42
*** dm3_ <dm3_!~dm3@pub158181119172.dh-hfc.datazug.ch> has quit IRC (Remote host closed the connection)17:49
*** dm3 <dm3!~dm3@pub158181119172.dh-hfc.datazug.ch> has joined #immutant17:50
*** dm3 <dm3!~dm3@pub158181119172.dh-hfc.datazug.ch> has quit IRC (Ping timeout: 252 seconds)17:54
*** marianoguerra <marianoguerra!~marianogu@a95-93-242-245.cpe.netcabo.pt> has joined #immutant18:02
*** marianoguerra <marianoguerra!~marianogu@emesene/grandpa/marianoguerra> has joined #immutant18:02
*** jt__ <jt__!5b404c9e@gateway/web/freenode/ip.91.64.76.158> has joined #immutant18:03
*** jt__ is now known as Guest1670018:03
*** jpthomson <jpthomson!5b404c9e@gateway/web/freenode/ip.91.64.76.158> has joined #immutant18:03
jpthomsonHey! Anyone know the best way to add a custom handler to an Undertow servlet?  I'm adding gzip.18:06
tcrawleyjpthomson: do you mean an http handler? is this outside or inside of WildFly?18:08
jpthomsonI'm using Pedestal18:09
tcrawleyah18:09
tcrawleyoutside or inside of WF?18:09
jpthomsonSorry, outside18:09
tcrawleyI don't think we expose a way to do that if you are using a servlet, but I'll take a look.18:11
tcrawleywe could definitely do https://stackoverflow.com/questions/28295752/compressing-undertow-server-responses if there wasn't a servlet involved18:12
jbossbotTitle: java - Compressing Undertow server responses - Stack Overflow18:12
jpthomsonYeah I figured that might be the case but thought I'd ask.  I was looking for something like .addNext for the servlet18:12
jpthomsonthat's more or less what I have now, yep18:12
jpthomsonthis seemed promising too: http://undertow.io/undertow-docs/undertow-docs-1.2.0/index.html#creating-a-servlet-deployment but I'm not sure what I'd do with a DeploymentInfo18:13
jbossbotTitle: Undertow18:13
tcrawleythat's similar to what we do internally, but we don't expose the Handler that wraps the servlet18:15
tcrawleywe either need to expose gzip as an option and do it for you, or expose a way to wrap a servlet in a handler that you could add to your own filter chain, and pass the chain to web/run18:17
tcrawleyI don't see a way to do what you want without one of those options18:17
tcrawleyjcrossley3 may have an idea18:18
cap10morgan_tcrawley & jcrossley3: I'm having a hell of a time getting that classloader output, but I am also intermittently seeing this too now: https://gist.github.com/cap10morgan/c5aeaef421ceba4a9fc218:18
*** dm3 <dm3!~dm3@pub151248158012.dh-hfc.datazug.ch> has joined #immutant18:20
jpthomsonthanks tcrawley. +1 on both of those options!  For the time being I can do something inside ring.18:20
cap10morgan_that's from a wildfly where I have undeployed and *not* redeployed that app18:20
tcrawleyjpthomson: would you mind filing a @jira asking for some way to enable gzip?18:20
jpthomsontcrawley: certainly will18:20
*** proddbot <proddbot!~irclj@162.243.1.108> has joined #immutant18:21
tcrawley@jira18:21
proddbotIt would please tcrawley to no end if you would file an issue at https://issues.jboss.org/browse/IMMUTANT18:21
tcrawleythat's better18:21
tcrawleycap10morgan_: it sounds like a thread is still running after undeployment, but the classloader for the deployment is now gone18:22
cap10morgan_tcrawley: should I try restarting the wildfly's themselves?18:23
tcrawleythat's not a bad idea18:23
cap10morgan_OK18:23
jcrossley3tcrawley: jpthomson: i seem to recall a simpler time when adding gzip was easier. looking at the code now, we may be lying in the api docs when we say web/run can take an HttpHandler instance18:30
jcrossley3i doubt that works in-container18:31
jpthomsonI did try that and no joy - although I may have been misdirected some other way18:32
jcrossley3we'd prolly need to introduce some sort of analog to pedestal's jetty.util ns that references undertow impl classes which we'd need to expose18:32
jpthomsonthat'd be sweet18:33
*** jcrossley3 is now known as jcrossley3-away18:34
*** jpthomson <jpthomson!5b404c9e@gateway/web/freenode/ip.91.64.76.158> has quit IRC (Ping timeout: 246 seconds)18:37
*** bbrowning is now known as bbrowning_away18:43
cap10morgan_OK finally got that ClassLoader: #<ModuleClassLoader ModuleClassLoader for Module "deployment.ballot-scout.war:main" from Service Module Loader>18:47
*** lanceball is now known as lance|afk18:48
cap10morgan_seems like restarting the wildflys is clearing up the issue18:51
tcrawleycap10morgan_: good deal. that classloader looks good - my concern was some higher classloader loading clojure for some reason, causing the RT to be shared, but that shouldn't happen if the deployment's module CL loads it19:00
cap10morgan_tcrawley: OK19:00
cap10morgan_I always get nervous when it seems that wildfly is in an unrecoverable state like this... :/19:01
tcrawleycontainers are hard to keep clean - you have to be willing to reboot them on occasion, unfortunately19:01
*** qwerty_nor <qwerty_nor!~Thunderbi@5.248.107.224> has quit IRC (Ping timeout: 240 seconds)19:02
*** bbrowning_away is now known as bbrowning19:36
*** bostonaholic <bostonaholic!~textual@c-50-134-212-204.hsd1.co.comcast.net> has quit IRC (Quit: My Mac has gone to sleep. ZZZzzz…)19:40
*** gregpardo <gregpardo!18e32395@gateway/web/freenode/ip.24.227.35.149> has joined #immutant19:42
*** jcrossley3-away is now known as jcrossley319:47
cap10morgan_tcrawley: :(20:19
cap10morgan_and it's already broken again20:19
cap10morgan_I need a vacation20:19
tcrawleyis this a local dev server? or production?20:19
cap10morgan_production20:20
tcrawleydarn. do you do a lot of redeploys?20:20
*** lance|afk is now known as lanceball20:35
*** bobmcw <bobmcw!~bobmcw@redhat/jboss/bobmcw> has quit IRC (Remote host closed the connection)20:55
*** bostonaholic <bostonaholic!~textual@c-50-134-212-204.hsd1.co.comcast.net> has joined #immutant21:04
*** dm3 <dm3!~dm3@pub151248158012.dh-hfc.datazug.ch> has quit IRC (Read error: Connection reset by peer)21:06
*** dm3 <dm3!~dm3@pub151248158012.dh-hfc.datazug.ch> has joined #immutant21:07
*** lanceball is now known as lance|afk21:28
*** tcrawley is now known as tcrawley-away21:41
*** dm3 <dm3!~dm3@pub151248158012.dh-hfc.datazug.ch> has quit IRC (Remote host closed the connection)21:43
*** cemerick <cemerick!~cemerick@c-24-34-140-98.hsd1.ma.comcast.net> has quit IRC (Ping timeout: 255 seconds)21:53
*** troyh <troyh!~textual@75-148-43-81-Colorado.hfc.comcastbusiness.net> has quit IRC (Quit: My Mac has gone to sleep. ZZZzzz…)22:00
*** gregpardo <gregpardo!18e32395@gateway/web/freenode/ip.24.227.35.149> has quit IRC (Ping timeout: 246 seconds)22:03
*** cap10morgan_ <cap10morgan_!~cap10morg@75-148-43-81-Colorado.hfc.comcastbusiness.net> has quit IRC (Quit: (null))22:28
*** bostonaholic <bostonaholic!~textual@c-50-134-212-204.hsd1.co.comcast.net> has quit IRC (Quit: My Mac has gone to sleep. ZZZzzz…)23:02
*** bbrowning is now known as bbrowning_away23:33
*** gws <gws!~gws@2601:7:680:45b:f66d:4ff:fe04:3329> has left #immutant23:48

Generated by irclog2html.py 2.9.2 by Marius Gedminas - find it at mg.pov.lt!