سؤال

  1. لقد قمت بتثبيت gitlab في /home/myuser/gitlab.
    1. لقد قمت بإنشاء ممثل testing
    2. بعد الإرشادات ، أضفت جهاز تحكم عن بعد git@localhost:root/testing.git

إليكم ملف/home/myhome/.ssh/config

Host mylocalhost
Hostname localhost
User git
IdentityFile /home/myuser/.ssh/id_rsa

عندما أركض ssh mylocalhost, ، لدي الرسالة الصحيحة Welcome to GitLab, Administrator!. ولكن بعد ذلك ، أحصل على الإدخال التالي

debug2: channel 0: rcvd eof
debug2: channel 0: output open -> drain
debug2: channel 0: obuf empty
debug2: channel 0: close_write
debug2: channel 0: output drain -> closed
debug1: client_input_channel_req: channel 0 rtype exit-status reply 0
debug1: client_input_channel_req: channel 0 rtype eow@openssh.com reply 0
debug2: channel 0: rcvd eow
debug2: channel 0: close_read
debug2: channel 0: input open -> closed
debug2: channel 0: rcvd close
debug3: channel 0: will not send data after close
debug2: channel 0: almost dead
debug2: channel 0: gc: notify user
debug2: channel 0: gc: user detached
debug2: channel 0: send close
debug2: channel 0: is dead
debug2: channel 0: garbage collecting
debug1: channel 0: free: client-session, nchannels 1
debug3: channel 0: status: The following connections are open:
  #0 client-session (t4 r0 i3/0 o3/0 fd -1/-1 cc -1)

Transferred: sent 3284, received 3480 bytes, in 0.4 seconds
Bytes per second: sent 7501.3, received 7949.0
debug1: Exit status 0` 

وفي بلدي GitLab سجل

Started GET "/api/v3/internal/allowed?key_id=4&action=git-receive-pack&ref=_any&project=testing" for 127.0.0.1 at 2013-11-07 16:48:00 +0100

راجع للشغل ، في كل مرة أركض فيها بعضًا git الأمر ، أحصل على الرسالة

ssh: Could not resolve hostname mylocalhost: nodename nor servname provided, or not known
fatal: Could not read from remote repository.

شخص ما لديه فكرة؟

تحديث: التشغيل gitlab-shell/bin/check المخرجات

Check GitLab API access: OK
Check directories and files: 
    /Users/git/repositories: OK

و bundle exec rake gitlab:env:info RAILS_ENV=production المخرجات

System information
System:     Mac OS X 10.9
Current User:   myname
Using RVM:  yes
RVM Version:    1.21.7
Ruby Version:   2.0.0p195
Gem Version:    2.0.3
Bundler Version:1.3.5
Rake Version:   10.1.0

GitLab information
Version:    6.2.0.pre
Revision:   ea72f4f
Directory:  /Users/git/gitlab
DB Adapter: mysql2
URL:        http://localhost
HTTP Clone URL: http://localhost/some-project.git
SSH Clone URL:  git@localhost:some-project.git
Using LDAP: no
Using Omniauth: no

GitLab Shell
Version:    1.7.1
Repositories:   /Users/git/repositories/
Hooks:      /Users/git/gitlab-shell/hooks/
Git:        /usr/bin/git

و الخاص بي gitlab.yml يبدو صحيحا

هل كانت مفيدة؟

المحلول

عند الجري gitlab الخدمة ، أحصل على خادم الويب Gitlab Unicorn لا يعمل.
يعمل مرسل وظيفة Gitlab Sidekiq مع PID 66802.
لكن الجري bundle exec rake gitlab:check RAILS_ENV=production, ، انا حصلت Checking Sidekiq ... Running? ... no

تأكد من قيامك بالتثبيت والشيكات مع المستخدم المناسب في كل خطوة (بين su (الجذر) و su git)

ال OP Newben يؤكد:

عندما أقوم بالتحقق ، يتم تشغيل Sidekiq بالفعل.

بخصوص repos:

لقد غيرت عنوان URL الأصل عن بُعد git remote set-url origin git@localhost:repositories/root/#{myrepo}.git والآن يعمل!

هذا يأتي من قيود جديدة مفروضة مع Gitlab 6.0:

من الآن على مجموعة ليست مجرد دليل للمشاريع. كما يتيح لك إضافة المستخدمين. بعد إضافة المستخدم إلى المجموعة - يحصل تلقائيًا على الوصول إلى جميع المشاريع الحالية والجديدة داخل المجموعة.
يمكنك أيضًا الحصول على العديد من المالكين لمجموعة يمكنها إدارة الأعضاء/المشاريع.

أنظر أيضا "ما هي الاختلافات بين فريق جيتلاب ومجموعة جيتلاب؟".

مع هذا gitlab يصبح أكثر نحو المجموعة. هذا هو السبب في أننا لم نعد ندعم مساحات الأسماء العالمية. يمكن أن يكون المشروع جزءًا من المجموعة أو المستخدم فقط.

المشروع (الخاص بك myrepo.git) يمكن أن يكون جزءًا من المجموعة أو المستخدم فقط (هنا حساب المستخدم root).

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top