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

Migration stops if .ssh dir is missing #1179

Closed
2 of 7 tasks
tobias-- opened this issue Mar 10, 2017 · 0 comments · Fixed by #1180
Closed
2 of 7 tasks

Migration stops if .ssh dir is missing #1179

tobias-- opened this issue Mar 10, 2017 · 0 comments · Fixed by #1180
Labels
Milestone

Comments

@tobias--
Copy link

  • Gitea version (or commit ref): 1.1.0
  • Git version: 2.10.0.windows.1
  • Operating system: Windows Server 2008 R2
  • 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/10 08:25:22 [I] Log Mode: File(Trace)
2017/03/10 08:25:22 [I] XORM Log Mode: File(Trace)
2017/03/10 08:25:22 [I] Cache Service Enabled
2017/03/10 08:25:22 [I] Session Service Enabled
2017/03/10 08:25:22 [I] Mail Service Enabled
2017/03/10 08:25:22 [I] Notify Mail Service Enabled
2017/03/10 08:25:22 [I] Migration: create user column allow create organization
2017/03/10 08:25:22 [I] Migration: create repo unit table and add units for all repos
2017/03/10 08:25:22 [I] Migration: set protect branches updated with created
2017/03/10 08:25:22 [I] Migration: add external login user
2017/03/10 08:25:22 [I] Migration: generate and migrate Git hooks
2017/03/10 08:25:23 [I] Migration: use new avatar path name for security reason
2017/03/10 08:25:24 [I] Migration: rewrite authorized_keys file via new format
2017/03/10 08:25:24 [...itea/routers/init.go:54 GlobalInit()] [E] Failed to initialize ORM engine: migrate: do migrate: open C:\Windows\system32\config\systemprofile\.ssh\authorized_keys.tmp: The system cannot find the path specified.

Description

Migration from 1.0.2 to 1.1.0 fails when the folder C:\Windows\system32\config\systemprofile\.ssh does not exist. Since SSH has been disabled in this setup, there never were authorized keys that need to be migrated.

After creating this directory, gitea starts up just fine.

@lunny lunny added the type/bug label Mar 10, 2017
@lunny lunny added this to the 1.2.0 milestone Mar 10, 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

Successfully merging a pull request may close this issue.

2 participants