upload user avatar not working
When trying to upload a image for a user avatar, the image link seems broken. If I use the same image for group avatar or attachement it is working..
And what is the password for the root user if I want to ssh inside the docker?
Kind regards,
Mark
@markozz I suspect the permission on the uploads directory in the data volume might not be correct. Can you try with the new 7.1.0 image docker pull sameersbn/gitlab:7.1.0 and before starting the image run the container with the app:sanitize command. This will try to fix any directory permissions issues
@markozz p.s. I have no issues uploading avatars.
@sameersbn thanks for the quick reply. I updated the docker container, but when I run the container with the app:sanitize command it quits when checking the tmp directory permissions.. output log: Starting openssh server... Updating CA certificates... Starting redis server... Checking repository directories permissions... Checking satellites directories permissions... Checking uploads directory permissions... Checking tmp directory permissions...
@markozz thats it. now you have to start the image normally. app:sanitize is a maintenance command, it exits once its job is done.
@sameersbn hmm in that case it is still not working for me.. weird Maybe I should give it another try totaly from scratch and remove the mounted storages.
@markozz can you also try uploading an avatar for a group. I guess it will probably not work as well. Here I have no problems uploading user and group avatars.
Also can you paste your docker run command.
@sameersbn uploading attachements or group avatars works with no problems, it only gives problem for the user.
@markozz i guess you might need to check the logs.
@sameersbn I still have the same problem with the build from scratch.. I use the following run command to run the container:
sudo docker run --name=gitlab -d -p 10080:80 -p 10022:22 -p 10443:443 --link postgresql:postgresql -e 'DB_USER=_' -e 'DB_PASS=<' -e 'DB_NAME=***' -e 'GITLAB_HTTPS=true' -e 'SSL_SELF_SIGNED=true' -e 'SMTP_USER=_' -e 'SMTP_PASS=<' -e 'LDAP_ENABLED=true' -e 'LDAP_HOST=****' -e 'LDAP_BIND_DN=' -e 'LDAP_PASS=****' -e 'LDAP_BASE=*****' -v /dataStores/gitlab/data:/home/git/data sameersbn/gitlab:7.1.0
How can I check the logs other than those that are reported to the docker log? Do I need to add the nsenter container to your container ?
@markozz I will check with your command later today.
For checking logs, you can view the rails logs in the admin panel of gitlab. Also you can use nsenter to gain access to the container terminal. Please take a look at https://github.com/jpetazzo/nsenter on getting shell access to a running container. Once you have installed nsenter using the jpetazzo/nsenter image, you can simply run sudo docker-enter gitlab and you should have shell access.
@sameersbn I think I found the issue, after setting the parameters for github host and port it seems like it is working for me right now.
Thanks for your help :+1: