00:06:02  <rphillips>rje: https://github.com/virgo-agent-toolkit/rackspace-monitoring-agent/pull/735
00:06:05  <rphillips>this should fix it
00:15:24  * SouL_|_quit (Ping timeout: 252 seconds)
00:15:57  * SouL_|_joined
00:32:49  * hdmsquit (Quit: hdms)
00:42:14  * hdmsjoined
00:42:21  * hdmsquit (Client Quit)
00:57:53  * SouL_|_quit (Ping timeout: 246 seconds)
00:58:25  * SouL_|_joined
01:11:22  * kazuponjoined
01:13:37  * DarkGodquit (Ping timeout: 258 seconds)
01:45:05  * squeekjoined
01:45:11  * squeeekjoined
01:45:12  * squeeekquit (Client Quit)
05:09:57  * kazuponquit (Remote host closed the connection)
05:10:28  * kazuponjoined
05:13:54  <rje>so when run as a service it can't load sigar.dll, not sure why yet
05:14:49  * kazuponquit (Ping timeout: 264 seconds)
05:27:38  * kazuponjoined
05:31:03  * kazuponquit (Read error: Connection reset by peer)
05:31:07  * SouL_|_quit (Ping timeout: 264 seconds)
05:31:08  * kazupon_joined
05:49:51  * SkyRocknRolljoined
06:08:36  * SouL_|_joined
08:32:19  * SouL_|_quit (Ping timeout: 264 seconds)
08:40:07  * SouL_|_joined
08:46:03  * kazupon_quit (Remote host closed the connection)
08:46:30  * kazuponjoined
09:56:19  * SouL_|_quit (Ping timeout: 264 seconds)
10:12:16  * kazuponquit (Remote host closed the connection)
10:12:23  * kazuponjoined
11:24:56  * kazuponquit (Remote host closed the connection)
11:25:23  * kazuponjoined
11:29:37  * kazuponquit (Ping timeout: 258 seconds)
12:47:55  * SouL_|_joined
12:56:30  * SouL_|_quit (Read error: Connection reset by peer)
12:57:35  * SouL_|_joined
13:27:46  <rphillips>good morning
13:48:20  * ldub_joined
13:59:24  * ldub_quit (Ping timeout: 276 seconds)
13:59:30  * SkyRocknRollquit (Remote host closed the connection)
14:04:36  * ldub_joined
14:30:44  * kazuponjoined
14:32:11  * dan336joined
15:03:48  * SouL_|_quit (Read error: Connection reset by peer)
15:17:40  <ldub_>t
15:24:37  <ldub_>my first C-Land on-cpu Flamegraph for my luvi app : https://drive.google.com/file/d/0B6jIANNz4eD3X2MyY1EzSE04eEE/view?usp=sharing
15:25:04  <ldub_>really cool tool from OpenResty http://openresty.org/#Profiling but . Did not worked for Catching off-cpu backtraces
15:25:39  <ldub_>and lua
15:25:42  <rphillips>slick
15:26:22  <dan336>flame graphs are nice :)
15:27:09  <ldub_>good also to learn what's underneath my app
16:09:47  * kazupon_joined
16:12:59  * kazuponquit (Ping timeout: 250 seconds)
16:16:06  * ldub_quit (Ping timeout: 272 seconds)
17:14:54  * DarkGodjoined
17:17:00  <creationix>rphillips: I need to take today off. If there anything you need in luvit?
17:17:15  <rphillips>creationix: I don't think so
17:17:44  <rphillips>testing the current release of the agent+{luvi,luvit}
17:18:53  * hdmsjoined
17:35:18  * SouL_|_joined
18:13:52  <rphillips>i wonder if the binary loader can't expand the dll to the filesystem
18:13:59  <rphillips>when running as a service
18:34:01  * ldub_joined
18:45:12  * kazupon_quit (Remote host closed the connection)
18:47:23  * bjornquit (Quit: No Ping reply in 180 seconds.)
18:49:11  <rje>rphillips, that's what i'm wondering too
18:50:28  <rje>rphillips, all this fun, the calls succeed but nothing goes in the files dammit https://github.com/virgo-agent-toolkit/rackspace-monitoring-agent/commit/7762845922c857e8b373379bbad2bb7bd8e42bce#diff-51de066f3a8584bd8f49fa5beb5c3f80R282
19:13:59  <rphillips>rje: ProgramData
19:14:05  <rphillips>should be 'Program Data'
19:14:07  <rphillips>?
19:15:36  <rphillips>rje: vidyo. I know why it isn't working
19:16:04  <rphillips>your room
19:25:47  * dan336quit (Quit: Leaving.)
20:09:49  <rje>rphillips, The specified module could not be found.
20:09:58  <rphillips>ah hah
20:10:27  <rje>now i modified require, ran lit make got that output
20:11:01  <rje>modified it again to add the file name and path, ran lit make again and cant get the exe to change
20:11:11  <rphillips>lit make ?
20:11:26  <rphillips>it might be in use by windows
20:11:27  <rje>yeag
20:11:34  <rje>it succeeded
20:18:06  <rje>C:\Windows\TEMP\lib-xRSwcV\sigar.dll#luaopen_sigar: The specified module could not be found.
20:18:12  <rje>there
20:18:57  <rje>PS C:\Users\rje\Documents\rackspace\virgo> ls C:\Windows\Temp\lib-xRSwcV
20:18:57  <rje> Directory: C:\Windows\Temp\lib-xRSwcV
20:18:57  <rje>Mode LastWriteTime Length Name
20:18:57  <rje>---- ------------- ------ ----
20:18:58  <rje>-a--- 5/22/2015 1:17 PM 124928 sigar.dll
20:20:01  <rje>rphillips, so yes loading sigar is the issue. didn't 1.2.8 have the same issue but also when run from the command line
20:27:17  <rphillips>hmm. i didn't test 1.2.8 a ton
20:38:35  <rphillips>rje: i have a thought
20:38:51  <rphillips>try renaming rackspace-monitoring-agent.exe to luvi.exe
20:39:00  <rphillips>and installing the luvi.exe as the service
20:39:21  <rje>k
20:39:39  <rje>i see where you're going
20:40:03  <rje>i don't like it either :P
20:41:00  <rphillips>yeah, me either
20:41:36  <rje>wtf, that worked
20:41:47  <rphillips>seriously?
20:42:08  <rje>yeah
20:43:17  <rphillips>what if we had the rackspace-monitoring-agent.exe and the luvi.exe in the same directory
20:43:20  <rphillips>i wonder if that works
20:45:02  <rje>and yes, that too
20:46:05  <rphillips>so, something with the dll munging?
20:47:24  <rje>yeah, delayed loading as a service seems to be borked
20:47:47  <rje>nice data point
20:54:01  <rje>rphillips, do these need to be newer versions?
20:54:04  <rje>https://github.com/virgo-agent-toolkit/lua-sigar/blob/master/CMakeLists.txt#L55
20:55:12  <rje>now i want to know what this is: https://github.com/luvit/luvi/blob/master/src/luvi_renamed.c#L12
20:57:50  <rphillips>yeah, perhaps the dll needs to be rebuilt
20:58:03  <rphillips>and added to the repo
21:01:39  * Akagi201joined
21:01:41  <rphillips>rje: the sigar.dll I built is from march 9
21:01:51  <rphillips>looks like the renamed stuff was added a week or two later
21:02:57  <rje>so we've been lucky running it from the command line as the luvi.exe has been there with it
21:03:01  <rje>swell
21:03:26  * rjetests some more. could you bump the dll?
21:04:52  <rphillips>yeah
21:05:20  <rje>yeah, that's the winner. fuck.
21:05:56  <rje>moved the exe somewhere else and ran with that as the cwd and its failure central
21:12:17  <rphillips>rje: ok. pushed the new sigar.dll
21:12:53  <rje>rphillips, thank you
21:24:17  * DarkGodquit (Ping timeout: 246 seconds)
21:28:41  * DarkGodjoined
21:35:15  * ldub_quit (Quit: Leaving.)
21:38:28  <rje>rphillips, when you push a new dll where/when does that get pulled? in my version it gets built from source
21:38:46  <rphillips>are you using build.sh?
21:39:03  <rphillips>hmm
21:39:11  <rje>er? make.bat
21:40:02  <rphillips>ah hah
21:40:11  <rphillips>https://github.com/virgo-agent-toolkit/rackspace-monitoring-agent/blob/luvi-up/Make.bat#L20
21:40:27  <rphillips>that should copy it into libs/Windows-x64
21:40:51  <rphillips>i pushed it into https://github.com/virgo-agent-toolkit/rackspace-monitoring-agent/tree/luvi-up/libs/Windows-x64
21:41:36  <rje>vidyo?
21:47:00  <rphillips>rje: sure
22:06:30  <rje>rphillips, the world is such a better place now :)
22:09:39  <rphillips>yay! :)
22:10:41  <rphillips>make.bat in the agent should have that sigar build removed
22:11:25  * hdmsquit (Quit: hdms)
22:36:18  <rje>rphillips, so i still have a serious concern, we'll need to be able to redirect all the stdout info from luvi especially if we need to debug clients machines using only the logs
23:09:51  <rphillips>rje: didn't the v1 agent always log to stdout or a file?
23:11:08  <rje>yes, the error calls were handled in virgo's C and then would write errors to a file.
23:12:37  <rphillips>rje: https://github.com/virgo-agent-toolkit/virgo-base-agent/blob/99e7b52a18a725d736fe24a84d168b6e4f143475/lib/virgo_logging.c#L176
23:12:39  <rphillips>here ?
23:23:44  <rje>yes and then we'd catch things like this https://github.com/virgo-agent-toolkit/virgo-base-agent/blob/99e7b52a18a725d736fe24a84d168b6e4f143475/lib/virgo_win32_service.c#L245
23:40:54  <rphillips>rje: wdyt? https://github.com/rphillips/virgo-logging/pull/2
23:43:07  <rje>ok, how would you tie that in at the luvi level? i'm debugging more and its still broken at some level when run as a service. after the dll now. so anything to get the actual error into a file makes me happy
23:43:41  <rphillips>ah, luvi level... hmm
23:44:05  <rphillips>luvi doesn't have a default logger
23:45:30  <rje>and that's ok i think
23:45:58  <rje>what i want is to be able to override the error call and catch that output like from the require
23:46:12  <rphillips>you can pcall require
23:47:08  <rje>you're missing the point.... there will be cases where error gets called from within a service, we need that output
23:47:26  <rphillips>ah right... you can pcall the windows service function
23:47:56  <rje>ok, that's doable
23:53:44  * DarkGodquit (Ping timeout: 256 seconds)