Gitea fails to create or migrate avatar directory correctly. #399

Closed
opened 2025-11-02 03:21:53 -06:00 by GiteaMirror · 3 comments
Owner

Originally created by @Starz0r on GitHub (Feb 25, 2017).

  • Gitea version (or commit ref):
    1.0.0+334-g80f900e
  • Git version:
    2.7.4
  • Operating system:
    Linux Mint 18.1
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No
    • Not relevant
  • Log gist:
10:04:40 [...itea/routers/init.go:54 GlobalInit()] [E] Failed to initialize ORM engine: migrate: do migrate: open /var/www/git/data/avatars: no such file or directory

Description

When updating from the previous master branch I noticed that Gitea would not start, When checking the logs it seems it tries to migrate to solve this issue, but doesn't actually do anything. Creating the /avatars/ directory in the /data/ directory solves the issue of Gitea not being able to start.

Originally created by @Starz0r on GitHub (Feb 25, 2017). - Gitea version (or commit ref): 1.0.0+334-g80f900e - Git version: 2.7.4 - Operating system: Linux Mint 18.1 - Database (use `[x]`): - [ ] PostgreSQL - [x] MySQL - [ ] SQLite - Can you reproduce the bug at https://try.gitea.io: - [ ] Yes (provide example URL) - [ ] No - [x] Not relevant - Log gist: ``` 10:04:40 [...itea/routers/init.go:54 GlobalInit()] [E] Failed to initialize ORM engine: migrate: do migrate: open /var/www/git/data/avatars: no such file or directory ``` ## Description When updating from the previous master branch I noticed that Gitea would not start, When checking the logs it seems it tries to migrate to solve this issue, but doesn't actually do anything. Creating the /avatars/ directory in the /data/ directory solves the issue of Gitea not being able to start.
GiteaMirror added the type/bug label 2025-11-02 03:21:53 -06:00
Author
Owner

@strk commented on GitHub (Feb 25, 2017):

This is fixed by merging #1056

@strk commented on GitHub (Feb 25, 2017): This is fixed by merging #1056
Author
Owner

@strk commented on GitHub (Feb 25, 2017):

@lunny

@strk commented on GitHub (Feb 25, 2017): @lunny
Author
Owner

@lunny commented on GitHub (Feb 26, 2017):

resolved by #1056

@lunny commented on GitHub (Feb 26, 2017): resolved by #1056
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#399