*** th1a has quit IRC | 05:00 | |
*** balor has joined #schooltool | 10:58 | |
*** balor has quit IRC | 13:12 | |
* mgedmin has no knowledge about forum software | 13:17 | |
*** budgester has joined #schooltool | 14:03 | |
*** alga has joined #SchoolTool | 14:18 | |
*** mgedmin has quit IRC | 14:54 | |
*** th1a has joined #schooltool | 15:39 | |
*** mgedmin has joined #schooltool | 15:57 | |
*** ignas has joined #schooltool | 16:02 | |
aelkner | hey ignas | 16:03 |
---|---|---|
ignas | aelkner: hi | 16:03 |
aelkner | i sent you an email with details of a traversal problem i'm having | 16:03 |
ignas | aelkner: do you have a functional test that is failing? | 16:07 |
aelkner | yes, the skilldriver's test | 16:08 |
ignas | ok, i'll look at it | 16:09 |
aelkner | thanks | 16:12 |
*** aelkner_ has joined #schooltool | 16:29 | |
*** aelkner has quit IRC | 16:32 | |
*** jstraw has joined #schooltool | 16:35 | |
ignas | aelkner_: solved it and committed | 16:51 |
ignas | I will have to look at layers some time and solve these kinds of problems in one central place | 16:51 |
ignas | but not now | 16:51 |
aelkner_ | thanks a ton | 16:53 |
th1a | Thank you Ignas. | 16:55 |
*** povbot has joined #schooltool | 17:07 | |
ignas | aelkner_: cando skin is using z3c stuff | 17:12 |
aelkner_ | so that threw off the traversal? | 17:12 |
ignas | and and z3c traversal adapter overrides the pluggable traversal adapter or something like that | 17:12 |
aelkner_ | aaaah | 17:13 |
aelkner_ | that was a nasty one | 17:13 |
ignas | i think adding a school tool layer | 17:13 |
ignas | and moving all the schooltool stuff to that layer | 17:13 |
ignas | and then taking care that schooltool layer always overlays all the zope3 and library layers | 17:13 |
ignas | should solve all of these problems in the future | 17:13 |
ignas | but that would require me to touch all the code | 17:13 |
aelkner_ | maybe at a sprint? | 17:14 |
ignas | which is don't really want to do at least now | 17:14 |
ignas | maybe at a sprint | 17:14 |
aelkner_ | you're coming in feb, yes? | 17:14 |
ignas | seems so ;) | 17:14 |
jstraw | ugh | 17:15 |
jstraw | get a room? ;) | 17:15 |
*** th1a has quit IRC | 17:27 | |
*** th1a has joined #schooltool | 17:29 | |
*** povbot has joined #schooltool | 18:06 | |
th1a | Ready? | 18:07 |
th1a | aelkner_ | 18:11 |
aelkner_ | ready | 18:13 |
aelkner_ | th1a: what next? | 18:13 |
th1a | OK, open a terminal. | 18:13 |
*** ignas has quit IRC | 18:14 | |
th1a | type "mail aelkner@localhost" | 18:14 |
aelkner_ | it asks for CC: then Subject: | 18:15 |
th1a | You're writing an email. | 18:15 |
th1a | So no cc and 'test' for subject. | 18:15 |
th1a | Or whatever. | 18:15 |
aelkner_ | i did that | 18:15 |
th1a | Then type a body. | 18:15 |
th1a | Hit return. | 18:15 |
aelkner_ | i did that | 18:16 |
th1a | In theory then ctrl-d, although that didn't actually work for me. | 18:16 |
aelkner_ | it still is expecting input | 18:16 |
aelkner_ | yeah, me neither | 18:16 |
th1a | ctrl-c | 18:16 |
th1a | hm. | 18:17 |
th1a | Well, type "mail" | 18:17 |
aelkner_ | no mail for aelkner | 18:17 |
th1a | OK, the mails I successfully sent myself I guess came from Evolution. | 18:17 |
aelkner_ | sudo apt-get install evolution? | 18:18 |
th1a | So I got evolution sending but not receiving and vice versa. | 18:18 |
th1a | You should already have it. | 18:18 |
th1a | ok... | 18:19 |
th1a | Erm. I can't believe ctrl-d isn't working with mail. | 18:21 |
th1a | That's just bizarre. | 18:21 |
aelkner_ | i'm running evolution for the first time, and it has an Idenity Tab where it asks | 18:21 |
aelkner_ | Full Name | 18:21 |
aelkner_ | Email Address | 18:21 |
aelkner_ | what should i put for the email address? | 18:22 |
aelkner_ | aelkner@localhost | 18:22 |
aelkner_ | ? | 18:22 |
th1a | Yes. | 18:22 |
aelkner_ | server type? | 18:22 |
aelkner_ | local delivery? | 18:23 |
th1a | erm | 18:23 |
th1a | let me restart evolution | 18:23 |
th1a | it is a bit of a sledgehammer for this job. | 18:23 |
th1a | Yes, try that first. | 18:24 |
aelkner_ | ok | 18:24 |
aelkner_ | it ask for a configuration | 18:24 |
aelkner_ | when i click on it, it calls up the file selection widget | 18:25 |
th1a | Yeah... bail out of this. | 18:25 |
aelkner_ | oh | 18:25 |
th1a | apt-get install mutt | 18:25 |
aelkner_ | sudo? | 18:26 |
aelkner_ | or as aelkner | 18:26 |
aelkner_ | i'm going with sudo | 18:26 |
aelkner_ | ok, done | 18:26 |
th1a | ok... | 18:28 |
th1a | mutt | 18:28 |
aelkner_ | a text-based mail client | 18:30 |
th1a | Indeed. | 18:30 |
aelkner_ | i get No mailbox is open | 18:31 |
th1a | Did it ask you to create one? | 18:31 |
aelkner_ | it asked me to create /home/aelkner/Mail and i said yes | 18:32 |
th1a | try to send a mail | 18:32 |
th1a | m | 18:32 |
aelkner_ | Mutt: (no mailbox) [Msgs:0]---(threads/date)- | 18:33 |
aelkner_ | is at the bottom | 18:33 |
th1a | I have /var/mail/hoffman | 18:33 |
th1a | Is sendmail running? | 18:33 |
aelkner_ | i sent a mail from within mutt | 18:34 |
aelkner_ | is that what you meant? | 18:34 |
th1a | I mean, is sendmail running? | 18:34 |
th1a | ps? | 18:34 |
aelkner_ | root 18228 1 0 11:07 ? 00:00:00 sendmail: MTA: accepting connections | 18:35 |
th1a | OK. | 18:35 |
th1a | Did you send the mail to yourself? | 18:35 |
aelkner_ | i just did. i forget to hit the 'y' key to finalize the sending | 18:35 |
aelkner_ | it says 'Sending message...' | 18:36 |
aelkner_ | but it seems locked up | 18:36 |
th1a | (note here that this isn't a "sendmail is hard" problem but a "we forget how real mail clients work" problem) | 18:36 |
aelkner_ | the send completed | 18:36 |
aelkner_ | still says "No mailbox is open." | 18:37 |
th1a | Hm. | 18:37 |
th1a | Does /var/mail/aelkner exist? | 18:37 |
th1a | I didn't do anything in particular to make mine work. | 18:37 |
aelkner_ | yes | 18:38 |
aelkner_ | the mail i sent is there | 18:38 |
th1a | OK... so you should see it if you do 'mail' again. | 18:38 |
aelkner_ | you mean, mutt, don't you? | 18:39 |
th1a | No. | 18:39 |
th1a | 18:39 | |
th1a | I mean, we don't know how to send from mail but it should find the message. | 18:39 |
aelkner_ | ah | 18:39 |
th1a | We just don't know how to use the *clients*. | 18:40 |
aelkner_ | got it | 18:40 |
th1a | OK. So in theory you should be able to send messages from your development schooltool and read them with mail. | 18:40 |
aelkner_ | when i typed mail, it gave me a terminal-based view of my inbox | 18:40 |
aelkner_ | i'll try that out now | 18:41 |
th1a | afk for a minute. | 18:42 |
aelkner_ | afk? | 18:44 |
th1a | away from keyboard = pooping. | 18:49 |
aelkner_ | thanks for the EXTRA info | 18:50 |
th1a | You're welcome. | 18:51 |
th1a | There's more where that came from if you're interested in the details. | 18:51 |
aelkner_ | sure, go ahead, i dare you | 18:54 |
th1a | Ah, aelkner_ has called my bluff. | 18:55 |
th1a | That's why he plays poker and I do not. | 18:55 |
aelkner_ | hehe | 18:55 |
aelkner_ | th1a: i successfully sent an email from the intervention system to my local email | 19:00 |
th1a | Excellent. | 19:00 |
th1a | By manually starting the server? | 19:00 |
aelkner_ | what server do you mean? | 19:00 |
aelkner_ | oh | 19:01 |
th1a | The SchoolTool server -- the bug is that it only works when you manually start/restart it right? | 19:01 |
aelkner_ | yeah i got it | 19:01 |
aelkner_ | yes, so far only manual | 19:01 |
th1a | Hopefully it fails in the same way :-S | 19:01 |
aelkner_ | i will try to run schooltool in the backround now | 19:01 |
aelkner_ | th1a: i started schooltool with & and shut down the terminal session | 19:04 |
aelkner_ | i then sent an email from the intervention center | 19:04 |
aelkner_ | and it arrived! | 19:04 |
aelkner_ | so that's bad news, right? | 19:04 |
aelkner_ | actually, that's now a complete reproduction of the sla environment | 19:05 |
aelkner_ | i would need to use my startup script | 19:05 |
th1a | Yes. | 19:07 |
th1a | That will also tell us if the startup script is the problem. | 19:07 |
* th1a 's magic eight ball says "Signs point to yes." | 19:08 | |
aelkner_ | i used the startup script, and it still delivers | 19:11 |
aelkner_ | i feel vindicated that it's not my startup script | 19:12 |
th1a | So... | 19:13 |
th1a | Hm. | 19:13 |
aelkner_ | it's good new, and it's bad news | 19:13 |
th1a | The bad news is its completely inexplicable. | 19:14 |
aelkner_ | right | 19:14 |
aelkner_ | and undebuggable | 19:14 |
th1a | Well... ok. | 19:14 |
th1a | Now, here's the thing. | 19:14 |
th1a | Um... try this. | 19:15 |
th1a | sudo /etc/init.d/sendmail stop | 19:15 |
th1a | And see if the mail still goes through. | 19:15 |
aelkner_ | ok | 19:15 |
th1a | Sounds stupid but I'm not 100% sure the local mail is going through sendmail. | 19:15 |
*** budgester_ has joined #schooltool | 19:16 | |
aelkner_ | i stopped sendmail, and now the mail is blocked in the queue | 19:17 |
aelkner_ | so that's a good indicator | 19:17 |
th1a | Is that the same place it is blocked on the SLA server? | 19:17 |
aelkner_ | yeah, in the mail-queue directory of the schooltool instance | 19:17 |
th1a | Huh. | 19:18 |
aelkner_ | you know, when i told chris alfano of this problem | 19:18 |
th1a | And you restart *schooltool* and the mail goes through? | 19:18 |
aelkner_ | his first instinct was to think there was something wrong with sendmail | 19:18 |
aelkner_ | i'll try that | 19:18 |
th1a | No, I mean, on the SLA server, that's what you do? | 19:19 |
th1a | You're not restarting sendmail. | 19:19 |
th1a | Or the entire server. | 19:19 |
aelkner_ | i understood what you meant | 19:21 |
aelkner_ | so i restarted schooltool on my machine | 19:21 |
aelkner_ | and since sendmail is not running | 19:21 |
aelkner_ | it gives an error message | 19:22 |
aelkner_ | error: (111, 'Connection refused') | 19:22 |
aelkner_ | and that's in a separate thread | 19:22 |
aelkner_ | because schooltool is still running | 19:22 |
aelkner_ | that basically is a pretty close reproduction of the problem | 19:22 |
aelkner_ | if i were to bring sendmail back up | 19:22 |
aelkner_ | it would deliver the stuck message | 19:23 |
aelkner_ | i just verified that | 19:25 |
th1a | Right. | 19:25 |
th1a | OK, well, I guess you should fill in Chris. | 19:25 |
*** budgester_ has quit IRC | 19:25 | |
*** budgester_ has joined #schooltool | 19:26 | |
th1a | It is hard to imagine what unsticks the message when you restart schooltool. | 19:26 |
aelkner_ | i can't | 19:26 |
th1a | Does schooltool resend the messages? | 19:29 |
aelkner_ | it doesn't resend anything | 19:30 |
aelkner_ | it only sends what was never sent in the first place | 19:30 |
aelkner_ | does that answer you question? | 19:30 |
*** budgester has quit IRC | 19:33 | |
th1a | Um... schooltool knows if sendmail has delivered the mail? | 19:39 |
aelkner_ | oh, yes, once schooltool is able to send the mail, it gets cleared from the queue | 19:52 |
*** budgester_ has quit IRC | 20:02 | |
th1a | aelkner_: Does schooltool have a queue? | 20:23 |
aelkner_ | th1a: yes, the directory structure is as follows: | 20:33 |
aelkner_ | better yet, the directory off of schooltool's instance directory (side by side with var where Data.fs is) | 20:34 |
aelkner_ | is mail-queue | 20:34 |
aelkner_ | therein is a new directory which contains the queued mail | 20:35 |
aelkner_ | one file per email | 20:35 |
aelkner_ | when zope.sendmail is called as i did in the intervention package | 20:35 |
aelkner_ | a file is added to the new directory | 20:36 |
aelkner_ | i'm guessing that another thread picks up on that file's presence | 20:36 |
aelkner_ | and send the mail to the mail server | 20:37 |
aelkner_ | if successful, the file goes away | 20:37 |
aelkner_ | i will look into the details of zope.sendmail's code and report back to you some more informed insights | 20:39 |
*** jcrowley has joined #schooltool | 21:24 | |
*** jcrowley has left #schooltool | 21:30 | |
*** jelkner has joined #schooltool | 21:44 | |
*** mgedmin has quit IRC | 21:48 | |
*** jstraw has quit IRC | 21:53 | |
*** rbra has joined #schooltool | 22:08 | |
*** elarson_ has joined #schooltool | 22:10 | |
*** jelkner has quit IRC | 22:50 | |
*** elarson_ has quit IRC | 22:59 |
Generated by irclog2html.py 2.15.1 by Marius Gedminas - find it at mg.pov.lt!