SonarScanner Execution Failure with Ruby on Rails Application

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 (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.

1 Like

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

Hey, seeing the same issue here, using Ruby 3.2

Hello @Djiit,

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

Regards,
Margarita