So I captured some http and curl traffic via a tcpdump to the port. Not 
sure if it helps.

tcpdump -i any port 8000 -v
dropped privs to tcpdump
tcpdump: listening on any, link-type LINUX_SLL (Linux cooked v1), capture 
size 262144 bytes

11:43:26.930648 IP (tos 0x0, ttl 64, id 10249, offset 0, flags [DF], proto 
TCP (6), length 60)
    subdomain.ourschool.edu.57402 > subdomain.ourschool.edu.irdmi: Flags 
[S], cksum 0xfe30 (incorrect -> 0x6c70), seq 2393150000, win 65495, options 
[mss 65495,sackOK,TS val 152615465 ecr 0,nop,wscale 7], length 0
11:43:26.930672 IP (tos 0x0, ttl 64, id 0, offset 0, flags [DF], proto TCP 
(6), length 40)
    subdomain.ourschool.edu.irdmi > subdomain.ourschool.edu.57402: Flags 
[R.], cksum 0x917d (correct), seq 0, ack 2393150001, win 0, length 0
11:43:27.187561 IP (tos 0x0, ttl 64, id 49632, offset 0, flags [DF], proto 
TCP (6), length 60)
    subdomain.ourschool.edu.57404 > subdomain.ourschool.edu.irdmi: Flags 
[S], cksum 0xfe30 (incorrect -> 0xc8ba), seq 1219328730, win 65495, options 
[mss 65495,sackOK,TS val 152615722 ecr 0,nop,wscale 7], length 0
11:43:27.187585 IP (tos 0x0, ttl 64, id 0, offset 0, flags [DF], proto TCP 
(6), length 40)
    subdomain.ourschool.edu.irdmi > subdomain.ourschool.edu.57404: Flags 
[R.], cksum 0xeec8 (correct), seq 0, ack 1219328731, win 0, length 0
11:43:27.846341 IP (tos 0x0, ttl 64, id 2073, offset 0, flags [DF], proto 
TCP (6), length 60)
    subdomain.ourschool.edu.57410 > subdomain.ourschool.edu.irdmi: Flags 
[S], cksum 0xfe30 (incorrect -> 0x738d), seq 1615377876, win 65495, options 
[mss 65495,sackOK,TS val 152616380 ecr 0,nop,wscale 7], length 0
11:43:27.846370 IP (tos 0x0, ttl 64, id 0, offset 0, flags [DF], proto TCP 
(6), length 40)
    subdomain.ourschool.edu.irdmi > subdomain.ourschool.edu.57410: Flags 
[R.], cksum 0x9c2d (correct), seq 0, ack 1615377877, win 0, length 0
11:43:27.852161 IP (tos 0x0, ttl 64, id 33508, offset 0, flags [DF], proto 
TCP (6), length 60)
    subdomain.ourschool.edu.57412 > subdomain.ourschool.edu.irdmi: Flags 
[S], cksum 0xfe30 (incorrect -> 0xc306), seq 2271493943, win 65495, options 
[mss 65495,sackOK,TS val 152616386 ecr 0,nop,wscale 7], length 0
11:43:27.852180 IP (tos 0x0, ttl 64, id 0, offset 0, flags [DF], proto TCP 
(6), length 40)
    subdomain.ourschool.edu.irdmi > subdomain.ourschool.edu.57412: Flags 
[R.], cksum 0xebac (correct), seq 0, ack 2271493944, win 0, length 0
11:43:27.852513 IP (tos 0x0, ttl 64, id 48347, offset 0, flags [DF], proto 
TCP (6), length 60)
    subdomain.ourschool.edu.57414 > subdomain.ourschool.edu.irdmi: Flags 
[S], cksum 0xfe30 (incorrect -> 0xf501), seq 2476015880, win 65495, options 
[mss 65495,sackOK,TS val 152616387 ecr 0,nop,wscale 7], length 0
11:43:27.852526 IP (tos 0x0, ttl 64, id 0, offset 0, flags [DF], proto TCP 
(6), length 40)
    subdomain.ourschool.edu.irdmi > subdomain.ourschool.edu.57414: Flags 
[R.], cksum 0x1da9 (correct), seq 0, ack 2476015881, win 0, length 0
11:44:11.812287 IP (tos 0x0, ttl 64, id 30322, offset 0, flags [DF], proto 
TCP (6), length 60)
    subdomain.ourschool.edu.57420 > subdomain.ourschool.edu.irdmi: Flags 
