[i-Diário] - ERRO no upload de brasão

Pessoal, alguém já passou por esse erro abaixo:

Ao acessar o menu Início -> Configurações -> Entidade e tentar submeter uma imagem de brasão o erro ocorre.

Obs. No meu ambiente está configurado as chaves de envio para o S3, quando não configurado, a funcionalidade funciona perfeitamente salvando o arquivo localmente.

Para usar AWS S3, basta colocar no secrets as seguintes chaves, alterando para valores reais:

I, [2021-10-04T20:20:03.397772 #122699]  INFO -- : Completed 200 OK in 836ms (Views: 536.2ms | ActiveRecord: 255.0ms)
I, [2021-10-04T20:20:03.653789 #122699]  INFO -- : Started GET "/assets/application.css" for 168.205.241.13 at 2021-10-04 20:20:03 -0300
I, [2021-10-04T20:20:03.981119 #122699]  INFO -- : Started GET "/assets/views/layouts/role_bar.js" for 168.205.241.13 at 2021-10-04 20:20:03 -0300
I, [2021-10-04T20:20:04.010233 #122699]  INFO -- : Started GET "/assets/application.js" for 168.205.241.13 at 2021-10-04 20:20:04 -0300
I, [2021-10-04T20:20:04.096120 #122699]  INFO -- : Started GET "/assets/portabilis_logo.png" for 168.205.241.13 at 2021-10-04 20:20:04 -0300
I, [2021-10-04T20:20:04.135078 #122699]  INFO -- : Started GET "/assets/mybg.png" for 168.205.241.13 at 2021-10-04 20:20:04 -0300
I, [2021-10-04T20:21:03.348382 #122699]  INFO -- : Started PATCH "/configuracoes-da-entidade" for 168.205.241.13 at 2021-10-04 20:21:03 -0300
I, [2021-10-04T20:21:03.371832 #122699]  INFO -- : Processing by EntityConfigurationsController#update as HTML
I, [2021-10-04T20:21:03.372218 #122699]  INFO -- :   Parameters: {"utf8"=>"✓", "authenticity_token"=>"/XUlxQTrDprEiqvB76p62dMbQ/fOe8Ns2B4iGs8kNanoXdjnTv/nd8xH//PVQJvUyEI1I5w2Im8zs3NtS0yIvw==", "entity_configuration"=>{"entity_name"=>"Prefeitura Municipal de Cristino Castro", "cnpj"=>"", "organ_name"=>"Secretaria Municipal de Educação", "phone"=>"", "website"=>"https://cristinocastro.pi.gov.br", "email"=>"", "logo"=>#<ActionDispatch::Http::UploadedFile:0x00007fc4ec89baa8 @tempfile=#<Tempfile:/tmp/RackMultipart20211004-122699-1ba200y.png>, @original_filename="icon.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"entity_configuration[logo]\"; filename=\"icon.png\"\r\nContent-Type: image/png\r\n">, "address_attributes"=>{"id"=>"1", "zip_code"=>"64920-000", "street"=>"", "number"=>"", "complement"=>"", "neighborhood"=>"", "city"=>"Cristino Castro", "state"=>"pi", "country"=>"Brasil", "latitude"=>"", "longitude"=>"", "_destroy"=>"false"}}, "locale"=>"pt-BR"}
I, [2021-10-04T20:21:03.431580 #122699]  INFO -- : LOG: ApplicationController#policy - Policy fallback
I, [2021-10-04T20:21:03.440715 #122699]  INFO -- : Completed 500 Internal Server Error in 68ms (ActiveRecord: 13.0ms)
F, [2021-10-04T20:21:03.443371 #122699] FATAL -- :
NoMethodError (undefined method `path' for nil:NilClass):
  app/models/entity_configuration.rb:30:in `create_logo_audit'
  app/controllers/entity_configurations_controller.rb:18:in `update'
  app/controllers/application_controller.rb:285:in `set_thread_origin_type'
  app/controllers/application_controller.rb:275:in `set_user_current'
  app/models/entity.rb:22:in `using_connection'
  app/controllers/application_controller.rb:88:in `handle_customer'


E, [2021-10-04T20:21:03.445497 #122699] ERROR -- honeybadger: ** [Honeybadger] Unable to send error report: API key is missing. id=b620b6e1-d16c-4620-962f-68a0d669006c level=3 pid=122699

Tô com o mesmo erro, fiz um teste em um ambiente de teste e ficou normal, não entedi.