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

Profile Gravatar image won't load #26900

Closed
cairoapcampos opened this issue Sep 4, 2023 · 3 comments
Closed

Profile Gravatar image won't load #26900

cairoapcampos opened this issue Sep 4, 2023 · 3 comments
Labels
issue/needs-feedback For bugs, we need more details. For features, the feature must be described in more detail

Comments

@cairoapcampos
Copy link

Description

When I access the Gitea profile, it takes a while to load the image. At the end of loading it shows the default image. Look:

perfil

I've already tried to access Gitea directly by IP to escape the Reverse Proxy. The problem continued.

Settings:

Environment variables in Docker:

...
GITIA__picture__DISABLE_GRAVATAR="false"
GITIA__picture__ENABLE_FEDERATED_AVATAR="true"
...

Gitea's app.ini (/etc/gitea/app.ini) file after creating the container:

...
[picture]                                        
AVATAR_UPLOAD_PATH = /var/lib/gitea/data/avatars
REPOSITORY_AVATAR_UPLOAD_PATH = /var/lib/gitea/data/gitea/repo-avatars
DISABLE_GRAVATAR = false  
...

Gitea Version

1.20.3

Can you reproduce the bug on the Gitea demo site?

No

Log Gist

No response

Screenshots

No response

Git Version

No response

Operating System

No response

How are you running Gitea?

I use the official image for docker. Currently the image used is 1.20.3-rootless.

Database

MySQL/MariaDB

@lunny
Copy link
Member

lunny commented Sep 5, 2023

You enabled gravatar

DISABLE_GRAVATAR = false  

So maybe you can open you chrome dev console to investigate whether your network is slow to visit Gravatar.

@lunny lunny added issue/needs-feedback For bugs, we need more details. For features, the feature must be described in more detail and removed type/bug labels Sep 5, 2023
@cairoapcampos
Copy link
Author

See some of my profile settings:

Perfil1

Note: I hid the real email address and put an example address.

Perfil2

Profile image loading test using Reverse Proxy.

ComProxy

Profile image loading test without using proxy.

SemProxy

Below I show more information about the test that did not use a proxy. Access is via IP and port. Example: http://IP:8084.

tela1

tela2

@wxiaoguang
Copy link
Contributor

wxiaoguang commented Sep 22, 2023

When I access the Gitea profile, it takes a while to load the image.

It means that ENABLE_FEDERATED_AVATAR="true" service fails.

I guess you don't need it.

You could try to "tune" these 2 options on your admin/config page:

image

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 26, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
issue/needs-feedback For bugs, we need more details. For features, the feature must be described in more detail
Projects
None yet
Development

No branches or pull requests

3 participants