remipichon / voc

Automatically build and deploy Docker on Swarm from Gitlab8
GNU General Public License v3.0
0 stars 0 forks source link

Troubleshooting #52

Open remipichon opened 6 years ago

remipichon commented 6 years ago

Small issues

Gitaly path issue (socket and bin)

Gitaly socket issue with wrong path to gitaly.socket ==> edit config.toml under ./gitaly/config.toml:bin_dir

15:46:35 gitaly.1                | time="2018-01-18T15:46:35+01:00" level=fatal msg="configure unix listener" error="listen unix /home/gitlab/gitlab-development-kitlab/gitlab-development-kit/gitaly.socket: bind: no such file or directory"
vi gitaly/config.toml
# edit socket_path and bin_dir to be something that exists

Gitlaly.socket doesn't exist at all

make gitaly-setup
make gitlab-workhorse-setu

gdk install: Makefile:246: recipe for target 'postgresql/data' failed

bundle exec rake db:migrate

kill webpack if still running

PORT=3000
kill -9 $(netstat -tulpn 2>/dev/null | grep $PORT | awk '{print $NF}'| cut -d '/' -f1 )
remipichon commented 6 years ago

gem install bundle zlib issue

somehow I guess this fixed it

brew untap homebrew/dupes
brew tap homebrew/dupes
brew remove zlib
brew install zlib
rvm get master

https://github.com/rvm/rvm/issues/3389 https://github.com/rvm/rvm/issues/4206

remipichon commented 6 years ago

start and stop PG

https://stackoverflow.com/questions/7975556/how-to-start-postgresql-server-on-mac-os-x

pg_ctl -D /usr/local/var/postgres start
remipichon commented 6 years ago

seeding database issue

https://gitlab.com/gitlab-org/gitlab-development-kit/issues/156

remipichon commented 6 years ago

create an admin user

user_args = {
    email:    ENV['GITLAB_ROOT_EMAIL'].presence || 'admin2@example.com',
    name:     'Administrator2',
    username: 'root2',
    admin:    true
}

user_args[:password] = "pouetpouet"

transient_admin = User.new(admin: true)
user = Users::CreateService.new(transient_admin, user_args.merge!(skip_confirmation: true)).execute

if user.persisted?
  puts "Administrator account created:"
  puts
  puts "login:    root"

  if user_args.key?(:password)
    puts "password: #{user_args[:password]}"
  else
    puts "password: You'll be prompted to create one on your first visit."
  end
  puts
else
  puts "Could not create the default administrator account:"
  puts
  user.errors.full_messages.map do |message|
    puts "--> #{message}"
  end
  puts

  exit 1
end
remipichon commented 6 years ago

API

token: 23shsxz5fxGbz1dMizSr

curl --header "PRIVATE-TOKEN: 23shsxz5fxGbz1dMizSr" localhost:3000/api/v4/features