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

do migrate: database schema is locked: main #5779

Closed
2 of 7 tasks
xstrex opened this issue Jan 19, 2019 · 6 comments
Closed
2 of 7 tasks

do migrate: database schema is locked: main #5779

xstrex opened this issue Jan 19, 2019 · 6 comments

Comments

@xstrex
Copy link

xstrex commented Jan 19, 2019

  • Gitea version (or commit ref): Gitea version 6822a89 built with: bindata, sqlite, sqlite_unlock_notify
  • Git version: git version 2.18.1
  • Operating system: Docker
  • 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:

Description

Running latest version via docker gitea/gitea:latest, just updated today, now gitea won't start.

The following is from inside the container:

bash-4.4# su - git
49461decd8c4:~$ cd /app/gitea/
49461decd8c4:/app/gitea$ ./gitea migrate
2019/01/19 22:32:55 [I] XORM Log Mode: File(Info)
2019/01/19 22:32:55 [T] AppPath: /app/gitea/gitea
2019/01/19 22:32:55 [T] AppWorkPath: /app/gitea
2019/01/19 22:32:56 [T] Custom path: /data/gitea
2019/01/19 22:32:56 [T] Log path: /data/gitea/log
2019/01/19 22:32:56 [I] Migration: rename repo is_bare to repo is_empty
2019/01/19 22:32:56 [...gitea/cmd/migrate.go:47 runMigrate()] [E] Failed to initialize ORM engine: migrate: do migrate: database schema is locked: main

Possibly related to: #5759
Similar error, but not identical.

@zeripath
Copy link
Contributor

Fixed in #5776

@zeripath
Copy link
Contributor

This is the second coming of #5759 unfortunately

@xstrex
Copy link
Author

xstrex commented Jan 19, 2019

Just did a pull, now the gitea.log is showing:

2019/01/19 22:46:09 [...itea/routers/init.go:81 GlobalInit()] [E] ORM engine initialization failed: migrate: do migrate: database schema is locked: main
2019/01/19 22:46:09 [I] Log Mode: File(Info)
2019/01/19 22:46:09 [I] XORM Log Mode: File(Info)
2019/01/19 22:46:09 [I] Cache Service Enabled
2019/01/19 22:46:09 [I] Session Service Enabled
2019/01/19 22:46:09 [I] Beginning ORM engine initialization.
2019/01/19 22:46:09 [I] ORM engine initialization attempt #1/10...
2019/01/19 22:46:09 [I] Migration: rename repo is_bare to repo is_empty
2019/01/19 22:46:09 [I] Backing off for 3 seconds
2019/01/19 22:46:12 [I] ORM engine initialization attempt #2/10...
2019/01/19 22:46:12 [I] Migration: rename repo is_bare to repo is_empty
2019/01/19 22:46:12 [I] Backing off for 3 seconds
2019/01/19 22:46:15 [I] ORM engine initialization attempt #3/10...
2019/01/19 22:46:15 [I] Migration: rename repo is_bare to repo is_empty
2019/01/19 22:46:15 [I] Backing off for 3 seconds
2019/01/19 22:46:18 [I] ORM engine initialization attempt #4/10...
2019/01/19 22:46:18 [I] Migration: rename repo is_bare to repo is_empty
2019/01/19 22:46:18 [I] Backing off for 3 seconds
2019/01/19 22:46:21 [I] ORM engine initialization attempt #5/10...
2019/01/19 22:46:21 [I] Migration: rename repo is_bare to repo is_empty
2019/01/19 22:46:21 [I] Backing off for 3 seconds
2019/01/19 22:46:24 [I] ORM engine initialization attempt #6/10...
2019/01/19 22:46:24 [I] Migration: rename repo is_bare to repo is_empty
2019/01/19 22:46:24 [I] Backing off for 3 seconds
2019/01/19 22:46:27 [I] ORM engine initialization attempt #7/10...
2019/01/19 22:46:27 [I] Migration: rename repo is_bare to repo is_empty
2019/01/19 22:46:27 [I] Backing off for 3 seconds

...and repeating

@zeripath
Copy link
Contributor

Yup #5776 will fix

@xstrex
Copy link
Author

xstrex commented Jan 19, 2019

Damn man, thanks for the quick response!

@techknowlogick
Copy link
Member

Closing as linked PR has been merged.

@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
None yet
Projects
None yet
Development

No branches or pull requests

3 participants