# SonarScanner Execution Failure with Ruby on Rails Application

**URL:** <https://community.sonarsource.com/t/sonarscanner-execution-failure-with-ruby-on-rails-application/88026>\
**Category:** SonarQube Server / Community Build\
**Tags:** ruby, scanner\
**Created:** [March 27, 2023, 7:15am UTC](https://community.sonarsource.com/t/sonarscanner-execution-failure-with-ruby-on-rails-application/88026 "2023-03-27T07:15:58Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Yosuke\_Asai1](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/yosuke_asai1/32/43511_2.png) [@Yosuke\_Asai1](https://community.sonarsource.com/u/Yosuke_Asai1)\
**Post date:** [March 27, 2023, 7:15am UTC](https://community.sonarsource.com/t/sonarscanner-execution-failure-with-ruby-on-rails-application/88026/1 "2023-03-27T07:15:58Z")

</div>

I am encountering an error when trying to run SonarScanner 4.8.0.2856 for a Ruby on Rails application, both on my local machine and Github Actions. The error message is provided below:

Caused by: org.jcodings.exception.InternalException: entry: /tables/CaseUnfold\_11.bin not found  
[sonar-scan.log](https://community.sonarsource.com/uploads/short-url/ebeGoTpxZvJrmW0Vqvag1S0mP7G.log) (13.3 KB)

## The SonarQube Version

SonarQube image hash: sha256:7fa0790f2823dbbbc0ecbec31cd62e68f7be04b706c0f1ca247db5b6ef69787b  
(latest at this time)

## How is SonarQube deployed

SonarQube is deployed on AWS ECS.

## How I ran Sonar Scanner

I ran it both on my local and GitHub Actions, but saw the exact same error.  
I used the Docker image to run on my local.

## What I want to achieve

Want to run static analysis on my Ruby on Rails app

## Environment:

- SonarScanner: 4.8.0.2856 (both Github Actions and local)
- Ruby version: 2.3.8
- Local PC: Intel Mac

I would appreciate any help or guidance on how to resolve this issue.

---

<div class="post-metadata">

**Author:** ![Margarita\_Nedzelska](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/margarita_nedzelska/32/47493_2.png) [@Margarita\_Nedzelska](https://community.sonarsource.com/u/Margarita_Nedzelska)\
**Post date:** [April 5, 2023, 12:53pm UTC](https://community.sonarsource.com/t/sonarscanner-execution-failure-with-ruby-on-rails-application/88026/5 "2023-04-05T12:53:37Z")

</div>

Hello @Yosuke_Asai1,

Thanks for your message! According to the logs, it feels like exception is happening during parsing of ruby code. To investigate this I need a source file that triggesrs the problem a minimal reproducer.

Could you, please, show me the full log and provide the minimal reproducer.

Another point, the version of ruby you’re using is quite old (from 2018). Any chance there was a breaking change in 3.0, so your code can’t be parsed with the new ruby version?

Regards,  
Margarita

---

<div class="post-metadata">

**Author:** ![Djiit](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/djiit/32/44069_2.png) [@Djiit](https://community.sonarsource.com/u/Djiit)\
**Post date:** [April 12, 2023, 11:52am UTC](https://community.sonarsource.com/t/sonarscanner-execution-failure-with-ruby-on-rails-application/88026/7 "2023-04-12T11:52:33Z")

</div>

Hey, seeing the same issue here, using Ruby 3.2

---

<div class="post-metadata">

**Author:** ![Margarita\_Nedzelska](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/margarita_nedzelska/32/47493_2.png) [@Margarita\_Nedzelska](https://community.sonarsource.com/u/Margarita_Nedzelska)\
**Post date:** [May 25, 2023, 12:01pm UTC](https://community.sonarsource.com/t/sonarscanner-execution-failure-with-ruby-on-rails-application/88026/8 "2023-05-25T12:01:47Z")

</div>

Hello @Djiit,

Could you, please, provide the reproducer and the log?

Regards,  
Margarita

---

<div class="post-metadata">

**Author:** ![J\_Smith](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/j_smith/32/3241_2.png) [@J\_Smith](https://community.sonarsource.com/u/J_Smith)\
**Post date:** [September 12, 2023, 5:31pm UTC](https://community.sonarsource.com/t/sonarscanner-execution-failure-with-ruby-on-rails-application/88026/9 "2023-09-12T17:31:16Z")

</div>

Resurrecting this from the grave a little here, but we’re seeing parsing errors on Ruby files for Ruby 3.2-valid syntax. Here’s an example of a file that’s causing parsing errors:

```ruby
class Foo
  def method(*, &)
    some_method(*, &)
  end
end

```

What we’re seeing is errors on the anonymous argument passing, and the line `some_method(*, &)` is tripping things up.

This is using SonarScanner 5.0.1.3006 in a GitHub CI action and Ruby 3.2.2

---

<div class="post-metadata">

**Author:** ![Colin](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/colin/32/55255_2.png) [@Colin](https://community.sonarsource.com/u/Colin)\
**Post date:** [September 13, 2023, 1:01am UTC](https://community.sonarsource.com/t/sonarscanner-execution-failure-with-ruby-on-rails-application/88026/10 "2023-09-13T01:01:08Z")

</div>

Hey @J_Smith

What version of SonarQube are you using (or, are you using SonarCloud)? Let us know!

---

<div class="post-metadata">

**Author:** ![J\_Smith](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/j_smith/32/3241_2.png) [@J\_Smith](https://community.sonarsource.com/u/J_Smith)\
**Post date:** [September 13, 2023, 11:04am UTC](https://community.sonarsource.com/t/sonarscanner-execution-failure-with-ruby-on-rails-application/88026/11 "2023-09-13T11:04:13Z")

</div>

G’day @Colin.

We’re on Sonarcloud.

---

<div class="post-metadata">

**Author:** ![Margarita\_Nedzelska](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/margarita_nedzelska/32/47493_2.png) [@Margarita\_Nedzelska](https://community.sonarsource.com/u/Margarita_Nedzelska)\
**Post date:** [September 13, 2023, 11:52am UTC](https://community.sonarsource.com/t/sonarscanner-execution-failure-with-ruby-on-rails-application/88026/14 "2023-09-13T11:52:36Z")

</div>

Hello @J_Smith,

Thanks for your clarification. As far as I understood this is a new feature coming from Ruby 3.2. Sonar doesn’t support Ruby 3.2 yet. It’s in our plans. Here you can find the ticket to track the progress on it:

[https://sonarsource.atlassian.net/browse/SONARSLANG-614](https://sonarsource.atlassian.net/browse/SONARSLANG-614)

Best,  
Margarita

---

<div class="post-metadata">

**Author:** ![aheritier](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/aheritier/32/59961_2.png) [@aheritier](https://community.sonarsource.com/u/aheritier)\
**Post date:** [July 25, 2024, 2:33pm UTC](https://community.sonarsource.com/t/sonarscanner-execution-failure-with-ruby-on-rails-application/88026/18 "2024-07-25T14:33:32Z")

</div>

Hi @Margarita_Nedzelska

It is possible to get the same error when we are on Ruby 3.3 ?

Thanks

---

<div class="post-metadata">

**Author:** ![aheritier](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/aheritier/32/59961_2.png) [@aheritier](https://community.sonarsource.com/u/aheritier)\
**Post date:** [July 25, 2024, 3:12pm UTC](https://community.sonarsource.com/t/sonarscanner-execution-failure-with-ruby-on-rails-application/88026/19 "2024-07-25T15:12:43Z")

</div>

oh 3.3 is not yet supported cc @Djiit

> **[Languages overview](https://docs.sonarsource.com/sonarqube/latest/analyzing-source-code/languages/overview/)**
>
> SonarQube provides analysis of different languages depending on the edition you're running.
