Skip to content

Cannot use a custom config for sentry installation #1350

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

Closed
Glyphack opened this issue Feb 25, 2022 · 8 comments
Closed

Cannot use a custom config for sentry installation #1350

Glyphack opened this issue Feb 25, 2022 · 8 comments

Comments

@Glyphack
Copy link

Version

22.2.0

Steps to Reproduce

  1. Clone the sentry repository
  2. Edit sentry/conf.py
  3. Install sentry with install script

I tried both cases:

  1. Editing the sentry/conf.example.py
  2. Renaming conf.example.py to conf.example

Expected Result

from here https://develop.sentry.dev/self-hosted/#configuration
I expected to see my custom configuration after installation. I think the way I'm expecting it to work is wrong but did not find more information in docs.

Actual Result

sentry.conf.py is generated and does not have my code with it.

@chadwhitacre
Copy link
Member

This sounds similar to another report we had recently, let me find that ...

@chadwhitacre
Copy link
Member

@chadwhitacre
Copy link
Member

Is this related to that?

@Glyphack
Copy link
Author

Glyphack commented Mar 2, 2022

Yes, it's related.

@chadwhitacre
Copy link
Member

Okay, in that case let's keep this open to track and fold that conversation into here. cc: @anthonyvelazquez


Hello, I'm encountering a problem setting up the most recent version of Sentry with an external Postgres DB. We are currently using Vagrant and Puppet to provision everything and with Sentry's default settings, it works perfectly. To use the external DB, I replaced sentry.conf.example.py with a copy of the same file and the DATABASES field updated with the appropriate settings and then it runs the ./install.sh script as normal.
After Puppet finishes provisioning the system, I SSH into the box and see that the conf settings are there but I don't see any changes that occurred to the external DB and I never receive any error messages.

Are there any additional steps required to used an external DB rather than the internal container?


see that the conf settings are there

You're depending on install.sh to copy sentry.conf.example.py to sentry.conf.py, yes? The config values shows up in the latter?

@anthonyvelazquez
Copy link

Forgot about this. My issue was actually a lot simpler than I thought. Puppet was putting the sentry.conf.example.py in the main directory of the repo when it should have been within the sentry folder. Once I corrected that, everything worked as expected.

@chadwhitacre
Copy link
Member

Thanks for posting back @anthonyvelazquez, glad you got it sorted. :)

Is that relevant for you @Glyphack?

@Glyphack
Copy link
Author

Glyphack commented Mar 2, 2022

Yes In my case was also there was a typo. Thanks for your follow-ups.

@Glyphack Glyphack closed this as completed Mar 2, 2022
@github-actions github-actions bot locked and limited conversation to collaborators Mar 18, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants