Unable to create DB (gearbox setup-db) from scratch (default branch)

Mads Kiilerich mads at kiilerich.com
Thu Apr 13 02:28:07 UTC 2017


On 04/12/2017 07:59 PM, Long Vu wrote:
> + gearbox setup-db -c kallithea.ini --user=admin --password=secret
> --email=admin at example.com --repos=/kallithea/repos --force-yes
> 2017-04-12 17:01:27.872 INFO  [kallithea.model.base] initializing db
> for sqlite:////kallithea/config/kallithea.db?timeout=60
> 2017-04-12 17:01:27.875 INFO  [kallithea.lib.auth] getting information
> about all available permissions
> 2017-04-12 17:01:27.986 ERROR [gearbox] (sqlite3.OperationalError) no
> such table: permissions [SQL: u'SELECT permissions.permission_id AS
> permissions_permission_id, permissions.permission_name AS
> permissions_per
> mission_name \nFROM permissions']
> Traceback (most recent call last):

Oh. That's a bug from the TG2 port. Strange coincidence we didn't find that.

I tried to fix that in 
https://bitbucket.org/conservancy/kallithea/pull-requests/318/fix-create-db-and-gravatar-changes/diff 
- can you confirm that?

/Mads


More information about the kallithea-general mailing list