truncated response error - is in the apache log for my virtualhost
In the HTTP Client (e.g. Chrome) - i see html output, it's source code
below ("hubChallenge" string - is a valid plain text response on requested
url. somehow HTML Error 500 page is appended)
*hubChallenge*<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"><html><head
><title>500 Internal Server Error</title></head><body><h1>Internal Server
Error</h1><p>The server encountered an internal error ormisconfiguration
and was unable to completeyour request.</p><p>Please contact the server
administrator at webmaster@localhost to inform them of the time this error
occurred, and the actions you performed just before this error.</p><p>More
information about this error may be availablein the server error log.</p><hr
><address>Apache/2.4.7 (Ubuntu) Server at kcl16bt08.kcell.kz Port 443<
/address></body></html>
Log level is set to debug for wsgi. I've performed apache start, and
requested url:
[Thu Aug 25 14:53:21.089973 2016] [ssl:info] [pid 21811] AH02200: Loading
certificate & private key of SSL-aware server 'kcl16bt08.kcell.kz:443'
[Thu Aug 25 14:53:21.090341 2016] [ssl:info] [pid 21811] AH01914:
Configuring server kcl16bt08.kcell.kz:443 for SSL protocol
[Thu Aug 25 14:53:21.255183 2016] [ssl:info] [pid 21812] AH02200: Loading
certificate & private key of SSL-aware server 'kcl16bt08.kcell.kz:443'
[Thu Aug 25 14:53:21.256078 2016] [ssl:info] [pid 21812] AH01914:
Configuring server kcl16bt08.kcell.kz:443 for SSL protocol
[Thu Aug 25 14:53:21.449452 2016] [wsgi:info] [pid 21816] mod_wsgi
(pid=21816): Attach interpreter ''.
[Thu Aug 25 14:53:21.450022 2016] [wsgi:info] [pid 21816] mod_wsgi
(pid=21816): Adding '/home/user01/nano_fb_py_bot' to path.
[Thu Aug 25 14:53:21.450706 2016] [wsgi:info] [pid 21816] mod_wsgi
(pid=21816): Adding '/home/user01/.virtualenvs/dev_fbbot_ve/bin' to path.
[Thu Aug 25 14:53:21.451438 2016] [wsgi:info] [pid 21816] mod_wsgi
(pid=21816): Adding
'/home/user01/.virtualenvs/dev_fbbot_ve/lib/python3.4/site-packages' to
path.
[Thu Aug 25 14:53:21.487378 2016] [wsgi:info] [pid 21816] mod_wsgi
(pid=21816): Imported 'mod_wsgi'.
[Thu Aug 25 14:53:21.488570 2016] [wsgi:debug] [pid 21816]
src/server/mod_wsgi.c(8706): mod_wsgi (pid=21816): Started thread 2 in
daemon process 'fb_bot'.
[Thu Aug 25 14:53:21.488730 2016] [wsgi:debug] [pid 21816]
src/server/mod_wsgi.c(8706): mod_wsgi (pid=21816): Started thread 3 in
daemon process 'fb_bot'.
[Thu Aug 25 14:53:21.488805 2016] [wsgi:debug] [pid 21816]
src/server/mod_wsgi.c(8706): mod_wsgi (pid=21816): Started thread 1 in
daemon process 'fb_bot'.
[Thu Aug 25 14:53:21.488892 2016] [wsgi:debug] [pid 21816]
src/server/mod_wsgi.c(8706): mod_wsgi (pid=21816): Started thread 0 in
daemon process 'fb_bot'.
[Thu Aug 25 14:53:21.488980 2016] [wsgi:debug] [pid 21816]
src/server/mod_wsgi.c(8706): mod_wsgi (pid=21816): Started thread 4 in
daemon process 'fb_bot'.
[Thu Aug 25 14:53:42.025878 2016] [ssl:info] [pid 21817] [client
172.16.202.31:63658] AH01964: Connection to child 0 established (server
kcl16bt08.kcell.kz:443)
[Thu Aug 25 14:53:42.042454 2016] [wsgi:info] [pid 21816] [remote
172.16.202.31:63658] mod_wsgi (pid=21816, process='fb_bot',
application=''): Loading WSGI script
'/home/user01/nano_fb_py_bot/nano_fb_py_bot/wsgi.py'.
[Thu Aug 25 14:53:42.952338 2016] [ssl:info] [pid 21835] [client
172.16.202.31:10193] AH01964: Connection to child 8 established (server
kcl16bt08.kcell.kz:443)
[Thu Aug 25 14:53:43.456475 2016] [wsgi:info] [pid 21839] mod_wsgi
(pid=21839): Attach interpreter ''.
[Thu Aug 25 14:53:43.456761 2016] [wsgi:info] [pid 21839] mod_wsgi
(pid=21839): Adding '/home/user01/nano_fb_py_bot' to path.
[Thu Aug 25 14:53:43.457157 2016] [wsgi:info] [pid 21839] mod_wsgi
(pid=21839): Adding '/home/user01/.virtualenvs/dev_fbbot_ve/bin' to path.
[Thu Aug 25 14:53:43.457518 2016] [wsgi:info] [pid 21839] mod_wsgi
(pid=21839): Adding
'/home/user01/.virtualenvs/dev_fbbot_ve/lib/python3.4/site-packages' to
path.
[Thu Aug 25 14:53:43.475090 2016] [wsgi:info] [pid 21839] mod_wsgi
(pid=21839): Imported 'mod_wsgi'.
[Thu Aug 25 14:53:43.475388 2016] [wsgi:debug] [pid 21839]
src/server/mod_wsgi.c(8706): mod_wsgi (pid=21839): Started thread 0 in
daemon process 'fb_bot'.
[Thu Aug 25 14:53:43.475441 2016] [wsgi:debug] [pid 21839]
src/server/mod_wsgi.c(8706): mod_wsgi (pid=21839): Started thread 1 in
daemon process 'fb_bot'.
[Thu Aug 25 14:53:43.475696 2016] [wsgi:debug] [pid 21839]
src/server/mod_wsgi.c(8706): mod_wsgi (pid=21839): Started thread 2 in
daemon process 'fb_bot'.
[Thu Aug 25 14:53:43.475780 2016] [wsgi:debug] [pid 21839]
src/server/mod_wsgi.c(8706): mod_wsgi (pid=21839): Started thread 3 in
daemon process 'fb_bot'.
[Thu Aug 25 14:53:43.476081 2016] [wsgi:debug] [pid 21839]
src/server/mod_wsgi.c(8706): mod_wsgi (pid=21839): Started thread 4 in
daemon process 'fb_bot'.
[Thu Aug 25 14:53:43.476238 2016] [wsgi:info] [pid 21839] [remote
172.16.202.31:10193] mod_wsgi (pid=21839, process='fb_bot',
application=''): Loading WSGI script
'/home/user01/nano_fb_py_bot/nano_fb_py_bot/wsgi.py'.
[Thu Aug 25 14:53:44.125366 2016] *[wsgi:error]* [pid 21835] [client
172.16.202.31:10193] Truncated or oversized response headers received from
daemon process 'fb_bot':
/home/user01/nano_fb_py_bot/nano_fb_py_bot/wsgi.py, referer:
https://kcl16bt08.kcell.kz/fb_nanosemantics/bot/?hub.verify_tokn=token&hub.challnge=hub
[Thu Aug 25 14:53:44.461167 2016] [wsgi:info] [pid 21849] mod_wsgi
(pid=21849): Attach interpreter ''.
[Thu Aug 25 14:53:44.461420 2016] [wsgi:info] [pid 21849] mod_wsgi
(pid=21849): Adding '/home/user01/nano_fb_py_bot' to path.
[Thu Aug 25 14:53:44.461767 2016] [wsgi:info] [pid 21849] mod_wsgi
(pid=21849): Adding '/home/user01/.virtualenvs/dev_fbbot_ve/bin' to path.
[Thu Aug 25 14:53:44.462090 2016] [wsgi:info] [pid 21849] mod_wsgi
(pid=21849): Adding
'/home/user01/.virtualenvs/dev_fbbot_ve/lib/python3.4/site-packages' to
path.
[Thu Aug 25 14:53:44.480225 2016] [wsgi:info] [pid 21849] mod_wsgi
(pid=21849): Imported 'mod_wsgi'.
[Thu Aug 25 14:53:44.480470 2016] [wsgi:debug] [pid 21849]
src/server/mod_wsgi.c(8706): mod_wsgi (pid=21849): Started thread 0 in
daemon process 'fb_bot'.
[Thu Aug 25 14:53:44.480593 2016] [wsgi:debug] [pid 21849]
src/server/mod_wsgi.c(8706): mod_wsgi (pid=21849): Started thread 1 in
daemon process 'fb_bot'.
[Thu Aug 25 14:53:44.480688 2016] [wsgi:debug] [pid 21849]
src/server/mod_wsgi.c(8706): mod_wsgi (pid=21849): Started thread 2 in
daemon process 'fb_bot'.
[Thu Aug 25 14:53:44.480782 2016] [wsgi:debug] [pid 21849]
src/server/mod_wsgi.c(8706): mod_wsgi (pid=21849): Started thread 3 in
daemon process 'fb_bot'.
[Thu Aug 25 14:53:44.481058 2016] [wsgi:debug] [pid 21849]
src/server/mod_wsgi.c(8706): mod_wsgi (pid=21849): Started thread 4 in
daemon process 'fb_bot'.
четверг, 25 августа 2016 г., 12:56:43 UTC+6 пользователь Graham Dumpleton
написал:
>
> As in the mod_wsgi daemon process crashed and you got the truncated
> response error, or you are getting the error from the HTTP client?
>
> Can you ensure that LogLevel in Apache is set to ‘info’ and not just
> ‘warn’.
>
> This will cause mod_wsgi to output log messages about daemon process
> stopping and starting. I would like to see what these message say at the
> time you see the truncated response message.
>
> Thanks.
>
> Graham
>
> On 25 Aug 2016, at 4:50 PM, Anatoly Piskunov <[email protected]
> <javascript:>> wrote:
>
> I've just tried. Nothing changed
>
> четверг, 25 августа 2016 г., 12:39:39 UTC+6 пользователь Graham Dumpleton
> написал:
>>
>> Rather than set:
>>
>> SetEnv no-gzip 1
>>
>> what happens when you disable mod_deflate altogether? That would turn off
>> compression inbound and outbound for the whole server.
>>
>> Understand if you can’t disable it for other reasons.
>>
>> Graham
>>
>> On 25 Aug 2016, at 4:33 PM, Graham Dumpleton <[email protected]>
>> wrote:
>>
>>
>> On 25 Aug 2016, at 4:28 PM, Anatoly Piskunov <[email protected]>
>> wrote:
>>
>> ...and maybe i should just use *--compress-responses* instead *no-gzip*,
>> but i haven't figured out how(
>>
>>
>> The —compress-responses option is something to do with mod_wsgi-express,
>> which you aren’t using.
>>
>> In mod_wsgi-express what that option does is ensure the mod_deflate is
>> loaded and adds:
>>
>> AddOutputFilterByType DEFLATE text/plain
>> AddOutputFilterByType DEFLATE text/html
>> AddOutputFilterByType DEFLATE text/xml
>> AddOutputFilterByType DEFLATE text/css
>> AddOutputFilterByType DEFLATE text/javascript
>> AddOutputFilterByType DEFLATE application/xhtml+xml
>> AddOutputFilterByType DEFLATE application/javascript
>>
>> You seem to want to turn off gzip, not turn it on.
>>
>> Graham
>>
>>
>>
> --
> You received this message because you are subscribed to the Google Groups
> "modwsgi" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected] <javascript:>.
> To post to this group, send email to [email protected] <javascript:>
> .
> Visit this group at https://groups.google.com/group/modwsgi.
> For more options, visit https://groups.google.com/d/optout.
>
>
>
--
You received this message because you are subscribed to the Google Groups
"modwsgi" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/modwsgi.
For more options, visit https://groups.google.com/d/optout.