我正在按照文档 Restore for installation from source 还原gitlab备份。
但是,我无法通过sudo service gitlab stop
命令正常停止gitlab。
该命令在尝试停止Gitlab Sidekiq服务时挂起:
$ sudo service gitlab stop
Shutting down GitLab Unicorn
Shutting down GitLab Sidekiq
.........................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
我的gitlab版本是sameersbn/gitlab:10.5.6。
我在docker容器中运行gitlab。
/home/git/gitlab/log/sidekiq.log
文件包含以下信息:
2019-01-01T06:00:49.110Z 22149 TID-5nezs INFO: Shutting down
2019-01-01T06:00:49.111Z 22149 TID-ordtcg6ik INFO: Scheduler exiting...
2019-01-01T06:00:49.111Z 22149 TID-5nezs INFO: Terminating quiet workers
2019-01-01T06:00:49.111Z 22149 TID-31eqx8 INFO: Scheduler exiting...
2019-01-01T06:00:49.611Z 22149 TID-5nezs INFO: Pausing to allow workers to finish...
2019-01-01T06:00:52.112Z 22149 TID-5nezs INFO: Bye!
Sidekiq shut down gracefully.
2019-01-01T06:01:04.741Z 22380 TID-5382w INFO: Booting Sidekiq 5.0.5 with redis options {:host=>"redis", :port=>6379, :password=>nil, :db=>0, :namespace=>"resque:gitlab", :id=>"Sidekiq-server-PID-22380", :url=>nil}
2019-01-01T06:01:04.799Z 22380 TID-5382w INFO: Cron Jobs - add job with name: stuck_ci_jobs_worker
2019-01-01T06:01:04.800Z 22380 TID-5382w INFO: Cron Jobs - add job with name: pipeline_schedule_worker
2019-01-01T06:01:04.801Z 22380 TID-5382w INFO: Cron Jobs - add job with name: expire_build_artifacts_worker
2019-01-01T06:01:04.802Z 22380 TID-5382w INFO: Cron Jobs - add job with name: repository_check_worker
2019-01-01T06:01:04.803Z 22380 TID-5382w INFO: Cron Jobs - add job with name: admin_email_worker
2019-01-01T06:01:04.805Z 22380 TID-5382w INFO: Cron Jobs - add job with name: repository_archive_cache_worker
2019-01-01T06:01:04.806Z 22380 TID-5382w INFO: Cron Jobs - add job with name: pages_domain_verification_cron_worker
2019-01-01T06:01:04.808Z 22380 TID-5382w INFO: Cron Jobs - add job with name: import_export_project_cleanup_worker
2019-01-01T06:01:04.809Z 22380 TID-5382w INFO: Cron Jobs - add job with name: requests_profiles_worker
2019-01-01T06:01:04.810Z 22380 TID-5382w INFO: Cron Jobs - add job with name: remove_expired_members_worker
2019-01-01T06:01:04.811Z 22380 TID-5382w INFO: Cron Jobs - add job with name: remove_expired_group_links_worker
2019-01-01T06:01:04.813Z 22380 TID-5382w INFO: Cron Jobs - add job with name: prune_old_events_worker
2019-01-01T06:01:04.814Z 22380 TID-5382w INFO: Cron Jobs - add job with name: trending_projects_worker
2019-01-01T06:01:04.816Z 22380 TID-5382w INFO: Cron Jobs - add job with name: remove_unreferenced_lfs_objects_worker
2019-01-01T06:01:04.817Z 22380 TID-5382w INFO: Cron Jobs - add job with name: stuck_import_jobs_worker
2019-01-01T06:01:04.818Z 22380 TID-5382w INFO: Cron Jobs - add job with name: gitlab_usage_ping_worker
2019-01-01T06:01:04.820Z 22380 TID-5382w INFO: Cron Jobs - add job with name: schedule_update_user_activity_worker
2019-01-01T06:01:04.822Z 22380 TID-5382w INFO: Cron Jobs - add job with name: remove_old_web_hook_logs_worker
2019-01-01T06:01:04.824Z 22380 TID-5382w INFO: Cron Jobs - add job with name: stuck_merge_jobs_worker
2019-01-01T06:01:12.363Z 22380 TID-5382w INFO: Running in ruby 2.3.6p384 (2017-12-14 revision 61254) [x86_64-linux-gnu]
2019-01-01T06:01:12.363Z 22380 TID-5382w INFO: See LICENSE and the LGPL-3.0 for licensing details.
2019-01-01T06:01:12.363Z 22380 TID-5382w INFO: Upgrade to Sidekiq Pro for more features and support: http://sidekiq.org
2019-01-01T06:01:12.364Z 22380 TID-5382w INFO: Starting processing, hit Ctrl-C to stop
2019-01-01T06:01:12.367Z 22380 TID-5382w INFO: Listening on queues ["authorized_projects", "background_migration", "create_gpg_signature", "cronjob", "cronjob:admin_email", "cronjob:expire_build_artifacts", "cronjob:gitlab_usage_ping", "cronjob:import_export_project_cleanup", "cronjob:pages_domain_verification_cron", "cronjob:pipeline_schedule", "cronjob:prune_old_events", "cronjob:remove_expired_group_links", "cronjob:remove_expired_members", "cronjob:remove_old_web_hook_logs", "cronjob:remove_unreferenced_lfs_objects", "cronjob:repository_archive_cache", "cronjob:repository_check_batch", "cronjob:requests_profiles", "cronjob:schedule_update_user_activity", "cronjob:stuck_ci_jobs", "cronjob:stuck_import_jobs", "cronjob:stuck_merge_jobs", "cronjob:trending_projects", "default", "delete_merged_branches", "delete_user", "email_receiver", "emails_on_push", "expire_build_instance_artifacts", "gcp_cluster", "gcp_cluster:check_gcp_project_billing", "gcp_cluster:cluster_install_app", "gcp_cluster:cluster_provision", "gcp_cluster:cluster_wait_for_app_installation", "gcp_cluster:wait_for_cluster_creation", "git_garbage_collect", "github_import_advance_stage", "github_importer", "github_importer:github_import_import_diff_note", "github_importer:github_import_import_issue", "github_importer:github_import_import_note", "github_importer:github_import_import_pull_request", "github_importer:github_import_refresh_import_jid", "github_importer:github_import_stage_finish_import", "github_importer:github_import_stage_import_base_data", "github_importer:github_import_stage_import_issues_and_diff_notes", "github_importer:github_import_stage_import_notes", "github_importer:github_import_stage_import_pull_requests", "github_importer:github_import_stage_import_repository", "gitlab_shell", "group_destroy", "invalid_gpg_signature_update", "irker", "mailers", "merge", "namespaceless_project_destroy", "new_issue", "new_merge_request", "new_note", "pages", "pages_domain_verification", "pipeline_cache", "pipeline_cache:expire_job_cache", "pipeline_cache:expire_pipeline_cache", "pipeline_creation", "pipeline_creation:create_pipeline", "pipeline_creation:run_pipeline_schedule", "pipeline_default", "pipeline_default:build_coverage", "pipeline_default:build_trace_sections", "pipeline_default:create_trace_artifact", "pipeline_default:pipeline_metrics", "pipeline_default:pipeline_notification", "pipeline_default:update_head_pipeline_for_merge_request", "pipeline_hooks", "pipeline_hooks:build_hooks", "pipeline_hooks:pipeline_hooks", "pipeline_processing", "pipeline_processing:build_finished", "pipeline_processing:build_queue", "pipeline_processing:build_success", "pipeline_processing:pipeline_process", "pipeline_processing:pipeline_success", "pipeline_processing:pipeline_update", "pipeline_processing:stage_update", "post_receive", "process_commit", "project_cache", "project_destroy", "project_export", "project_migrate_hashed_storage", "project_service", "propagate_service_template", "reactive_caching", "rebase", "repository_check", "repository_check:repository_check_clear", "repository_check:repository_check_single_repository", "repository_fork", "repository_import", "storage_migrator", "system_hook_push", "update_merge_requests", "update_user_activity", "upload_checksum", "web_hook"]
sidekiq似乎已重新启动,而不是停止。为什么会这样?
有人知道如何正常停止gitlab服务吗?