Syntax error when Installing Yeti

We are new to yet and we are trying to deploy it for testing on our VoIP network but we are getting errors as follows, please can you help us resolve the issue.

Mar 25 11:51:26 test-yetti ruby[2265]: /opt/yeti-web/lib/resource_dsl/acts_as_safe_destroy.rb:16: syntax error, unexpected keyword_rescue, expecting keyword_end
Mar 25 11:51:26 test-yetti ruby[2265]: rescue StandardError => e
Mar 25 11:51:26 test-yetti ruby[2265]: ^
Mar 25 11:51:26 test-yetti ruby[2265]: [2265] 2020-03-25 11:51:26 -0400: ! Unable to load application: SyntaxError: /opt/yeti-web/lib/resource_dsl/acts_as_safe_destroy.rb:16: syntax error, unexpected keyword_rescue, expecting keyword_end
Mar 25 11:51:26 test-yetti ruby[2265]: rescue StandardError => e
Mar 25 11:51:26 test-yetti ruby[2265]: ^
Mar 25 11:51:26 test-yetti ruby[2265]: /opt/yeti-web/vendor/bundle/ruby/2.3.0/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in `require’: /opt/yeti-web/lib/resource_dsl/acts_as_safe_destroy.rb:16: syntax error, unexpected keyword_rescue, expecting keyword_end (SyntaxError)
Mar 25 11:51:26 test-yetti ruby[2265]: rescue StandardError => e
Mar 25 11:51:26 test-yetti ruby[2265]: ^

Could you explain how exactly this error was received, how to reproduce it? What version of yeti-web you are trying to install?
Actually question is why it is starting under ruby2.3 when latest packages was built for ruby2.6. Have you installed it from debian package?

Hello Dimitry,
Thank you for your reply. We have been able to correct the issue and the Yeti is running properly now on our server.