Support Requests item #3019471, was opened at 2010-06-22 10:45
Message generated for change (Comment added) made by valhallasw
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603139&aid=301947…
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Install Problem
Group: None
Status: Closed
Priority: 5
Private: No
Submitted By:
https://www.google.com/accounts ()
Assigned to: Nobody/Anonymous (nobody)
Summary: Bot reports no IP address on localhost
Initial Comment:
I run a locked-down server that denies access to all but 127.0.0.1 via httpd.conf.
Recently, I have not been able to login with the bot, whereas I was able to previously.
I removed the restriction (relying only on a firewall), and now I could login via the API,
but I see the following in the logs:
::1 - - [22/Jun/2010:11:30:41 +0300] "POST /scriptpath/api.php HTTP/1.1" 200 91
whereas I would expect to see
127.0.0.1 - - [22/Jun/2010:11:30:41 +0300] "POST /scriptpath/api.php HTTP/1.1"
200 91
This appears to be new behavior, but I am not sure when it appeared, and due to the
rolling nature of the bot's development, I am not sure whether it was a change to
Python, the bot, or the way my OS handles Python that did this.
I was able to work around the issue by modifying my httpd.conf
My httpd.conf includes the following:
Order Deny,Allow
Deny from all
Allow from 127.0.0.1
I added
Allow from ::1
This seems to work around the problem, but it seems a bit odd (to me, at least) that the
bot reports no IP address on a local system when connecting to localhost.
For what it's worth, this is on Mac OS 10.6.3 with Python 2.6.1.
----------------------------------------------------------------------
Comment By: Merlijn S. van Deen (valhallasw)
Date: 2010-06-22 11:53
Message:
First of all, the logs you post are from apache, not from pywikipediabot.
They do show a localhost IP address: ::1, the IPv6 localhost address, while
you were expecting 127.0.0.*, the IPv4 localhost address.
If you want to use IPv4, use '127.0.0.1' explicitly instead of
'localhost'.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603139&aid=301947…