-
Notifications
You must be signed in to change notification settings - Fork 28
IRC channel Guidelines and F.A.Q.
First and foremost is the #gitlab channel on freenode motto.
Have a question? Don't ask to ask! Just ask, and wait to see if anyone answers.
That being said please review How To Ask Questions The Smart Way by Eric S. Raymond. Our IRC community is open, friendly, and helpful. This community is not operated by GitLab staff but by users of GitLab just like you. Some guidelines follow.
- We treat each other with respect as peers and ask you to do the same.
- Some members hang out in this channel 24x7 which means there can be significant delays (usually no more than 24 hours) before you see an answer to your question. If that is the case please be patient and come back to your chat client later.
- When sharing logs or version information about your installation be sure to use an online paste service and providing a link so other channel users can review your information. It is recommended that you edit your pastes to remove personal information.
- If you have a registered nickname with freenode then we can use
MemoServto contact you if you log out before your issue can be addressed. Be aware that this will not always be the case. Hanging out in the channel will be your most reliable form of getting help.
Contact one of the community managers who hang out in the channel: newton, dblessing, sag47.
If you're having trouble visualizing the overall architecture of GitLab then see the GitLab Architectural Overview doc.
gitlabhq provides rake tasks with which you can provide users in the IRC channel with version information and run a quick check on your configuration to ensure it is configured properly within the application. See maintenance rake tasks. In a nutshell we ask that you do the following.
sudo -i -u git
cd gitlab
bundle exec rake gitlab:env:info RAILS_ENV=production
bundle exec rake gitlab:check RAILS_ENV=production
Make sure that all tasks in the check pass. If you have trouble then paste the output of gitlab:env:info and gitlab:check to a paste site and link us in the channel so we may look it over. It is recommended to remove any sensitive information from these tasks or logs that you post should you feel the need.
Note: ~git/ is shorthand for /home/git.
gitlabhq (includes unicorn and sidekiq logs)
-
~git/gitlab/log/containsapplication.log,production.log,sidekiq.log,unicorn.stdout.log,githost.log,satellites.log, andunicorn.stderr.lognormally.
gitlab-shell
~git/gitlab-shell/gitlab-shell.log
ssh
-
/var/log/auth.logauth log (on Ubuntu). -
/var/log/secureauth log (on RHEL/CentOS).
nginx
-
/var/log/nginx/contains error and access logs.
Apache httpd
- Explanation of apache logs.
-
/var/log/apache2/contains error and output logs (on Ubuntu). -
/var/log/httpd/contains error and output logs (on RHEL/CentOS).
redis
-
/var/log/redis/redis.logthere are also logrotated logs there.
There's likely an issue with the permissions on ~git/.ssh/authorized_keys. See OpenSSH F.A.Q. 3.14. In a nutshell assuming you set up GitLab with default settings you should set/have the following permissions.
chmod go-w /home/git /home/git/.ssh
chmod 600 /home/git/.ssh/authorized_keys
chown git\: $HOME/.ssh/authorized_keys
You can test your GitLab ssh connection with the following commands and output.
$ ssh [email protected]
PTY allocation request failed on channel 0
Welcome to GitLab, Sample User!
Connection to gitlab.example.com closed.
If you get a Welcome to GitLab, Anonymous! message then it is likely because you manually modified authorized_keys for the git user. You should only add SSH keys through the GitLab web interface. In Ubuntu users have experienced the Welcome to GitLab, Anonymous! by having multiple versions of ruby installed. To check for multiple versions of ruby run the following one liner.
echo "$PATH" | tr ':' '\n' | sort -u | while read x;do [ -f "$x/ruby" ] && ( echo -n "$x/ruby - ";$x/ruby --version );done
It is recommended to attempt to remove versions other than what is intended.
Since you're on the topic of hacking SSH it is recommended to implement sag47's solution for denying passwords over SSH and giving users a friendly message as to what they did wrong.
This wiki is deprecated, use the docs portal instead https://docs.gitlab.com.