##// END OF EJS Templates
hgweb: log error before attempting I/O...
Gregory Szorc -
r41500:5492dc20 default draft
parent child Browse files
Show More
@@ -0,0 +1,29 b''
1 #!/usr/bin/env python
2
3 # Filters traceback lines from stdin.
4
5 from __future__ import absolute_import, print_function
6
7 import sys
8
9 state = 'none'
10
11 for line in sys.stdin:
12 if state == 'none':
13 if line.startswith('Traceback '):
14 state = 'tb'
15
16 elif state == 'tb':
17 if line.startswith(' File '):
18 state = 'file'
19 continue
20
21 elif not line.startswith(' '):
22 state = 'none'
23
24 elif state == 'file':
25 # Ignore lines after " File "
26 state = 'tb'
27 continue
28
29 print(line, end='')
@@ -101,9 +101,8 b' class _httprequesthandler(httpservermod.'
101 try:
101 try:
102 self.do_write()
102 self.do_write()
103 except Exception:
103 except Exception:
104 self._start_response(r"500 Internal Server Error", [])
104 # I/O below could raise another exception. So log the original
105 self._write(b"Internal Server Error")
105 # exception first to ensure it is recorded.
106 self._done()
107 tb = r"".join(traceback.format_exception(*sys.exc_info()))
106 tb = r"".join(traceback.format_exception(*sys.exc_info()))
108 # We need a native-string newline to poke in the log
107 # We need a native-string newline to poke in the log
109 # message, because we won't get a newline when using an
108 # message, because we won't get a newline when using an
@@ -112,6 +111,10 b' class _httprequesthandler(httpservermod.'
112 self.log_error(r"Exception happened during processing "
111 self.log_error(r"Exception happened during processing "
113 r"request '%s':%s%s", self.path, newline, tb)
112 r"request '%s':%s%s", self.path, newline, tb)
114
113
114 self._start_response(r"500 Internal Server Error", [])
115 self._write(b"Internal Server Error")
116 self._done()
117
115 def do_PUT(self):
118 def do_PUT(self):
116 self.do_POST()
119 self.do_POST()
117
120
@@ -910,7 +910,20 b' Test signal-safe-lock in web and non-web'
910
910
911 errors
911 errors
912
912
913 $ cat errors.log
913 $ cat errors.log | "$PYTHON" $TESTDIR/filtertraceback.py
914 $LOCALIP - - [$ERRDATE$] Exception happened during processing request '/?cmd=spam': (glob)
915 Traceback (most recent call last):
916 error: [Errno 104] $ECONNRESET$
917
918 $LOCALIP - - [$ERRDATE$] Exception happened during processing request '/spam': (glob)
919 Traceback (most recent call last):
920 error: [Errno 104] $ECONNRESET$
921
922 $LOCALIP - - [$ERRDATE$] Exception happened during processing request '/spam/tip/foo': (glob)
923 Traceback (most recent call last):
924 error: [Errno 104] $ECONNRESET$
925
926 $ rm -f errors.log
914
927
915 Uncaught exceptions result in a logged error and canned HTTP response
928 Uncaught exceptions result in a logged error and canned HTTP response
916
929
@@ -925,8 +938,11 b' Uncaught exceptions result in a logged e'
925 [1]
938 [1]
926
939
927 $ killdaemons.py
940 $ killdaemons.py
928 $ head -1 errors.log
941 $ cat errors.log | "$PYTHON" $TESTDIR/filtertraceback.py
929 .* Exception happened during processing request '/raiseerror': (re)
942 .* Exception happened during processing request '/raiseerror': (re)
943 Traceback (most recent call last):
944 AttributeError: I am an uncaught error!
945
930
946
931 Uncaught exception after partial content sent
947 Uncaught exception after partial content sent
932
948
@@ -207,7 +207,7 b' Now do a variation using POST to send ar'
207
207
208 $ killdaemons.py $DAEMON_PIDS
208 $ killdaemons.py $DAEMON_PIDS
209
209
210 $ cat error.log
210 $ cat error.log | "$PYTHON" $TESTDIR/filtertraceback.py
211 readline(329 from 65537) -> (33) GET /?cmd=capabilities HTTP/1.1\r\n
211 readline(329 from 65537) -> (33) GET /?cmd=capabilities HTTP/1.1\r\n
212 readline(296 from -1) -> (27) Accept-Encoding: identity\r\n
212 readline(296 from -1) -> (27) Accept-Encoding: identity\r\n
213 readline(269 from -1) -> (35) accept: application/mercurial-0.1\r\n
213 readline(269 from -1) -> (35) accept: application/mercurial-0.1\r\n
@@ -241,6 +241,10 b' Now do a variation using POST to send ar'
241 readline(* from -1) -> (2) \r\n (glob)
241 readline(* from -1) -> (2) \r\n (glob)
242 read(* from 28) -> (*) cmds=* (glob)
242 read(* from 28) -> (*) cmds=* (glob)
243 read limit reached, closing socket
243 read limit reached, closing socket
244 $LOCALIP - - [$ERRDATE$] Exception happened during processing request '/?cmd=batch': (glob)
245 Traceback (most recent call last):
246 Exception: connection closed after receiving N bytes
247
244 write(36) -> HTTP/1.1 500 Internal Server Error\r\n
248 write(36) -> HTTP/1.1 500 Internal Server Error\r\n
245
249
246 $ rm -f error.log
250 $ rm -f error.log
@@ -258,7 +262,7 b' Server sends a single character from the'
258
262
259 $ killdaemons.py $DAEMON_PIDS
263 $ killdaemons.py $DAEMON_PIDS
260
264
261 $ cat error.log
265 $ cat error.log | "$PYTHON" $TESTDIR/filtertraceback.py
262 readline(65537) -> (33) GET /?cmd=capabilities HTTP/1.1\r\n
266 readline(65537) -> (33) GET /?cmd=capabilities HTTP/1.1\r\n
263 readline(-1) -> (27) Accept-Encoding: identity\r\n
267 readline(-1) -> (27) Accept-Encoding: identity\r\n
264 readline(-1) -> (35) accept: application/mercurial-0.1\r\n
268 readline(-1) -> (35) accept: application/mercurial-0.1\r\n
@@ -267,6 +271,10 b' Server sends a single character from the'
267 readline(-1) -> (2) \r\n
271 readline(-1) -> (2) \r\n
268 write(1 from 36) -> (0) H
272 write(1 from 36) -> (0) H
269 write limit reached; closing socket
273 write limit reached; closing socket
274 $LOCALIP - - [$ERRDATE$] Exception happened during processing request '/?cmd=capabilities': (glob)
275 Traceback (most recent call last):
276 Exception: connection closed after sending N bytes
277
270 write(36) -> HTTP/1.1 500 Internal Server Error\r\n
278 write(36) -> HTTP/1.1 500 Internal Server Error\r\n
271
279
272 $ rm -f error.log
280 $ rm -f error.log
@@ -283,7 +291,7 b' Server sends an incomplete capabilities '
283
291
284 $ killdaemons.py $DAEMON_PIDS
292 $ killdaemons.py $DAEMON_PIDS
285
293
286 $ cat error.log
294 $ cat error.log | "$PYTHON" $TESTDIR/filtertraceback.py
287 readline(65537) -> (33) GET /?cmd=capabilities HTTP/1.1\r\n
295 readline(65537) -> (33) GET /?cmd=capabilities HTTP/1.1\r\n
288 readline(-1) -> (27) Accept-Encoding: identity\r\n
296 readline(-1) -> (27) Accept-Encoding: identity\r\n
289 readline(-1) -> (35) accept: application/mercurial-0.1\r\n
297 readline(-1) -> (35) accept: application/mercurial-0.1\r\n
@@ -298,6 +306,10 b' Server sends an incomplete capabilities '
298 write(2 from 2) -> (20) \r\n
306 write(2 from 2) -> (20) \r\n
299 write(20 from 450) -> (0) batch branchmap bund
307 write(20 from 450) -> (0) batch branchmap bund
300 write limit reached; closing socket
308 write limit reached; closing socket
309 $LOCALIP - - [$ERRDATE$] Exception happened during processing request '/?cmd=capabilities': (glob)
310 Traceback (most recent call last):
311 Exception: connection closed after sending N bytes
312
301
313
302 $ rm -f error.log
314 $ rm -f error.log
303
315
@@ -318,7 +330,7 b' TODO this output is horrible'
318
330
319 $ killdaemons.py $DAEMON_PIDS
331 $ killdaemons.py $DAEMON_PIDS
320
332
321 $ cat error.log
333 $ cat error.log | "$PYTHON" $TESTDIR/filtertraceback.py
322 readline(65537) -> (33) GET /?cmd=capabilities HTTP/1.1\r\n
334 readline(65537) -> (33) GET /?cmd=capabilities HTTP/1.1\r\n
323 readline(-1) -> (27) Accept-Encoding: identity\r\n
335 readline(-1) -> (27) Accept-Encoding: identity\r\n
324 readline(-1) -> (35) accept: application/mercurial-0.1\r\n
336 readline(-1) -> (35) accept: application/mercurial-0.1\r\n
@@ -346,6 +358,10 b' TODO this output is horrible'
346 write(37 from 37) -> (22) Date: $HTTP_DATE$\r\n
358 write(37 from 37) -> (22) Date: $HTTP_DATE$\r\n
347 write(22 from 41) -> (0) Content-Type: applicat
359 write(22 from 41) -> (0) Content-Type: applicat
348 write limit reached; closing socket
360 write limit reached; closing socket
361 $LOCALIP - - [$ERRDATE$] Exception happened during processing request '/?cmd=batch': (glob)
362 Traceback (most recent call last):
363 Exception: connection closed after sending N bytes
364
349 write(36) -> HTTP/1.1 500 Internal Server Error\r\n
365 write(36) -> HTTP/1.1 500 Internal Server Error\r\n
350
366
351 $ rm -f error.log
367 $ rm -f error.log
@@ -366,7 +382,7 b' TODO client spews a stack due to uncaugh'
366
382
367 $ killdaemons.py $DAEMON_PIDS
383 $ killdaemons.py $DAEMON_PIDS
368
384
369 $ cat error.log
385 $ cat error.log | "$PYTHON" $TESTDIR/filtertraceback.py
370 readline(65537) -> (33) GET /?cmd=capabilities HTTP/1.1\r\n
386 readline(65537) -> (33) GET /?cmd=capabilities HTTP/1.1\r\n
371 readline(-1) -> (27) Accept-Encoding: identity\r\n
387 readline(-1) -> (27) Accept-Encoding: identity\r\n
372 readline(-1) -> (35) accept: application/mercurial-0.1\r\n
388 readline(-1) -> (35) accept: application/mercurial-0.1\r\n
@@ -397,6 +413,10 b' TODO client spews a stack due to uncaugh'
397 write(2 from 2) -> (24) \r\n
413 write(2 from 2) -> (24) \r\n
398 write(24 from 42) -> (0) 96ee1d7354c4ad7372047672
414 write(24 from 42) -> (0) 96ee1d7354c4ad7372047672
399 write limit reached; closing socket
415 write limit reached; closing socket
416 $LOCALIP - - [$ERRDATE$] Exception happened during processing request '/?cmd=batch': (glob)
417 Traceback (most recent call last):
418 Exception: connection closed after sending N bytes
419
400
420
401 $ rm -f error.log
421 $ rm -f error.log
402
422
@@ -418,7 +438,7 b' TODO this output is terrible'
418
438
419 $ killdaemons.py $DAEMON_PIDS
439 $ killdaemons.py $DAEMON_PIDS
420
440
421 $ cat error.log
441 $ cat error.log | "$PYTHON" $TESTDIR/filtertraceback.py
422 readline(65537) -> (33) GET /?cmd=capabilities HTTP/1.1\r\n
442 readline(65537) -> (33) GET /?cmd=capabilities HTTP/1.1\r\n
423 readline(-1) -> (27) Accept-Encoding: identity\r\n
443 readline(-1) -> (27) Accept-Encoding: identity\r\n
424 readline(-1) -> (35) accept: application/mercurial-0.1\r\n
444 readline(-1) -> (35) accept: application/mercurial-0.1\r\n
@@ -462,6 +482,10 b' TODO this output is terrible'
462 write(37 from 37) -> (33) Date: $HTTP_DATE$\r\n
482 write(37 from 37) -> (33) Date: $HTTP_DATE$\r\n
463 write(33 from 41) -> (0) Content-Type: application/mercuri
483 write(33 from 41) -> (0) Content-Type: application/mercuri
464 write limit reached; closing socket
484 write limit reached; closing socket
485 $LOCALIP - - [$ERRDATE$] Exception happened during processing request '/?cmd=getbundle': (glob)
486 Traceback (most recent call last):
487 Exception: connection closed after sending N bytes
488
465 write(36) -> HTTP/1.1 500 Internal Server Error\r\n
489 write(36) -> HTTP/1.1 500 Internal Server Error\r\n
466
490
467 $ rm -f error.log
491 $ rm -f error.log
@@ -478,10 +502,10 b' Server stops before it sends transfer en'
478
502
479 $ killdaemons.py $DAEMON_PIDS
503 $ killdaemons.py $DAEMON_PIDS
480
504
481 $ tail -4 error.log
505 $ "$PYTHON" $TESTDIR/filtertraceback.py < error.log | tail -4
482 write(41 from 41) -> (25) Content-Type: application/mercurial-0.2\r\n
506 Traceback (most recent call last):
483 write(25 from 28) -> (0) Transfer-Encoding: chunke
507 Exception: connection closed after sending N bytes
484 write limit reached; closing socket
508
485 write(36) -> HTTP/1.1 500 Internal Server Error\r\n
509 write(36) -> HTTP/1.1 500 Internal Server Error\r\n
486
510
487 $ rm -f error.log
511 $ rm -f error.log
@@ -499,7 +523,7 b' Server sends empty HTTP body for getbund'
499
523
500 $ killdaemons.py $DAEMON_PIDS
524 $ killdaemons.py $DAEMON_PIDS
501
525
502 $ cat error.log
526 $ cat error.log | "$PYTHON" $TESTDIR/filtertraceback.py
503 readline(65537) -> (33) GET /?cmd=capabilities HTTP/1.1\r\n
527 readline(65537) -> (33) GET /?cmd=capabilities HTTP/1.1\r\n
504 readline(-1) -> (27) Accept-Encoding: identity\r\n
528 readline(-1) -> (27) Accept-Encoding: identity\r\n
505 readline(-1) -> (35) accept: application/mercurial-0.1\r\n
529 readline(-1) -> (35) accept: application/mercurial-0.1\r\n
@@ -545,6 +569,10 b' Server sends empty HTTP body for getbund'
545 write(28 from 28) -> (2) Transfer-Encoding: chunked\r\n
569 write(28 from 28) -> (2) Transfer-Encoding: chunked\r\n
546 write(2 from 2) -> (0) \r\n
570 write(2 from 2) -> (0) \r\n
547 write limit reached; closing socket
571 write limit reached; closing socket
572 $LOCALIP - - [$ERRDATE$] Exception happened during processing request '/?cmd=getbundle': (glob)
573 Traceback (most recent call last):
574 Exception: connection closed after sending N bytes
575
548 write(36) -> HTTP/1.1 500 Internal Server Error\r\n
576 write(36) -> HTTP/1.1 500 Internal Server Error\r\n
549
577
550 $ rm -f error.log
578 $ rm -f error.log
@@ -562,7 +590,7 b' Server sends partial compression string'
562
590
563 $ killdaemons.py $DAEMON_PIDS
591 $ killdaemons.py $DAEMON_PIDS
564
592
565 $ cat error.log
593 $ cat error.log | "$PYTHON" $TESTDIR/filtertraceback.py
566 readline(65537) -> (33) GET /?cmd=capabilities HTTP/1.1\r\n
594 readline(65537) -> (33) GET /?cmd=capabilities HTTP/1.1\r\n
567 readline(-1) -> (27) Accept-Encoding: identity\r\n
595 readline(-1) -> (27) Accept-Encoding: identity\r\n
568 readline(-1) -> (35) accept: application/mercurial-0.1\r\n
596 readline(-1) -> (35) accept: application/mercurial-0.1\r\n
@@ -611,6 +639,10 b' Server sends partial compression string'
611 write(9 from 9) -> (9) 4\r\nnone\r\n
639 write(9 from 9) -> (9) 4\r\nnone\r\n
612 write(9 from 9) -> (0) 4\r\nHG20\r\n
640 write(9 from 9) -> (0) 4\r\nHG20\r\n
613 write limit reached; closing socket
641 write limit reached; closing socket
642 $LOCALIP - - [$ERRDATE$] Exception happened during processing request '/?cmd=getbundle': (glob)
643 Traceback (most recent call last):
644 Exception: connection closed after sending N bytes
645
614 write(27) -> 15\r\nInternal Server Error\r\n
646 write(27) -> 15\r\nInternal Server Error\r\n
615
647
616 $ rm -f error.log
648 $ rm -f error.log
@@ -628,13 +660,17 b' Server sends partial bundle2 header magi'
628
660
629 $ killdaemons.py $DAEMON_PIDS
661 $ killdaemons.py $DAEMON_PIDS
630
662
631 $ tail -7 error.log
663 $ "$PYTHON" $TESTDIR/filtertraceback.py < error.log | tail -11
632 write(28 from 28) -> (23) Transfer-Encoding: chunked\r\n
664 write(28 from 28) -> (23) Transfer-Encoding: chunked\r\n
633 write(2 from 2) -> (21) \r\n
665 write(2 from 2) -> (21) \r\n
634 write(6 from 6) -> (15) 1\\r\\n\x04\\r\\n (esc)
666 write(6 from 6) -> (15) 1\\r\\n\x04\\r\\n (esc)
635 write(9 from 9) -> (6) 4\r\nnone\r\n
667 write(9 from 9) -> (6) 4\r\nnone\r\n
636 write(6 from 9) -> (0) 4\r\nHG2
668 write(6 from 9) -> (0) 4\r\nHG2
637 write limit reached; closing socket
669 write limit reached; closing socket
670 $LOCALIP - - [$ERRDATE$] Exception happened during processing request '/?cmd=getbundle': (glob)
671 Traceback (most recent call last):
672 Exception: connection closed after sending N bytes
673
638 write(27) -> 15\r\nInternal Server Error\r\n
674 write(27) -> 15\r\nInternal Server Error\r\n
639
675
640 $ rm -f error.log
676 $ rm -f error.log
@@ -652,7 +688,7 b' Server sends incomplete bundle2 stream p'
652
688
653 $ killdaemons.py $DAEMON_PIDS
689 $ killdaemons.py $DAEMON_PIDS
654
690
655 $ tail -8 error.log
691 $ "$PYTHON" $TESTDIR/filtertraceback.py < error.log | tail -12
656 write(28 from 28) -> (32) Transfer-Encoding: chunked\r\n
692 write(28 from 28) -> (32) Transfer-Encoding: chunked\r\n
657 write(2 from 2) -> (30) \r\n
693 write(2 from 2) -> (30) \r\n
658 write(6 from 6) -> (24) 1\\r\\n\x04\\r\\n (esc)
694 write(6 from 6) -> (24) 1\\r\\n\x04\\r\\n (esc)
@@ -660,6 +696,10 b' Server sends incomplete bundle2 stream p'
660 write(9 from 9) -> (6) 4\r\nHG20\r\n
696 write(9 from 9) -> (6) 4\r\nHG20\r\n
661 write(6 from 9) -> (0) 4\\r\\n\x00\x00\x00 (esc)
697 write(6 from 9) -> (0) 4\\r\\n\x00\x00\x00 (esc)
662 write limit reached; closing socket
698 write limit reached; closing socket
699 $LOCALIP - - [$ERRDATE$] Exception happened during processing request '/?cmd=getbundle': (glob)
700 Traceback (most recent call last):
701 Exception: connection closed after sending N bytes
702
663 write(27) -> 15\r\nInternal Server Error\r\n
703 write(27) -> 15\r\nInternal Server Error\r\n
664
704
665 $ rm -f error.log
705 $ rm -f error.log
@@ -677,7 +717,7 b' Servers stops after bundle2 stream param'
677
717
678 $ killdaemons.py $DAEMON_PIDS
718 $ killdaemons.py $DAEMON_PIDS
679
719
680 $ tail -8 error.log
720 $ "$PYTHON" $TESTDIR/filtertraceback.py < error.log | tail -12
681 write(28 from 28) -> (35) Transfer-Encoding: chunked\r\n
721 write(28 from 28) -> (35) Transfer-Encoding: chunked\r\n
682 write(2 from 2) -> (33) \r\n
722 write(2 from 2) -> (33) \r\n
683 write(6 from 6) -> (27) 1\\r\\n\x04\\r\\n (esc)
723 write(6 from 6) -> (27) 1\\r\\n\x04\\r\\n (esc)
@@ -685,6 +725,10 b' Servers stops after bundle2 stream param'
685 write(9 from 9) -> (9) 4\r\nHG20\r\n
725 write(9 from 9) -> (9) 4\r\nHG20\r\n
686 write(9 from 9) -> (0) 4\\r\\n\x00\x00\x00\x00\\r\\n (esc)
726 write(9 from 9) -> (0) 4\\r\\n\x00\x00\x00\x00\\r\\n (esc)
687 write limit reached; closing socket
727 write limit reached; closing socket
728 $LOCALIP - - [$ERRDATE$] Exception happened during processing request '/?cmd=getbundle': (glob)
729 Traceback (most recent call last):
730 Exception: connection closed after sending N bytes
731
688 write(27) -> 15\r\nInternal Server Error\r\n
732 write(27) -> 15\r\nInternal Server Error\r\n
689
733
690 $ rm -f error.log
734 $ rm -f error.log
@@ -702,7 +746,7 b' Server stops sending after bundle2 part '
702
746
703 $ killdaemons.py $DAEMON_PIDS
747 $ killdaemons.py $DAEMON_PIDS
704
748
705 $ tail -9 error.log
749 $ "$PYTHON" $TESTDIR/filtertraceback.py < error.log | tail -13
706 write(28 from 28) -> (44) Transfer-Encoding: chunked\r\n
750 write(28 from 28) -> (44) Transfer-Encoding: chunked\r\n
707 write(2 from 2) -> (42) \r\n
751 write(2 from 2) -> (42) \r\n
708 write(6 from 6) -> (36) 1\\r\\n\x04\\r\\n (esc)
752 write(6 from 6) -> (36) 1\\r\\n\x04\\r\\n (esc)
@@ -711,6 +755,10 b' Server stops sending after bundle2 part '
711 write(9 from 9) -> (9) 4\\r\\n\x00\x00\x00\x00\\r\\n (esc)
755 write(9 from 9) -> (9) 4\\r\\n\x00\x00\x00\x00\\r\\n (esc)
712 write(9 from 9) -> (0) 4\\r\\n\x00\x00\x00)\\r\\n (esc)
756 write(9 from 9) -> (0) 4\\r\\n\x00\x00\x00)\\r\\n (esc)
713 write limit reached; closing socket
757 write limit reached; closing socket
758 $LOCALIP - - [$ERRDATE$] Exception happened during processing request '/?cmd=getbundle': (glob)
759 Traceback (most recent call last):
760 Exception: connection closed after sending N bytes
761
714 write(27) -> 15\r\nInternal Server Error\r\n
762 write(27) -> 15\r\nInternal Server Error\r\n
715
763
716 $ rm -f error.log
764 $ rm -f error.log
@@ -731,7 +779,7 b' Server stops sending after bundle2 part '
731
779
732 $ killdaemons.py $DAEMON_PIDS
780 $ killdaemons.py $DAEMON_PIDS
733
781
734 $ tail -10 error.log
782 $ "$PYTHON" $TESTDIR/filtertraceback.py < error.log | tail -14
735 write(28 from 28) -> (91) Transfer-Encoding: chunked\r\n
783 write(28 from 28) -> (91) Transfer-Encoding: chunked\r\n
736 write(2 from 2) -> (89) \r\n
784 write(2 from 2) -> (89) \r\n
737 write(6 from 6) -> (83) 1\\r\\n\x04\\r\\n (esc)
785 write(6 from 6) -> (83) 1\\r\\n\x04\\r\\n (esc)
@@ -741,6 +789,10 b' Server stops sending after bundle2 part '
741 write(9 from 9) -> (47) 4\\r\\n\x00\x00\x00)\\r\\n (esc)
789 write(9 from 9) -> (47) 4\\r\\n\x00\x00\x00)\\r\\n (esc)
742 write(47 from 47) -> (0) 29\\r\\n\x0bCHANGEGROUP\x00\x00\x00\x00\x01\x01\x07\x02 \x01version02nbchanges1\\r\\n (esc)
790 write(47 from 47) -> (0) 29\\r\\n\x0bCHANGEGROUP\x00\x00\x00\x00\x01\x01\x07\x02 \x01version02nbchanges1\\r\\n (esc)
743 write limit reached; closing socket
791 write limit reached; closing socket
792 $LOCALIP - - [$ERRDATE$] Exception happened during processing request '/?cmd=getbundle': (glob)
793 Traceback (most recent call last):
794 Exception: connection closed after sending N bytes
795
744 write(27) -> 15\r\nInternal Server Error\r\n
796 write(27) -> 15\r\nInternal Server Error\r\n
745
797
746 $ rm -f error.log
798 $ rm -f error.log
@@ -761,7 +813,7 b' Server stops after bundle2 part payload '
761
813
762 $ killdaemons.py $DAEMON_PIDS
814 $ killdaemons.py $DAEMON_PIDS
763
815
764 $ tail -11 error.log
816 $ "$PYTHON" $TESTDIR/filtertraceback.py < error.log | tail -15
765 write(2 from 2) -> (110) \r\n
817 write(2 from 2) -> (110) \r\n
766 write(6 from 6) -> (104) 1\\r\\n\x04\\r\\n (esc)
818 write(6 from 6) -> (104) 1\\r\\n\x04\\r\\n (esc)
767 write(9 from 9) -> (95) 4\r\nnone\r\n
819 write(9 from 9) -> (95) 4\r\nnone\r\n
@@ -772,6 +824,10 b' Server stops after bundle2 part payload '
772 write(9 from 9) -> (12) 4\\r\\n\x00\x00\x01\xd2\\r\\n (esc)
824 write(9 from 9) -> (12) 4\\r\\n\x00\x00\x01\xd2\\r\\n (esc)
773 write(12 from 473) -> (0) 1d2\\r\\n\x00\x00\x00\xb2\x96\xee\x1d (esc)
825 write(12 from 473) -> (0) 1d2\\r\\n\x00\x00\x00\xb2\x96\xee\x1d (esc)
774 write limit reached; closing socket
826 write limit reached; closing socket
827 $LOCALIP - - [$ERRDATE$] Exception happened during processing request '/?cmd=getbundle': (glob)
828 Traceback (most recent call last):
829 Exception: connection closed after sending N bytes
830
775 write(27) -> 15\r\nInternal Server Error\r\n
831 write(27) -> 15\r\nInternal Server Error\r\n
776
832
777 $ rm -f error.log
833 $ rm -f error.log
@@ -792,7 +848,7 b' Server stops sending in middle of bundle'
792
848
793 $ killdaemons.py $DAEMON_PIDS
849 $ killdaemons.py $DAEMON_PIDS
794
850
795 $ tail -12 error.log
851 $ "$PYTHON" $TESTDIR/filtertraceback.py < error.log | tail -16
796 write(28 from 28) -> (573) Transfer-Encoding: chunked\r\n
852 write(28 from 28) -> (573) Transfer-Encoding: chunked\r\n
797 write(2 from 2) -> (571) \r\n
853 write(2 from 2) -> (571) \r\n
798 write(6 from 6) -> (565) 1\\r\\n\x04\\r\\n (esc)
854 write(6 from 6) -> (565) 1\\r\\n\x04\\r\\n (esc)
@@ -804,6 +860,10 b' Server stops sending in middle of bundle'
804 write(9 from 9) -> (473) 4\\r\\n\x00\x00\x01\xd2\\r\\n (esc)
860 write(9 from 9) -> (473) 4\\r\\n\x00\x00\x01\xd2\\r\\n (esc)
805 write(473 from 473) -> (0) 1d2\\r\\n\x00\x00\x00\xb2\x96\xee\x1dsT\xc4\xadsr\x04vr\xc3j\x1fV\x1e:jL\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x96\xee\x1dsT\xc4\xadsr\x04vr\xc3j\x1fV\x1e:jL\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00>6a3df4de388f3c4f8e28f4f9a814299a3cbb5f50\\ntest\\n0 0\\nfoo\\n\\ninitial\x00\x00\x00\x00\x00\x00\x00\xa1j=\xf4\xde8\x8f<O\x8e(\xf4\xf9\xa8\x14)\x9a<\xbb_P\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x96\xee\x1dsT\xc4\xadsr\x04vr\xc3j\x1fV\x1e:jL\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00-foo\x00b80de5d138758541c5f05265ad144ab9fa86d1db\\n\x00\x00\x00\x00\x00\x00\x00\x07foo\x00\x00\x00h\xb8\\r\xe5\xd18u\x85A\xc5\xf0Re\xad\x14J\xb9\xfa\x86\xd1\xdb\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x96\xee\x1dsT\xc4\xadsr\x04vr\xc3j\x1fV\x1e:jL\x00\x00\x00\x00\x00\x00\x00\x00\\r\\n (esc)
861 write(473 from 473) -> (0) 1d2\\r\\n\x00\x00\x00\xb2\x96\xee\x1dsT\xc4\xadsr\x04vr\xc3j\x1fV\x1e:jL\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x96\xee\x1dsT\xc4\xadsr\x04vr\xc3j\x1fV\x1e:jL\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00>6a3df4de388f3c4f8e28f4f9a814299a3cbb5f50\\ntest\\n0 0\\nfoo\\n\\ninitial\x00\x00\x00\x00\x00\x00\x00\xa1j=\xf4\xde8\x8f<O\x8e(\xf4\xf9\xa8\x14)\x9a<\xbb_P\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x96\xee\x1dsT\xc4\xadsr\x04vr\xc3j\x1fV\x1e:jL\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00-foo\x00b80de5d138758541c5f05265ad144ab9fa86d1db\\n\x00\x00\x00\x00\x00\x00\x00\x07foo\x00\x00\x00h\xb8\\r\xe5\xd18u\x85A\xc5\xf0Re\xad\x14J\xb9\xfa\x86\xd1\xdb\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x96\xee\x1dsT\xc4\xadsr\x04vr\xc3j\x1fV\x1e:jL\x00\x00\x00\x00\x00\x00\x00\x00\\r\\n (esc)
806 write limit reached; closing socket
862 write limit reached; closing socket
863 $LOCALIP - - [$ERRDATE$] Exception happened during processing request '/?cmd=getbundle': (glob)
864 Traceback (most recent call last):
865 Exception: connection closed after sending N bytes
866
807 write(27) -> 15\r\nInternal Server Error\r\n
867 write(27) -> 15\r\nInternal Server Error\r\n
808
868
809 $ rm -f error.log
869 $ rm -f error.log
@@ -827,7 +887,7 b' Server stops sending after 0 length payl'
827
887
828 $ killdaemons.py $DAEMON_PIDS
888 $ killdaemons.py $DAEMON_PIDS
829
889
830 $ tail -13 error.log
890 $ "$PYTHON" $TESTDIR/filtertraceback.py < error.log | tail -17
831 write(6 from 6) -> (596) 1\\r\\n\x04\\r\\n (esc)
891 write(6 from 6) -> (596) 1\\r\\n\x04\\r\\n (esc)
832 write(9 from 9) -> (587) 4\r\nnone\r\n
892 write(9 from 9) -> (587) 4\r\nnone\r\n
833 write(9 from 9) -> (578) 4\r\nHG20\r\n
893 write(9 from 9) -> (578) 4\r\nHG20\r\n
@@ -840,6 +900,10 b' Server stops sending after 0 length payl'
840 write(9 from 9) -> (13) 4\\r\\n\x00\x00\x00 \\r\\n (esc)
900 write(9 from 9) -> (13) 4\\r\\n\x00\x00\x00 \\r\\n (esc)
841 write(13 from 38) -> (0) 20\\r\\n\x08LISTKEYS (esc)
901 write(13 from 38) -> (0) 20\\r\\n\x08LISTKEYS (esc)
842 write limit reached; closing socket
902 write limit reached; closing socket
903 $LOCALIP - - [$ERRDATE$] Exception happened during processing request '/?cmd=getbundle': (glob)
904 Traceback (most recent call last):
905 Exception: connection closed after sending N bytes
906
843 write(27) -> 15\r\nInternal Server Error\r\n
907 write(27) -> 15\r\nInternal Server Error\r\n
844
908
845 $ rm -f error.log
909 $ rm -f error.log
@@ -863,7 +927,7 b' This is before the 0 size chunked transf'
863
927
864 $ killdaemons.py $DAEMON_PIDS
928 $ killdaemons.py $DAEMON_PIDS
865
929
866 $ tail -22 error.log
930 $ "$PYTHON" $TESTDIR/filtertraceback.py < error.log | tail -26
867 write(9 from 9) -> (851) 4\\r\\n\x00\x00\x00\x00\\r\\n (esc)
931 write(9 from 9) -> (851) 4\\r\\n\x00\x00\x00\x00\\r\\n (esc)
868 write(9 from 9) -> (842) 4\\r\\n\x00\x00\x00)\\r\\n (esc)
932 write(9 from 9) -> (842) 4\\r\\n\x00\x00\x00)\\r\\n (esc)
869 write(47 from 47) -> (795) 29\\r\\n\x0bCHANGEGROUP\x00\x00\x00\x00\x01\x01\x07\x02 \x01version02nbchanges1\\r\\n (esc)
933 write(47 from 47) -> (795) 29\\r\\n\x0bCHANGEGROUP\x00\x00\x00\x00\x01\x01\x07\x02 \x01version02nbchanges1\\r\\n (esc)
@@ -885,6 +949,10 b' This is before the 0 size chunked transf'
885 write(9 from 9) -> (9) 4\\r\\n\x00\x00\x00\x00\\r\\n (esc)
949 write(9 from 9) -> (9) 4\\r\\n\x00\x00\x00\x00\\r\\n (esc)
886 write(9 from 9) -> (0) 4\\r\\n\x00\x00\x00\x00\\r\\n (esc)
950 write(9 from 9) -> (0) 4\\r\\n\x00\x00\x00\x00\\r\\n (esc)
887 write limit reached; closing socket
951 write limit reached; closing socket
952 $LOCALIP - - [$ERRDATE$] Exception happened during processing request '/?cmd=getbundle': (glob)
953 Traceback (most recent call last):
954 Exception: connection closed after sending N bytes
955
888 write(27) -> 15\r\nInternal Server Error\r\n
956 write(27) -> 15\r\nInternal Server Error\r\n
889
957
890 $ rm -f error.log
958 $ rm -f error.log
@@ -907,7 +975,7 b' Server sends a size 0 chunked-transfer s'
907
975
908 $ killdaemons.py $DAEMON_PIDS
976 $ killdaemons.py $DAEMON_PIDS
909
977
910 $ tail -23 error.log
978 $ "$PYTHON" $TESTDIR/filtertraceback.py < error.log | tail -27
911 write(9 from 9) -> (854) 4\\r\\n\x00\x00\x00\x00\\r\\n (esc)
979 write(9 from 9) -> (854) 4\\r\\n\x00\x00\x00\x00\\r\\n (esc)
912 write(9 from 9) -> (845) 4\\r\\n\x00\x00\x00)\\r\\n (esc)
980 write(9 from 9) -> (845) 4\\r\\n\x00\x00\x00)\\r\\n (esc)
913 write(47 from 47) -> (798) 29\\r\\n\x0bCHANGEGROUP\x00\x00\x00\x00\x01\x01\x07\x02 \x01version02nbchanges1\\r\\n (esc)
981 write(47 from 47) -> (798) 29\\r\\n\x0bCHANGEGROUP\x00\x00\x00\x00\x01\x01\x07\x02 \x01version02nbchanges1\\r\\n (esc)
@@ -930,6 +998,10 b' Server sends a size 0 chunked-transfer s'
930 write(9 from 9) -> (3) 4\\r\\n\x00\x00\x00\x00\\r\\n (esc)
998 write(9 from 9) -> (3) 4\\r\\n\x00\x00\x00\x00\\r\\n (esc)
931 write(3 from 5) -> (0) 0\r\n
999 write(3 from 5) -> (0) 0\r\n
932 write limit reached; closing socket
1000 write limit reached; closing socket
1001 $LOCALIP - - [$ERRDATE$] Exception happened during processing request '/?cmd=getbundle': (glob)
1002 Traceback (most recent call last):
1003 Exception: connection closed after sending N bytes
1004
933 write(27) -> 15\r\nInternal Server Error\r\n
1005 write(27) -> 15\r\nInternal Server Error\r\n
934
1006
935 $ rm -f error.log
1007 $ rm -f error.log
General Comments 0
You need to be logged in to leave comments. Login now