inbo / reporting-rshiny-grofwildjacht

Rshiny app for grofwildjacht
https://grofwildjacht.inbo.be/
MIT License
1 stars 1 forks source link

[BUG] PRD tries to access UAT - bucket & fails #386

Closed SanderDevisscher closed 1 year ago

SanderDevisscher commented 1 year ago

Describe the bug When deploying to the PRD we get an error (see screenshot) which raises suspicion that PRD server tries to access the UAT - bucket for data checks and fails in doing so.

To Reproduce Steps to reproduce the behavior:

  1. Deploy docker in PRD environment
  2. open app (@berthuygens can you confirm ?)
  3. See error

Expected behavior app works in PRD

Screenshots image

mvarewyck commented 1 year ago

@berthuygens Could it be that the environment is misspecified in the shinyproxy yaml file (I don't have access to it)?

For UAT it should have sth like R_CONFIG_ACTIVE = "uat" While for production this should be R_CONFIG_ACTIVE = "production"

See our config file See shinyproxy configuration container-env

mvarewyck commented 1 year ago

I had a look at the yaml files and they seem correct, so I have no clue why for production it looks in the wrong bucket

stenmigerode commented 1 year ago

Hi @mvarewyck,

This problem was fixed on Monday. This ticket should have been closed

mvarewyck commented 1 year ago

@stenmigerode Can you please specify how this was fixed? - for future reference

stenmigerode commented 1 year ago

@mvarewyck There was a problem with the deploy on Friday, which was fixed later on. That is why it tried to access the UAT bucket.

Also the IAM Roles for accessing the PRD S3 bucket from the PRD Shiny Proxy server were not yet configured previously, so we added those policies in AWS.