inconsistent state after install (nightly branch)
after installing:
opkg install pakon-light
pakon-show
doesn't work
Traceback (most recent call last):
File "/usr/bin/pakon-show", line 120, in <module>
data=json.loads(response)
File "/usr/lib/python3.5/json/__init__.py", line 319, in loads
return _default_decoder.decode(s)
File "/usr/lib/python3.5/json/decoder.py", line 339, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib/python3.5/json/decoder.py", line 357, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
An empty string is returned from the pakon socket. To make it working you need to call:
/usr/bin/python3 /usr/libexec/pakon-light/archive.py && /usr/libexec/pakon-light/backup_sqlite.sh /var/lib/pakon.db /srv/pakon/pakon.db.xz
after you create a directory /srv/pakon
otherwise it fails:
Traceback (most recent call last):
File "/usr/libexec/pakon-light/create_db.py", line 14, in <module>
con = sqlite3.connect('/srv/pakon/pakon-archive.db')
sqlite3.OperationalError: unable to open database file
Traceback (most recent call last):
File "/usr/libexec/pakon-light/archive.py", line 35, in <module>
con = sqlite3.connect(__ARCHIVE_DB_PATH__)
So for starters it would be good to fix /usr/libexec/pakon-light/create_db.py
to create the required directory within the script.
And you need to be sure that this script is called before running pakon-show
.