#RubyOnRails - 23 March 2018
« Back 1 day Forward 1 day »
[02:28:44] srruby: I am looking into agile tools. Is PivotalTracker still a viable choice? A recent project I worked on used JIRA
[05:23:49] alfiemax: i want to test that when i call the first job with `perform_now` that the other job is also called
[09:20:39] amritoit: dminuoso: I am creating temporary html to generate pdf inside /tmp folder. Not able to figure out whether its getting deleted or not.
[09:59:33] chexmix_elephant: hey guys im having trouble with the uglifier gem when it runs the compressor on my rails application. I have included another gem that does some simple jquery: https://gist.github.com/varunjayaraman/41b5ea4c275bcf2877c86000d57f86d9
[09:59:55] chexmix_elephant: but my uglifier complains that i can't use function declarations except in the top scope or immediately inside another function
[10:00:10] chexmix_elephant: i understand that message but im not doing that here. that is a function expression, not a function declaration
[10:01:23] chexmix_elephant: the specific error is: Uglifier::Error: In strict mode code, functions can only be declared at top level or immediately within another function.
[11:48:52] crst: Hi, I run a production app via puma and nginx, the system has 8 virtual CPU's and 16GB Ram, nginx has worker_processes 8; Do I need to setup workers for puma, too. At the moment it has threads 4, 16.
[12:41:27] jomitsch: hey all, I asked this yesterday but didn't get much of a response, we are facing a pretty frustating issue where our development rails server hangs on a code change, I think I have narrowed it down to ActionDispatch::Reloader with this logic here https://paste.fedoraproject.org/paste/EBixCIbRwRimCgbESLkxnA - does anyone have any ideas around this or a way to debug further? We are pretty stuck
[13:12:31] dminuoso: jomitsch: If it's reproducible I would personally (because its the fastest way), send a SIGBUS/SIGSEGV to the process - forcing ruby to produce a core dump + some backtrace information - to get an idea where it's hanging.
[13:23:50] jomitsch: dminuoso: yes, I can reproduce it regularly, thanks for the suggestions! I'll try those
[14:10:28] akofink: jomitsch: our app also has config.file_watcher set to ActiveSupport::FileUpdateChecker
[14:24:13] Sylario: I can't make gsub works : "../../../familles/1/produits/26".gsub(/(\.\.\/)*(familles\/[0-9]*)(.)*/,"\2")
[14:32:14] jomitsch: dminuoso: so I sent a "kill -7" to the ruby process pid when the server hangs and got this https://paste.fedoraproject.org/paste/Z8PSEWhNz0MKSyluaGSl1w (can provide full output if needed), unfortunately not much to go on there
[14:32:45] Sylario: fryguy: I just need to bee more precise on the last group ant it will do exactly what I want
[14:38:32] jomitsch: dminuoso: I tried that middleware, but I don't see anything showing up in /rails/locks?
[14:47:55] jomitsch: I put it before Rack::Sendfile like in the example, which we do appear to be using
[14:50:36] dminuoso: jomitsch: Just so we're on the same page. You did restart the webserver with that middleware right?
[14:54:10] jomitsch: dminuoso: Is that folder created by the middleware? Do you have to run the server as root?
[14:55:51] dminuoso: jomitsch: Let me answer with a riddle. Is there a different context in which `/rails/locks` might make sense? =)
[14:56:28] dminuoso: jomitsch: i.e., the debug information is made available through the web server itself.
[14:58:44] jomitsch: dminuoso: its showing this https://paste.fedoraproject.org/paste/QyEOY4mhXb2jtgS-KrY8jA
[15:03:15] jomitsch: dminuoso: I'm guessing this thread 2 is where to poke around? https://paste.fedoraproject.org/paste/57i~vPCgMbRZzGbsJugM5g
[16:02:20] mark721: im aware what .where does (it queries the db). But, basically comment is a nested route inside form.
[16:03:07] mark721: using line two it produced a bug where regardless of the validation failing, it still rendered the comment, using line 3, it did not so im trying to understand why line 3 fixed it?
[16:24:12] jomitsch: dminuoso: for when you get back, if I comment out this line, it looks like the issue goes away https://git.io/vx4gN
[16:31:00] dminuoso: jomitsch: Or really just byebug, and figure out who is holding that lock that is creating the deadlock.
[16:32:55] dminuoso: jomitsch: I suspect you've forgot to ActiveSupport::Dependencies.interlock.permit_concurrent_loads in some spot =)
[16:39:51] jomitsch: dminuoso: I see a couple suspect places https://git.io/vx4ah and https://git.io/vx4Vf
[22:04:27] fox_mulder_cp: hi, folks. how i can properly create #each for model? now i recieve deep stack overflow error when try do somethind in each cycle
[23:00:55] Axsuul: What service do you guys use to monitor your sidekiq jobs? (track average duration, stacktraces, what's the slowest calls, etc)?
[23:23:10] guacamole: has anyone ever dealt with circleci not recognizing their env vars? I set them directly in the circle ci gui