# Secrets.yml change fails on rails 5.2 app

**URL:** <https://community.forestadmin.com/t/secrets-yml-change-fails-on-rails-5-2-app/2741>\
**Category:** Help me!\
**Tags:** setup\
**Created:** [June 21, 2021, 10:36am UTC](https://community.forestadmin.com/t/secrets-yml-change-fails-on-rails-5-2-app/2741 "2021-06-21T10:36:12Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![albandum](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/albandum/32/1277_2.png) [@albandum](https://community.forestadmin.com/u/albandum)\
**Post date:** [June 21, 2021, 10:36am UTC](https://community.forestadmin.com/t/secrets-yml-change-fails-on-rails-5-2-app/2741/1 "2021-06-21T10:36:12Z")

</div>

## Expected behavior

When running `rails g forest_liana:install xxx` with the forest token, looks like the secrets.yml file of my app should be updated with the right values

## Actual behavior

```javascript
[12:04]: (forest) rails g forest_liana:install xxx
Forest generated a random authentication secret to secure the data access of your local project.
You can change it at any time in your config/secrets.yml file.
File unchanged! The supplied flag value not found! config/secrets.yml
File unchanged! The supplied flag value not found! config/secrets.yml
File unchanged! The supplied flag value not found! config/secrets.yml

```

## Context

- Package Version: forest\_liana 6.6.2

Thanks !

---

<div class="post-metadata">

**Author:** ![Guillaume\_Cisco](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/guillaume_cisco/32/918_2.png) [@Guillaume\_Cisco](https://community.forestadmin.com/u/Guillaume_Cisco)\
**Post date:** [June 21, 2021, 1:07pm UTC](https://community.forestadmin.com/t/secrets-yml-change-fails-on-rails-5-2-app/2741/2 "2021-06-21T13:07:23Z")

</div>

Hello @albandum and welcome to the Forest Admin community!!! 🎉

Does your `config/secrets.yml` file exists?  
Is there already some config in it?

Thank you,

---

<div class="post-metadata">

**Author:** ![albandum](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/albandum/32/1277_2.png) [@albandum](https://community.forestadmin.com/u/albandum)\
**Post date:** [June 21, 2021, 1:29pm UTC](https://community.forestadmin.com/t/secrets-yml-change-fails-on-rails-5-2-app/2741/3 "2021-06-21T13:29:24Z")

</div>

Yes, it looks like this :

```javascript
# Be sure to restart your server when you modify this file.

# Your secret key is used for verifying the integrity of signed cookies.
# If you change this key, all old signed cookies will become invalid!

# Make sure the secret is at least 30 characters and all random,
# no regular words or you'll be exposed to dictionary attacks.
# You can use `rake secret` to generate a secure secret key.

# Make sure the secrets in this file are kept private
# if you're sharing your code publicly.

development:
  secret_key_base: xx

test:
  secret_key_base: xx

staging:
  secret_key_base: <%= ENV["SECRET_KEY_BASE"] %>

production:
  secret_key_base: <%= ENV["SECRET_KEY_BASE"] %>

```

Thanks !

---

<div class="post-metadata">

**Author:** ![Guillaume\_Cisco](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/guillaume_cisco/32/918_2.png) [@Guillaume\_Cisco](https://community.forestadmin.com/u/Guillaume_Cisco)\
**Post date:** [June 21, 2021, 2:47pm UTC](https://community.forestadmin.com/t/secrets-yml-change-fails-on-rails-5-2-app/2741/4 "2021-06-21T14:47:56Z")

</div>

Thank you for these informations @albandum,

Which version of ruby are you using and which version of rails exactly are you using? 5.2.0 or 5.2.4?  
Could you remove your `secrets.yml` file and rerun install command?

Let me know if it fixes your issue 🙂

---

<div class="post-metadata">

**Author:** ![albandum](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/albandum/32/1277_2.png) [@albandum](https://community.forestadmin.com/u/albandum)\
**Post date:** [June 21, 2021, 3:02pm UTC](https://community.forestadmin.com/t/secrets-yml-change-fails-on-rails-5-2-app/2741/5 "2021-06-21T15:02:10Z")

</div>

Ruby 2.6.6p146 and rails 5.2.6 !  
Yes, looks like deleting the file made it work, but it might still need a fix 🙂

Thanks !
