แก้ปัญหา เข้า Gitlab runners ไม่ได้เจอ Error 500
lib/gitlab/crypto_helper.rb:28:in aes256_gcm_decrypt'
แก้ปัญหา เข้า Gitlab runners ไม่ได้เจอ Error 500 lib/gitlab/crypto_helper.rb:28:in aes256_gcm_decrypt'
Moderator: mindphp, ผู้ดูแลกระดาน
- mindphp
- ผู้ดูแลระบบ MindPHP
- โพสต์: 45910
- ลงทะเบียนเมื่อ: 22/09/2008 6:18 pm
- ติดต่อ:
แก้ปัญหา เข้า Gitlab runners ไม่ได้เจอ Error 500 lib/gitlab/crypto_helper.rb:28:in aes256_gcm_decrypt'
ติดตาม VDO: http://www.youtube.com/c/MindphpVideoman
ติดตาม FB: https://www.facebook.com/pages/MindphpC ... 9517401606
หมวดแชร์ความรู้: https://www.mindphp.com/forums/viewforum.php?f=29
รับอบรม และพัฒนาระบบ: https://www.mindphp.com/forums/viewtopic.php?f=6&t=2042
ติดตาม FB: https://www.facebook.com/pages/MindphpC ... 9517401606
หมวดแชร์ความรู้: https://www.mindphp.com/forums/viewforum.php?f=29
รับอบรม และพัฒนาระบบ: https://www.mindphp.com/forums/viewtopic.php?f=6&t=2042
- mindphp
- ผู้ดูแลระบบ MindPHP
- โพสต์: 45910
- ลงทะเบียนเมื่อ: 22/09/2008 6:18 pm
- ติดต่อ:
Re: แก้ปัญหา เข้า Gitlab runners ไม่ได้เจอ Error 500
เช็ค Error Log จาก คำสั่ง
GitLab กำลังพยายามเข้าถึง runners_registration_token ใน ApplicationSetting แต่ถอดรหัสไม่สำเร็จ เนื่องจากกระบวนการ aes256_gcm_decrypt ไม่สำเร็จ
น่าจะเป็นปัญหามาจากการอัพเกรด gitlab server มาหลายๆ ครั้ง
วิธีแก้ปัญาหา
สั่ง reset token
ถ้า Server ใหม่รอทำงานซักครู่ ดูจาก top หรือ nmon
ผลกระทบ:
การรีเซ็ต runners_registration_token หมายความว่าหากคุณมีเอกสารเก่า หรือ Runner ที่จะสมัครเข้ามาใหม่ด้วย Token เดิม จะใช้ไม่ได้อีกต่อไป ต้องใช้ Token ใหม่แทน
Runner ที่เคยลงทะเบียนเรียบร้อยแล้ว (มี config.toml ของตัวเอง) มักจะยังทำงานได้ปกติ จนกว่าจะลบหรือต้อง re-register ใหม่
sudo tail -f /var/log/gitlab/gitlab-rails/production.log
ปัญหามาจากActionView::Template::Error ():
36:
37: .col-sm-6
38: .bs-callout
39: = render partial: 'ci/runner/how_to_setup_runner',
40: locals: { registration_token: Gitlab::CurrentSettings.runners_registration_token,
41: type: 'shared',
42: reset_token_url: reset_registration_token_admin_application_settings_path,
lib/gitlab/crypto_helper.rb:28:in aes256_gcm_decrypt'
app/models/concerns/token_authenticatable_strategies/encryption_helper.rb:22:in decrypt_token'
app/models/concerns/token_authenticatable_strategies/encrypted.rb:45:in get_token'
app/models/concerns/token_authenticatable_strategies/base.rb:38:in ensure_token!'
app/models/concerns/token_authenticatable.rb:48:in block in add_authentication_token_field'
app/models/application_setting_implementation.rb:363:in runners_registration_token'
lib/gitlab/current_settings.rb:32:in method_missing'
app/views/admin/runners/index.html.haml:39
GitLab กำลังพยายามเข้าถึง runners_registration_token ใน ApplicationSetting แต่ถอดรหัสไม่สำเร็จ เนื่องจากกระบวนการ aes256_gcm_decrypt ไม่สำเร็จ
น่าจะเป็นปัญหามาจากการอัพเกรด gitlab server มาหลายๆ ครั้ง
วิธีแก้ปัญาหา
โค้ด: เลือกทั้งหมด
sudo gitlab-rails console
โค้ด: เลือกทั้งหมด
# โหลด ApplicationSetting
settings = ApplicationSetting.current
# รีเซ็ต token
settings.reset_runners_registration_token!
# บันทึก
settings.save!
โค้ด: เลือกทั้งหมด
exit
โค้ด: เลือกทั้งหมด
sudo gitlab-ctl reconfigure
โค้ด: เลือกทั้งหมด
sudo gitlab-ctl restart
ผลกระทบ:
การรีเซ็ต runners_registration_token หมายความว่าหากคุณมีเอกสารเก่า หรือ Runner ที่จะสมัครเข้ามาใหม่ด้วย Token เดิม จะใช้ไม่ได้อีกต่อไป ต้องใช้ Token ใหม่แทน
Runner ที่เคยลงทะเบียนเรียบร้อยแล้ว (มี config.toml ของตัวเอง) มักจะยังทำงานได้ปกติ จนกว่าจะลบหรือต้อง re-register ใหม่
ติดตาม VDO: http://www.youtube.com/c/MindphpVideoman
ติดตาม FB: https://www.facebook.com/pages/MindphpC ... 9517401606
หมวดแชร์ความรู้: https://www.mindphp.com/forums/viewforum.php?f=29
รับอบรม และพัฒนาระบบ: https://www.mindphp.com/forums/viewtopic.php?f=6&t=2042
ติดตาม FB: https://www.facebook.com/pages/MindphpC ... 9517401606
หมวดแชร์ความรู้: https://www.mindphp.com/forums/viewforum.php?f=29
รับอบรม และพัฒนาระบบ: https://www.mindphp.com/forums/viewtopic.php?f=6&t=2042
-
- Similar Topics
- ตอบกลับ
- แสดง
- โพสต์ล่าสุด
-
-
โพสต์ใหม่ วิธี Setup SSL ให้กับ GitLab เข้าใช้งาน https ได้ง่ายไม่ต้องแก้ไขโค้ดได้แล้วด้วย GitLab 12
โดย mindphp » 08/09/2020 8:29 pm » ใน Linux - Web Server - 3 ตอบกลับ
- 3827 แสดง
-
โพสต์ล่าสุด โดย mindphp
02/02/2022 11:13 am
-
-
- 3 ตอบกลับ
- 1935 แสดง
-
โพสต์ล่าสุด โดย tsukasaz
02/04/2020 10:50 am
-
-
โพสต์ใหม่ ติดตั้ง gitlab runner บนเครื่องเดี่ยวกับ gitlab
โดย mindphp » 06/11/2024 3:38 pm » ใน Linux - Web Server - 3 ตอบกลับ
- 46 แสดง
-
โพสต์ล่าสุด โดย mindphp
06/11/2024 5:13 pm
-
-
-
โพสต์ใหม่ Gitlab เจอปัญหา gitlab Forbidden แล้วเข้าไม่ได้
โดย mindphp » 22/04/2019 11:32 am » ใน Linux - Web Server - 2 ตอบกลับ
- 2607 แสดง
-
โพสต์ล่าสุด โดย mindphp
08/09/2020 8:56 pm
-
-
- 1 ตอบกลับ
- 1143 แสดง
-
โพสต์ล่าสุด โดย mindphp
17/01/2022 1:46 am
-
-
โพสต์ใหม่ Question, how to solve gitlab error ?
โดย Raja Pdl » 31/05/2024 5:22 pm » ใน English Language - 2 ตอบกลับ
- 131 แสดง
-
โพสต์ล่าสุด โดย mindphp
01/06/2024 11:44 am
-
-
-
โพสต์ใหม่ เจอปัญหา GitLab Error 500 เฉพาะ user
โดย mindphp » 21/05/2020 1:01 pm » ใน Linux - Web Server - 0 ตอบกลับ
- 1054 แสดง
-
โพสต์ล่าสุด โดย mindphp
21/05/2020 1:01 pm
-
ผู้ใช้งานขณะนี้
สมาชิกกำลังดูบอร์ดนี้: ไม่มีสมาชิกใหม่ และบุคลทั่วไป 9