马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?注册
×
本帖最后由 leftzzzz 于 2024-3-21 22:04 编辑
如图,配置玩ssh-key后,无法连接ssh
authorized_keys不会更新
试过使用了sudo gitlab-rake gitlab:shell:setup重建没问题,但是之后对ssh-key的添加删除又无效了
日志
- ==> /var/log/gitlab/gitlab-rails/sidekiq.log <==
- {"severity":"INFO","time":"2024-03-21T14:00:42.892Z","class":"AuthorizedKeysWorker","retry":3,"queue":"authorized_keys","jid":"f3851055fcb53924c196864f","created_at":"2024-03-21T14:00:42.884Z","meta.user":"leftzzzz","meta.caller_id":"Profiles::KeysController#create","correlation_id":"fVhB3VaQHP9","enqueued_at":"2024-03-21T14:00:42.890Z","pid":29144,"message":"AuthorizedKeysWorker JID-f3851055fcb53924c196864f: start","job_status":"start","scheduling_latency_s":0.001675}
- {"severity":"INFO","time":"2024-03-21T14:00:42.905Z","class":"ActiveJob::QueueAdapters::SidekiqAdapter::JobWrapper","wrapped":"ActionMailer::DeliveryJob","queue":"mailers","retry":3,"jid":"294521d121395db63e35e9ef","created_at":"2024-03-21T14:00:42.902Z","meta.user":"leftzzzz","meta.caller_id":"Profiles::KeysController#create","correlation_id":"fVhB3VaQHP9","enqueued_at":"2024-03-21T14:00:42.902Z","pid":29144,"message":"ActiveJob::QueueAdapters::SidekiqAdapter::JobWrapper JID-294521d121395db63e35e9ef: start","job_status":"start","scheduling_latency_s":0.002056}
- {"severity":"INFO","time":"2024-03-21T14:00:42.925Z","class":"AuthorizedKeysWorker","retry":3,"queue":"authorized_keys","jid":"f3851055fcb53924c196864f","created_at":"2024-03-21T14:00:42.884Z","meta.user":"leftzzzz","meta.caller_id":"Profiles::KeysController#create","correlation_id":"fVhB3VaQHP9","enqueued_at":"2024-03-21T14:00:42.890Z","pid":29144,"message":"AuthorizedKeysWorker JID-f3851055fcb53924c196864f: done: 0.033132 sec","job_status":"done","scheduling_latency_s":0.001675,"duration":0.033132,"cpu_s":0.014005,"completed_at":"2024-03-21T14:00:42.925Z","db_duration":1.8562280001788167,"db_duration_s":0.0018562280001788167}
- {"severity":"INFO","time":"2024-03-21T14:00:43.059Z","class":"ActiveJob::QueueAdapters::SidekiqAdapter::JobWrapper","wrapped":"ActionMailer::DeliveryJob","queue":"mailers","retry":3,"jid":"294521d121395db63e35e9ef","created_at":"2024-03-21T14:00:42.902Z","meta.user":"leftzzzz","meta.caller_id":"Profiles::KeysController#create","correlation_id":"fVhB3VaQHP9","enqueued_at":"2024-03-21T14:00:42.902Z","pid":29144,"message":"ActiveJob::QueueAdapters::SidekiqAdapter::JobWrapper JID-294521d121395db63e35e9ef: done: 0.154017 sec","job_status":"done","scheduling_latency_s":0.002056,"duration":0.154017,"cpu_s":0.068178,"completed_at":"2024-03-21T14:00:43.059Z","db_duration":21.256194000670803,"db_duration_s":0.021256194000670803}
- ==> /var/log/gitlab/gitlab-rails/production.log <==
- Started POST "/profile/keys" for 192.168.188.1 at 2024-03-21 22:00:42 +0800
- Processing by Profiles::KeysController#create as HTML
- Parameters: {"utf8"=>"✓", "authenticity_token"=>"[FILTERED]", "key"=>"[FILTERED]"}
- [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 575d3004-a7c3-4cf0-a2dd-c771d2f7846b) to Sidekiq(mailers) with arguments: "Notify", "new_ssh_key_email", "deliver_now", 13
- Redirected to http://192.168.188.131/profile/keys/13
- Completed 302 Found in 56ms (ActiveRecord: 7.9ms | Elasticsearch: 0.0ms | Allocations: 11356)
- [ActiveJob] [ActionMailer::DeliveryJob] [575d3004-a7c3-4cf0-a2dd-c771d2f7846b] Performing ActionMailer::DeliveryJob (Job ID: 575d3004-a7c3-4cf0-a2dd-c771d2f7846b) from Sidekiq(mailers) enqueued at 2024-03-21T14:00:42Z with arguments: "Notify", "new_ssh_key_email", "deliver_now", 13
- Started GET "/profile/keys/13" for 192.168.188.1 at 2024-03-21 22:00:42 +0800
- Processing by Profiles::KeysController#show as HTML
- Parameters: {"id"=>"13"}
- Completed 200 OK in 60ms (Views: 41.5ms | ActiveRecord: 3.3ms | Elasticsearch: 0.0ms | Allocations: 38009)
- [ActiveJob] [ActionMailer::DeliveryJob] [575d3004-a7c3-4cf0-a2dd-c771d2f7846b] Delivered mail 65fc3d8af08c9_71d83f946237cbbc901d8@localhost.localdomain.mail (38.0ms)
- [ActiveJob] [ActionMailer::DeliveryJob] [575d3004-a7c3-4cf0-a2dd-c771d2f7846b] Performed ActionMailer::DeliveryJob (Job ID: 575d3004-a7c3-4cf0-a2dd-c771d2f7846b) from Sidekiq(mailers) in 111.18ms
- ==> /var/log/gitlab/gitlab-rails/production_json.log <==
- {"method":"POST","path":"/profile/keys","format":"html","controller":"Profiles::KeysController","action":"create","status":302,"duration":56.14,"view":0.0,"db":7.88,"location":"http://192.168.188.131/profile/keys/13","time":"2024-03-21T14:00:42.904Z","params":[{"key":"utf8","value":"✓"},{"key":"authenticity_token","value":"[FILTERED]"},{"key":"key","value":"[FILTERED]"}],"remote_ip":"192.168.188.1","user_id":2,"username":"leftzzzz","ua":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36","queue_duration":3.29,"correlation_id":"fVhB3VaQHP9","cpu_s":0.056700042000000006}
- {"method":"GET","path":"/profile/keys/13","format":"html","controller":"Profiles::KeysController","action":"show","status":200,"duration":59.81,"view":41.52,"db":3.29,"time":"2024-03-21T14:00:42.982Z","params":[{"key":"id","value":"13"}],"remote_ip":"192.168.188.1","user_id":2,"username":"leftzzzz","ua":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36","queue_duration":2.41,"correlation_id":"y3pKTnXeza6","cpu_s":0.06334093500000004}
复制代码
|