Config.yml vs /manage/settings/

During installation I’ve set system.url-prefix in config.yml. Documentation states that declaring settings in config.yml will prevent it from beeing change in the UI. This setting is now grayed in the UI so prevention works as it should. If I try to change any other values I get ‘There was an error saving your changes’. In log of web_1 container I can see that sentry tries to change/update system.url-prefix. I guess I am missing something here or maybe its my nginx or file permissions on config.yml.

2020-06-04T11:24:40.387752692Z Traceback (most recent call last):
2020-06-04T11:24:40.387767107Z File “/usr/local/lib/python2.7/site-packages/sentry/api/base.py”, line 90, in handle_exception
2020-06-04T11:24:40.387771590Z response = super(Endpoint, self).handle_exception(exc)
2020-06-04T11:24:40.387775534Z File “/usr/local/lib/python2.7/site-packages/rest_framework/views.py”, line 449, in handle_exception
2020-06-04T11:24:40.387779346Z self.raise_uncaught_exception(exc)
2020-06-04T11:24:40.387815240Z File “/usr/local/lib/python2.7/site-packages/sentry/api/base.py”, line 207, in dispatch
2020-06-04T11:24:40.387820930Z response = handler(request, *args, **kwargs)
2020-06-04T11:24:40.387823861Z File “/usr/local/lib/python2.7/site-packages/sentry/api/endpoints/system_options.py”, line 74, in put
2020-06-04T11:24:40.387826984Z options.set(k, v)
2020-06-04T11:24:40.387829841Z File “/usr/local/lib/python2.7/site-packages/sentry/options/manager.py”, line 83, in set
2020-06-04T11:24:40.387832841Z “%r cannot be changed at runtime because it is configured on disk” % key
2020-06-04T11:24:40.387835894Z AssertionError: u’system.url-prefix’ cannot be changed at runtime because it is configured on disk
2020-06-04T11:24:40.408335945Z 11:24:40 [ERROR] sentry_sdk.errors: Unexpected status code: 407 (body:

I think this is a bug as the UI tries to update them all, including the grayed-out URL prefix field. Is this the welcome screen or some other UI?

It is the UI under /manage/settings in admin area

1 Like

Here’s a corresponding GitHub issue. Follow over there for details on progress, will report back here when fixed. Thanks! :slight_smile:

2 Likes

Fixed in https://github.com/getsentry/sentry/pull/22143. Should hit nightlies tonight and ship in v20.12.0. :+1:

1 Like