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

After 1.1.0 upgrade: Failed to initialize ORM engine: strconv.ParseInt: parsing "...": invalid syntax #1267

Closed
2 of 7 tasks
Funzinator opened this issue Mar 15, 2017 · 5 comments
Labels
Milestone

Comments

@Funzinator
Copy link

  • Gitea version (or commit ref): 1.1.0
  • Git version: 2.11.1
  • Operating system: FreeBSD
  • 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:
2017/03/15 17:01:36 [I] Log Mode: File(Info)
2017/03/15 17:01:36 [I] XORM Log Mode: File(Info)
2017/03/15 17:01:36 [I] Cache Service Enabled
2017/03/15 17:01:36 [I] Session Service Enabled
2017/03/15 17:01:36 [I] Mail Service Enabled
2017/03/15 17:01:36 [I] Notify Mail Service Enabled
2017/03/15 17:01:36 [I] Migration: create repo unit table and add units for all repos
2017/03/15 17:01:37 [I] Migration: set protect branches updated with created
2017/03/15 17:01:37 [I] Migration: add external login user
2017/03/15 17:01:37 [I] Migration: generate and migrate Git hooks
2017/03/15 17:01:38 [I] Migration: use new avatar path name for security reason
2017/03/15 17:01:38 [...itea/routers/init.go:54 GlobalInit()] [E] Failed to initialize ORM engine: migrate: do migrate: strconv.ParseInt: parsing "b3f11dbac06e95476f532b503cf70d8c": invalid syntax

Description

After I had the same issue like #1261 and dropped the 2 indexes, I got this error. I have no idea where b3f11dbac06e95476f532b503cf70d8c comes from.

@Funzinator Funzinator changed the title Failed to initialize ORM engine: strconv.ParseInt: parsing "...": invalid syntax After 1.1.0 upgrade: Failed to initialize ORM engine: strconv.ParseInt: parsing "...": invalid syntax Mar 15, 2017
@xoxys
Copy link
Contributor

xoxys commented Mar 20, 2017

Same here

@Funzinator
Copy link
Author

short update: The hash (b3f11...) comes from an avatar that has been renamed from id to the hash. But the upgrade failed after moving the avatar files and retries to rename all avatar files (already hashed, not a valid int value) to hashes on each start.

Hope that helps.

For now I reverted the upgrade using a previous backup and didn't try again yet.

@strk
Copy link
Member

strk commented Mar 22, 2017

@lunny this one seems for you, please give highest priority. We'll need a better way to test upgrades before releases (call community for test would be great)

@lunny
Copy link
Member

lunny commented Mar 22, 2017

We have fixed this via #1197. Please confirm that PR resolved your problem or wait for v1.1.1

@lunny lunny modified the milestones: 1.1.3, 1.1.1 Jul 13, 2017
@lunny lunny added the type/bug label Jul 13, 2017
@lunny
Copy link
Member

lunny commented Jul 13, 2017

It should be fixed by #1197.

@lunny lunny closed this as completed Jul 13, 2017
@go-gitea go-gitea locked and limited conversation to collaborators Nov 23, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

4 participants