Error rising while gitlab-ctl reconfigure unexpected regex

2024-03-29T10:24:52+00:00] ERROR: Running exception handlers There was an error running gitlab-ctl reconfigure: /etc/gitlab/gitlab.rb:2363: unknown regexp options - var …porter[‘log_directory’] = "/var/log/gitlab/pgbouncer-exporte… … ^~ /etc/gitlab/gitlab.rb:2363: sy

Can anyone address a way to resolve this error. The line 2363, here is commented but I don’t know why the error rises from that line. Please provide debugging suggesstions to resolve this error

It would most likely suggest that a section prior to this hasn’t been closed, for example, a section was opened with the { but not closed later on for example.

You are going to have to go through your entire configuration file /etc/gitlab/gitlab.rb and all the changes you recently made that caused this to fail. Something has obviously been configured incorrectly to cause this. I had a similar thing yesterday when trying to configure something similar and forgot to close a config section properly.

Yeah worked for me … Thank you very much

1 Like