Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't login successfully on AWS instance #1008

Closed
scottx611x opened this issue Apr 13, 2016 · 3 comments
Closed

Can't login successfully on AWS instance #1008

scottx611x opened this issue Apr 13, 2016 · 3 comments

Comments

@scottx611x
Copy link
Member

Commit: 8120b51

Steps to reproduce

  1. Go to http://54.86.50.182/ and attempt to login with the default admin credentials

Observed behavior

screen shot 2016-04-13 at 3 50 50 pm

Environment:


Request Method: POST
Request URL: http://54.86.50.182/accounts/login/

Django Version: 1.6.11
Python Version: 2.7.6
Installed Applications:
('django.contrib.auth',
 'django.contrib.contenttypes',
 'django.contrib.sessions',
 'django.contrib.sites',
 'django.contrib.messages',
 'django.contrib.staticfiles',
 'django.contrib.admin',
 'django.contrib.admindocs',
 'django.contrib.humanize',
 'django_markwhat',
 'haystack',
 'djcelery',
 'tastypie',
 'guardian',
 'djangular',
 'galaxy_connector',
 'core',
 'analysis_manager',
 'workflow_manager',
 'file_store',
 'file_server',
 'visualization_manager',
 'data_set_manager',
 'annotation_server',
 'registration',
 'flatblocks',
 'south',
 'chunked_upload',
 'rest_framework',
 'rest_framework_swagger',
 'django_extensions',
 'django_nose')
Installed Middleware:
('django.middleware.common.CommonMiddleware',
 'django.contrib.sessions.middleware.SessionMiddleware',
 'django.middleware.csrf.CsrfViewMiddleware',
 'django.contrib.auth.middleware.AuthenticationMiddleware',
 'django.contrib.messages.middleware.MessageMiddleware',
 'core.middleware.DatabaseFailureMiddleware')


Traceback:
File "/home/ubuntu/.virtualenvs/refinery-platform/local/lib/python2.7/site-packages/django/core/handlers/base.py" in get_response
  112.                     response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/home/ubuntu/.virtualenvs/refinery-platform/local/lib/python2.7/site-packages/django/views/decorators/debug.py" in sensitive_post_parameters_wrapper
  75.             return view(request, *args, **kwargs)
File "/home/ubuntu/.virtualenvs/refinery-platform/local/lib/python2.7/site-packages/django/utils/decorators.py" in _wrapped_view
  99.                     response = view_func(request, *args, **kwargs)
File "/home/ubuntu/.virtualenvs/refinery-platform/local/lib/python2.7/site-packages/django/views/decorators/cache.py" in _wrapped_view_func
  52.         response = view_func(request, *args, **kwargs)
File "/home/ubuntu/.virtualenvs/refinery-platform/local/lib/python2.7/site-packages/django/contrib/auth/views.py" in login
  43.             auth_login(request, form.get_user())
File "/home/ubuntu/.virtualenvs/refinery-platform/local/lib/python2.7/site-packages/django/contrib/auth/__init__.py" in login
  89.     user_logged_in.send(sender=user.__class__, request=request, user=user)
File "/home/ubuntu/.virtualenvs/refinery-platform/local/lib/python2.7/site-packages/django/dispatch/dispatcher.py" in send
  185.             response = receiver(signal=self, sender=sender, **named)
File "/srv/refinery-platform/refinery/core/models.py" in create_catch_all_project
  175.         project.set_owner(user)
File "/srv/refinery-platform/refinery/core/models.py" in set_owner
  312.         super(SharableResource, self).set_owner(user)
File "/srv/refinery-platform/refinery/core/models.py" in set_owner
  264.         assign_perm("add_%s" % self._meta.verbose_name, user, self)
File "/home/ubuntu/.virtualenvs/refinery-platform/local/lib/python2.7/site-packages/guardian/shortcuts.py" in assign_perm
  91.         return model.objects.assign_perm(perm, user, obj)
File "/home/ubuntu/.virtualenvs/refinery-platform/local/lib/python2.7/site-packages/guardian/managers.py" in assign_perm
  41.         obj_perm, created = self.get_or_create(**kwargs)
File "/home/ubuntu/.virtualenvs/refinery-platform/local/lib/python2.7/site-packages/django/db/models/manager.py" in get_or_create
  154.         return self.get_queryset().get_or_create(**kwargs)
File "/home/ubuntu/.virtualenvs/refinery-platform/local/lib/python2.7/site-packages/django/db/models/query.py" in get_or_create
  383.                     obj.save(force_insert=True, using=self.db)
File "/home/ubuntu/.virtualenvs/refinery-platform/local/lib/python2.7/site-packages/guardian/models.py" in save
  35.             unicode(self.content_object),

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

Expected behavior

  • To be able to login
@hackdna
Copy link
Member

hackdna commented Apr 13, 2016

Thanks for reporting, this should be fixed. However, in general, you should not use the main site as an admin user. The admin account is only for using the admin UI (which can be used to create a non-admin user).

@hackdna
Copy link
Member

hackdna commented Apr 13, 2016

@scottx611x
Copy link
Member Author

Closing as a non-issue.

I may have not properly followed the wiki instructions the first time around regarding the setting of the admin password.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants