404 error for all custom uploaded avatars. Am I missed some configuration?
https://github.com/sameersbn/docker-gitlab/commit/52b669a7a3e36a1d51699435139e83210e723073
move uploads -> shared/public/uploads
Or setup: GITLAB_UPLOADS_STORAGE_PATH=/home/git/gitlab/public
Yep. It works...
Hm... @solidnerd Maybe it has to be configured with the default value?
move uploads -> shared/public/uploads
2018/02/25 22:03:52 error: POST "/groupname/newproject": handleFileUploads: extract files from multipart: mkdir for tempfile: mkdir /home/git/gitlab/public/uploads: file exists
"uploads" directory should exist for tmpfiles creations. Strange behavior
will this fixed in the next update?
Confirmed, It requires to keep uploads folder.
Just new uploading the avatars is also working
it worked also on for me, thank you @shkrid
setup: GITLAB_UPLOADS_STORAGE_PATH=/home/git/gitlab/public
Works for me. Thank you @shkrid .
then GITLAB_UPLOADS_STORAGE_PATH=/home/git/gitlab/public should be the default value.
Moving uploads fixed it for us:
mkdir /home/git/gitlab/shared/public
mv /home/git/data/uploads /home/git/data/shared/public/uploads
chown -R git:git /home/git/data/shared/public
For those who moved the uploads dir - check your backups.
it works by setting the environment.
@maikelvl works well, but you need to delete /home/git/gitlab/public/uploads link or you will not be able to upload any avatar.
@leslau Thanks.
Here the /home/git/gitlab/public/uploads directory exists and I'm able to upload. 馃槈
I added to my docker run script with --env GITLAB_UPLOADS_STORAGE_PATH=/home/git/gitlab/public and it worked. Thanks @shkrid.
But I agree with @jostyee, these kind of changes could use default values to allow previous installations to work properly without issues.
If I've moved uploads to shared/public/uploads. Will it work on latest version? I've looked it's changed again. :-) Thanks for help.
@f3l1x no, you need to move it back to /home/git/data/uploads
@leslau Thanks. I've thought so.
Most helpful comment
https://github.com/sameersbn/docker-gitlab/commit/52b669a7a3e36a1d51699435139e83210e723073
move uploads -> shared/public/uploads
Or setup: GITLAB_UPLOADS_STORAGE_PATH=/home/git/gitlab/public