Campaign not working

Moderator: areski

Re: Campaign not working

Postby areski » Sun Mar 11, 2012 9:59 pm

I just mailed you to your email address here.

Yours,
/Areski
areski
Site Admin
 
Posts: 302
Joined: Tue Oct 18, 2011 5:28 pm

Re: Campaign not working

Postby trimode » Sun Mar 11, 2012 10:02 pm

areski wrote:This is quite unusual we never met that issue before, can you drop me an email?


it seems when i'm running the following command receiving error


(newfies-dialer)root@xen:/usr/share/newfies# python manage.py celerymon --detach
celerymon 0.4.0 is starting.
Configuration ->
. broker -> redis://localhost:6379//
. webserver -> http://localhost:8989
celerymon has started.
(newfies-dialer)root@xen:/usr/share/newfies# Traceback (most recent call last):
File "manage.py", line 17, in <module>
execute_manager(settings)
File "/usr/share/virtualenvs/newfies-dialer/lib/python2.6/site-packages/django/core/management/__init__.py", line 438, in execute_manager
utility.execute()
File "/usr/share/virtualenvs/newfies-dialer/lib/python2.6/site-packages/django/core/management/__init__.py", line 379, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/usr/share/virtualenvs/newfies-dialer/lib/python2.6/site-packages/django/core/management/base.py", line 191, in run_from_argv
self.execute(*args, **options.__dict__)
File "/usr/share/virtualenvs/newfies-dialer/lib/python2.6/site-packages/django/core/management/base.py", line 220, in execute
output = self.handle(*args, **options)
File "/usr/share/virtualenvs/newfies-dialer/lib/python2.6/site-packages/djcelery/management/commands/celerymon.py", line 42, in handle
monitor.run(**options)
File "/usr/share/virtualenvs/newfies-dialer/lib/python2.6/site-packages/celerymon-0.4.0-py2.6.egg/celerymon/bin/celerymon.py", line 97, in run
with detached(logfile, pidfile, uid, gid, umask, workdir):
File "/usr/share/virtualenvs/newfies-dialer/lib/python2.6/site-packages/celery/platforms.py", line 211, in open
os.umask(self.umask)
TypeError: an integer is required
trimode
 
Posts: 25
Joined: Sun Mar 11, 2012 2:45 am

Re: Campaign not working

Postby areski » Sun Mar 11, 2012 10:50 pm

Your error is related to Celery which have problem on OpenVZ

Some reference :
http://stackoverflow.com/questions/3314 ... mplemented
http://stackoverflow.com/questions/6033 ... processing

I fixed it by upgrading Celery :
# cd /usr/share/newfies
# workon newfies-dialer
# pip install -e git+git://github.com/ask/celery.git#egg=celery

Then fix system to run celery :
# sudo chmod a+rwxt /dev/shm/
add this line in /etc/fstab
# none /dev/shm tmpfs rw,nosuid,nodev,noexec 0 0

Then run tail and you will see some action :
# tail -f /var/log/newfies/celery-newfies-node1.log
areski
Site Admin
 
Posts: 302
Joined: Tue Oct 18, 2011 5:28 pm

Re: Campaign not working

Postby trimode » Sun Mar 11, 2012 11:26 pm

areski wrote:Your error is related to Celery which have problem on OpenVZ

Some reference :
http://stackoverflow.com/questions/3314 ... mplemented
http://stackoverflow.com/questions/6033 ... processing

I fixed it by upgrading Celery :
# cd /usr/share/newfies
# workon newfies-dialer
# pip install -e git+git://github.com/ask/celery.git#egg=celery

Then fix system to run celery :
# sudo chmod a+rwxt /dev/shm/
add this line in /etc/fstab
# none /dev/shm tmpfs rw,nosuid,nodev,noexec 0 0

Then run tail and you will see some action :
# tail -f /var/log/newfies/celery-newfies-node1.log


it works, but there is one tiny problem it's about the time.

my server time is

root@xen:~# date
Sun Mar 11 19:24:34 EDT 2012
root@xen:~#

but newfies-dialer time is 5hrs ahaead. when i created a campaign the time showing ahead by 5hrs (e.g. 00:24:34)
trimode
 
Posts: 25
Joined: Sun Mar 11, 2012 2:45 am

Re: Campaign not working

Postby trimode » Sun Mar 11, 2012 11:29 pm

and the other issue is when u create a campaign and add a CallerID e.g. 4162345678, when the system calls the subscriber it should show 4162345678, but it's showing the gateway username or extension instead.
trimode
 
Posts: 25
Joined: Sun Mar 11, 2012 2:45 am

Re: Campaign not working

Postby areski » Mon Mar 12, 2012 12:49 am

Hi,

You might need to set your TIME_ZONE in your /usr/share/newfies/settings.py

# Local time zone for this installation. Choices can be found here:
# http://en.wikipedia.org/wiki/List_of_tz_zones_by_name
# although not all choices may be available on all operating systems.
# On Unix systems, a value of None will cause Django to use the same
# timezone as the operating system.
# If running in a Windows environment this must be set to the same as your
# system time zone.
TIME_ZONE = 'America/Chicago'

In regards of the callerID issue, this might be an error on your gateway configuration, I advice you look into that direction.
areski
Site Admin
 
Posts: 302
Joined: Tue Oct 18, 2011 5:28 pm

Re: Campaign not working

Postby trimode » Mon Mar 12, 2012 6:50 am

areski wrote:Hi,

You might need to set your TIME_ZONE in your /usr/share/newfies/settings.py

# Local time zone for this installation. Choices can be found here:
# http://en.wikipedia.org/wiki/List_of_tz_zones_by_name
# although not all choices may be available on all operating systems.
# On Unix systems, a value of None will cause Django to use the same
# timezone as the operating system.
# If running in a Windows environment this must be set to the same as your
# system time zone.
TIME_ZONE = 'America/Chicago'

In regards of the callerID issue, this might be an error on your gateway configuration, I advice you look into that direction.


Hi in regards of the TIME_ZONE, i did put change it to None eventhough it should work with "America/Chicago" is the same timing as me, but i even tried it witht the following e.g. TIME_ZONE = 'None" and TIME_ZONE =' ' and still the same no changes whatsoever after the reboot the time still ahead by 5hrs i believe it's europian time eventhough my server time is root@xen:~# date
Mon Mar 12 02:50:24 EDT 2012
root@xen:~#
trimode
 
Posts: 25
Joined: Sun Mar 11, 2012 2:45 am

Re: Campaign not working

Postby areski » Mon Mar 12, 2012 7:04 am

You have to restart your apache server afterwards!
areski
Site Admin
 
Posts: 302
Joined: Tue Oct 18, 2011 5:28 pm

Re: Campaign not working

Postby trimode » Mon Mar 12, 2012 7:12 am

areski wrote:You have to restart your apache server afterwards!


Samething eventhough i restarted apache2. still showing ahead by 5hrs this is weird...

root@xen:~# /etc/init.d/apache2 restart
* Restarting web server apache2 ... waiting [ OK ]
root@xen:~# /etc/init.d/apache2 start
* Starting web server apache2 httpd (pid 971) already running
[ OK ]
trimode
 
Posts: 25
Joined: Sun Mar 11, 2012 2:45 am

Re: Campaign not working

Postby areski » Mon Mar 12, 2012 7:35 am

Again my bad, I'm travelling at the moment, so I'm bit puzzled

You might need to set your TIME_ZONE in your /usr/share/newfies/settings_local.py

the file settings_local.py overwrite the settings.py
areski
Site Admin
 
Posts: 302
Joined: Tue Oct 18, 2011 5:28 pm

PreviousNext

Return to Installation

Who is online

Users browsing this forum: No registered users and 100 guests

cron