Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Database initialization #55

Open
shcorya opened this issue Aug 17, 2024 · 1 comment
Open

Database initialization #55

shcorya opened this issue Aug 17, 2024 · 1 comment

Comments

@shcorya
Copy link

shcorya commented Aug 17, 2024

Running the docker container from ghcr.io successfully creates the config file. Upon running the container a second time, starting with a fresh Postgres database, the following error is thrown.

goroutine 1 [running]:
go.mau.fi/util/dbutil.(*UpgradeTable).Register(0xf8d480, 0x15?, 0xc000105018?, 0x28?, {0xc0002aa880?, 0xb1a1ea?}, 0x30?, 0xb49138?)
      /go/pkg/mod/go.mau.fi/[email protected]/dbutil/upgradetable.go:50 +0x34e
go.mau.fi/util/dbutil.(*UpgradeTable).RegisterFSPath(0xb09d84?, {0xc21f00, 0xc25500}, {0xc17f18, 0x1})
      /go/pkg/mod/go.mau.fi/[email protected]/dbutil/upgradetable.go:281 +0x39b
go.mau.fi/util/dbutil.(*UpgradeTable).RegisterFS(...)
      /go/pkg/mod/go.mau.fi/[email protected]/dbutil/upgradetable.go:259
github.com/beeper/chatwoot/database.init.0()
      /build/database/statestore.go:15 +0x3a
panic: tried to override upgrade at 0 ('Latest revision') with 'Initial tables'
@shcorya
Copy link
Author

shcorya commented Aug 17, 2024

Running the older version ghcr.io/beeper/chatwoot:39c97f07b06cd6e24547851ba2fe6959ad9472b8 initializes the database, but throws this error:

2024-08-17T03:10:07Z FTL Failed to initialize crypto helper error="failed to load olm account: ERROR: column \"key_backup_version\" does not exist (SQLSTATE 42703)"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant