# Pre compilation error version 3.0.4

**URL:** https://meta.discourse.org/t/pre-compilation-error-version-3-0-4/268914
**Category:** Self-hosting
**Tags:** unsupported-install
**Created:** [June 19, 2023, 3:27pm UTC](https://meta.discourse.org/t/pre-compilation-error-version-3-0-4/268914 "2023-06-19T15:27:52Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![mdhont](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mdhont/32/312227_2.png) [@mdhont](https://meta.discourse.org/u/mdhont)
#### Post date: [June 19, 2023, 3:27pm UTC](https://meta.discourse.org/t/pre-compilation-error-version-3-0-4/268914/1 "2023-06-19T15:27:52Z")

</div>

It seems in version 3.0.4 asset pre-compilation is broken due to a syntax error. When trying to precompile the assets I get this error:

```plaintext
RAILS_ENV=production SKIP_DB_AND_REDIS=1 DONT_PRECOMPILE_CSS=1 bundle exec rake --trace assets:precompile

rake aborted!
SyntaxError: /opt/bitnami/discourse/lib/file_store/base_store.rb:96: syntax error, unexpected ','
      download(*, **, print_deprecation: false)
                ^
/opt/bitnami/discourse/lib/file_store/base_store.rb:102: syntax error, unexpected ','
      download(*, **, print_deprecation: false)

```

In [this](https://github.com/discourse/discourse/blob/21c80f5993afef8522cadd460d39ecfb363b3868/lib/file_store/base_store.rb#L94) part of the code when changing the asterisks with normal strings it works correctly:

```plaintext
    # TODO: Remove when #download becomes the canonical safe version.
    def download_safe(arg1, arg2)
      download(arg1, arg2, print_deprecation: false)
    rescue StandardError
      nil
    end

```

---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [June 19, 2023, 3:32pm UTC](https://meta.discourse.org/t/pre-compilation-error-version-3-0-4/268914/2 "2023-06-19T15:32:21Z")

</div>

Hello and welcome @mdhont 🙂

As you’re using the bitnami image I’m afraid you would need to contact them about any issues. We only support the [standard install](https://meta.discourse.org/t/142537?silent=true) here on Meta.

---

<div class="post-metadata">

### Author: ![RGJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rgj/32/523185_2.png) [@RGJ](https://meta.discourse.org/u/RGJ)
#### Post date: [June 19, 2023, 3:57pm UTC](https://meta.discourse.org/t/pre-compilation-error-version-3-0-4/268914/4 "2023-06-19T15:57:48Z")

</div>

This is happening because that syntax requires Ruby 3.2.

(And it’s quite unusual to change minimum Ruby version requirements on a minor stable release 🙁 )

---

<div class="post-metadata">

### Author: ![mdhont](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mdhont/32/312227_2.png) [@mdhont](https://meta.discourse.org/u/mdhont)
#### Post date: [June 19, 2023, 4:43pm UTC](https://meta.discourse.org/t/pre-compilation-error-version-3-0-4/268914/5 "2023-06-19T16:43:57Z")

</div>

Hi @JammyDodger,

I’m a bitnami developer, sorry I didn’t mention that 🙂 In any case, @RGJ you are right, we were tracking version 3.1 for discourse, thanks a ton for helping out.

Best,  
Michiel

---

<div class="post-metadata">

### Author: ![sigmike](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sigmike/32/117797_2.png) [@sigmike](https://meta.discourse.org/u/sigmike)
#### Post date: [July 4, 2023, 9:16am UTC](https://meta.discourse.org/t/pre-compilation-error-version-3-0-4/268914/8 "2023-07-04T09:16:57Z")

</div>

I encounter the same error on a [standard install](https://meta.discourse.org/t/142537?silent=true): [Error on Ruby 3.2 syntax on standard install](https://meta.discourse.org/t/error-on-ruby-3-2-syntax-on-standard-install/270491)
