Hello!

 

I am having problems with my newly installed fred-whois server on Ubunu Server 16.04. What is happening is that the whois webpage can display all attributes as needed (after searching for a domain), when I click on attribute links like registrar ID they appear fine. The problem comes when I want to view or click on the contact attribute, it gives out the error code 500 Internal Server Error. This error only occurs when I want to view details about the contact attached to the domain, either be an administrative contact or technical contact.

 

Apache error log show the following (searched for domain.domain, then click on the administrative contact):

 

…mod_wsgi (pid=27416): Exception occurred processing WSGI script '/usr/lib/python2.7/dist-packages/fred_whois/whois_wsgi.py'., referer: http:// localhost /whois/?d=domain.domain

…Traceback (most recent call last):, referer: http://localhost/whois/?d=domain.domain

…File "/usr/lib/python2.7/dist-packages/beaker/middleware.py", line 155, in __call__, referer: http:// localhost /whois/?d=domain.domain

…return self.wrap_app(environ, session_start_response), referer: http:// localhost /whois/?d=domain.domain

…File "/usr/lib/python2.7/dist-packages/fred_whois/whois_wsgi.py", line 145, in application, referer: http:// localhost /whois/?d=domain.domain

…links={'registrars_list': '/whois/registrars'}, referer: http:// localhost /whois/?d= domain.domain

…File "/usr/lib/python2.7/dist-packages/fred_whois/whois.py", line 1199, in render, referer: http:// localhost /whois/?d= domain.domain

…answer['is_site_nic'] = settings.SITE_DIR_NAME == "nic", referer: http:// localhost /whois/?d= domain.domain

…File "/usr/lib/python2.7/dist-packages/django/conf/__init__.py", line 54, in __getattr__, referer: http:// localhost /whois/?d= domain.domain

…self._setup(name), referer: http:// localhost /whois/?d= domain.domain

…File "/usr/lib/python2.7/dist-packages/django/conf/__init__.py", line 47, in _setup, referer: http:// localhost /whois/?d= domain.domain

…% (desc, ENVIRONMENT_VARIABLE)), referer: http:// localhost /whois/?d= domain.domain

…ImproperlyConfigured: Requested setting SITE_DIR_NAME, but settings are not configured. You must either define the environment variable DJANGO_SETTINGS_MODULE or call settings.configure() before accessing settings., referer: http://localhost/whois/?d= domain.domain

 

Any ideas on what causes this particularly on contacts handles?

 

Thank you.

 

Regards,

Moeketsi Maphoi