go-gitea / gitea

Git with a cup of tea! Painless self-hosted all-in-one software development service, including Git hosting, code review, team collaboration, package registry and CI/CD
https://gitea.com
MIT License
44.39k stars 5.43k forks source link

Error 1305: FUNCTION gitea.strftime does not exist #7861

Closed ramlev closed 5 years ago

ramlev commented 5 years ago

Description

When logging in, the heatmap keeps loading, and if i try the endpoint through the Swagger API, i get this response

{ "message": "Error 1305: FUNCTION gitea.strftime does not exist", "url": "https://my.host.com/api/swagger" }

jolheiser commented 5 years ago

Did you change your database settings without a restart?
That error is Gitea trying to run a SQLite function in the DB.
https://github.com/go-gitea/gitea/blob/c42bde719ecf2dd8757453bed18e082d14c1d3fa/models/user_heatmap.go#L25

ramlev commented 5 years ago

/close

Docker container restart, and everything works.