-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GitLib Not starting #2523
Comments
Hi, to be able to help you, we need more information. Could you provide these?
|
|
Hi, regarding your information you provide, there might be some problems. Let's go step by step throught your config.
In addition I have one question. Did you recently upgrade the image (if yes, from which version did you upgrade) or do you stayed so far with the same image? |
I like GitLab and would like to get it working again. |
Hi,
|
Yes 13.6.1! |
Can you please try to use the Docker image in version 13.6.1? After that, please let me know if your instance is running again. |
I tried it with 13.6.1 and had pretty much the same result. It exits after about a minute. The output is almost exactly the same as the log listed above where it says Rake Aborted! |
@sachilles I think it may have some correlation to the older issue. It was awhile ago that it stopped working. I will check the application_settings DB to see if it has a PK and try to apply it with |
That only brought on more errors. So it was time to restart. I created a blank database and external directory and started over. Thanks for the help! |
Closing as I started over |
It took a long time to finally get the audit message problem fixed with "--cap-add audit_write" which works. But now when I start the GitLab container I get new errors (that might be due to the fact that it has not been started since 2020-Dec. The errors seem to be associated with a database index missing. Any advice on how to fix this? I'd love to get GitLab working again....
'---snip---
Loading /etc/docker-gitlab/runtime/env-defaults
Initializing logdir...
Initializing datadir...
Updating CA certificates...
Container TimeZone -> UTC
Installing configuration templates...
Configuring gitlab...
Configuring gitlab::database
Configuring gitlab::redis
Configuring gitlab::actioncable
Configuring gitlab::secrets...
Configuring gitlab::sidekiq...
Configuring gitlab::gitaly...
Configuring gitlab::monitoring...
Configuring gitlab::gitlab-workhorse...
Configuring gitlab::puma...
Configuring gitlab::timezone...
Configuring gitlab::rack_attack...
Configuring gitlab::ci...
Configuring gitlab::artifacts...
Configuring gitlab::packages...
Configuring gitlab::lfs...
Configuring gitlab::uploads...
Configuring gitlab::mattermost...
Configuring gitlab::project_features...
Configuring gitlab::smtp_settings...
Configuring gitlab::oauth...
Configuring gitlab::ldap...
Configuring gitlab::cron_jobs...
Configuring gitlab::backups...
Configuring gitlab::registry...
Configuring gitlab::pages...
Configuring gitlab::sentry...
Configuring gitlab::content_security_policy...
Configuring gitlab-shell...
Configuring nginx...
Configuring nginx::gitlab...
Configuring nginx::gitlab::ssl...
Configuring nginx::gitlab::hsts...
Migrating database...
2022-03-09 18:26:47,932 CRIT Supervisor is running as root. Privileges were not dropped because no user is specified in the config file. If you intend to run as root, you can set user=root in the config file to avoid this message.
2022-03-09 18:26:47,932 INFO Included extra file "/etc/supervisor/conf.d/cron.conf" during parsing
2022-03-09 18:26:47,932 INFO Included extra file "/etc/supervisor/conf.d/gitaly.conf" during parsing
2022-03-09 18:26:47,934 INFO Included extra file "/etc/supervisor/conf.d/gitlab-workhorse.conf" during parsing
2022-03-09 18:26:47,934 INFO Included extra file "/etc/supervisor/conf.d/groups.conf" during parsing
2022-03-09 18:26:47,935 INFO Included extra file "/etc/supervisor/conf.d/mail_room.conf" during parsing
2022-03-09 18:26:47,935 INFO Included extra file "/etc/supervisor/conf.d/nginx.conf" during parsing
2022-03-09 18:26:47,936 INFO Included extra file "/etc/supervisor/conf.d/puma.conf" during parsing
2022-03-09 18:26:47,936 INFO Included extra file "/etc/supervisor/conf.d/sidekiq.conf" during parsing
2022-03-09 18:26:47,936 INFO Included extra file "/etc/supervisor/conf.d/sshd.conf" during parsing
2022-03-09 18:26:47,943 INFO RPC interface 'supervisor' initialized
2022-03-09 18:26:47,943 CRIT Server 'unix_http_server' running without any HTTP authentication checking
2022-03-09 18:26:47,944 INFO supervisord started with pid 2035
2022-03-09 18:26:48,947 INFO spawned: 'gitaly' with pid 2055
2022-03-09 18:26:48,951 INFO spawned: 'puma' with pid 2056
2022-03-09 18:26:48,954 INFO spawned: 'gitlab-workhorse' with pid 2057
2022-03-09 18:26:48,962 INFO spawned: 'sidekiq' with pid 2058
2022-03-09 18:26:48,965 INFO spawned: 'sshd' with pid 2059
2022-03-09 18:26:48,979 INFO spawned: 'nginx' with pid 2060
2022-03-09 18:26:48,996 INFO spawned: 'cron' with pid 2064
2022-03-09 18:26:50,049 INFO success: gitaly entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2022-03-09 18:26:50,050 INFO success: puma entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2022-03-09 18:26:50,050 INFO success: gitlab-workhorse entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2022-03-09 18:26:50,050 INFO success: sidekiq entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2022-03-09 18:26:50,050 INFO success: sshd entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2022-03-09 18:26:50,050 INFO success: nginx entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2022-03-09 18:26:50,050 INFO success: cron entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2022-03-09 18:27:32,443 INFO exited: puma (exit status 1; not expected)
rake aborted!
ActiveRecord::IrreversibleOrderError: Relation has no current order and table has no primary key to be used as default order
/home/git/gitlab/vendor/bundle/ruby/2.7.0/gems/activerecord-6.1.4.6/lib/active_record/relation/query_methods.rb:1334:in
reverse_sql_order' /home/git/gitlab/vendor/bundle/ruby/2.7.0/gems/activerecord-6.1.4.6/lib/active_record/relation/query_methods.rb:1015:in
reverse_order!'/home/git/gitlab/vendor/bundle/ruby/2.7.0/gems/activerecord-6.1.4.6/lib/active_record/relation/finder_methods.rb:151:in
last' /home/git/gitlab/vendor/bundle/ruby/2.7.0/gems/activerecord-6.1.4.6/lib/active_record/querying.rb:22:in
last'/home/git/gitlab/app/models/concerns/cacheable_attributes.rb:19:in
current_without_cache' /home/git/gitlab/app/models/concerns/cacheable_attributes.rb:63:in
rescue in current'/home/git/gitlab/app/models/concerns/cacheable_attributes.rb:51:in
current' /home/git/gitlab/lib/gitlab/current_settings.rb:60:in
uncached_application_settings'/home/git/gitlab/lib/gitlab/current_settings.rb:42:in
ensure_application_settings!' /home/git/gitlab/lib/gitlab/current_settings.rb:15:in
block in current_application_settings'/home/git/gitlab/lib/gitlab/null_request_store.rb:34:in
fetch' /home/git/gitlab/lib/gitlab/safe_request_store.rb:12:in
fetch'/home/git/gitlab/lib/gitlab/current_settings.rb:15:in
current_application_settings' /home/git/gitlab/lib/gitlab/current_settings.rb:32:in
method_missing'/home/git/gitlab/lib/gitlab/metrics/prometheus.rb:98:in
prometheus_metrics_enabled_unmemoized' /home/git/gitlab/lib/gitlab/metrics/prometheus.rb:24:in
block in prometheus_metrics_enabled?'/home/git/gitlab/lib/gitlab/utils/strong_memoize.rb:28:in
strong_memoize' /home/git/gitlab/lib/gitlab/metrics/prometheus.rb:23:in
prometheus_metrics_enabled?'/home/git/gitlab/config/initializers/7_prometheus_metrics.rb:49:in
<top (required)>' /home/git/gitlab/vendor/bundle/ruby/2.7.0/gems/railties-6.1.4.6/lib/rails/engine.rb:681:in
load'/home/git/gitlab/vendor/bundle/ruby/2.7.0/gems/railties-6.1.4.6/lib/rails/engine.rb:681:in
block in load_config_initializer' /home/git/gitlab/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.6/lib/active_support/notifications.rb:205:in
instrument'/home/git/gitlab/vendor/bundle/ruby/2.7.0/gems/railties-6.1.4.6/lib/rails/engine.rb:680:in
load_config_initializer' /home/git/gitlab/vendor/bundle/ruby/2.7.0/gems/railties-6.1.4.6/lib/rails/engine.rb:634:in
block (2 levels) in class:Engine'/home/git/gitlab/vendor/bundle/ruby/2.7.0/gems/railties-6.1.4.6/lib/rails/engine.rb:633:in
each' /home/git/gitlab/vendor/bundle/ruby/2.7.0/gems/railties-6.1.4.6/lib/rails/engine.rb:633:in
block in class:Engine'/home/git/gitlab/vendor/bundle/ruby/2.7.0/gems/railties-6.1.4.6/lib/rails/initializable.rb:32:in
instance_exec' /home/git/gitlab/vendor/bundle/ruby/2.7.0/gems/railties-6.1.4.6/lib/rails/initializable.rb:32:in
run'/home/git/gitlab/vendor/bundle/ruby/2.7.0/gems/railties-6.1.4.6/lib/rails/initializable.rb:61:in
block in run_initializers' /home/git/gitlab/vendor/bundle/ruby/2.7.0/gems/railties-6.1.4.6/lib/rails/initializable.rb:50:in
each'/home/git/gitlab/vendor/bundle/ruby/2.7.0/gems/railties-6.1.4.6/lib/rails/initializable.rb:50:in
tsort_each_child' /home/git/gitlab/vendor/bundle/ruby/2.7.0/gems/railties-6.1.4.6/lib/rails/initializable.rb:60:in
run_initializers'/home/git/gitlab/vendor/bundle/ruby/2.7.0/gems/railties-6.1.4.6/lib/rails/application.rb:391:in
initialize!' /home/git/gitlab/config/environment.rb:7:in
<top (required)>'/home/git/gitlab/vendor/bundle/ruby/2.7.0/gems/zeitwerk-2.5.4/lib/zeitwerk/kernel.rb:35:in
require' /home/git/gitlab/vendor/bundle/ruby/2.7.0/gems/zeitwerk-2.5.4/lib/zeitwerk/kernel.rb:35:in
require'/home/git/gitlab/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.6/lib/active_support/dependencies.rb:332:in
block in require' /home/git/gitlab/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.6/lib/active_support/dependencies.rb:299:in
load_dependency'/home/git/gitlab/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.6/lib/active_support/dependencies.rb:332:in
require' /home/git/gitlab/vendor/bundle/ruby/2.7.0/gems/railties-6.1.4.6/lib/rails/application.rb:367:in
require_environment!'/home/git/gitlab/vendor/bundle/ruby/2.7.0/gems/railties-6.1.4.6/lib/rails/application.rb:533:in
block in run_tasks_blocks' /home/git/gitlab/vendor/bundle/ruby/2.7.0/gems/rake-13.0.6/exe/rake:27:in
<top (required)>'/usr/local/bin/bundle:23:in
load' /usr/local/bin/bundle:23:in
Caused by:
'ActiveRecord::IrreversibleOrderError: Relation has no current order and table has no primary key to be used as default order
/home/git/gitlab/vendor/bundle/ruby/2.7.0/gems/activerecord-6.1.4.6/lib/active_record/relation/query_methods.rb:1334:in
reverse_sql_order' /home/git/gitlab/vendor/bundle/ruby/2.7.0/gems/activerecord-6.1.4.6/lib/active_record/relation/query_methods.rb:1015:in
reverse_order!'/home/git/gitlab/vendor/bundle/ruby/2.7.0/gems/activerecord-6.1.4.6/lib/active_record/relation/finder_methods.rb:151:in
last' /home/git/gitlab/vendor/bundle/ruby/2.7.0/gems/activerecord-6.1.4.6/lib/active_record/querying.rb:22:in
last'/home/git/gitlab/app/models/concerns/cacheable_attributes.rb:19:in
current_without_cache' /home/git/gitlab/app/models/concerns/cacheable_attributes.rb:55:in
current'/home/git/gitlab/lib/gitlab/current_settings.rb:60:in
uncached_application_settings' /home/git/gitlab/lib/gitlab/current_settings.rb:42:in
ensure_application_settings!'/home/git/gitlab/lib/gitlab/current_settings.rb:15:in
block in current_application_settings' /home/git/gitlab/lib/gitlab/null_request_store.rb:34:in
fetch'/home/git/gitlab/lib/gitlab/safe_request_store.rb:12:in
fetch' /home/git/gitlab/lib/gitlab/current_settings.rb:15:in
current_application_settings'/home/git/gitlab/lib/gitlab/current_settings.rb:32:in
method_missing' /home/git/gitlab/lib/gitlab/metrics/prometheus.rb:98:in
prometheus_metrics_enabled_unmemoized'/home/git/gitlab/lib/gitlab/metrics/prometheus.rb:24:in
block in prometheus_metrics_enabled?' /home/git/gitlab/lib/gitlab/utils/strong_memoize.rb:28:in
strong_memoize'/home/git/gitlab/lib/gitlab/metrics/prometheus.rb:23:in
prometheus_metrics_enabled?' /home/git/gitlab/config/initializers/7_prometheus_metrics.rb:49:in
<top (required)>'/home/git/gitlab/vendor/bundle/ruby/2.7.0/gems/railties-6.1.4.6/lib/rails/engine.rb:681:in
load' /home/git/gitlab/vendor/bundle/ruby/2.7.0/gems/railties-6.1.4.6/lib/rails/engine.rb:681:in
block in load_config_initializer'/home/git/gitlab/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.6/lib/active_support/notifications.rb:205:in
instrument' /home/git/gitlab/vendor/bundle/ruby/2.7.0/gems/railties-6.1.4.6/lib/rails/engine.rb:680:in
load_config_initializer'/home/git/gitlab/vendor/bundle/ruby/2.7.0/gems/railties-6.1.4.6/lib/rails/engine.rb:634:in
block (2 levels) in <class:Engine>' /home/git/gitlab/vendor/bundle/ruby/2.7.0/gems/railties-6.1.4.6/lib/rails/engine.rb:633:in
each'/home/git/gitlab/vendor/bundle/ruby/2.7.0/gems/railties-6.1.4.6/lib/rails/engine.rb:633:in
block in <class:Engine>' /home/git/gitlab/vendor/bundle/ruby/2.7.0/gems/railties-6.1.4.6/lib/rails/initializable.rb:32:in
instance_exec'/home/git/gitlab/vendor/bundle/ruby/2.7.0/gems/railties-6.1.4.6/lib/rails/initializable.rb:32:in
run' /home/git/gitlab/vendor/bundle/ruby/2.7.0/gems/railties-6.1.4.6/lib/rails/initializable.rb:61:in
block in run_initializers'/home/git/gitlab/vendor/bundle/ruby/2.7.0/gems/railties-6.1.4.6/lib/rails/initializable.rb:50:in
each' /home/git/gitlab/vendor/bundle/ruby/2.7.0/gems/railties-6.1.4.6/lib/rails/initializable.rb:50:in
tsort_each_child'/home/git/gitlab/vendor/bundle/ruby/2.7.0/gems/railties-6.1.4.6/lib/rails/initializable.rb:60:in
run_initializers' /home/git/gitlab/vendor/bundle/ruby/2.7.0/gems/railties-6.1.4.6/lib/rails/application.rb:391:in
initialize!'/home/git/gitlab/config/environment.rb:7:in
<top (required)>' /home/git/gitlab/vendor/bundle/ruby/2.7.0/gems/zeitwerk-2.5.4/lib/zeitwerk/kernel.rb:35:in
require'/home/git/gitlab/vendor/bundle/ruby/2.7.0/gems/zeitwerk-2.5.4/lib/zeitwerk/kernel.rb:35:in
require' /home/git/gitlab/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.6/lib/active_support/dependencies.rb:332:in
block in require'/home/git/gitlab/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.6/lib/active_support/dependencies.rb:299:in
load_dependency' /home/git/gitlab/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.6/lib/active_support/dependencies.rb:332:in
require'/home/git/gitlab/vendor/bundle/ruby/2.7.0/gems/railties-6.1.4.6/lib/rails/application.rb:367:in
require_environment!' /home/git/gitlab/vendor/bundle/ruby/2.7.0/gems/railties-6.1.4.6/lib/rails/application.rb:533:in
block in run_tasks_blocks'/home/git/gitlab/vendor/bundle/ruby/2.7.0/gems/rake-13.0.6/exe/rake:27:in
<top (required)>' /usr/local/bin/bundle:23:in
load'/usr/local/bin/bundle:23:in `
Tasks: TOP => db:migrate => db:load_config => environment
(See full trace by running task with --trace)
---snip---
The text was updated successfully, but these errors were encountered: