Comments (13)
Hmm, what are the ownership/permissions on /data/Mirrors/project-x/objects/pack/pack-dca3292bf5a38f06677b52995ebf594a2b3dd4d5.idx
?
from docker-gitlab-mirrors.
ϟ ls -al mirrors/project-x/objects/pack/
total 744
drwxr-xr-x@ 4 webdevotion staff 136 Jul 13 17:38 .
drwxr-xr-x@ 4 webdevotion staff 136 Jul 13 17:31 ..
-r--r--r-- 1 webdevotion staff 40412 Jul 13 17:38 pack-dca3292bf5a38f06677b52995ebf594a2b3dd4d5.idx
-r--r--r-- 1 webdevotion staff 337625 Jul 13 17:38 pack-dca3292bf5a38f06677b52995ebf594a2b3dd4d5.pack
from docker-gitlab-mirrors.
Very strange that those files are read-only.. Your user (webdevotion) is 1000, yeah?
from docker-gitlab-mirrors.
ϟ whoami
webdevotion
ϟ id -u
501
Changed the script to use $(id -u)
and tried with a hardcoded 501
in there. Same result.
from docker-gitlab-mirrors.
Ah, maybe it's not that weird. All of my pack and idx files are also read-only.
Change your GITLAB_MIRROR_GITLAB_UID
to 501
and it should work.
from docker-gitlab-mirrors.
I tried your suggestions in a couple of flavours to no avail.
Thank you for responding so swiftly.
With my host system's user:
-e GITLAB_MIRROR_GITLAB_UID=501 \
-e GITLAB_MIRROR_GITLAB_USER=webdevotion \
With a git
user ( just because I can ):
-e GITLAB_MIRROR_GITLAB_UID=501 \
-e GITLAB_MIRROR_GITLAB_USER=git \
And with the user that I created in gitlab to use gitlab-mirrors:
-e GITLAB_MIRROR_GITLAB_UID=501 \
-e GITLAB_MIRROR_GITLAB_USER=gitmirror \
I'm obviously missing something here.
from docker-gitlab-mirrors.
Just checked the users on the gitlab container:
$ cut -d: -f1 /etc/passwd
root
daemon
bin
sys
sync
games
man
lp
mail
news
uucp
proxy
www-data
backup
list
irc
gnats
nobody
libuuid
syslog
sshd
git
So, shouldn't I be using git
as the value of GITLAB_MIRROR_GITLAB_USER
?
from docker-gitlab-mirrors.
Daaah, my apologies, another documentation error.
Firstly, change GITLAB_MIRROR_GITLAB_UID
to GITLAB_MIRROR_UID
, it should remain 501
, however.
As for GITLAB_MIRROR_GITLAB_USER
, that is the username for the gitlab account that will be performing mirroring. GITLAB_MIRROR_USER
however, defaults to "git"
which should be correct for most configurations.
from docker-gitlab-mirrors.
Any luck?
from docker-gitlab-mirrors.
I've put the 'chown' command in the update script in comments now in a personal fork of this repo and am sailing smoothly atm.
What's the purpose of the 'chown'?
from docker-gitlab-mirrors.
Glad to hear you at least found a workaround. Without chown
I'm fairly certain I was ending up with root-owned data. Do you mind me asking what distro you're using? I'd like to see if I can reproduce my problem with the crown calls removed.
👍
from docker-gitlab-mirrors.
Also thanks for the follow up. :)
On Sat, Jul 16, 2016, 5:40 PM webdevotion [email protected] wrote:
I've put the 'chown' command in the update script in comments now in a
personal fork of this repo and am sailing smoothly atm.What's the purpose of the 'chown'?
—
You are receiving this because you commented.Reply to this email directly, view it on GitHub
#5 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAAknldTSpP3XSInef7gDomkbqdF5DOeks5qWV3XgaJpZM4JLjXk
.
from docker-gitlab-mirrors.
@Klowner Ubuntu 14.04 and 16.04
from docker-gitlab-mirrors.
Related Issues (8)
- README.md: incorrect commands in quickstart section? HOT 6
- Publish it to the main docker registry? HOT 3
- the example script doesn't work in cron HOT 2
- Typo in Readme HOT 1
- There was an unknown issue with manage_gitlab_project.py HOT 8
- Investigate GITLAB_MIRROR_NEW_PUBLIC option HOT 5
- Logfile should be exposable to a volume
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docker-gitlab-mirrors.