<div dir="auto">You need to update django-peeringdb to get the new schema. We need drastic improvement on the client to take care of issues like that.</div><div class="gmail_extra"><br><div class="gmail_quote">On Feb 25, 2017 01:20, "Chris Phillips" <<a href="mailto:cphillips@aptient.com">cphillips@aptient.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">It appears that the Python wrapper is hanging on some invalid data in the database:<br>
<br>
$ peeringdb sync<br>
Operations to perform:<br>
Synchronize unmigrated apps: django_peeringdb<br>
Apply all migrations: admin, contenttypes, auth, sessions<br>
Synchronizing apps without migrations:<br>
Creating tables...<br>
Running deferred SQL...<br>
Installing custom SQL...<br>
Running migrations:<br>
No migrations to apply.<br>
Starting new HTTPS connection (1): <a href="http://www.peeringdb.com" rel="noreferrer" target="_blank">www.peeringdb.com</a><br>
"GET /api/org?since=1487981821 HTTP/1.1" 200 None<br>
org last update 1487981821 5 changed<br>
data to be processed 5<br>
Starting new HTTPS connection (1): <a href="http://www.peeringdb.com" rel="noreferrer" target="_blank">www.peeringdb.com</a><br>
"GET /api/fac?since=1487981822 HTTP/1.1" 200 None<br>
fac last update 1487981822 0 changed<br>
data to be processed 0<br>
Starting new HTTPS connection (1): <a href="http://www.peeringdb.com" rel="noreferrer" target="_blank">www.peeringdb.com</a><br>
"GET /api/net?since=1485044224 HTTP/1.1" 200 None<br>
net last update 1485044224 839 changed<br>
data to be processed 839<br>
Traceback (most recent call last):<br>
File "/usr/local/bin/peeringdb", line 9, in <module><br>
load_entry_point('peeringdb==0<wbr>.4.4', 'console_scripts', 'peeringdb')()<br>
File "/usr/local/lib/python2.7/site<wbr>-packages/click/core.py", line 716, in __call__<br>
return self.main(*args, **kwargs)<br>
File "/usr/local/lib/python2.7/site<wbr>-packages/click/core.py", line 696, in main<br>
rv = self.invoke(ctx)<br>
File "/usr/local/lib/python2.7/site<wbr>-packages/click/core.py", line 1060, in invoke<br>
return _process_result(sub_ctx.comman<wbr>d.invoke(sub_ctx))<br>
File "/usr/local/lib/python2.7/site<wbr>-packages/click/core.py", line 889, in invoke<br>
return ctx.invoke(self.callback, **ctx.params)<br>
File "/usr/local/lib/python2.7/site<wbr>-packages/click/core.py", line 534, in invoke<br>
return callback(*args, **kwargs)<br>
File "/usr/local/lib/python2.7/site<wbr>-packages/peeringdb/cli.py", line 167, in sync<br>
db.sync()<br>
File "/usr/local/lib/python2.7/site<wbr>-packages/peeringdb/localdb.<wbr>py", line 140, in sync<br>
call_command('pdb_sync', interactive=False)<br>
File "/usr/local/lib/python2.7/site<wbr>-packages/django/core/manageme<wbr>nt/__init__.py", line 120, in call_command<br>
return command.execute(*args, **defaults)<br>
File "/usr/local/lib/python2.7/site<wbr>-packages/django/core/manageme<wbr>nt/base.py", line 445, in execute<br>
output = self.handle(*args, **options)<br>
File "/usr/local/lib/python2.7/site<wbr>-packages/django_peeringdb/<wbr>management/commands/pdb_sync.<wbr>py", line 85, in handle<br>
self.sync(tables)<br>
File "/usr/local/lib/python2.7/site<wbr>-packages/django_peeringdb/<wbr>management/commands/pdb_sync.<wbr>py", line 92, in sync<br>
self.update_db(cls, self.get_objs(cls))<br>
File "/usr/local/lib/python2.7/site<wbr>-packages/django_peeringdb/<wbr>management/commands/pdb_sync.<wbr>py", line 127, in update_db<br>
sync.sync_obj(cls, row)<br>
File "/usr/local/lib/python2.7/site<wbr>-packages/django_peeringdb/<wbr>sync.py", line 25, in sync_obj<br>
obj.full_clean()<br>
File "/usr/local/lib/python2.7/site<wbr>-packages/django/db/models/<wbr>base.py", line 1171, in full_clean<br>
raise ValidationError(errors)<br>
django.core.exceptions.Validat<wbr>ionError: {'info_type': [u"Value u'Route Server' is not a valid choice."]}<br>
<br>
Is there a workaround for this?<br>
<br>
-- <br>
Chris Phillips<br>
Aptient Consulting Group Inc.<br>
<a href="tel:%2B1%20%28917%29%20521-5290" value="+19175215290" target="_blank">+1 (917) 521-5290</a> - office<br>
<a href="tel:%2B1%20%28250%29%20863-3519" value="+12508633519" target="_blank">+1 (250) 863-3519</a> - mobile<br>
______________________________<wbr>_________________<br>
Pdb-tech mailing list<br>
<a href="mailto:Pdb-tech@lists.peeringdb.com" target="_blank">Pdb-tech@lists.peeringdb.com</a><br>
<a href="http://lists.peeringdb.com/cgi-bin/mailman/listinfo/pdb-tech" rel="noreferrer" target="_blank">http://lists.peeringdb.com/cgi<wbr>-bin/mailman/listinfo/pdb-tech</a><br>
</blockquote></div></div>