Skip to content
This repository was archived by the owner on Nov 10, 2017. It is now read-only.
This repository was archived by the owner on Nov 10, 2017. It is now read-only.

MunkiWebAdmin fails to load web page, throws errors #24

@guruevi

Description

@guruevi

The web page won't load at all. When computers do connect this is the error:

Traceback (most recent call last):
File "/home/munkiwebadmin/munkiwebadmin_env/lib/python2.7/site-packages/django/core/handlers/base.py", line 115, in get_response
response = callback(request, _callback_args, *_callback_kwargs)
File "/home/munkiwebadmin/munkiwebadmin_env/lib/python2.7/site-packages/django/views/decorators/csrf.py", line 77, in wrapped_view
return view_func(_args, *_kwargs)
File "/home/munkiwebadmin/munkiwebadmin_env/munkiwebadmin/reports/views.py", line 55, in submit
report = MunkiReport.objects.get(machine=machine)
File "/home/munkiwebadmin/munkiwebadmin_env/lib/python2.7/site-packages/django/db/models/manager.py", line 143, in get
return self.get_query_set().get(_args, *_kwargs)
File "/home/munkiwebadmin/munkiwebadmin_env/lib/python2.7/site-packages/django/db/models/query.py", line 393, in get
(self.model._meta.object_name, num, kwargs))
MultipleObjectsReturned: get() returned more than one MunkiReport -- it returned 32! Lookup parameters were {'machine': <Machine: Machine object>}

The issues go away when I clear the MunkiReport tables but they return shortly afterward (a few days)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions