2017-03-15 17:40:04.006775: Attempting to update <ISP u'tmp-fai'>
last successful update=2015-09-07 15:35:52.376574+02:00
last update attempt=2017-03-15 17:20:03.941921+01:00
next update was scheduled 554 days, 15:04:11.630406 ago
strike=0
Traceback (most recent call last):
File "ffdnispdb/cron_task.py", line 113, in <module>
db.session.commit()
File "/srv/www/ffdn.org/db/env/local/lib/python2.7/site-packages/sqlalchemy/orm/scoping.py", line 149, in do
return getattr(self.registry(), name)(*args, **kwargs)
File "/srv/www/ffdn.org/db/env/local/lib/python2.7/site-packages/sqlalchemy/orm/session.py", line 721, in commit
self.transaction.commit()
File "/srv/www/ffdn.org/db/env/local/lib/python2.7/site-packages/sqlalchemy/orm/session.py", line 361, in commit
self.session.dispatch.after_commit(self.session)
File "/srv/www/ffdn.org/db/env/local/lib/python2.7/site-packages/sqlalchemy/event.py", line 372, in __call__
fn(*args, **kw)
File "/srv/www/ffdn.org/db/env/local/lib/python2.7/site-packages/flask_sqlalchemy/__init__.py", line 170, in session_signal_after_commit
models_committed.send(session.app, changes=d.values())
File "/srv/www/ffdn.org/db/env/local/lib/python2.7/site-packages/blinker/base.py", line 267, in send
for receiver in self.receivers_for(sender)]
File "/srv/www/ffdn.org/db/ffdn-db/ffdnispdb/models.py", line 294, in _after_flush
cls.update_document(writer, model)
File "/srv/www/ffdn.org/db/ffdn-db/ffdnispdb/models.py", line 277, in update_document
writer.update_document(**kw)
File "/srv/www/ffdn.org/db/env/local/lib/python2.7/site-packages/whoosh/writing.py", line 477, in update_document
self.add_document(**fields)
File "/srv/www/ffdn.org/db/env/local/lib/python2.7/site-packages/whoosh/writing.py", line 750, in add_document
for tbytes, freq, weight, vbytes in items:
File "/srv/www/ffdn.org/db/env/local/lib/python2.7/site-packages/whoosh/fields.py", line 166, in index
raise ValueError("%r is not unicode or sequence" % value)
ValueError: '' is not unicode or sequence
```
2017-03-15 17:40:04.006775: Attempting to update <ISP u'tmp-fai'>
last successful update=2015-09-07 15:35:52.376574+02:00
last update attempt=2017-03-15 17:20:03.941921+01:00
next update was scheduled 554 days, 15:04:11.630406 ago
strike=0
Traceback (most recent call last):
File "ffdnispdb/cron_task.py", line 113, in <module>
db.session.commit()
File "/srv/www/ffdn.org/db/env/local/lib/python2.7/site-packages/sqlalchemy/orm/scoping.py", line 149, in do
return getattr(self.registry(), name)(*args, **kwargs)
File "/srv/www/ffdn.org/db/env/local/lib/python2.7/site-packages/sqlalchemy/orm/session.py", line 721, in commit
self.transaction.commit()
File "/srv/www/ffdn.org/db/env/local/lib/python2.7/site-packages/sqlalchemy/orm/session.py", line 361, in commit
self.session.dispatch.after_commit(self.session)
File "/srv/www/ffdn.org/db/env/local/lib/python2.7/site-packages/sqlalchemy/event.py", line 372, in __call__
fn(*args, **kw)
File "/srv/www/ffdn.org/db/env/local/lib/python2.7/site-packages/flask_sqlalchemy/__init__.py", line 170, in session_signal_after_commit
models_committed.send(session.app, changes=d.values())
File "/srv/www/ffdn.org/db/env/local/lib/python2.7/site-packages/blinker/base.py", line 267, in send
for receiver in self.receivers_for(sender)]
File "/srv/www/ffdn.org/db/ffdn-db/ffdnispdb/models.py", line 294, in _after_flush
cls.update_document(writer, model)
File "/srv/www/ffdn.org/db/ffdn-db/ffdnispdb/models.py", line 277, in update_document
writer.update_document(**kw)
File "/srv/www/ffdn.org/db/env/local/lib/python2.7/site-packages/whoosh/writing.py", line 477, in update_document
self.add_document(**fields)
File "/srv/www/ffdn.org/db/env/local/lib/python2.7/site-packages/whoosh/writing.py", line 750, in add_document
for tbytes, freq, weight, vbytes in items:
File "/srv/www/ffdn.org/db/env/local/lib/python2.7/site-packages/whoosh/fields.py", line 166, in index
raise ValueError("%r is not unicode or sequence" % value)
ValueError: '' is not unicode or sequence
```
```
❯ curl -s https://mycelium-fai.org/isp.json
{
"name": "Mycélium",
"description": "Essaimage dans la région lilloise",
"website": "https://mycelium-fai.org/",
"email": "chti-data-network@lists.ffdn.org",
"mainMailingList": "chti-data-network@lists.ffdn.org",
"progressStatus": 1,
"memberCount": 5,
"subscriberCount": 0,
"chatrooms": [
"irc://irc.geeknode.net/#tmp-fai"
],
"coordinates": {
"latitude": 50.6296,
"longitude": 3.0704
},
"coveredAreas": [
],
"version": 0.1
}
```
The error was actually caused by the empty field 'covered_areas'.
The problem has been solved with commit 0f6c1645d5.
I think this issue can be closed now.
The error was actually caused by the empty field 'covered_areas'.
The problem has been solved with commit 0f6c1645d5547ca77fac170958360598a4e6e4ad.
I have installed ffdn-db on Debian 8 and I don't have this error when I upload the JSON automatically from the website...
Oh neat! Could you share a
pip freeze
orpip list
?Thanks in advance!
Sorry I haven't noticed your answer...
So, there is the output of
pip freeze
:And there is the output of the
pip list
:I think this issue can be closed now.
The error was actually caused by the empty field 'covered_areas'. The problem has been solved with commit
0f6c1645d5
.@pitchum indeed, you can close it :)