[S], cksum 0xfe30 (incorrect -> 0x0591), seq 3092717561, win 65495, options 
[mss 65495,sackOK,TS val 152660346 ecr 0,nop,wscale 7], length 0
11:44:11.812311 IP (tos 0x0, ttl 64, id 0, offset 0, flags [DF], proto TCP 
(6), length 40)
    subdomain.ourschool.edu.irdmi > subdomain.ourschool.edu.57420: Flags 
[R.], cksum 0xd9ef (correct), seq 0, ack 3092717562, win 0, length 0
11:44:12.216891 IP (tos 0x0, ttl 64, id 51676, offset 0, flags [DF], proto 
TCP (6), length 60)
    subdomain.ourschool.edu.57422 > subdomain.ourschool.edu.irdmi: Flags 
[S], cksum 0xfe30 (incorrect -> 0xa6fa), seq 2454954748, win 65495, options 
[mss 65495,sackOK,TS val 152660751 ecr 0,nop,wscale 7], length 0
11:44:12.216914 IP (tos 0x0, ttl 64, id 0, offset 0, flags [DF], proto TCP 
(6), length 40)
    subdomain.ourschool.edu.irdmi > subdomain.ourschool.edu.57422: Flags 
[R.], cksum 0x7cee (correct), seq 0, ack 2454954749, win 0, length 0
11:44:12.408444 IP (tos 0x0, ttl 64, id 23494, offset 0, flags [DF], proto 
TCP (6), length 60)
    subdomain.ourschool.edu.57424 > subdomain.ourschool.edu.irdmi: Flags 
[S], cksum 0xfe30 (incorrect -> 0xaac0), seq 11546649, win 65495, options 
[mss 65495,sackOK,TS val 152660942 ecr 0,nop,wscale 7], length 0
11:44:12.408463 IP (tos 0x0, ttl 64, id 0, offset 0, flags [DF], proto TCP 
(6), length 40)
    subdomain.ourschool.edu.irdmi > subdomain.ourschool.edu.57424: Flags 
[R.], cksum 0x8173 (correct), seq 0, ack 11546650, win 0, length 0
11:44:12.624112 IP (tos 0x0, ttl 64, id 31243, offset 0, flags [DF], proto 
TCP (6), length 60)
    subdomain.ourschool.edu.57426 > subdomain.ourschool.edu.irdmi: Flags 
[S], cksum 0xfe30 (incorrect -> 0xedfe), seq 3589543612, win 65495, options 
[mss 65495,sackOK,TS val 152661158 ecr 0,nop,wscale 7], length 0
11:44:12.624135 IP (tos 0x0, ttl 64, id 0, offset 0, flags [DF], proto TCP 
(6), length 40)
    subdomain.ourschool.edu.irdmi > subdomain.ourschool.edu.57426: Flags 
[R.], cksum 0xc589 (correct), seq 0, ack 3589543613, win 0, length 0
11:44:12.789988 IP (tos 0x0, ttl 64, id 55076, offset 0, flags [DF], proto 
TCP (6), length 60)
    subdomain.ourschool.edu.57428 > subdomain.ourschool.edu.irdmi: Flags 
[S], cksum 0xfe30 (incorrect -> 0xbcbf), seq 1657715321, win 65495, options 
[mss 65495,sackOK,TS val 152661324 ecr 0,nop,wscale 7], length 0
11:44:12.790010 IP (tos 0x0, ttl 64, id 0, offset 0, flags [DF], proto TCP 
(6), length 40)
    subdomain.ourschool.edu.irdmi > subdomain.ourschool.edu.57428: Flags 
[R.], cksum 0x94f0 (correct), seq 0, ack 1657715322, win 0, length 0
11:44:12.909253 IP (tos 0x0, ttl 64, id 20180, offset 0, flags [DF], proto 
TCP (6), length 60)
    subdomain.ourschool.edu.57430 > subdomain.ourschool.edu.irdmi: Flags 
[S], cksum 0xfe30 (incorrect -> 0xc93a), seq 3981648640, win 65495, options 
[mss 65495,sackOK,TS val 152661443 ecr 0,nop,wscale 7], length 0
11:44:12.909274 IP (tos 0x0, ttl 64, id 0, offset 0, flags [DF], proto TCP 
(6), length 40)
    subdomain.ourschool.edu.irdmi > subdomain.ourschool.edu.57430: Flags 
[R.], cksum 0xa1e2 (correct), seq 0, ack 3981648641, win 0, length 0
11:44:12.948622 IP (tos 0x0, ttl 64, id 51105, offset 0, flags [DF], proto 
TCP (6), length 60)
    subdomain.ourschool.edu.57432 > subdomain.ourschool.edu.irdmi: Flags 
[S], cksum 0xfe30 (incorrect -> 0xee12), seq 1089972826, win 65495, options 
[mss 65495,sackOK,TS val 152661483 ecr 0,nop,wscale 7], length 0
11:44:12.948654 IP (tos 0x0, ttl 64, id 0, offset 0, flags [DF], proto TCP 
(6), length 40)
    subdomain.ourschool.edu.irdmi > subdomain.ourschool.edu.57432: Flags 
[R.], cksum 0xc6e2 (correct), seq 0, ack 1089972827, win 0, length 0
11:44:13.230395 IP (tos 0x0, ttl 64, id 14368, offset 0, flags [DF], proto 
TCP (6), length 60)
    subdomain.ourschool.edu.57434 > subdomain.ourschool.edu.irdmi: Flags 
[S], cksum 0xfe30 (incorrect -> 0x366c), seq 1252546357, win 65495, options 
[mss 65495,sackOK,TS val 152661764 ecr 0,nop,wscale 7], length 0
11:44:13.230417 IP (tos 0x0, ttl 64, id 0, offset 0, flags [DF], proto TCP 
(6), length 40)
    subdomain.ourschool.edu.irdmi > subdomain.ourschool.edu.57434: Flags 
[R.], cksum 0x1055 (correct), seq 0, ack 1252546358, win 0, length 0
11:44:13.234738 IP (tos 0x0, ttl 64, id 26047, offset 0, flags [DF], proto 
TCP (6), length 60)
    subdomain.ourschool.edu.57436 > subdomain.ourschool.edu.irdmi: Flags 
[S], cksum 0xfe30 (incorrect -> 0xb792), seq 369822373, win 65495, options 
[mss 65495,sackOK,TS val 152661769 ecr 0,nop,wscale 7], length 0
11:44:13.234753 IP (tos 0x0, ttl 64, id 0, offset 0, flags [DF], proto TCP 
(6), length 40)
    subdomain.ourschool.edu.irdmi > subdomain.ourschool.edu.57436: Flags 
[R.], cksum 0x9180 (correct), seq 0, ack 369822374, win 0, length 0
11:44:13.235092 IP (tos 0x0, ttl 64, id 24010, offset 0, flags [DF], proto 
TCP (6), length 60)
    subdomain.ourschool.edu.57438 > subdomain.ourschool.edu.irdmi: Flags 
[S], cksum 0xfe30 (incorrect -> 0x44b5), seq 1622880976, win 65495, options 
[mss 65495,sackOK,TS val 152661769 ecr 0,nop,wscale 7], length 0
11:44:13.235104 IP (tos 0x0, ttl 64, id 0, offset 0, flags [DF], proto TCP 
(6), length 40)
    subdomain.ourschool.edu.irdmi > subdomain.ourschool.edu.57438: Flags 
[R.], cksum 0x1ea3 (correct), seq 0, ack 1622880977, win 0, length 0

>From a curl http://: subdomain.ourschool.edu:8000/upload
11:44:39.402832 IP (tos 0x0, ttl 64, id 26573, offset 0, flags [DF], proto 
TCP (6), length 60)
    subdomain.ourschool.edu.57440 > subdomain.ourschool.edu.irdmi: Flags 
[S], cksum 0xfe30 (incorrect -> 0x81b6), seq 1034990239, win 65495, options 
[mss 65495,sackOK,TS val 152687937 ecr 0,nop,wscale 7], length 0
11:44:39.402854 IP (tos 0x0, ttl 64, id 0, offset 0, flags [DF], proto TCP 
(6), length 40)
    subdomain.ourschool.edu.irdmi > subdomain.ourschool.edu.57440: Flags 
[R.], cksum 0xc1dc (correct), seq 0, ack 1034990240, win 0, length 0
11:44:39.403039 IP (tos 0x0, ttl 64, id 54374, offset 0, flags [DF], proto 
TCP (6), length 60)
    storm.subdomain.ourschool.edu.45416 > 
storm.subdomain.ourschool.edu.irdmi: Flags [S], cksum 0xb53b (incorrect -> 
0x463a), seq 2920218932, win 65495, options [mss 65495,sackOK,TS val 
2518105273 ecr 0,nop,wscale 7], length 0
11:44:39.403052 IP (tos 0x0, ttl 64, id 0, offset 0, flags [DF], proto TCP 
(6), length 40)
    storm.subdomain.ourschool.edu.irdmi > 
storm.subdomain.ourschool.edu.45416: Flags [R.], cksum 0x7ad6 (correct), 
seq 0, ack 2920218933, win 0, length 

On Wednesday, October 30, 2019 at 9:50:22 PM UTC-4, Graham Dumpleton wrote:
>
> If port 8000 is refusing connections, that shouldn't be related to the 
> WSGI application as it is Apache that handles connections. So Apache would 
> appear not to be running or you have mucked up something in the Apache 
> configuration to disable the VirtualHost.
>
> On 31 Oct 2019, at 12:37 am, Robert Kudyba <[email protected] 
> <javascript:>> wrote:
>
> Good thought. But I tried changing to the corresponding user & group, and 
> still no luck. Even added the user to the apache group just to make sure. 
> Logs just show this:
> [Wed Oct 30 09:33:32.043767 2019] [wsgi:info] [pid 3980:tid 
> 140481291338048] mod_wsgi (pid=3980): Attach interpreter ''.
> [Wed Oct 30 09:33:32.047098 2019] [wsgi:info] [pid 3980:tid 
> 140481291338048] mod_wsgi (pid=3980): Imported 'mod_wsgi'.
> [Wed Oct 30 09:33:32.047324 2019] [wsgi:debug] [pid 3980:tid 
> 140481237260032] src/server/mod_wsgi.c(9068): mod_wsgi (pid=3980): Started 
> thread 1 in daemon process 'upload_pictures2'.
> [Wed Oct 30 09:33:32.047400 2019] [wsgi:debug] [pid 3980:tid 
> 140481245652736] src/server/mod_wsgi.c(9068): mod_wsgi (pid=3980): Started 
> thread 0 in daemon process 'upload_pictures2'.
> [Wed Oct 30 09:33:32.047411 2019] [wsgi:debug] [pid 3980:tid 
> 140481212081920] src/server/mod_wsgi.c(9068): mod_wsgi (pid=3980): Started 
> thread 4 in daemon process 'upload_pictures2'.
> [Wed Oct 30 09:33:32.047440 2019] [wsgi:debug] [pid 3980:tid 
> 140481228867328] src/server/mod_wsgi.c(9068): mod_wsgi (pid=3980): Started 
> thread 2 in daemon process 'upload_pictures2'.
> [Wed Oct 30 09:33:32.047441 2019] [wsgi:debug] [pid 3980:tid 
> 140481220474624] src/server/mod_wsgi.c(9068): mod_wsgi (pid=3980): Started 
> thread 3 in daemon process 'upload_pictures2'.
>
> And curl fails:
>
> curl http://127.0.0.1:8000/upload
> curl: (7) Failed to connect to 127.0.0.1 port 8000: Connection refused
>
> curl http://127.0.0.1:8000
> curl: (7) Failed to connect to 127.0.0.1 port 8000: Connection refused
>
> On Tuesday, October 29, 2019 at 10:22:03 PM UTC-4, Graham Dumpleton wrote:
>>
>> When you run 'mod_wsgi-express start-server' it runs as you and is not 
>> the same. 
>>
>> Apache is going to run it as the Apache user, which may not have the same 
>> access. 
>>
>> Change user and group in: 
>>
>> WSGIDaemonProcess upload_pictures2 user=apache group=apache threads=5 
>>
>> to what user has access to the directory to write files. 
>>
>> Graham 
>>
>> > On 30 Oct 2019, at 1:19 pm, Robert Kudyba <[email protected]> wrote: 
>> > 
>> > Absolutely. Image uploads work with mod_wsgi-express start-server. 
>> > 
>> > -- 
>> > 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 view this discussion on the web visit 
>> https://groups.google.com/d/msgid/modwsgi/455d6200-2a0b-4ef2-92dd-15ed6f8c819d%40googlegroups.com
>> . 
>>
>>
> -- 
> 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 view this discussion on the web visit 
> https://groups.google.com/d/msgid/modwsgi/a3daa6a9-4c18-4e5e-9410-b5a71e7a7fee%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/modwsgi/a3daa6a9-4c18-4e5e-9410-b5a71e7a7fee%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
>
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/modwsgi/724303b9-4be5-4242-b066-729d9fed05e0%40googlegroups.com.

Reply via email to