Closed infrared0 closed 2 years ago
Hmm, sorry I didn't catch this earlier! I definitely tested if coltedb worked without colte-prepaid installed, but maybe psycopg2 was installed for some other reason on my test machine. Removing the dependency is straightforward! I'll open a pull request in a moment. Could you take a look and see if it makes sense?
This should be resolved by https://github.com/uw-ictd/colte/pull/113 . I've tested locally on a completely fresh debian Buster vm, and am able to add a user with coltedb when only colte-cn-4g is installed.
After a fresh apt install of package colte-cn-4g on Ubuntu 20.04 without postgres already installed, coltedb script fails with the following error:
Colte config.yml file initially did not have metering turned on.
Solved initially by also installing colte-prepaid package, which resulted in the following :
Next ran
colteconf update
with metering set totrue
in config.yml file to trigger database migrations and haulage install. Finally rancolteconf update
with metering set tofalse
to ultimately turn off metering. After that coltedb worked fine.I believe we either want to include psycopg2 as a dependency to colte-cn-4g, or remove the dependency if the postgres database is not needed without haulage?