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

Failed to initialize ORM engine during 1.0.2 -> 1.5.0-rc1 upgrade (no such column: is_fsck_enabled) #4451

Closed
2 of 7 tasks
t3hG04T opened this issue Jul 16, 2018 · 5 comments · Fixed by #4495
Closed
2 of 7 tasks
Labels
Milestone

Comments

@t3hG04T
Copy link

t3hG04T commented Jul 16, 2018

  • Gitea version (or commit ref): 1.5.0-rc1
  • Git version: 2.18.0
  • Operating system: FreeBSD 11 (jail in FreeNAS 11.1)
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No
    • Not relevant
  • Log gist:
2018/07/16 21:54:13 [I] Log Mode: File(Info)
2018/07/16 21:54:13 [I] XORM Log Mode: File(Info)
2018/07/16 21:54:13 [I] Cache Service Enabled
2018/07/16 21:54:13 [I] Session Service Enabled
2018/07/16 21:54:13 [I] Mail Service Enabled
2018/07/16 21:54:13 [I] Migration: add tags to releases and sync existing repositories
2018/07/16 21:54:13 [...itea/routers/init.go:60 GlobalInit()] [E] Failed to initialize ORM engine: migrate: do migrate: select repos [offset: 0]: no such column: is_fsck_enabled

Description

Hello good people of gitea! 😄

I'm currently migrating from gogs and had successfully moved to gitea 1.0.2.

I've just compiled the binary from 1.5.0-rc1 source (checked out the tag) and started the service, but got greeted with the quoted log message (and insta crash).

Looking here https://github.com/go-gitea/gitea/blob/master/models/migrations/migrations.go seems like I'm getting an error during v40 -> v41, but the aforementioned column is only added in step v61 -> v62?

Thank you in advance fo the help!

Screenshots

@t3hG04T
Copy link
Author

t3hG04T commented Jul 16, 2018

There is a chance I figured it out (I had an educated guess that the Repository object has changed over the course of the version and it is passed during the migration proceedings).

I worked around the issue by stopping, building and restarting the app three times, for the following tags:

  • v1.3.2
  • v1.4.3
  • v1.5.0-rc1

Now I am merrily running 1.5.0-rc1. Hope this helps make the app better ^^

@RickZeeland
Copy link

RickZeeland commented Aug 21, 2018

Still getting this error when upgrading from 1.1 to 1.5 on Windows 10 with a PostgreSQL database:
Failed to initialize ORM engine: migrate: do migrate: select repos [offset: 0]: pq: column "is_fsck_enabled" does not exist
When installing 1.4 first and then 1.5 everything works.

@glaszig
Copy link
Contributor

glaszig commented Oct 19, 2018

exactly the same scenario as @RickZeeland. but on freebsd 10.4, installing from ports.

@t3hG04T
Copy link
Author

t3hG04T commented Oct 19, 2018

@RickZeeland , @glaszig : If you click the linked pull request you can see that the issue will be resolved in the 1.6 release (further examining the 1.5.2 code confirms that the fix is not in yet).

If you opt for installing from ports you will have to wait for the release and update, but if building from source you can go ahead and checkout the v1.6.0-rc1 tag and the problem should be gone :).

@glaszig
Copy link
Contributor

glaszig commented Oct 19, 2018

@t3hG04T thank you. that clears the situation up for me. meanwhile, since my gitea installation was vanilla anyway, i just deleted the database, installed 1.5 from ports and started all over. used that opportunity to "back port" dark mode as well.

@go-gitea go-gitea locked and limited conversation to collaborators Nov 24, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants