Reports from 3 Sanctuaries all get same errors when running tests:
Test Command:
cd ~/.biblepaycore/watchman
./venv/bin/py.test ./test
Error Message:
============================= test session starts ==============================
platform linux2 -- Python 2.7.12, pytest-3.0.1, py-1.4.31, pluggy-0.3.1
rootdir: /root/.biblepaycore/watchman, inifile:
collected 12 items / 2 errors
==================================== ERRORS ====================================
_____________ ERROR collecting test/unit/models/test_proposals.py ______________
test/unit/models/test_proposals.py:10: in <module>
from models import GovernanceObject, Proposal, Vote
lib/models.py:5: in <module>
import init
lib/init.py:103: in <module>
main()
lib/init.py:94: in main
if not is_database_correctly_configured():
lib/init.py:55: in is_database_correctly_configured
sys.exit(1)
E SystemExit: 1
------------------------------- Captured stdout --------------------------------
[error]: unable to open database file
Cannot connect to database. Please ensure database service is running and user access is properly configured in 'watchman.conf'.
____________ ERROR collecting test/unit/models/test_superblocks.py _____________
test/unit/models/test_superblocks.py:10: in <module>
from models import GovernanceObject, Proposal, Superblock, Vote
lib/models.py:5: in <module>
import init
lib/init.py:103: in <module>
main()
lib/init.py:94: in main
if not is_database_correctly_configured():
lib/init.py:55: in is_database_correctly_configured
sys.exit(1)
E SystemExit: 1
------------------------------- Captured stdout --------------------------------
[error]: unable to open database file
Cannot connect to database. Please ensure database service is running and user access is properly configured in 'watchman.conf'.
!!!!!!!!!!!!!!!!!!! Interrupted: 2 errors during collection !!!!!!!!!!!!!!!!!!!!
=========================== 2 error in 1.08 seconds ============================
===
I tried a fresh watchman install, got same results
Fresh Install:
cd ~/.biblepaycore
rm watchman -R
git clone https://github.com/biblepay/watchman.git
cd watchman
virtualenv venv
venv/bin/pip install -r requirements.txt
Reports from 3 Sanctuaries all get same errors when running tests:
Test Command:
Error Message:
===
I tried a fresh watchman install, got same results
Fresh Install:
===
def is_database_correctly_configured(): https://github.com/biblepay/watchman/blob/c6f4cdc831b45019b1f7b3b6ce99100b5fa7086f/lib/init.py#L40
===
I tried testing the database file, but no issues:
sqlite> select * from votes; 1|531|2|1|2018-07-05 14:26:25.292828|2018-07-05 14:26:25.292866|2018-07-05 14:26:25.292893|f03d601fc8a54c632563ccb6c5fc86899e95ce795f77e89352e631c027fb5555
sqlite> .table governance_objects proposals signals votes outcomes settings superblocks watchdogs
CTRL + D to exit sqlite
===
These sanctuaries are still receiving payments