« Back to channel list

#RubyOnRails - 23 March 2018

« Back 1 day Forward 1 day »
[00:03:36] halbbalda: has joined #RubyOnRails
[00:20:07] halbbalda: has joined #RubyOnRails
[00:30:58] timdotrb_: has joined #RubyOnRails
[00:39:15] shpoont: has joined #RubyOnRails
[00:55:26] gambl0re: has joined #RubyOnRails
[01:04:37] apow: has joined #RubyOnRails
[01:47:43] chouhoulis: has joined #RubyOnRails
[01:54:01] gravity_pope: has joined #RubyOnRails
[02:16:40] workmad3: has joined #RubyOnRails
[02:27:53] srruby: has joined #RubyOnRails
[02:28:44] srruby: I am looking into agile tools. Is PivotalTracker still a viable choice? A recent project I worked on used JIRA
[02:28:59] srruby: I last used Pivotal in 2012
[02:29:11] egray: has joined #RubyOnRails
[02:32:21] orbyt_: has joined #RubyOnRails
[02:35:24] alfiemax: has joined #RubyOnRails
[02:35:40] sevenseacat: has joined #RubyOnRails
[02:37:59] darkhanb: has joined #RubyOnRails
[03:03:35] jnollette: has joined #RubyOnRails
[03:07:10] jnollette: has joined #RubyOnRails
[03:11:33] agent_white: has joined #RubyOnRails
[03:43:04] quazimodo: has joined #RubyOnRails
[03:55:53] cschneid: has joined #RubyOnRails
[04:00:04] Tempesta: has joined #RubyOnRails
[04:07:19] Dimik: has joined #RubyOnRails
[04:16:58] Saukk: has joined #RubyOnRails
[04:21:16] dustinm`: has joined #RubyOnRails
[04:25:16] trautwein: has joined #RubyOnRails
[05:06:45] kies: has joined #RubyOnRails
[05:11:50] alfiemax: has joined #RubyOnRails
[05:12:21] alfiemax: hi all.. :)
[05:23:27] alfiemax: i have a active job, that calls another active job with a `perform_later`
[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
[05:23:54] alfiemax: is that possible?
[05:44:55] za1b1tsu: has joined #RubyOnRails
[06:10:41] sidx64: has joined #RubyOnRails
[06:17:05] workmad3: has joined #RubyOnRails
[06:21:23] reber: has joined #RubyOnRails
[06:21:23] quazimodo: has joined #RubyOnRails
[06:22:02] sidx64: has joined #RubyOnRails
[06:37:53] za1b1tsu: has joined #RubyOnRails
[06:46:20] za1b1tsu: has joined #RubyOnRails
[06:49:42] srinidhi: has joined #RubyOnRails
[06:52:53] jcarl43: has joined #RubyOnRails
[07:03:02] za1b1tsu: has joined #RubyOnRails
[07:12:22] za1b1tsu: has joined #RubyOnRails
[07:12:56] sidx64: has joined #RubyOnRails
[07:22:05] dionysus69: has joined #RubyOnRails
[07:26:50] conta: has joined #RubyOnRails
[07:31:28] sidx64: has joined #RubyOnRails
[07:38:07] sidx64: has joined #RubyOnRails
[07:40:44] srinidhi: has joined #RubyOnRails
[07:44:29] sidx64: has joined #RubyOnRails
[07:51:37] schneider: has joined #RubyOnRails
[07:54:05] shpoont: has joined #RubyOnRails
[08:04:44] srinidhi: has joined #RubyOnRails
[08:16:25] schneider: has joined #RubyOnRails
[08:17:17] workmad3: has joined #RubyOnRails
[08:17:20] conta1: has joined #RubyOnRails
[08:22:58] Mosselman: has joined #RubyOnRails
[08:40:04] srinidhi: has joined #RubyOnRails
[08:52:37] sidx64: has joined #RubyOnRails
[09:05:35] one_zero: has joined #RubyOnRails
[09:07:55] mikecmpbll: has joined #RubyOnRails
[09:09:10] amritoit: has joined #RubyOnRails
[09:10:22] amritoit: Hi, facing this error in sidekiq rails any help? https://pastebin.com/ARxUM1Mr
[09:11:08] jottr: has joined #RubyOnRails
[09:11:51] planigan: has joined #RubyOnRails
[09:18:43] marr: has joined #RubyOnRails
[09:19:28] dminuoso: amritoit: did you move or delete stuff?
[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:22:06] amritoit: dminuoso: on getting a pdf generation request I execute this - "ruby/2.1.0/bin/wkhtmltopdf", "-q", "--encoding", "UTF-8", "--javascript-delay", "10000", "--orientation", "Portrait", "--page-size", "A4", "--margin-top", "10", "--margin-bottom", "10", "--header-html", "file:////tmp/wicked_header_pdf20180323-7717-11yn8mh.html", "--footer-line", "--footer-html", "file:////tmp/wicked_footer_pdf20180323-7717-b9je3g.html",
[09:22:06] amritoit: "file:////tmp/wicked_pdf20180323-7717-16rzlnl.html"
[09:22:33] amritoit: which generate temporary file inside tmp folder
[09:45:40] rikkipitt: has joined #RubyOnRails
[09:47:46] riotjones: has joined #RubyOnRails
[09:53:02] sidx64: has joined #RubyOnRails
[09:57:43] chexmix_elephant: has joined #RubyOnRails
[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.
[10:02:06] chexmix_elephant: any ideas what im doing wrong?
[10:16:40] elcms: has joined #RubyOnRails
[10:17:03] srinidhi: has joined #RubyOnRails
[10:26:41] workmad3: has joined #RubyOnRails
[10:28:35] roshanavand: has joined #RubyOnRails
[10:36:14] shpoont: has joined #RubyOnRails
[10:48:29] defsdoor: has joined #RubyOnRails
[10:57:22] conta: has joined #RubyOnRails
[11:01:18] egray: has joined #RubyOnRails
[11:14:38] ferr: has joined #RubyOnRails
[11:16:11] conta: has joined #RubyOnRails
[11:20:40] ferr: has left #RubyOnRails: ("WeeChat 2.1")
[11:20:49] Mosselman: has joined #RubyOnRails
[11:34:01] quazimodo: has joined #RubyOnRails
[11:35:40] ss942: has joined #RubyOnRails
[11:35:51] dviola: has joined #RubyOnRails
[11:35:57] ss942: What are *.rsb files?
[11:41:00] sevenseacat: someone made a typo when typing *.rb ?
[11:41:52] ss942: sevenseacat: guess that not, some API related things are inside these files
[11:45:06] crst: has joined #RubyOnRails
[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.
[11:49:21] Cavallari: has joined #RubyOnRails
[11:49:46] Cavallari1: has joined #RubyOnRails
[11:51:22] dionysus69: scope is cached right?
[11:58:13] roshanavand: has joined #RubyOnRails
[12:00:55] rshetty: has joined #RubyOnRails
[12:02:32] tcopeland: has joined #RubyOnRails
[12:02:59] Mosselman: has joined #RubyOnRails
[12:10:54] crst: dionysus69: no idea, there's also redis but I don't know if it's setup properly.
[12:11:21] crst: Also, there are hardcore n+1 issues still need to be fixed
[12:31:34] Mosselman: has joined #RubyOnRails
[12:37:39] Fernando-Basso: has joined #RubyOnRails
[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
[12:41:44] jomitsch: this is on rails 5.1.4
[13:03:11] rikkipitt: has joined #RubyOnRails
[13:08:08] za1b1tsu: has joined #RubyOnRails
[13:09:25] dminuoso: jomitsch: Can you reproduce the issue?
[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:14:25] dminuoso: jomitsch: Also try using ActionDispatch::DebugLocks
[13:14:48] dminuoso: http://api.rubyonrails.org/classes/ActionDispatch/DebugLocks.html
[13:16:47] DTZUZO: has joined #RubyOnRails
[13:23:50] jomitsch: dminuoso: yes, I can reproduce it regularly, thanks for the suggestions! I'll try those
[13:28:44] kn-928: has joined #RubyOnRails
[13:37:21] tcopeland: has joined #RubyOnRails
[14:01:38] Inside: jomitsch: did you see my message?
[14:06:57] jomitsch: Inside: ya, thanks, but I'm able to reproduce the issue with spring stopped
[14:07:56] Scient: has joined #RubyOnRails
[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:24:50] Sylario: it should return "familles/1" it returns \u002
[14:28:11] fryguy: i don't think gsub does what you think it does
[14:30:01] tcopeland: has joined #RubyOnRails
[14:32:12] Sylario: ok, it was simple quotes instead of doubles for the last string
[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:32:56] jomitsch: or at least, not much I can decipher from it :)
[14:35:46] dminuoso: jomitsch: ah.
[14:36:07] dminuoso: jomitsch: I recommend diving in with byebug
[14:36:20] dminuoso: jomitsch: Also, did you plug the middleware in I suggested?
[14:36:42] dminuoso: jomitsch: (With byebug you can interact with the other threads)
[14:37:06] mikecmpb_: has joined #RubyOnRails
[14:38:32] jomitsch: dminuoso: I tried that middleware, but I don't see anything showing up in /rails/locks?
[14:38:54] jomitsch: dminuoso: I don't even see a /rails directory, am I missing something obviou?
[14:46:18] dminuoso: jomitsch: can you gist your `rails middleware`
[14:47:10] jomitsch: dminuoso: https://paste.fedoraproject.org/paste/i0s2fZZpUICu-ruoej8L1A
[14:47:19] KeyJoo: has joined #RubyOnRails
[14:47:55] jomitsch: I put it before Rack::Sendfile like in the example, which we do appear to be using
[14:48:07] KeyJoo: has joined #RubyOnRails
[14:48:09] dminuoso: jomitsch: The middleware is not listed. Did you remember to restart spring?
[14:48:33] jomitsch: dminuoso: I actually turned spring off
[14:48:48] jomitsch: dminuoso: oh I took that line out
[14:49:00] jomitsch: dminuoso: let me add it back and 'rails middleware' again
[14:50:11] jomitsch: ok now I see it:
[14:50:13] jomitsch: use ActionDispatch::DebugLocks
[14:50:36] dminuoso: jomitsch: Just so we're on the same page. You did restart the webserver with that middleware right?
[14:50:47] jomitsch: dminuoso: yes
[14:50:55] jomitsch: dminuoso: I'm trying it again to double check
[14:50:56] dminuoso: matthewd: ping
[14:53:30] ss942: has left #RubyOnRails: ()
[14:53:49] jomitsch: dminuoso: ya can confirm, no /rails/lock on the system
[14:54:10] jomitsch: dminuoso: Is that folder created by the middleware? Do you have to run the server as root?
[14:55:35] dminuoso: jomitsch: Oh I see where the confusion is.
[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:56:55] jomitsch: dminuoso: oh ha! ok found it
[14:58:44] jomitsch: dminuoso: its showing this https://paste.fedoraproject.org/paste/QyEOY4mhXb2jtgS-KrY8jA
[15:01:14] jomitsch: removing my debugging middleware since I see that in the traceback
[15:03:15] jomitsch: dminuoso: I'm guessing this thread 2 is where to poke around? https://paste.fedoraproject.org/paste/57i~vPCgMbRZzGbsJugM5g
[15:03:46] jomitsch: dminuoso: seems like that is using the ActionDispatch::Reloader code
[15:08:57] cschneid: has joined #RubyOnRails
[15:22:51] crst: has joined #RubyOnRails
[15:32:02] za1b1tsu: has joined #RubyOnRails
[15:35:26] za1b1tsu: has joined #RubyOnRails
[15:50:49] SteenJobs: has joined #RubyOnRails
[15:53:20] za1b1tsu: has joined #RubyOnRails
[16:01:00] mark721: has joined #RubyOnRails
[16:01:14] mark721: im having some issues understanding the difference between
[16:01:27] mikecmpbll: has joined #RubyOnRails
[16:01:42] mark721: @form = Form.find(params[:form_id])
[16:01:42] mark721: @comment = @form.comments.build(comment_params)
[16:01:42] mark721: @comment = Comment.where(form: @form).build(comment_params)
[16:01:50] mark721: what is the difference between line two and line 3
[16:01:58] cagomez: has joined #RubyOnRails
[16:02:20] mark721: im aware what .where does (it queries the db). But, basically comment is a nested route inside form.
[16:03:04] troys: has joined #RubyOnRails
[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:06:06] mikecmpbll: has joined #RubyOnRails
[16:13:33] jcarl43: has joined #RubyOnRails
[16:14:55] troys: has joined #RubyOnRails
[16:16:00] darkhanb: has joined #RubyOnRails
[16:18:18] schneider: has joined #RubyOnRails
[16:21:30] uksio: has joined #RubyOnRails
[16:21:53] dminuoso: jomitsch: Im commuting at the moment, will be home in maybe 20 minutes.
[16:23:49] jomitsch: dminuoso: ok cool
[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:24:24] jomitsch: dminuoso: I have no idea the implications of this change though :)
[16:30:36] dminuoso: jomitsch: Do you have any code using #lock! or AR::Base#connection_pool
[16:31:00] dminuoso: jomitsch: Or really just byebug, and figure out who is holding that lock that is creating the deadlock.
[16:31:48] jomitsch: dminuoso: thanks, let me check on that
[16:32:55] dminuoso: jomitsch: I suspect you've forgot to ActiveSupport::Dependencies.interlock.permit_concurrent_loads in some spot =)
[16:34:31] Cavallari: has joined #RubyOnRails
[16:36:25] dviola: has joined #RubyOnRails
[16:39:51] jomitsch: dminuoso: I see a couple suspect places https://git.io/vx4ah and https://git.io/vx4Vf
[16:40:03] jomitsch: I'll try debugging to see who is holding the lock
[16:44:34] workmad3: has joined #RubyOnRails
[16:55:41] Cavallari1: has joined #RubyOnRails
[16:57:23] dionysus69: has joined #RubyOnRails
[17:01:16] EXCHGR: has joined #RubyOnRails
[17:05:01] GJdan: has joined #RubyOnRails
[17:10:04] harrycs: has joined #RubyOnRails
[17:19:15] harrycs: has joined #RubyOnRails
[17:20:58] orbyt_: has joined #RubyOnRails
[17:21:35] desperek: has joined #RubyOnRails
[17:23:16] harrycs: has joined #RubyOnRails
[17:25:14] harrycs: has joined #RubyOnRails
[17:25:21] gravity_pope: has joined #RubyOnRails
[17:29:14] harrycs: has joined #RubyOnRails
[17:32:39] KeyJoo: has joined #RubyOnRails
[17:33:17] harrycs: has joined #RubyOnRails
[17:36:28] gravity_pope: has joined #RubyOnRails
[17:37:17] harrycs: has joined #RubyOnRails
[17:39:17] harrycs: has joined #RubyOnRails
[17:41:17] harrycs: has joined #RubyOnRails
[17:45:10] Saukk: has joined #RubyOnRails
[17:45:47] Puffball: has joined #RubyOnRails
[17:51:17] harrycs: has joined #RubyOnRails
[17:51:48] gravity_pope: has joined #RubyOnRails
[17:53:18] harrycs: has joined #RubyOnRails
[17:56:11] SteenJobs: has joined #RubyOnRails
[17:59:38] tcopeland: has joined #RubyOnRails
[18:02:43] Ryzokuken: has joined #RubyOnRails
[18:05:58] harrycs: has joined #RubyOnRails
[18:06:31] uks: has joined #RubyOnRails
[18:09:28] harrycs: has joined #RubyOnRails
[18:16:32] desperek: has joined #RubyOnRails
[18:17:05] dtzuzu: has joined #RubyOnRails
[18:19:40] gravity_pope: has joined #RubyOnRails
[18:20:11] mtkd: has joined #RubyOnRails
[18:28:19] Ergo: has joined #RubyOnRails
[18:36:48] Dimik: has joined #RubyOnRails
[18:38:00] desperek: has joined #RubyOnRails
[18:43:15] tcopeland: has joined #RubyOnRails
[18:45:33] agent_white: has joined #RubyOnRails
[18:52:19] sameerynho: has joined #RubyOnRails
[18:55:12] srinidhi: has joined #RubyOnRails
[18:58:32] tcopeland: has joined #RubyOnRails
[19:03:09] mtkd: has joined #RubyOnRails
[19:04:48] mostlybadfly: has joined #RubyOnRails
[19:13:56] roshanavand: has joined #RubyOnRails
[19:15:37] SteenJobs: has joined #RubyOnRails
[19:16:21] jottr: has joined #RubyOnRails
[19:18:06] alfiemax: has joined #RubyOnRails
[19:19:01] cagomez: has joined #RubyOnRails
[19:22:40] jottr: has joined #RubyOnRails
[19:23:09] tcopeland: has joined #RubyOnRails
[19:23:44] harrycs: has joined #RubyOnRails
[19:30:05] jottr: has joined #RubyOnRails
[19:33:51] SteenJobs: has joined #RubyOnRails
[19:34:36] cagomez: has joined #RubyOnRails
[19:34:38] mtkd: has joined #RubyOnRails
[19:45:01] jottr: has joined #RubyOnRails
[19:50:26] cagomez: has joined #RubyOnRails
[19:54:45] cagomez: has joined #RubyOnRails
[19:55:46] cagomez: has joined #RubyOnRails
[20:01:35] gravity_pope: has joined #RubyOnRails
[20:03:44] sidx64: has joined #RubyOnRails
[20:11:26] jnollette: has joined #RubyOnRails
[20:11:59] rikkipitt: has joined #RubyOnRails
[20:13:13] d5sx43: has joined #RubyOnRails
[20:15:57] dviola: has joined #RubyOnRails
[20:20:11] sidx64: has joined #RubyOnRails
[20:26:18] tcopeland: has joined #RubyOnRails
[20:27:30] sameerynho: has joined #RubyOnRails
[20:36:19] weaksauce: has joined #RubyOnRails
[20:36:43] rubyDudeNu: has joined #RubyOnRails
[20:38:22] sidx64_: has joined #RubyOnRails
[20:39:12] blackmesa: has joined #RubyOnRails
[20:50:53] quazimodo: has joined #RubyOnRails
[20:54:32] alfiemax: has joined #RubyOnRails
[20:55:40] jottr_: has joined #RubyOnRails
[20:57:31] schneider: has joined #RubyOnRails
[20:59:09] za1b1tsu: has joined #RubyOnRails
[20:59:54] za1b1tsu: has joined #RubyOnRails
[21:07:39] alfiemax: has joined #RubyOnRails
[21:09:01] gravity_pope: has joined #RubyOnRails
[21:11:41] gravity_pope: has joined #RubyOnRails
[21:14:57] Aherin: has joined #RubyOnRails
[21:18:31] gravity_pope: has joined #RubyOnRails
[21:20:24] alfiemax: has joined #RubyOnRails
[21:24:25] mtkd: has joined #RubyOnRails
[21:25:49] tdy: has joined #RubyOnRails
[21:34:10] cagomez: has joined #RubyOnRails
[21:40:59] quazimodo: has joined #RubyOnRails
[21:41:38] alfiemax: has joined #RubyOnRails
[21:44:18] mikecmpbll: has joined #RubyOnRails
[21:59:03] alfiemax: has joined #RubyOnRails
[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
[22:13:00] guacamole: has joined #RubyOnRails
[22:16:01] alfiemax: has joined #RubyOnRails
[22:23:13] jottr: has joined #RubyOnRails
[22:25:58] mikecmpbll: has joined #RubyOnRails
[22:26:48] tcopeland: has joined #RubyOnRails
[22:28:29] alfiemax: has joined #RubyOnRails
[22:34:04] Ergo: has joined #RubyOnRails
[22:34:42] Ergo: has joined #RubyOnRails
[22:38:33] shpoont: has joined #RubyOnRails
[22:40:06] rikkipitt: has joined #RubyOnRails
[22:49:06] harrycs: has joined #RubyOnRails
[23:00:11] riotjones: has joined #RubyOnRails
[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:07:14] alfiemax: has joined #RubyOnRails
[23:20:49] pyface: has joined #RubyOnRails
[23:20:57] pyface: has left #RubyOnRails: ("Leaving")
[23:23:10] guacamole: has anyone ever dealt with circleci not recognizing their env vars? I set them directly in the circle ci gui
[23:23:52] alfiemax: has joined #RubyOnRails
[23:33:59] za1b1tsu: has joined #RubyOnRails
[23:36:52] alfiemax: has joined #RubyOnRails
[23:50:52] shpoont: has joined #RubyOnRails