Upgrading Ubuntu 14.04 to 16.04 and breaks webserver

64 views
Skip to first unread message

Obndnar smith

unread,
Sep 2, 2016, 11:23:20 AM9/2/16
to crits-users
Has anyone had any luck running Crits on Ubuntu 16.04?  I get these web server errors after upgrading.

AttributeError at /login/


'NoneType' object has no attribute 'crits_message'


Request Method: GET
Request URL: http://server.com:8080/login/?next=/
Django Version: 1.8.14
Exception Type: AttributeError
Exception Value:


'NoneType' object has no attribute 'crits_message'


Exception Location: /opt/crits-master/crits/core/views.py in login, line 366
Python Executable: /usr/bin/python
Python Version: 2.7.12
Python Path:


['/opt/crits-master/crits',
 
'/opt/crits-master',
 
'/usr/local/lib/python2.7/dist-packages/pycrits-0.1-py2.7.egg',
 
'/usr/local/lib/python2.7/dist-packages/pyimpfuzzy-0.1-py2.7-linux-x86_64.egg',
 
'/usr/local/lib/python2.7/dist-packages/pefile-2016.3.28-py2.7.egg',
 
'/usr/local/lib/python2.7/dist-packages/future-0.15.2-py2.7.egg',
 
'/usr/lib/python2.7',
 
'/usr/lib/python2.7/plat-x86_64-linux-gnu',
 
'/usr/lib/python2.7/lib-tk',
 
'/usr/lib/python2.7/lib-old',
 
'/usr/lib/python2.7/lib-dynload',
 
'/home/kelleyb/.local/lib/python2.7/site-packages',
 
'/usr/local/lib/python2.7/dist-packages',
 
'/usr/lib/python2.7/dist-packages']


Server time: Fri, 2 Sep 2016 11:13:22 -0400


Environment:




Request Method: GET
Request URL: http://server.com:8080/login/?next=/


Django Version: 1.8.14
Python Version: 2.7.12
Installed Applications:
('crits.core',
 
'crits.dashboards',
 
'django.contrib.auth',
 
'mongoengine.django.mongo_auth',
 
'django.contrib.contenttypes',
 
'django.contrib.messages',
 
'django.contrib.sessions',
 
'django.contrib.sites',
 
'django.contrib.staticfiles',
 
'crits.actors',
 
'crits.campaigns',
 
'crits.certificates',
 
'crits.domains',
 
'crits.emails',
 
'crits.events',
 
'crits.indicators',
 
'crits.ips',
 
'crits.locations',
 
'crits.objects',
 
'crits.pcaps',
 
'crits.raw_data',
 
'crits.relationships',
 
'crits.samples',
 
'crits.screenshots',
 
'crits.services',
 
'crits.signatures',
 
'crits.stats',
 
'crits.targets',
 
'tastypie',
 
'tastypie_mongoengine')
Installed Middleware:
('django.middleware.common.CommonMiddleware',
 
'django.contrib.sessions.middleware.SessionMiddleware',
 
'django.contrib.auth.middleware.AuthenticationMiddleware',
 
'django.middleware.csrf.CsrfViewMiddleware',
 
'django.contrib.messages.middleware.MessageMiddleware',
 
'django.middleware.clickjacking.XFrameOptionsMiddleware',
 
'crits.core.user.AuthenticationMiddleware')




Traceback:
File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py" in get_response
 
132.                     response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/opt/crits-master/crits/core/views.py" in login
 
366.     message = crits_config.crits_message


Exception Type: AttributeError at /login/
Exception Value: 'NoneType' object has no attribute 'crits_message'



dexw...@gmail.com

unread,
Sep 4, 2016, 8:39:09 AM9/4/16
to crits-users
I can run CRITS after quick install but having difficulty loading services

Cris Rhea

unread,
Jan 14, 2017, 4:10:57 PM1/14/17
to crits-users

You probably solved this by now, but one thing I noticed in the above messages is that your python stuff seems to be loaded
in /usr/local/lib/python2.7  and /usr/lib/python2.7, but python executable is /usr/bin/python. 

Should it be /usr/local/bin/python2.7 or /usr/bin/python2.7?

Adam Polkosnik

unread,
Jan 14, 2017, 9:48:25 PM1/14/17
to Cris Rhea, crits-users
Just add a symlink, that was likely meant to ensure that we are not using python 3.x. The one starting with /usr/bin should be right one.  

--
You received this message because you are subscribed to the Google Groups "crits-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to crits-users+unsubscribe@googlegroups.com.
To post to this group, send email to crits...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/crits-users/f8691195-460c-4086-98ac-afed1c656fde%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages