Results 1 to 6 of 6

Thread: Is http://geoip.ubuntu.com broken?

  1. #1
    Join Date
    Oct 2007
    Beans
    6

    Is http://geoip.ubuntu.com broken?

    Not sure how to get support with this.

    Linux Mint user here. I recently realized I can no longer find out my location:
    • in my browser
    • when trying to find the nearest mirror for my sources
    • or just to adjust automatically my screen temperature when the night comes.


    It is worth noting that my public IP also changed recently, when my ISP installed my fiber access.

    Doing some searches, it seems that, at least for the mirror search, Lilnux Mint queries this URL: http://geoip.ubuntu.com/lookup

    When I try it manually, I get the following error.
    Code:
    MOD_PYTHON ERROR
    
    ProcessId:      19530
    Interpreter:    'geoip.ubuntu.com'
    
    ServerName:     'geoip.ubuntu.com'
    DocumentRoot:   '/srv/geoip.ubuntu.com/www'
    
    URI:            '/lookup'
    Location:       '/lookup'
    Directory:      None
    Filename:       '/srv/geoip.ubuntu.com/cgi-bin/lookup.py'
    PathInfo:       ''
    
    Phase:          'PythonHandler'
    Handler:        'lookup'
    
    Traceback (most recent call last):
    
      File "/usr/lib/python2.7/dist-packages/mod_python/importer.py", line 1537, in HandlerDispatch
        default=default_handler, arg=req, silent=hlist.silent)
    
      File "/usr/lib/python2.7/dist-packages/mod_python/importer.py", line 1229, in _process_target
        result = _execute_target(config, req, object, arg)
    
      File "/usr/lib/python2.7/dist-packages/mod_python/importer.py", line 1128, in _execute_target
        result = object(arg)
    
      File "/srv/geoip.ubuntu.com/cgi-bin/lookup.py", line 61, in handler
        req.write(ans)
    
    UnicodeEncodeError: 'ascii' codec can't encode character u'\xce' in position 227: ordinal not in range(128)
    
    MOD_PYTHON ERROR
    
    ProcessId:      19530
    Interpreter:    'geoip.ubuntu.com'
    
    ServerName:     'geoip.ubuntu.com'
    DocumentRoot:   '/srv/geoip.ubuntu.com/www'
    
    URI:            '/lookup'
    Location:       '/lookup'
    Directory:      None
    Filename:       '/srv/geoip.ubuntu.com/cgi-bin/lookup.py'
    PathInfo:       ''
    
    Phase:          'PythonHandler'
    Handler:        'lookup'
    
    Traceback (most recent call last):
    
      File "/usr/lib/python2.7/dist-packages/mod_python/importer.py", line 1537, in HandlerDispatch
        default=default_handler, arg=req, silent=hlist.silent)
    
      File "/usr/lib/python2.7/dist-packages/mod_python/importer.py", line 1229, in _process_target
        result = _execute_target(config, req, object, arg)
    
      File "/usr/lib/python2.7/dist-packages/mod_python/importer.py", line 1128, in _execute_target
        result = object(arg)
    
      File "/srv/geoip.ubuntu.com/cgi-bin/lookup.py", line 61, in handler
        req.write(ans)
    
    UnicodeEncodeError: 'ascii' codec can't encode character u'\xce' in position 227: ordinal not in range(128)
    Is the website broken? Or is there something special about my IP that is not supported? Or something else?

  2. #2
    currentshaft Guest

    Re: Is http://geoip.ubuntu.com broken?

    When you try what manually?

    Run this command to see if your computer can reach that URL:

    curl -vvv https://geoip.ubuntu.com/lookup

  3. #3
    Join Date
    Apr 2011
    Location
    Mystletainn Kick!
    Beans
    13,938
    Distro
    Ubuntu

    Re: Is http://geoip.ubuntu.com broken?

    Thread moved to MINT
    Splat Double Splat Triple Splat
    Earn Your Keep
    Don't mind me, I'm only passing through.
    Once in a blue moon, I'm actually helpful
    .

  4. #4
    Join Date
    Oct 2007
    Beans
    6

    Re: Is http://geoip.ubuntu.com broken?

    Here's the CURL output: https://annuel2.framapad.org/p/curl-output-a8k8

    (somehow pasting this text in the message body results in some permission denied error of the forum)
    Last edited by 20c; June 28th, 2024 at 09:47 AM.

  5. #5
    Join Date
    Feb 2014
    Beans
    1

    Re: Is http://geoip.ubuntu.com broken?

    same problem for me.
    Where to report this very annoying problem?

  6. #6
    Join Date
    Oct 2024
    Beans
    1

    Re: Is http://geoip.ubuntu.com broken?

    Quote Originally Posted by 20c View Post
    Not sure how to get support with this.

    Linux Mint user here. I recently realized I can no longer find out my location:
    • in my browser
    • when trying to find the nearest mirror for my sources
    • or just to adjust automatically my screen temperature when the night comes.


    It is worth noting that my public IP also changed recently, when my ISP installed my fiber access.

    Doing some searches, it seems that, at least for the mirror search, Lilnux Mint queries this URL: http://geoip.ubuntu.com/lookup

    When I try it manually, I get the following error.
    Code:
    MOD_PYTHON ERROR
    
    ProcessId:      19530
    Interpreter:    'geoip.ubuntu.com'
    
    ServerName:     'geoip.ubuntu.com'
    DocumentRoot:   '/srv/geoip.ubuntu.com/www'
    
    URI:            '/lookup'
    Location:       '/lookup'
    Directory:      None
    Filename:       '/srv/geoip.ubuntu.com/cgi-bin/lookup.py'
    PathInfo:       ''
    
    Phase:          'PythonHandler'
    Handler:        'lookup'
    
    Traceback (most recent call last):
    
      File "/usr/lib/python2.7/dist-packages/mod_python/importer.py", line 1537, in HandlerDispatch
        default=default_handler, arg=req, silent=hlist.silent)
    
      File "/usr/lib/python2.7/dist-packages/mod_python/importer.py", line 1229, in _process_target
        result = _execute_target(config, req, object, arg)
    
      File "/usr/lib/python2.7/dist-packages/mod_python/importer.py", line 1128, in _execute_target
        result = object(arg)
    
      File "/srv/geoip.ubuntu.com/cgi-bin/lookup.py", line 61, in handler
        req.write(ans)
    
    UnicodeEncodeError: 'ascii' codec can't encode character u'\xce' in position 227: ordinal not in range(128)
    
    MOD_PYTHON ERROR
    
    ProcessId:      19530
    Interpreter:    'geoip.ubuntu.com'
    
    ServerName:     'geoip.ubuntu.com'
    DocumentRoot:   '/srv/geoip.ubuntu.com/www'
    
    URI:            '/lookup'
    Location:       '/lookup'
    Directory:      None
    Filename:       '/srv/geoip.ubuntu.com/cgi-bin/lookup.py'
    PathInfo:       ''
    
    Phase:          'PythonHandler'
    Handler:        'lookup'
    
    Traceback (most recent call last):
    
      File "/usr/lib/python2.7/dist-packages/mod_python/importer.py", line 1537, in HandlerDispatch
        default=default_handler, arg=req, silent=hlist.silent)
    
      File "/usr/lib/python2.7/dist-packages/mod_python/importer.py", line 1229, in _process_target
        result = _execute_target(config, req, object, arg)
    
      File "/usr/lib/python2.7/dist-packages/mod_python/importer.py", line 1128, in _execute_target
        result = object(arg)
    
      File "/srv/geoip.ubuntu.com/cgi-bin/lookup.py", line 61, in handler
        req.write(ans)
    
    UnicodeEncodeError: 'ascii' codec can't encode character u'\xce' in position 227: ordinal not in range(128)
    Is the website broken? Or is there something special about my IP that is not supported? Or something else?
    I've been having this issue for MONTHS and finally found the solution!!!
    The problem is that my city has special unicode character in it's name, and somehow this breaks python...
    My solution is to use a VPN to change my location to a city without any accents, and TADA: geoip.ubunto.com/lookup works again

    This is a majorly stupid but btw, and it's ridiculous that it happens considering the number of cities that have accents in them.

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •