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

Avatars not persist docker #14176

Closed
1 task done
vdeville opened this issue Dec 28, 2020 · 7 comments
Closed
1 task done

Avatars not persist docker #14176

vdeville opened this issue Dec 28, 2020 · 7 comments
Labels
topic/ui Change the appearance of the Gitea UI

Comments

@vdeville
Copy link

  • Gitea version (or commit ref): 1.13
  • Git version: Docker built-in
  • Database:
    • MySQL

Description

Hello,

I use gitea inside docker but today after multiple deletion and creation of the container with mapped data to a volume, i found a bug. Organization avatars not persists.
Here, my docker-compose.yaml file:

version: '3'
services:
  web:
    image: gitea/gitea:1.13
    volumes:
      - git_data:/data
      - ./app.ini:/data/gitea/conf/app.ini
    ports:
      - "127.0.0.1:3000:3000"
      - "2222:22"
    depends_on:
      - db
    restart: unless-stopped

  db:
    image: mariadb:latest
    restart: unless-stopped
    environment:
      - MYSQL_ROOT_PASSWORD=xx
      - MYSQL_DATABASE=gitea
      - MYSQL_USER=gitea
      - MYSQL_PASSWORD=xx
    volumes:
      - db_data/:/var/lib/mysql

volumes:
  db_data:
  git_data:

Screenshots

Capture d’écran 2020-12-29 à 00 22 59

@lunny
Copy link
Member

lunny commented Dec 29, 2020

What's the network request and response on chrome dev tool?

@vdeville
Copy link
Author

404 not found

@lunny
Copy link
Member

lunny commented Dec 30, 2020

Have you changed your app.ini?

@vdeville
Copy link
Author

Waht the settings you want i give to you ?

Here my app.ini:

APP_NAME = GIT
RUN_MODE = prod
RUN_USER = git

[database]
DB_TYPE  = mysql
HOST     = db:3306
NAME     = gitea
USER     = gitea
PASSWD   = *****
SSL_MODE = disable
CHARSET  = utf8
PATH     = /app/gitea/data/gitea.db

[repository]
ROOT = /data/git/gitea-repositories

[ui]
DEFAULT_SHOW_FULL_NAME = True

[server]
LFS_CONTENT_PATH = /data/git/lfs/
LFS_START_SERVER = true
ROOT_URL         = https://*****/
START_SSH_SERVER = false
DOMAIN           = *****
SSH_PORT         = 2222
ENABLE_GZIP      = True
LANDING_PAGE     = explore
SSH_DOMAIN       = *****
HTTP_PORT        = 3000
OFFLINE_MODE     = false
DISABLE_SSH      = false
LFS_JWT_SECRET   = *****

[log]
# ROOT_PATH = /data/logs/
LEVEL     = error
MODE      = console
ROOT_PATH = /app/gitea/log

[service]
REGISTER_EMAIL_CONFIRM            = true
DISABLE_REGISTRATION              = true
ENABLE_CAPTCHA                    = true
REQUIRE_SIGNIN_VIEW               = true
ENABLE_NOTIFY_MAIL                = true
DEFAULT_ORG_VISIBILITY            = private
ALLOW_ONLY_EXTERNAL_REGISTRATION  = false
DEFAULT_KEEP_EMAIL_PRIVATE        = false
DEFAULT_ALLOW_CREATE_ORGANIZATION = true
DEFAULT_ENABLE_TIMETRACKING       = true
NO_REPLY_ADDRESS                  = ****

[attachment]
ENABLED       = True
ALLOWED_TYPES = image/jpeg|image/png|application/octet-stream|application/x-gzip|text/plain
MAX_SIZE      = 150
MAX_FILES     = 5

[session]
PROVIDER      = file
COOKIE_SECURE = false
COOKIE_NAME   =  ****

[security]
LOGIN_REMEMBER_DAYS  = 30
COOKIE_USERNAME      = user
COOKIE_REMEMBER_NAME = name
INSTALL_LOCK         = true
INTERNAL_TOKEN       = ******

[other]
SHOW_FOOTER_VERSION = false

[openid]
ENABLE_OPENID_SIGNIN = false
ENABLE_OPENID_SIGNUP = false

[picture]
DISABLE_GRAVATAR        = false
ENABLE_FEDERATED_AVATAR = true

[oauth2]
JWT_SECRET = ******

@zeripath
Copy link
Contributor

this will be because the default avatar storage location has not ended up on your data partition

@vdeville
Copy link
Author

Okay, what is the parameter to add ?

@silverwind
Copy link
Member

Should be fixed by #14217.

@go-gitea go-gitea locked and limited conversation to collaborators Feb 11, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
topic/ui Change the appearance of the Gitea UI
Projects
None yet
Development

No branches or pull requests

5 participants