Note: If you're using old Errbit version (0.2.0, 0.4.0) and an old Airbrake version (v4) please refer to this manual to make it work with self-signed certificates.
Having an error catcher like Errbit behind SSL is generally a good idea. Especially when Errbit is hosted on a different server than you application (for example when you manage multiple apps with one Errbit instance). In many cases you will have a self-signed certificate (why would you pay for a cert for internal tool). If you try to use it with Airbrake, you will see following error:
Unfortunately, global SSL certificates verification disabling hack (solution that used to work with Airbrake notifier v4) won't work:
# No longer working!
OpenSSL::SSL::VERIFY_PEER = OpenSSL::SSL::VERIFY_NONE
Luckily, Airbrake notifier is written pretty well, so hacking it (and disabling per request SSL certificate verification) is not hard at all. Here's a full code you need to place in config/initializers/errbit.rb to make it work:
module Patches
module Airbrake
module SyncSender
def build_https(uri)
super.tap do |req|
req.verify_mode = OpenSSL::SSL::VERIFY_NONE
end
end
end
end
end
Airbrake::SyncSender.prepend(::Patches::Airbrake::SyncSender)
After that (and configuring Airbrake notifier), you can test it out like this:
When you'll setup your Gitlab instance using Synology DMS 6.0 UI, despite the fact that you've provided all the Gmail credentials, you will notice that it does not send any emails. You probably end up with a message similar to this one when:
EOFError: end of file reached
It may sound a bit enigmatic, but in general it means that your Gmail setup is wrong. Unfortunately you cannot change it using the UI. Fixing this requires a SSH connection.
Warning: I’m not responsible for any damages or injury, including but not limited to special or consequential damages, that result from your use of this instruction.
Stop your Gitlab using DMS UI
First, you need to stop your Gitlab instance via DMS UI:
So to Package Manager
Select Gitlab
Select "Actions"
Click on the "Stop" button
Change your synology_gitlab.config via SSH
This one is a bit harder. Here are the th ings you need to know before you start:
How to log in via SSH into admin account
How to install (if you don't have) vim (or any other console text editor)
How to navigate in a Linux shell
So, if you know this things, you are ready to go!
Log in into your Synology server via SSH as admin user
Become a root (sudo su + password)
Go to /usr/syno/etc/packages/Docker (cd /usr/syno/etc/packages/Docker)