Page 1 of 1

500 Internal Server Error Contact upload Beta 2.0

PostPosted: Wed Feb 20, 2013 6:27 am
by fintech
500 Internal Server Error Contact upload Beta 2.0. I just installed beta 2.0 and cannot upload a contact list. My test csv list works in a 1.5 test system. Do I need to enable something on the webserver to allow upload? I'm running the lastest version of Ubuntu.

Re: 500 Internal Server Error Contact upload Beta 2.0

PostPosted: Wed Feb 20, 2013 8:37 am
by areski
When you can an 500 error, I would advice to refer to the troubleshooting documentation.
http://docs.newfies-dialer.org/en/lates ... oting.html

Checking the logs you will be able to report us the error.

Note that format for import in V2 changed

Re: 500 Internal Server Error Contact upload Beta 2.0

PostPosted: Wed Feb 20, 2013 4:11 pm
by fintech
I noticed the use of | or pipes. I tried a pipes csv same problem. I will look at the logs.

Re: 500 Internal Server Error Contact upload Beta 2.0

PostPosted: Wed Feb 20, 2013 4:19 pm
by areski
Yes we added a new features to add json into one of the field, so we need to restrict on the coma use

Re: 500 Internal Server Error Contact upload Beta 2.0

PostPosted: Wed Feb 20, 2013 4:29 pm
by fintech
I'm not sure if my list is bad.

IndexError: list index out of range
ERROR 2013-02-19 22:13:02,475 base 1184 140190239545088 Internal Server Error: /contact/import/
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 = callback(request, *callback_args, **callback_kwargs)
File "/usr/share/virtualenvs/newfies-dialer/local/lib/python2.7/site-packages/django/contrib/auth/decorators.py", line 20, in _wrapped_view
return view_func(request, *args, **kwargs)
File "/usr/share/newfies/dialer_contact/views.py", line 588, in contact_import
if not int(row[5]):
ValueError: invalid literal for int() with base 10: 'Status'
ERROR 2013-02-19 22:14:07,779 base 1184 140190239545088 Internal Server Error: /contact/import/
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 = callback(request, *callback_args, **callback_kwargs)
File "/usr/share/virtualenvs/newfies-dialer/local/lib/python2.7/site-packages/django/contrib/auth/decorators.py", line 20, in _wrapped_view
return view_func(request, *args, **kwargs)
File "/usr/share/newfies/dialer_contact/views.py", line 588, in contact_import
if not int(row[5]):
ValueError: invalid literal for int() with base 10: 'Status'
ERROR 2013-02-19 22:14:14,996 base 1182 140190239545088 Internal Server Error: /contact/import/
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 = callback(request, *callback_args, **callback_kwargs)
File "/usr/share/virtualenvs/newfies-dialer/local/lib/python2.7/site-packages/django/contrib/auth/decorators.py", line 20, in _wrapped_view
return view_func(request, *args, **kwargs)
File "/usr/share/newfies/dialer_contact/views.py", line 588, in contact_import
if not int(row[5]):
ValueError: invalid literal for int() with base 10: 'Status'
ERROR 2013-02-19 22:17:37,756 base 1183 140190239545088 Internal Server Error: /contact/import/
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 = callback(request, *callback_args, **callback_kwargs)
File "/usr/share/virtualenvs/newfies-dialer/local/lib/python2.7/site-packages/django/contrib/auth/decorators.py", line 20, in _wrapped_view
return view_func(request, *args, **kwargs)
File "/usr/share/newfies/dialer_contact/views.py", line 588, in contact_import
if not int(row[5]):
IndexError: list index out of range

Re: 500 Internal Server Error Contact upload Beta 2.0

PostPosted: Wed Feb 20, 2013 4:42 pm
by fintech
Do you have a sample list for beta 2.0?

Re: 500 Internal Server Error Contact upload Beta 2.0

PostPosted: Wed Feb 20, 2013 4:46 pm
by areski
This should work :
https://github.com/Star2Billing/newfies ... act_10.txt

Can you send me your file ?

Re: 500 Internal Server Error Contact upload Beta 2.0

PostPosted: Wed Feb 20, 2013 5:15 pm
by fintech
Your test list worked, I will compare formats later when I get back to the office.

Re: 500 Internal Server Error Contact upload Beta 2.0

PostPosted: Thu Feb 21, 2013 12:18 am
by fintech
Now I'm working a limit upload size limit Get a 413 error anything over 1MB. I think I will try the /etc/nginx/nginx.conf and fix the file upload size.