Internal server error when deleting site that has been removed manually #1

Closed
opened 2018-12-26 14:58:22 +01:00 by jan · 1 comment
Owner

An internal server error is returned when a website that has been removed manually should be deleted:

Traceback (most recent call last):
  File "/home/gva/.virtualenvs/gnuviechadmin/local/lib/python2.7/site-packages/django/core/handlers/base.py", line 111, in get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "/home/gva/.virtualenvs/gnuviechadmin/local/lib/python2.7/site-packages/django/views/generic/base.py", line 69, in view
    return self.dispatch(request, *args, **kwargs)
  File "./gvacommon/viewmixins.py", line 26, in dispatch
    request, *args, **kwargs
  File "/home/gva/.virtualenvs/gnuviechadmin/local/lib/python2.7/site-packages/braces/views/_access.py", line 64, in dispatch
    request, *args, **kwargs)
  File "/home/gva/.virtualenvs/gnuviechadmin/local/lib/python2.7/site-packages/django/views/generic/base.py", line 87, in dispatch
    return handler(request, *args, **kwargs)
  File "/home/gva/.virtualenvs/gnuviechadmin/local/lib/python2.7/site-packages/django/views/generic/edit.py", line 259, in post
    return self.delete(request, *args, **kwargs)
  File "/home/gva/.virtualenvs/gnuviechadmin/local/lib/python2.7/site-packages/django/views/generic/edit.py", line 254, in delete
    self.object.delete()
  File "/home/gva/.virtualenvs/gnuviechadmin/local/lib/python2.7/site-packages/django/db/transaction.py", line 394, in inner
    return func(*args, **kwargs)
  File "./websites/models.py", line 73, in delete
    disable_web_vhost.delay(fqdn).get()
  File "/home/gva/.virtualenvs/gnuviechadmin/local/lib/python2.7/site-packages/celery/result.py", line 175, in get
    raise Exception(meta['result'])
Exception: {u'exc_message': u'could not disable site configuration for <domain>', u'exc_type': u'Exception'}

The reason is an exception that is raised by the gvaweb worker.

An internal server error is returned when a website that has been removed manually should be deleted: ```Internal Server Error: /website/<id>/<domain>/<domain_id>/delete Traceback (most recent call last): File "/home/gva/.virtualenvs/gnuviechadmin/local/lib/python2.7/site-packages/django/core/handlers/base.py", line 111, in get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) File "/home/gva/.virtualenvs/gnuviechadmin/local/lib/python2.7/site-packages/django/views/generic/base.py", line 69, in view return self.dispatch(request, *args, **kwargs) File "./gvacommon/viewmixins.py", line 26, in dispatch request, *args, **kwargs File "/home/gva/.virtualenvs/gnuviechadmin/local/lib/python2.7/site-packages/braces/views/_access.py", line 64, in dispatch request, *args, **kwargs) File "/home/gva/.virtualenvs/gnuviechadmin/local/lib/python2.7/site-packages/django/views/generic/base.py", line 87, in dispatch return handler(request, *args, **kwargs) File "/home/gva/.virtualenvs/gnuviechadmin/local/lib/python2.7/site-packages/django/views/generic/edit.py", line 259, in post return self.delete(request, *args, **kwargs) File "/home/gva/.virtualenvs/gnuviechadmin/local/lib/python2.7/site-packages/django/views/generic/edit.py", line 254, in delete self.object.delete() File "/home/gva/.virtualenvs/gnuviechadmin/local/lib/python2.7/site-packages/django/db/transaction.py", line 394, in inner return func(*args, **kwargs) File "./websites/models.py", line 73, in delete disable_web_vhost.delay(fqdn).get() File "/home/gva/.virtualenvs/gnuviechadmin/local/lib/python2.7/site-packages/celery/result.py", line 175, in get raise Exception(meta['result']) Exception: {u'exc_message': u'could not disable site configuration for <domain>', u'exc_type': u'Exception'} ``` The reason is an exception that is raised by the [gvaweb](https://git.dittberner.info/gnuviech/gvaweb) worker.
jan self-assigned this 2018-12-26 14:58:41 +01:00
Author
Owner
fixed by https://git.dittberner.info/gnuviech/gvaweb/issues/5
jan closed this issue 2019-07-05 08:59:19 +02:00
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: gnuviech/gva#1
No description provided.