Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error on welcome screen #164

Closed
nvbln opened this issue Apr 11, 2019 · 12 comments
Closed

Error on welcome screen #164

nvbln opened this issue Apr 11, 2019 · 12 comments

Comments

@nvbln
Copy link

nvbln commented Apr 11, 2019

Error when submitting info in welcome screen

When doing a clean install and logging in with a superuser account, you're presented with the welcome screen. However, when filling all the data in (correctly), I get the error that not everything has been filled in correctly. The Sentry logs show this:

Traceback (most recent call last):
  File "/usr/local/lib/python2.7/site-packages/sentry/api/base.py", line 90, in handle_exception
    response = super(Endpoint, self).handle_exception(exc)
  File "/usr/local/lib/python2.7/site-packages/sentry/api/base.py", line 190, in dispatch
    response = handler(request, *args, **kwargs)
  File "/usr/local/lib/python2.7/site-packages/sentry/api/endpoints/system_options.py", line 79, in put
    options.set(k, v)
  File "/usr/local/lib/python2.7/site-packages/sentry/options/manager.py", line 90, in set
    ), '%r cannot be changed at runtime because it is configured on disk' % key
AssertionError: u'mail.from' cannot be changed at runtime because it is configured on disk

I looked into it, and it's because it's also setting settings which have already been set, like the mail options. The data being sent is:

'{"mail.use-tls":true,"mail.username":"","mail.port":25,"system.admin-email":"joe@example.com","mail.password":"s","mail.from":"sentry@example.com,"system.url-prefix":"https://sentry.example.com,"auth.allow-registration":false,"mail.host":"mail.example.com","beacon.anonymous":true}'

which are already set to the correct values from the config (replaced with example ones). If you resent the same request without the mail data, you go immediately to the dashboard when logging in.

@Torreslol
Copy link

+1

1 similar comment
@durnerj
Copy link

durnerj commented Apr 11, 2019

+1

@dcramer
Copy link
Member

dcramer commented Apr 11, 2019

For reference, this is a duplicate of getsentry/docker-sentry#163

@Suntgr
Copy link

Suntgr commented Apr 13, 2019

+1
http://localhost:9000/api/0/internal/options/?query=is:required
Status Code: 500 INTERNAL SERVER ERROR
{detail: "Internal Error", errorId: "b22178680f5440a4893bb49b0cffc79e"}
alert there was a error saving your changes
what is the error?

@23233
Copy link

23233 commented Apr 13, 2019

@Suntgr +1 me too!!!

@descire
Copy link

descire commented Apr 16, 2019

@Suntgr i have the same problem, have you solved it ?

@markotitel
Copy link

This may occur if you do not have enough RAM also.
@dcramer referenced another issue possibly.
I've assembled quick script for setting up Sentry on premise.
@Suntgr try it out if you still haven't solved your issue.

https://gist.github.com/markotitel/2cbb40ed5a745f0cf3f8ce12395efc11

@joginsky
Copy link

@Suntgr I have the same issue

@joginsky
Copy link

I found the solution for @Suntgr's issue.

I updated config files:

config.yml

with:

system.url-prefix: '<root-url>'
system.admin-email: '<my-email>'

... and all mail.* settings

and

sentry.conf.py

with only db and github settings settings

From my case I assume that overwriting mail.* and system.* settings in sentry.conf.py causes this error, but when I put them in config.yml file problem disappeared.

That's how I solved it.

@Suntgr
Copy link

Suntgr commented Apr 20, 2019

@Suntgr i have the same problem, have you solved it ?

sorry, i cannot find the error

@Suntgr
Copy link

Suntgr commented Apr 20, 2019

I found the solution for @Suntgr's issue.

I updated config files:

config.yml

with:

system.url-prefix: '<root-url>'
system.admin-email: '<my-email>'

... and all mail.* settings

and

sentry.conf.py

with only db and github settings settings

From my case I assume that overwriting mail.* and system.* settings in sentry.conf.py causes this error, but when I put them in config.yml file problem disappeared.

That's how I solved it.

no works for me. could do you show me your config.yml and sentry.conf.py

@dcramer
Copy link
Member

dcramer commented Apr 22, 2019

@dcramer dcramer closed this as completed Apr 22, 2019
@github-actions github-actions bot locked and limited conversation to collaborators Dec 15, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants