[Mailman-Users] Re: Admin Requests Time Out

2024-04-27 Thread Mark Sapiro

On 4/27/24 11:03, Dennis Putnam wrote:


Anyway, here is the issue. I don't have a static IP address so I am 
using dyndns-ip.com. Most of the links on the admin page uses just 
'dap002' as the URL host which uses only the LAN. However, the submit 
and a couple of other links use dyndns-ip.com in the URL which sends it 
out over the WAN. I never had a problem with that until now. It has been 
eons since I've configured mailman so I've pretty much forgotten 
what/how I did it. I guess for the admin pages only, I need to make all 
the links just dap002 since I only access them on the LAN. The public 
pages still need to use dyndns-ip.com in the URL. Is there a way to do 
that?



You could try creating a file containing only the line
```
web_page_url = 'http://dap002/LISTNAME/'
```
and then running Mailman's
```
bin/config_list -i path/to/that/file LISTNAME
```
This will probably work, but may have undesired effects such as trying 
to post to that URL from a public page. You just have to try it and see.


--
Mark Sapiro The highway is for gamblers,
San Francisco Bay Area, Californiabetter use your sense - B. Dylan

--
Mailman-Users mailing list -- mailman-users@python.org
To unsubscribe send an email to mailman-users-le...@python.org
https://mail.python.org/mailman3/lists/mailman-users.python.org/
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: https://www.mail-archive.com/mailman-users@python.org/
   https://mail.python.org/archives/list/mailman-users@python.org/
Member address: arch...@mail-archive.com


[Mailman-Users] Re: Admin Requests Time Out

2024-04-27 Thread Dennis Putnam

On 4/24/2024 6:22 PM, Mark Sapiro wrote:

On 4/24/24 08:36, Dennis Putnam wrote:

On 4/23/2024 2:31 PM, Mark Sapiro wrote:


Look in the logs of your web server.

Look at the source of the admindb page you are trying to submit. In 
particular you are looking for a FORM tag like

```

```
Does that URL look correct? If not see lines 67-95 at 
https://bazaar.launchpad.net/~mailman-coders/mailman/2.1/view/head:/Mailman/Defaults.py.in



Hi Mark,

It looks right to me. This is all I see:

192.168.0.196 - - [24/Apr/2024:11:30:03 -0400] "GET 
/mailman/admindb/cufsalumni HTTP/1.1" 200 2091
192.168.0.196 - - [24/Apr/2024:11:30:03 -0400] "GET /favicon.ico 
HTTP/1.1" 200 5882
192.168.0.196 - - [24/Apr/2024:11:30:05 -0400] "POST 
/mailman/admindb/cufsalumni HTTP/1.1" 200 6964





Your POST gets a 200 status. If it doesn't update it's most likely 
because the URL is http and is being redirected to https and losing 
the POST data. See https://wiki.list.org/x/4030602 - you need to 
ensure the scheme in DEFAULT_URL_PATTERN is https, not http.


Although that said, I don't know why that would cause a timeout.

Again, look at the source of the admindb page in your web browser. 
Look for

```

```
If the scheme is http, the above applies and you need to set
```
DEFAULT_URL_PATTERN = 'https://%s/mailman/'
```
in mm_cfg.py


Hi Mark,

I figured out the issue and the URL is basically correct. The bottom 
line is that an AT router is blocking my IP for some reason. How to 
fix it is another problem as I don't expect AT to do anything about 
it. Not sure when this started.


Anyway, here is the issue. I don't have a static IP address so I am 
using dyndns-ip.com. Most of the links on the admin page uses just 
'dap002' as the URL host which uses only the LAN. However, the submit 
and a couple of other links use dyndns-ip.com in the URL which sends it 
out over the WAN. I never had a problem with that until now. It has been 
eons since I've configured mailman so I've pretty much forgotten 
what/how I did it. I guess for the admin pages only, I need to make all 
the links just dap002 since I only access them on the LAN. The public 
pages still need to use dyndns-ip.com in the URL. Is there a way to do that?


Even if AT fixes the problem it would still be better if all the admin 
stuff is done only on the LAN.


Thanks.


OpenPGP_signature.asc
Description: OpenPGP digital signature
--
Mailman-Users mailing list -- mailman-users@python.org
To unsubscribe send an email to mailman-users-le...@python.org
https://mail.python.org/mailman3/lists/mailman-users.python.org/
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: https://www.mail-archive.com/mailman-users@python.org/
https://mail.python.org/archives/list/mailman-users@python.org/
Member address: arch...@jab.org


[Mailman-Users] Re: Admin Requests Time Out

2024-04-24 Thread Mark Sapiro

On 4/24/24 08:36, Dennis Putnam wrote:

On 4/23/2024 2:31 PM, Mark Sapiro wrote:


Look in the logs of your web server.

Look at the source of the admindb page you are trying to submit. In 
particular you are looking for a FORM tag like

```

```
Does that URL look correct? If not see lines 67-95 at 
https://bazaar.launchpad.net/~mailman-coders/mailman/2.1/view/head:/Mailman/Defaults.py.in



Hi Mark,

It looks right to me. This is all I see:

192.168.0.196 - - [24/Apr/2024:11:30:03 -0400] "GET 
/mailman/admindb/cufsalumni HTTP/1.1" 200 2091
192.168.0.196 - - [24/Apr/2024:11:30:03 -0400] "GET /favicon.ico 
HTTP/1.1" 200 5882
192.168.0.196 - - [24/Apr/2024:11:30:05 -0400] "POST 
/mailman/admindb/cufsalumni HTTP/1.1" 200 6964





Your POST gets a 200 status. If it doesn't update it's most likely 
because the URL is http and is being redirected to https and losing the 
POST data. See https://wiki.list.org/x/4030602 - you need to ensure the 
scheme in DEFAULT_URL_PATTERN is https, not http.


Although that said, I don't know why that would cause a timeout.

Again, look at the source of the admindb page in your web browser. Look for
```

```
If the scheme is http, the above applies and you need to set
```
DEFAULT_URL_PATTERN = 'https://%s/mailman/'
```
in mm_cfg.py

--
Mark Sapiro The highway is for gamblers,
San Francisco Bay Area, Californiabetter use your sense - B. Dylan

--
Mailman-Users mailing list -- mailman-users@python.org
To unsubscribe send an email to mailman-users-le...@python.org
https://mail.python.org/mailman3/lists/mailman-users.python.org/
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: https://www.mail-archive.com/mailman-users@python.org/
   https://mail.python.org/archives/list/mailman-users@python.org/
Member address: arch...@mail-archive.com


[Mailman-Users] Re: Admin Requests Time Out

2024-04-24 Thread Dennis Putnam

On 4/23/2024 2:31 PM, Mark Sapiro wrote:

On 4/23/24 06:55, Dennis Putnam wrote:
I am trying to submit an admin request (rejecting an email) but when 
I click "submit" it times out. I don't see anything in the log file 
(maybe I need to look somewhere else). Restarting the service does 
not help nor does rebooting the system. The status appears to me to 
be correct:


Look in the logs of your web server.

Look at the source of the admindb page you are trying to submit. In 
particular you are looking for a FORM tag like

```

```
Does that URL look correct? If not see lines 67-95 at 
https://bazaar.launchpad.net/~mailman-coders/mailman/2.1/view/head:/Mailman/Defaults.py.in



Hi Mark,

It looks right to me. This is all I see:

192.168.0.196 - - [24/Apr/2024:11:30:03 -0400] "GET 
/mailman/admindb/cufsalumni HTTP/1.1" 200 2091
192.168.0.196 - - [24/Apr/2024:11:30:03 -0400] "GET /favicon.ico 
HTTP/1.1" 200 5882
192.168.0.196 - - [24/Apr/2024:11:30:05 -0400] "POST 
/mailman/admindb/cufsalumni HTTP/1.1" 200 6964


Is it possible the database is not responding? But if that were the case 
I wouldn't get the administrative request page, right?


OpenPGP_signature.asc
Description: OpenPGP digital signature
--
Mailman-Users mailing list -- mailman-users@python.org
To unsubscribe send an email to mailman-users-le...@python.org
https://mail.python.org/mailman3/lists/mailman-users.python.org/
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: https://www.mail-archive.com/mailman-users@python.org/
https://mail.python.org/archives/list/mailman-users@python.org/
Member address: arch...@jab.org


[Mailman-Users] Re: Admin Requests Time Out

2024-04-23 Thread Mark Sapiro

On 4/23/24 06:55, Dennis Putnam wrote:
I am trying to submit an admin request (rejecting an email) but when I 
click "submit" it times out. I don't see anything in the log file (maybe 
I need to look somewhere else). Restarting the service does not help nor 
does rebooting the system. The status appears to me to be correct:


Look in the logs of your web server.

Look at the source of the admindb page you are trying to submit. In 
particular you are looking for a FORM tag like

```

```
Does that URL look correct? If not see lines 67-95 at 
https://bazaar.launchpad.net/~mailman-coders/mailman/2.1/view/head:/Mailman/Defaults.py.in


--
Mark Sapiro The highway is for gamblers,
San Francisco Bay Area, Californiabetter use your sense - B. Dylan

--
Mailman-Users mailing list -- mailman-users@python.org
To unsubscribe send an email to mailman-users-le...@python.org
https://mail.python.org/mailman3/lists/mailman-users.python.org/
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: https://www.mail-archive.com/mailman-users@python.org/
   https://mail.python.org/archives/list/mailman-users@python.org/
Member address: arch...@mail-archive.com