Module/Audio

53 views
Skip to first unread message

Ash

unread,
Jul 16, 2015, 7:34:56 PM7/16/15
to newfies...@googlegroups.com
Hello,

I am getting Internal Server error if I click Audio under modules from customer portal.

It started Happening when I tried to delete Audio file . I have since managed to delete audio files from Admin Portal but Audio Menu in Customer portal is now broken.


Also - How do I clear log files and set the size of log files so that they do not fill up disk space.

Thanks
Ash


Message has been deleted

Ash

unread,
Jul 17, 2015, 5:43:48 AM7/17/15
to newfies...@googlegroups.com
I am getting Internal server error when trying to run campaign as well.

See Snippet of log below. Any suggestions on how to fix this?

[2015-07-16 09:40:19 +0000] [981] [DEBUG] GET /campaign/update_campaign_status_cust/6/4/
ERROR:django.request:Internal Server Error: /campaign/update_campaign_status_cust/6/4/
Traceback (most recent call last):
  File "/usr/share/virtualenvs/newfies-dialer/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 "/usr/share/virtualenvs/newfies-dialer/local/lib/python2.7/site-packages/django/contrib/auth/decorators.py", line 21, in _wrapped_view
    return view_func(request, *args, **kwargs)
  File "/usr/share/newfies/dialer_campaign/views.py", line 94, in update_campaign_status_cust
    frontend_send_notification(request, status, request.user)
  File "/usr/share/virtualenvs/newfies-dialer/local/lib/python2.7/site-packages/frontend_notification/views.py", line 56, in frontend_send_notification
    notification.send_now([recipient], note_label.label, {"from_user": request.user}, sender=sender)
  File "/usr/share/virtualenvs/newfies-dialer/local/lib/python2.7/site-packages/notification/models.py", line 271, in send_now
    current_site = Site.objects.get_current()
  File "/usr/share/virtualenvs/newfies-dialer/local/lib/python2.7/site-packages/django/contrib/sites/models.py", line 54, in get_current
    current_site = self.get(pk=sid)
  File "/usr/share/virtualenvs/newfies-dialer/local/lib/python2.7/site-packages/django/db/models/manager.py", line 92, in manager_method
    return getattr(self.get_queryset(), name)(*args, **kwargs)
  File "/usr/share/virtualenvs/newfies-dialer/local/lib/python2.7/site-packages/django/db/models/query.py", line 357, in get
    self.model._meta.object_name)
DoesNotExist: Site matching query does not exist.
[2015-07-16 09:40:19 +0000] [981] [ERROR] Error handling request
Traceback (most recent call last): 

Areski

unread,
Jul 17, 2015, 7:40:50 AM7/17/15
to newfies...@googlegroups.com
Hi,
I think the problem here it's that you deleted and recreated the Site on the admin rather than updating it.
and so the SITE ID changed. https://docs.djangoproject.com/en/1.8/ref/contrib/sites/

You can get the new ID and update it in settings_local.py


--
You received this message because you are subscribed to the Google Groups "Newfies-Dialer" group.
To unsubscribe from this group and stop receiving emails from it, send an email to newfies-diale...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Kind regards,
/Areski

----
Arezqui Belaid, <are...@gmail.com>
Founder at Star2Billing (www.star2billing.com)

Tel: +34650784355
Twitter: http://twitter.com/areskib
LinkedIn: http://www.linkedin.com/in/areski

Ash

unread,
Jul 17, 2015, 12:50:34 PM7/17/15
to newfies...@googlegroups.com
Spot on - That's what i did.

Thanks for your reply.

Ash

unread,
Jul 17, 2015, 1:05:31 PM7/17/15
to newfies...@googlegroups.com
Hi Areski.

I have gone through the settings_local.py  ( ./usr/share/newfies/newfies_dialer/settings_local.py).

Can not find SITE_ID specified in there. Even tried to search it but no luck. Is there any other file I need to look in to?

Ash

Areski

unread,
Jul 17, 2015, 1:21:43 PM7/17/15
to newfies...@googlegroups.com
sorry it should be in settings.py
but you could add the settings yourself in settings_local.py and it should work

--
You received this message because you are subscribed to the Google Groups "Newfies-Dialer" group.
To unsubscribe from this group and stop receiving emails from it, send an email to newfies-diale...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Ash

unread,
Jul 17, 2015, 1:25:49 PM7/17/15
to newfies...@googlegroups.com
Great , Found it.

Alex Rubio

unread,
Jan 28, 2016, 3:01:36 AM1/28/16
to Newfies-Dialer
I just wanted to say thanks for this great software! I installed everything and now i'm having issues with this issue posted here. I have a internal server error. I have read the django site for SITE_ID. Would you be so kind to help me?

Spec:
AMD 5150 apu
4gb ram
debain server 8
not using init.d replaced by systemd.
Need log

Alex Rubio

unread,
Jan 28, 2016, 3:03:45 AM1/28/16
to Newfies-Dialer
I'm new regarding django. I'm learning it as we write.
Reply all
Reply to author
Forward
0 new messages