Hello, I have a problem with my GitLab installation.
I can’t visualize my uploaded pics such as my profile pic and repositories pics.
I searched a little about that and I found that this doesn’t occure with all width. For example, if I choose a width of 18, the pic will shows up. But that’s not the case if I choose 15.
https://gitlab.sl-projects.com/uploads/-/system/project/avatar/7/favicon-color.png?width=15
https://gitlab.sl-projects.com/uploads/-/system/project/avatar/7/favicon-color.png?width=18
I checked the log with gitlab-ctl tail
, but I didn’t find anything interesting.
## THIS IS WHEN I GET 18 WIDTH
==> /var/log/gitlab/gitlab-rails/production_json.log <==
{"method":"GET","path":"/uploads/-/system/project/avatar/7/favicon-color.png","format":"html","controller":"UploadsController","action":"show","status":200,"time":"2022-01-26T12:50:16.761Z","params":[{"key":"width","value":"18"},{"key":"model","value":"project"},{"key":"mounted_as","value":"avatar"},{"key":"id","value":"7"},{"key":"filename","value":"favicon-color.png"}],"remote_ip":"thisIsMyIp","user_id":2,"username":"SofianeLasri","ua":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.99 Safari/537.36 Edg/97.0.1072.69","correlation_id":"e3677b84-4e29-4867-aa6d-8eb27a0fe499","meta.user":"SofianeLasri","meta.caller_id":"UploadsController#show","meta.remote_ip":"thisIsMyIp","meta.feature_category":"not_owned","meta.client_id":"user/2","redis_calls":2,"redis_duration_s":0.000753,"redis_read_bytes":302,"redis_write_bytes":1463,"redis_cache_calls":1,"redis_cache_duration_s":0.000341,"redis_cache_read_bytes":121,"redis_cache_write_bytes":70,"redis_shared_state_calls":1,"redis_shared_state_duration_s":0.000412,"redis_shared_state_read_bytes":181,"redis_shared_state_write_bytes":1393,"db_count":4,"db_write_count":0,"db_cached_count":0,"cpu_s":0.0276,"mem_objects":12865,"mem_bytes":1327051,"mem_mallocs":2871,"mem_total_bytes":1841651,"pid":1938615,"db_duration_s":0.00163,"view_duration_s":0.0,"duration_s":0.01308}
==> /var/log/gitlab/gitlab-rails/production.log <==
Started GET "/favicon.ico" for thisIsMyIp at 2022-01-26 13:50:16 +0100
==> /var/log/gitlab/gitlab-exporter/current <==
2022-01-26_12:50:17.22701 127.0.0.1 - - [26/Jan/2022:13:50:17 CET] "GET /sidekiq HTTP/1.1" 200 65685
2022-01-26_12:50:17.22705 - -> /sidekiq
## THIS IS WHEN I GET 15 WIDTH
==> /var/log/gitlab/gitlab-rails/production.log <==
Started GET "/uploads/-/system/project/avatar/7/favicon-color.png?width=15" for thisIsMyIp at 2022-01-26 13:50:17 +0100
Processing by UploadsController#show as HTML
Parameters: {"width"=>"15", "model"=>"project", "mounted_as"=>"avatar", "id"=>"7", "filename"=>"favicon-color.png"}
Completed 200 OK in 17ms (ActiveRecord: 1.9ms | Elasticsearch: 0.0ms | Allocations: 4557)
==> /var/log/gitlab/gitlab-rails/production_json.log <==
{"method":"GET","path":"/uploads/-/system/project/avatar/7/favicon-color.png","format":"html","controller":"UploadsController","action":"show","status":200,"time":"2022-01-26T12:50:17.724Z","params":[{"key":"width","value":"15"},{"key":"model","value":"project"},{"key":"mounted_as","value":"avatar"},{"key":"id","value":"7"},{"key":"filename","value":"favicon-color.png"}],"remote_ip":"thisIsMyIp","user_id":2,"username":"SofianeLasri","ua":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.99 Safari/537.36 Edg/97.0.1072.69","correlation_id":"66876957-1b05-4ef9-9654-733a1e8fb423","meta.user":"SofianeLasri","meta.caller_id":"UploadsController#show","meta.remote_ip":"thisIsMyIp","meta.feature_category":"not_owned","meta.client_id":"user/2","redis_calls":1,"redis_duration_s":0.000235,"redis_read_bytes":181,"redis_write_bytes":746,"redis_shared_state_calls":1,"redis_shared_state_duration_s":0.000235,"redis_shared_state_read_bytes":181,"redis_shared_state_write_bytes":746,"db_count":3,"db_write_count":0,"db_cached_count":0,"cpu_s":0.025518,"mem_objects":9898,"mem_bytes":743168,"mem_mallocs":1828,"mem_total_bytes":1139088,"pid":1938714,"db_duration_s":0.00188,"view_duration_s":0.0,"duration_s":0.01761}
==> /var/log/gitlab/gitlab-rails/production.log <==
Started GET "/favicon.ico" for thisIsMyIp at 2022-01-26 13:50:18 +0100
I installed GitLab with Apache2 throught a proxy. Everything work fine except this bug.
How can I fix that?
Thx in advance.