[00:37] wow, arkiver killed half of the warriors :P. from ~120 to ~60 responding. [01:25] summary: never do a while true loop in asynchronous code especially if it's the main thread :) [01:30] *** skiy has quit IRC (Ping timeout: 512 seconds) [02:29] yeah ... [02:29] nice job :P [03:15] wow nice [03:15] wonder if there's any reasonable way to set up a watchdog [03:16] I guess the warriors reboot periodically, no problem there [03:17] signal.alarm? [03:47] it can't reboot periodically if the main thread is blocked [03:57] ui code, http server, pipeline runner, phone home, reboot, etc is all on one python thread :/ [04:08] the docs say signal is handled asynchronously, so if that means what I think it means, it should get executed no matter what. [04:09] chfoo: oh, I thought reboot was handled by a cronjob or something [04:09] guess not [04:10] https://docs.python.org/2/library/signal.html#example [04:13] I'm a bit wary of signals just because they can interact in subtle and bad ways with event loops [04:13] and the correct way to mix signals and event loops, e.g. handle the signal in the event loop, would not have worked here [04:14] I suppose on boot it could schedule it with atd or cron as a failsafe here https://github.com/ArchiveTeam/warrior-code2/blob/master/boot.sh [04:14] just ideas, this is a bit out of my wheelhouse [04:15] the other possibility is "don't do that" and that probably scales well enough for now [04:21] *** aaaaaaaaa has quit IRC (Leaving) [04:38] where are the warrior stats? [04:56] http://warriorhq.archiveteam.org/ [04:59] http://zeppelin.xrtc.net/corp.xrtc.net/shilling.corp.xrtc.net/warriors.html [14:42] *** Stary200- has joined #warrior [16:48] *** aaaaaaaaa has joined #warrior [17:02] *** skiy has joined #warrior [17:05] based on what was said yesterday is https://gist.github.com/anonymous/555b85097a6500ba0b31 a bad idea? [17:06] in that it mixes signals and events? [17:07] well, besides signal not being imported [18:00] *** skiy has quit IRC (Read error: Connection reset by peer) [18:00] *** skiy_ has joined #warrior [18:30] *** skiy_ has quit IRC (Read error: Connection reset by peer) [18:30] *** skiy__ has joined #warrior [19:35] *** skiy__ has quit IRC (Read error: Connection reset by peer) [19:49] *** skiy has joined #warrior [19:52] when running scripts outside of a warrior on my mac, i get this: [19:52] Uploading with Rsync to rsync://chfoo-cn.mooo.com/archiveteam-hyves-uname/friendfeeddisco/Start/ [19:52] Starting RsyncUpload for Item account:islamicworld [19:52] Error writing to process: format requires a mapping [19:52] rsync: --contimeout=300: unknown option [19:52] rsync error: syntax or usage error (code 1) at /SourceCache/rsync/rsync-45/rsync/main.c(1333) [client=2.6.9] [19:52] Process RsyncUpload returned exit code 1 for Item account:islamicworld [19:52] Failed RsyncUpload for Item account:islamicworld [19:52] Retrying after 30 seconds... [19:52] anyone know how to fix this? [19:56] i tried "alias rsync=/usr/local/bin/rsync", but it didn't work [20:02] what is the output of "find / -iname rsync 2> /dev/null" [20:06] *** skiy_ has joined #warrior [20:07] *** skiy has quit IRC (Read error: Operation timed out) [20:11] aaaaaaaaa: /usr/bin/rsync [20:13] did you install the homebrew version of rsync? [20:16] i'm not sure, i installed it a while ago [20:16] I think that you might be using the mac version of rsync, instead of the one the script expects [20:17] user installed stuff would bin in /usr/local/bin/ IIRC [20:18] wait, a while ago? Has it worked fine until today? [20:19] *** Wizardcry has joined #warrior [20:19] not sure, i don't think i've used it since around 2012-2013 [20:24] maybe updating with a "brew update" and then see what "brew outdated" says [20:59] *** skiy__ has joined #warrior [21:00] *** skiy_ has quit IRC (Read error: Connection reset by peer) [21:01] *** skiy has joined #warrior [21:07] *** skiy__ has quit IRC (Read error: Operation timed out) [21:38] *** aaaaaaaaa has quit IRC (Leaving) [22:04] *** Wizardcry has quit IRC (Read error: Connection reset by peer) [22:07] *** Wizardcry has joined #warrior [22:44] *** primus has quit IRC (Read error: Operation timed out) [22:51] *** skiy has quit IRC (Ping timeout: 512 seconds) [23:26] Start: the homebrew version is the one you want. instead of alias rsync, give /usr/local/bin precedence in PATH [23:26] alias rsync only works when executing rsync via your shell and seesaw's ExternalProcess does not do that [23:57] *** primus has joined #warrior