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

Load initial data throws error #328

Open
glind opened this issue Sep 14, 2020 · 1 comment
Open

Load initial data throws error #328

glind opened this issue Sep 14, 2020 · 1 comment

Comments

@glind
Copy link
Contributor

glind commented Sep 14, 2020

Bug report

When deploying a new instance the initial data script fails.

Mon Sep 14 22:47:13 UTC 2020 - Load Initial Data
Traceback (most recent call last):
File "manage.py", line 23, in
execute_from_command_line(sys.argv)
File "/usr/local/lib/python3.7/site-packages/django/core/management/init.py", line 381, in execute_from_command_line
utility.execute()
File "/usr/local/lib/python3.7/site-packages/django/core/management/init.py", line 375, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/usr/local/lib/python3.7/site-packages/django/core/management/base.py", line 323, in run_from_argv
self.execute(*args, **cmd_options)
File "/usr/local/lib/python3.7/site-packages/django/core/management/base.py", line 364, in execute
output = self.handle(*args, **options)
File "/usr/local/lib/python3.7/contextlib.py", line 74, in inner
return func(*args, **kwds)
File "/code/buildly/management/commands/loadinitialdata.py", line 92, in handle
self._create_oauth_application()
File "/code/buildly/management/commands/loadinitialdata.py", line 33, in _create_oauth_application
if settings.OAUTH_CLIENT_ID and settings.OAUTH_CLIENT_SECRET:
File "/usr/local/lib/python3.7/site-packages/django/conf/init.py", line 80, in getattr
val = getattr(self._wrapped, name)
AttributeError: 'Settings' object has no attribute 'OAUTH_CLIENT_ID'

Current behavior

Deploy on a new cluster/instance fails with 502 gateway error

Expected behavior

Deploy works with database

Enviroment

Buildly version : x.y.z
Logs: ``

@jefmoura
Copy link
Member

jefmoura commented Sep 15, 2020

As we can see in the configuration tables https://github.com/buildlyio/buildly-core#configuration we have OAUTH_CLIENT_ID and OAUTH_CLIENT_SECRET to be set. Maybe we should be clearer saying it's required 'cause if they aren't set, the authentication system won't work; consequently users won't be able to access any endpoint.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants