#warrior 2014-09-12,Fri

โ†‘back Search

Time Nickname Message
00:22 ๐Ÿ”— chfoo i'm going to take advantage of the down time to set up log rotation for nginx on the tracker. it grew pretty quicjly
00:34 ๐Ÿ”— aaaaaaaaa you may want to remove some of the done items as well, to lighten the memory load.
00:40 ๐Ÿ”— chfoo nginx doesn't seem to respond to kill -USR1 `cat /var/run/nginx.pid`
00:43 ๐Ÿ”— aaaaaaaaa doesn't the graceful exit usually take awhile?
00:44 ๐Ÿ”— chfoo the docs say it's supposed to reopen the log files but it's still writing to error.log.1
00:45 ๐Ÿ”— aaaaaaaaa does nginx have execute permission on the log directory?
00:45 ๐Ÿ”— chfoo -rw-r--r-- 1 www-data root 21G Sep 11 20:45 error.log.1
00:46 ๐Ÿ”— chfoo drwxr-xr-x 13 root root 4.0K Sep 11 06:25 ..
00:46 ๐Ÿ”— chfoo i'm guessing the owner needs to be changed
00:48 ๐Ÿ”— chfoo oops, wrong line. it's: drwxr-xr-x 2 www-data root 4.0K Sep 11 20:35 .
00:54 ๐Ÿ”— aaaaaaaaa hmm, maybe chown www-data:www-data?
00:55 ๐Ÿ”— chfoo still doesn't work
01:02 ๐Ÿ”— aaaaaaaaa is that the right pid file?
01:04 ๐Ÿ”— chfoo pidof nginx gives 15548 15547. cat /var/run/nginx.pid gives 15547
01:04 ๐Ÿ”— aaaaaaaaa The only other thing I can thing of is that nginx won't restart the workers because they are still working.
01:05 ๐Ÿ”— aaaaaaaaa you could try to force restart them with a hup and see what happens
01:05 ๐Ÿ”— aaaaaaaaa but I don't know if I'd do that on my own server that is doing work
01:06 ๐Ÿ”— chfoo strange. doing sudo /usr/local/nginx/sbin/nginx -s reopen seems to have worked
01:07 ๐Ÿ”— chfoo nginx version: nginx/1.2.8
01:08 ๐Ÿ”— aaaaaaaaa that is the same as usr1
01:08 ๐Ÿ”— chfoo oh wait, it's still writing to error.log.1
01:08 ๐Ÿ”— aaaaaaaaa wonder if it just took awhile for all the workers to quit
01:08 ๐Ÿ”— aaaaaaaaa only the new ones would have rotated, IIRC
01:09 ๐Ÿ”— aaaaaaaaa do you have two error logs now?
01:09 ๐Ÿ”— aaaaaaaaa or still just the one?
01:09 ๐Ÿ”— chfoo yes, error.log is 61 bytes whiel error.log.1 is 22488702033 and growing
01:12 ๐Ÿ”— chfoo HUP seems to have worked
01:13 ๐Ÿ”— aaaaaaaaa that forces it to reload the configuration, not just the logs.
01:14 ๐Ÿ”— aaaaaaaaa maybe you have to do that the first time and USR1 works on the later ones?
01:15 ๐Ÿ”— aaaaaaaaa I can't believe the size of those logs, BTW. Maybe I'm just used to less popular sites
01:17 ๐Ÿ”— chfoo i'm not sure if i want to investigate too much so i just i set the log rotate config postrotate section to to HUP, USR1, HUP, USR1
01:18 ๐Ÿ”— chfoo the error log is just filled with: Uncaught exception in PassengerServer client thread: exception: Cannot read response from backend process: Connection reset by peer (104)
01:21 ๐Ÿ”— aaaaaaaaa oh yeah. I don't like passenger ever since the "incident."
01:23 ๐Ÿ”— aaaaaaaaa but the tracker itself is nice
01:26 ๐Ÿ”— chfoo yipdw: i noticed that we're both running log drainer at the same time.
01:40 ๐Ÿ”— chfoo on further research, it appears to be reasonably safe
02:53 ๐Ÿ”— yipdw chfoo: oh, feel free to kill one
08:16 ๐Ÿ”— midas drain all the logs
16:05 ๐Ÿ”— joepie91 chfoo: FYI; renaming a file doesn't change what file an application will write to unless it closes and reopens it
16:06 ๐Ÿ”— joepie91 it's tied to the inode, not the path
16:06 ๐Ÿ”— joepie91 so most software will require some kind of hint that it has to reopen the file
16:06 ๐Ÿ”— joepie91 (which I presume is what HUP does)
16:07 ๐Ÿ”— chfoo i know. usr1 does that, but nginx's workers don't listen to that
16:08 ๐Ÿ”— chfoo hup causes the tracker to go unavailable for a few minutes
16:08 ๐Ÿ”— aaaaaaaaa hup makes it reload all the config files
16:08 ๐Ÿ”— chfoo logrotate also has copy and truncate but the logs are gigabytes in size so i didn't want to use that
16:09 ๐Ÿ”— aaaaaaaaa do you know the lifespan of nginx's workers on your system?
16:10 ๐Ÿ”— aaaaaaaaa USR1 makes the new ones use the new logs, but old ones will use the old ones until they term.
16:11 ๐Ÿ”— aaaaaaaaa HUP waits for all workers to die, reloads and then creates new ones.
16:11 ๐Ÿ”— chfoo the config file doesn't specify the lifetime. just max pool is 24
16:12 ๐Ÿ”— aaaaaaaaa maybe you just have long lived ones?
16:46 ๐Ÿ”— chfoo i guess that might be why
17:35 ๐Ÿ”— aaaaaaaaa suggestion: the tracker places the current items per minute at the top. e.g. Verizon tracker | Currently 1400 items per minute | Please lower your concurrency; tracker exceeded C10K
21:05 ๐Ÿ”— yipdw next person to use C10K in a sentence gets stabbed in the face over the internet
21:06 ๐Ÿ”— yipdw also wtf libavutil, where is av_frame_alloc
21:07 ๐Ÿ”— yipdw aaaaaaaaa: there's an issue sorta related to that -> https://github.com/ArchiveTeam/universal-tracker/issues/22
21:23 ๐Ÿ”— aaaaaaaaa Hmm, looked through the bug tracker before I made mine, must have gone right over that one.
21:24 ๐Ÿ”— aaaaaaaaa In any case, my apologies for offending your sensibilities; I just copied the text from the current verizon tracker for my suggestion.
21:31 ๐Ÿ”— ersi C10K?
21:47 ๐Ÿ”— GitHub146 13seesaw-kit/06development 1468cd3d6 15Christopher Foo: warrior ui: Change broadcast msg indicator to darkgoldenrod...
21:47 ๐Ÿ”— GitHub146 13seesaw-kit/06development 147e51ee8 15Christopher Foo: warrior ui: Decrease header padding. Add .projectBroadcastMessage to styles....
21:47 ๐Ÿ”— GitHub146 [13seesaw-kit] 15chfoo pushed 2 new commits to 06development: 02https://github.com/ArchiveTeam/seesaw-kit/compare/a5ff73dbe94e...7e51ee832123
21:56 ๐Ÿ”— GitHub47 13seesaw-kit/06development 1448f54e9 15Christopher Foo: web.py: Use MD5 digest as hash for indicator message...
21:56 ๐Ÿ”— GitHub47 [13seesaw-kit] 15chfoo pushed 1 new commit to 06development: 02https://github.com/ArchiveTeam/seesaw-kit/commit/48f54e91b43cee3d237615e07ad05f29803624a8
22:17 ๐Ÿ”— GitHub26 13seesaw-kit/06development 14043681a 15Anthony Eden: Add time indicator to each item. Shows how long it's been running.
22:17 ๐Ÿ”— GitHub26 13seesaw-kit/06development 14c25b066 15Christopher Foo: Merge branch 'temp1' into development...
22:17 ๐Ÿ”— GitHub26 [13seesaw-kit] 15chfoo pushed 2 new commits to 06development: 02https://github.com/ArchiveTeam/seesaw-kit/compare/48f54e91b43c...c25b0669dd16
23:33 ๐Ÿ”— GitHub124 13seesaw-kit/06development 1430456fb 15Christopher Foo: fixup! Merge branch 'temp1' into development...
23:33 ๐Ÿ”— GitHub124 13seesaw-kit/06development 146944392 15Christopher Foo: warrior ui: Remove 'Task Status Summary' h3 into a title attr. Fix align.
23:33 ๐Ÿ”— GitHub124 13seesaw-kit/06development 14c5d0911 15Christopher Foo: warrior ui: Move project name and timer under log. 'Runtime'รขย†ย’'Elapsed'....
23:33 ๐Ÿ”— GitHub124 [13seesaw-kit] 15chfoo pushed 3 new commits to 06development: 02https://github.com/ArchiveTeam/seesaw-kit/compare/c25b0669dd16...c5d0911c27db

irclogger-viewer