No connection
Hello. I'm trying to install gitlab from the wiki, but it is clearly out of date. In theory, the gitlab works, but I can't connect to it.
- eselect profile list
[12] default/linux/amd64/17.1/no-multilib (stable) *
- My commands
emerge --ask app-eselect/eselect-repository dev-vcs/git
eselect repository enable gitlab
emerge --sync gitlab
nano /etc/portage/make.conf
RUBY_TARGETS="ruby27"
LUA_SINGLE_TARGET="luajit"
nano /etc/portage/package.use
dev-lang/ruby -berkdb -rdoc
nano /etc/portage/package.accept_keywords
www-apps/gitlab ~amd64
dev-vcs/gitlab-shell ~amd64
dev-vcs/git ~amd64
=dev-lang/ruby-2.7.3 ~amd64
=dev-ruby/minitest-5.13.0 ~amd64
=dev-ruby/net-telnet-0.2.0 ~amd64
=dev-ruby/power_assert-1.1.7 ~amd64
=dev-ruby/rake-13.0.3 ~amd64
=dev-ruby/xmlrpc-0.3.0 ~amd64
=dev-ruby/rdoc-6.2.0 ~amd64
=dev-ruby/kpeg-1.1.0-r1 ~amd64
=virtual/rubygems-16 ~amd64
=dev-ruby/rubygems-3.2.14 ~amd64
>=app-eselect/eselect-ruby-20191222
>=dev-ruby/test-unit-3.3.4
>=dev-ruby/bundler-2.1.4
>=dev-ruby/did_you_mean-1.3.1
>=dev-ruby/json-2.0.2
>dev-ruby/racc-1.4.10
virtual/ruby-ssl ~amd64
echo "acct-user/git gitlab" >> /etc/portage/package.use
emerge -av gitlab
eselect ruby set ruby27
emerge --config dev-db/postgresql:12
/etc/init.d/postgresql-12 restart
su -l postgres
psql -c "CREATE USER gitlab CREATEDB PASSWORD 'mypassword'"
rc-update add postgresql-12 default
nano /etc/redis/redis.conf
unixsocket /var/run/redis/redis.sock
unixsocketperm 770
maxmemory 1024MB
maxmemory-policy volatile-lru
port 0
mv /opt/gitlab/gitlab/resque.yml.example /etc/gitlab/resque.yml
nano /etc/gitlab/resque.yml
production:
# Redis (single instance)
url: unix:/var/run/redis/redis.sock
rsync -aHAX /etc/gitlab/ /opt/gitlab/gitlab/config/
rc-update add redis default
rc-update add gitlab-gitaly default
rc-update add gitlab default
gem install require pry
reboot
emerge --config "=www-apps/gitlab-13.11.4"
- /etc/init.d/gitlab status
* Gitlab Workhorse: started [ ok ]
* Gitlab Sidekiq: started [ ok ]
* Gitlab Puma: started
/etc/init.d/gitlab restart
* Stopping GitLab Workhorse ... [ ok ]
* Stopping GitLab Sidekiq ... [ ok ]
* Stopping GitLab Puma servers ... [ ok ]
* Starting GitLab web server Puma ... [ ok ]
* Starting GitLab Sidekiq ... [ ok ]
* Starting GitLab Workhorse ... [ ok ]
sudo -u git bundle exec rake gitlab:env:info RAILS_ENV=production
System information
System:
Current User: git
Using RVM: no
Ruby Version: 2.7.3p183
Gem Version: /usr/lib64/ruby/site_ruby/2.7.0/rubygems/core_ext/kernel_require.rb:85:in `require': cannot load such file -- did_you_mean (LoadError)
from /usr/lib64/ruby/site_ruby/2.7.0/rubygems/core_ext/kernel_require.rb:85:in `require'
from <internal:gem_prelude>:2:in `<internal:gem_prelude>'
Bundler Version:64
Rake Version: 64
Redis Version: 6.0.13
Git Version: 2.31.1
Sidekiq Version:5.2.9
Go Version: go1.16.4 linux/amd64
GitLab information
Version: 13.11.4
Revision: cea3c37b30e
Directory: /opt/gitlab/gitlab
DB Adapter: PostgreSQL
DB Version: 12.6
URL: http://192.168.1.151
HTTP Clone URL: http://192.168.1.151/some-group/some-project.git
SSH Clone URL: git@192.168.1.151:some-group/some-project.git
Using LDAP: no
Using Omniauth: yes
Omniauth Providers:
GitLab Shell
Version: 13.17.0
Repository storage paths:
- default: /var/lib/gitlab/repositories
GitLab Shell path: /opt/gitlab/gitlab-shell
Git: /usr/bin/git
sudo -u git bundle exec rake gitlab:check RAILS_ENV=production
Checking GitLab subtasks ...
Checking GitLab Shell ...
GitLab Shell: ... GitLab Shell version >= 13.17.0 ? ... OK (13.17.0)
Running /opt/gitlab/gitlab-shell/bin/check
Internal API available: OK
Redis available via internal API: OK
gitlab-shell self-check successful
Checking GitLab Shell ... Finished
Checking Gitaly ...
Gitaly: ... default ... OK
Checking Gitaly ... Finished
Checking Sidekiq ...
Sidekiq: ... Running? ... yes
Number of Sidekiq processes (cluster/worker) ... 1/5
Checking Sidekiq ... Finished
Checking Incoming Email ...
Incoming Email: ... Reply by email is disabled in config/gitlab.yml
Checking Incoming Email ... Finished
Checking LDAP ...
LDAP: ... LDAP is disabled in config/gitlab.yml
Checking LDAP ... Finished
Checking GitLab App ...
Git configured correctly? ... yes
Database config exists? ... yes
All migrations up? ... yes
Database contains orphaned GroupMembers? ... no
GitLab config exists? ... yes
GitLab config up to date? ... yes
Log directory writable? ... yes
Tmp directory writable? ... yes
Uploads directory exists? ... yes
Uploads directory has correct permissions? ... yes
Uploads directory tmp has correct permissions? ... skipped (no tmp uploads folder yet)
Projects have namespace: ...
GitLab Instance / Monitoring ... yes
Redis version >= 5.0.0? ... yes
Ruby version >= 2.7.2 ? ... yes (2.7.3)
Git version >= 2.31.0 ? ... yes (2.31.1)
Git user has default SSH configuration? ... yes
Active users: ... 1
Is authorized keys file accessible? ... yes
GitLab configured to store new projects in hashed storage? ... yes
All projects are in hashed storage? ... yes
Checking GitLab App ... Finished
Checking GitLab subtasks ... Finished
- Gitlab.yml
production: &base
#
# 1. GitLab app settings
# ==========================
## GitLab settings
gitlab:
## Web server settings (note: host is the FQDN, do not include http://)
host: 192.168.1.151
port: 80 # Set to 443 if using HTTPS, see installation.md#using-https for additional HTTPS configuration details
lynx 192.168.1.151 Alert!: Unable to connect to remote host.
netstat -tulpn
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 2073/sshd: /usr/sbi
tcp 0 0 127.0.0.1:5432 0.0.0.0:* LISTEN 1886/postgres
emerge -C iptables
--- Couldn't find 'iptables' to unmerge.
- cat /etc/conf.d/net
cat /etc/conf.d/net
dns_domain_lo="mynet"
config_eth0="192.168.1.151/24"
routes_eth0="default via 192.168.1.1"
dns_servers_eth0="mydns"