Closed tfmm closed 11 months ago
Can you provide the output of docker ps -a --format 'table {{.ID}}\t{{.Names}}\t{{.Image}}\t{{.Status}}'
64fb403f1977 tandoor-nginx_recipes-1 nginx:mainline-alpine Up 22 hours
7eb788091eab tandoor-web_recipes-1 vabene1111/recipes:latest Up 22 hours
c6d3c5f13ba7 tandoor-db_recipes-1 postgres:15-alpine Up 22 hours
If it's a new install delete the contents of postgres and restart all of the containers
Issue is still present after deleting the Postgres data and restarting all containers.
Issue is still present after deleting the Postgres data and restarting all containers.
I just started with a fresh install and can't recreate this issue. Make sure you have the latest docker image - docker pull vabene1111/recipes && docker compose up -d --force-recreate
No matter what I do, I still get the same error, even on a fresh pull of the image(s) and completely removing the data directory and starting from scratch.
Here's the full browser tracebak:
IntegrityError at /
null value in column "space_id" of relation "cookbook_userspace" violates not-null constraint
DETAIL: Failing row contains (1, f, 2023-12-04 15:40:32.871257+00, 2023-12-04 15:40:32.871266+00, null, 1, null, null).
Request Method: GET
Request URL: https://recipes.EXAMPLE.co/
Django Version: 4.2.7
Exception Type: IntegrityError
Exception Value:
null value in column "space_id" of relation "cookbook_userspace" violates not-null constraint
DETAIL: Failing row contains (1, f, 2023-12-04 15:40:32.871257+00, 2023-12-04 15:40:32.871266+00, null, 1, null, null).
Exception Location: /opt/recipes/venv/lib/python3.10/site-packages/django/db/backends/utils.py, line 89, in _execute
Raised during: cookbook.views.views.index
Python Executable: /opt/recipes/venv/bin/python
Python Version: 3.10.13
Python Path:
['/opt/recipes',
'/opt/recipes/venv/bin',
'/usr/local/lib/python310.zip',
'/usr/local/lib/python3.10',
'/usr/local/lib/python3.10/lib-dynload',
'/opt/recipes/venv/lib/python3.10/site-packages']
Server time: Mon, 04 Dec 2023 10:40:32 -0500
Traceback Switch back to interactive view
Environment:
Request Method: GET
Request URL: https://recipes.EXAMPLE.co/
Django Version: 4.2.7
Python Version: 3.10.13
Installed Applications:
['dal',
'dal_select2',
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.sites',
'django.contrib.staticfiles',
'django.contrib.postgres',
'oauth2_provider',
'django_prometheus',
'django_tables2',
'corsheaders',
'crispy_forms',
'crispy_bootstrap4',
'rest_framework',
'rest_framework.authtoken',
'django_cleanup.apps.CleanupConfig',
'webpack_loader',
'django_js_reverse',
'hcaptcha',
'allauth',
'allauth.account',
'allauth.socialaccount',
'cookbook.apps.CookbookConfig',
'treebeard',
'allauth.socialaccount.providers.openid_connect']
Installed Middleware:
['corsheaders.middleware.CorsMiddleware',
'django.middleware.security.SecurityMiddleware',
'whitenoise.middleware.WhiteNoiseMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.common.CommonMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'django.middleware.locale.LocaleMiddleware',
'django.middleware.clickjacking.XFrameOptionsMiddleware',
'cookbook.helper.scope_middleware.ScopeMiddleware']
Traceback (most recent call last):
File "/opt/recipes/venv/lib/python3.10/site-packages/django/db/backends/utils.py", line 89, in _execute
return self.cursor.execute(sql, params)
The above exception (null value in column "space_id" of relation "cookbook_userspace" violates not-null constraint
DETAIL: Failing row contains (1, f, 2023-12-04 15:40:32.871257+00, 2023-12-04 15:40:32.871266+00, null, 1, null, null).
) was the direct cause of the following exception:
File "/opt/recipes/venv/lib/python3.10/site-packages/django/core/handlers/exception.py", line 55, in inner
response = get_response(request)
File "/opt/recipes/cookbook/helper/scope_middleware.py", line 39, in __call__
return views.space_overview(request)
File "/opt/recipes/venv/lib/python3.10/site-packages/django/contrib/auth/decorators.py", line 23, in _wrapper_view
return view_func(request, *args, **kwargs)
File "/opt/recipes/cookbook/views/views.py", line 93, in space_overview
user_space = UserSpace.objects.create(space=Space.objects.first(), user=request.user, active=False)
File "/opt/recipes/venv/lib/python3.10/site-packages/django/db/models/manager.py", line 87, in manager_method
return getattr(self.get_queryset(), name)(*args, **kwargs)
File "/opt/recipes/venv/lib/python3.10/site-packages/django/db/models/query.py", line 658, in create
obj.save(force_insert=True, using=self.db)
File "/opt/recipes/venv/lib/python3.10/site-packages/django/db/models/base.py", line 814, in save
self.save_base(
File "/opt/recipes/venv/lib/python3.10/site-packages/django/db/models/base.py", line 877, in save_base
updated = self._save_table(
File "/opt/recipes/venv/lib/python3.10/site-packages/django/db/models/base.py", line 1020, in _save_table
results = self._do_insert(
File "/opt/recipes/venv/lib/python3.10/site-packages/django/db/models/base.py", line 1061, in _do_insert
return manager._insert(
File "/opt/recipes/venv/lib/python3.10/site-packages/django/db/models/manager.py", line 87, in manager_method
return getattr(self.get_queryset(), name)(*args, **kwargs)
File "/opt/recipes/venv/lib/python3.10/site-packages/django/db/models/query.py", line 1805, in _insert
return query.get_compiler(using=using).execute_sql(returning_fields)
File "/opt/recipes/venv/lib/python3.10/site-packages/django/db/models/sql/compiler.py", line 1822, in execute_sql
cursor.execute(sql, params)
File "/opt/recipes/venv/lib/python3.10/site-packages/django/db/backends/utils.py", line 102, in execute
return super().execute(sql, params)
File "/opt/recipes/venv/lib/python3.10/site-packages/django/db/backends/utils.py", line 67, in execute
return self._execute_with_wrappers(
File "/opt/recipes/venv/lib/python3.10/site-packages/django/db/backends/utils.py", line 80, in _execute_with_wrappers
return executor(sql, params, many, context)
File "/opt/recipes/venv/lib/python3.10/site-packages/django/db/backends/utils.py", line 84, in _execute
with self.db.wrap_database_errors:
File "/opt/recipes/venv/lib/python3.10/site-packages/django/db/utils.py", line 91, in __exit__
raise dj_exc_value.with_traceback(traceback) from exc_value
File "/opt/recipes/venv/lib/python3.10/site-packages/django/db/backends/utils.py", line 89, in _execute
return self.cursor.execute(sql, params)
Exception Type: IntegrityError at /
Exception Value: null value in column "space_id" of relation "cookbook_userspace" violates not-null constraint
DETAIL: Failing row contains (1, f, 2023-12-04 15:40:32.871257+00, 2023-12-04 15:40:32.871266+00, null, 1, null, null).
Request information
USER
admin_username
GET
No GET data
POST
No POST data
FILES
No FILES data
COOKIES
Variable Value
messages
'W1siX19qc29uX21lc3NhZ2UiLDAsMjUsIlN1Y2Nlc3NmdWxseSBzaWduZWQgaW4gYXMgcmxfYWRtaW4uIiwiIl1d:1rAB3g:NkwgdzJPcTnWGhsmpSROFOfBqUS62652tRFW75O09yc'
csrftoken
'********************'
sessionid
'********************'
META
Variable Value
CSRF_COOKIE
'Kqz5RMR3QCwVNp1B1bFGCBfB8NBzUJJi'
HTTP_ACCEPT
'text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7'
HTTP_ACCEPT_ENCODING
'gzip, deflate, br'
HTTP_ACCEPT_LANGUAGE
'en-US,en;q=0.9'
HTTP_CACHE_CONTROL
'max-age=0'
HTTP_CONNECTION
'close'
HTTP_COOKIE
'********************'
HTTP_HOST
'recipes.EXAMPLE.co'
HTTP_REFERER
'https://recipes.EXAMPLE.co/accounts/login/'
HTTP_SEC_CH_UA
'"Chromium";v="118", "Google Chrome";v="118", "Not=A?Brand";v="99"'
HTTP_SEC_CH_UA_MOBILE
'?0'
HTTP_SEC_CH_UA_PLATFORM
'"macOS"'
HTTP_SEC_FETCH_DEST
'empty'
HTTP_SEC_FETCH_MODE
'navigate'
HTTP_SEC_FETCH_SITE
'same-origin'
HTTP_UPGRADE_INSECURE_REQUESTS
'1'
HTTP_USER_AGENT
('Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, '
'like Gecko) Chrome/118.0.0.0 Safari/537.36')
HTTP_X_FORWARDED_FOR
'165.1.207.240'
HTTP_X_FORWARDED_PROTO
'https'
HTTP_X_FORWARDED_SCHEME
'https'
HTTP_X_REAL_IP
'165.1.207.240'
PATH_INFO
'/'
QUERY_STRING
''
RAW_URI
'/'
REMOTE_ADDR
'172.27.0.4'
REMOTE_PORT
'49980'
REQUEST_METHOD
'GET'
SCRIPT_NAME
''
SERVER_NAME
'0.0.0.0'
SERVER_PORT
'8080'
SERVER_PROTOCOL
'HTTP/1.0'
SERVER_SOFTWARE
'gunicorn/20.1.0'
gunicorn.socket
<socket.socket fd=11, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, laddr=('172.27.0.3', 8080), raddr=('172.27.0.4', 49980)>
wsgi.errors
<gunicorn.http.wsgi.WSGIErrorsWrapper object at 0x7f871331c2b0>
wsgi.file_wrapper
<class 'gunicorn.http.wsgi.FileWrapper'>
wsgi.input
<gunicorn.http.body.Body object at 0x7f8712d45210>
wsgi.input_terminated
True
wsgi.multiprocess
True
wsgi.multithread
True
wsgi.run_once
False
wsgi.url_scheme
'http'
wsgi.version
(1, 0)
Settings
Using settings module recipes.settings
Setting Value
ABSOLUTE_URL_OVERRIDES
{}
ACCOUNT_ADAPTER
'cookbook.helper.AllAuthCustomAdapter'
ACCOUNT_EMAIL_CONFIRMATION_ANONYMOUS_REDIRECT_URL
'index'
ACCOUNT_EMAIL_CONFIRMATION_EXPIRE_DAYS
90
ACCOUNT_EMAIL_REQUIRED
True
ACCOUNT_EMAIL_SUBJECT_PREFIX
'[Tandoor Recipes] '
ACCOUNT_LOGOUT_ON_GET
True
ACCOUNT_LOGOUT_REDIRECT_URL
'index'
ACCOUNT_MAX_EMAIL_ADDRESSES
3
ACCOUNT_SIGNUP_EMAIL_ENTER_TWICE
True
ACCOUNT_SIGNUP_FORM_CLASS
'cookbook.forms.AllAuthSignupForm'
ADMINS
[]
ALLOWED_HOSTS
['*']
APPEND_SLASH
True
AUTHENTICATION_BACKENDS
['django.contrib.auth.backends.ModelBackend',
'allauth.account.auth_backends.AuthenticationBackend']
AUTH_PASSWORD_VALIDATORS
'********************'
AUTH_USER_MODEL
'auth.User'
AWS_ENABLED
False
BASE_DIR
'/opt/recipes'
CACHES
{'default': {'BACKEND': 'django.core.cache.backends.locmem.LocMemCache',
'LOCATION': 'default'}}
CACHE_MIDDLEWARE_ALIAS
'default'
CACHE_MIDDLEWARE_KEY_PREFIX
'********************'
CACHE_MIDDLEWARE_SECONDS
600
COMMENT_PREF_DEFAULT
False
CORS_ALLOW_ALL_ORIGINS
True
CORS_ALLOW_METHODS
['GET', 'OPTIONS', 'POST']
CORS_ORIGIN_ALLOW_ALL
True
CORS_URLS_REGEX
'^/api/bookmarklet-import.*$'
CRISPY_TEMPLATE_PACK
'bootstrap4'
CSRF_COOKIE_AGE
31449600
CSRF_COOKIE_DOMAIN
None
CSRF_COOKIE_HTTPONLY
False
CSRF_COOKIE_MASKED
False
CSRF_COOKIE_NAME
'csrftoken'
CSRF_COOKIE_PATH
'/'
CSRF_COOKIE_SAMESITE
'Lax'
CSRF_COOKIE_SECURE
False
CSRF_FAILURE_VIEW
'django.views.csrf.csrf_failure'
CSRF_HEADER_NAME
'HTTP_X_CSRFTOKEN'
CSRF_TRUSTED_ORIGINS
[]
CSRF_USE_SESSIONS
False
DATABASES
{'default': {'ATOMIC_REQUESTS': False,
'AUTOCOMMIT': True,
'CONN_HEALTH_CHECKS': False,
'CONN_MAX_AGE': 60,
'ENGINE': 'django.db.backends.postgresql',
'HOST': 'db_recipes',
'NAME': 'djangodb',
'OPTIONS': {},
'PASSWORD': '********************',
'PORT': '5432',
'TEST': {'CHARSET': None,
'COLLATION': None,
'MIGRATE': True,
'MIRROR': None,
'NAME': None},
'TIME_ZONE': None,
'USER': 'djangouser'}}
DATABASE_ROUTERS
[]
DATA_UPLOAD_MAX_MEMORY_SIZE
2621440
DATA_UPLOAD_MAX_NUMBER_FIELDS
1000
DATA_UPLOAD_MAX_NUMBER_FILES
100
DATETIME_FORMAT
'N j, Y, P'
DATETIME_INPUT_FORMATS
['%Y-%m-%d %H:%M:%S',
'%Y-%m-%d %H:%M:%S.%f',
'%Y-%m-%d %H:%M',
'%m/%d/%Y %H:%M:%S',
'%m/%d/%Y %H:%M:%S.%f',
'%m/%d/%Y %H:%M',
'%m/%d/%y %H:%M:%S',
'%m/%d/%y %H:%M:%S.%f',
'%m/%d/%y %H:%M']
DATE_FORMAT
'N j, Y'
DATE_INPUT_FORMATS
['%Y-%m-%d',
'%m/%d/%Y',
'%m/%d/%y',
'%b %d %Y',
'%b %d, %Y',
'%d %b %Y',
'%d %b, %Y',
'%B %d %Y',
'%B %d, %Y',
'%d %B %Y',
'%d %B, %Y']
DEBUG
True
DEBUG_PROPAGATE_EXCEPTIONS
False
DEBUG_TOOLBAR
False
DECIMAL_SEPARATOR
'.'
DEFAULT_AUTO_FIELD
'django.db.models.AutoField'
DEFAULT_CHARSET
'utf-8'
DEFAULT_EXCEPTION_REPORTER
'django.views.debug.ExceptionReporter'
DEFAULT_EXCEPTION_REPORTER_FILTER
'django.views.debug.SafeExceptionReporterFilter'
DEFAULT_FILE_STORAGE
'django.core.files.storage.FileSystemStorage'
DEFAULT_FROM_EMAIL
'webmaster@localhost'
DEFAULT_INDEX_TABLESPACE
''
DEFAULT_TABLESPACE
''
DISABLE_TREE_FIX_STARTUP
False
DISALLOWED_USER_AGENTS
[]
DJANGO_TABLES2_PAGE_RANGE
8
DJANGO_TABLES2_TEMPLATE
'cookbook/templates/generic/table_template.html'
EMAIL_BACKEND
'django.core.mail.backends.smtp.EmailBackend'
EMAIL_HOST
'EXAMPLE.co'
EMAIL_HOST_PASSWORD
'********************'
EMAIL_HOST_USER
'recipes@EXAMPLE.co'
EMAIL_PORT
587
EMAIL_SSL_CERTFILE
None
EMAIL_SSL_KEYFILE
'********************'
EMAIL_SUBJECT_PREFIX
'[Django] '
EMAIL_TIMEOUT
None
EMAIL_USE_LOCALTIME
False
EMAIL_USE_SSL
False
EMAIL_USE_TLS
True
ENABLE_METRICS
False
ENABLE_PDF_EXPORT
True
ENABLE_SIGNUP
False
EXPORT_FILE_CACHE_DURATION
600
FDC_API_KEY
'********************'
FILE_UPLOAD_DIRECTORY_PERMISSIONS
None
FILE_UPLOAD_HANDLERS
['django.core.files.uploadhandler.MemoryFileUploadHandler',
'django.core.files.uploadhandler.TemporaryFileUploadHandler']
FILE_UPLOAD_MAX_MEMORY_SIZE
2621440
FILE_UPLOAD_PERMISSIONS
420
FILE_UPLOAD_TEMP_DIR
None
FIRST_DAY_OF_WEEK
0
FIXTURE_DIRS
[]
FORCE_SCRIPT_NAME
None
FORMAT_MODULE_PATH
None
FORM_RENDERER
'django.forms.renderers.DjangoTemplates'
FRACTION_PREF_DEFAULT
True
GUNICORN_MEDIA
False
HCAPTCHA_SECRET
'********************'
HCAPTCHA_SITEKEY
'********************'
HOSTED
False
IGNORABLE_404_URLS
[]
IMPRINT_URL
''
INSTALLED_APPS
['dal',
'dal_select2',
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.sites',
'django.contrib.staticfiles',
'django.contrib.postgres',
'oauth2_provider',
'django_prometheus',
'django_tables2',
'corsheaders',
'crispy_forms',
'crispy_bootstrap4',
'rest_framework',
'rest_framework.authtoken',
'django_cleanup.apps.CleanupConfig',
'webpack_loader',
'django_js_reverse',
'hcaptcha',
'allauth',
'allauth.account',
'allauth.socialaccount',
'cookbook.apps.CookbookConfig',
'treebeard',
'allauth.socialaccount.providers.openid_connect']
INTERNAL_IPS
['127.0.0.1']
JS_REVERSE_OUTPUT_PATH
'/opt/recipes/cookbook/static/django_js_reverse'
JS_REVERSE_SCRIPT_PREFIX
''
KJ_PREF_DEFAULT
False
LANGUAGES
[('hy', 'Armenian '),
('bg', 'Bulgarian'),
('ca', 'Catalan'),
('cs', 'Czech'),
('da', 'Danish'),
('nl', 'Dutch'),
('en', 'English'),
('fr', 'French'),
('de', 'German'),
('hu', 'Hungarian'),
('it', 'Italian'),
('lv', 'Latvian'),
('nb', 'Norwegian '),
('pl', 'Polish'),
('ru', 'Russian'),
('es', 'Spanish'),
('sv', 'Swedish')]
LANGUAGES_BIDI
['he', 'ar', 'ar-dz', 'ckb', 'fa', 'ur']
LANGUAGE_CODE
'en'
LANGUAGE_COOKIE_AGE
None
LANGUAGE_COOKIE_DOMAIN
None
LANGUAGE_COOKIE_HTTPONLY
False
LANGUAGE_COOKIE_NAME
'django_language'
LANGUAGE_COOKIE_PATH
'/'
LANGUAGE_COOKIE_SAMESITE
None
LANGUAGE_COOKIE_SECURE
False
LDAP_AUTH
False
LOCALE_PATHS
[]
LOGGING
{}
LOGGING_CONFIG
'logging.config.dictConfig'
LOGIN_REDIRECT_URL
'index'
LOGIN_URL
'/accounts/login/'
LOGOUT_REDIRECT_URL
'index'
MANAGERS
[]
MEDIA_ROOT
'/opt/recipes/mediafiles'
MEDIA_URL
'/media/'
MESSAGE_STORAGE
'django.contrib.messages.storage.fallback.FallbackStorage'
MESSAGE_TAGS
{40: 'danger'}
MIDDLEWARE
['corsheaders.middleware.CorsMiddleware',
'django.middleware.security.SecurityMiddleware',
'whitenoise.middleware.WhiteNoiseMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.common.CommonMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'django.middleware.locale.LocaleMiddleware',
'django.middleware.clickjacking.XFrameOptionsMiddleware',
'cookbook.helper.scope_middleware.ScopeMiddleware']
MIGRATION_MODULES
{}
MONTH_DAY_FORMAT
'F j'
NUMBER_GROUPING
0
OAUTH2_PROVIDER
{'SCOPES': {'bookmarklet': 'only access to bookmarklet',
'read': 'Read scope',
'write': 'Write scope'}}
PASSWORD_HASHERS
'********************'
PASSWORD_RESET_TIMEOUT
'********************'
PLUGINS
[]
PLUGINS_DIRECTORY
'/opt/recipes/recipes/plugins'
PREPEND_WWW
False
PRIVACY_URL
''
READ_SCOPE
'read'
REMOTE_USER_AUTH
False
REST_FRAMEWORK
{'DEFAULT_AUTHENTICATION_CLASSES': ('rest_framework.authentication.SessionAuthentication',
'oauth2_provider.contrib.rest_framework.OAuth2Authentication',
'rest_framework.authentication.BasicAuthentication'),
'DEFAULT_PERMISSION_CLASSES': ['rest_framework.permissions.IsAuthenticated']}
ROOT_URLCONF
'recipes.urls'
SCRIPT_NAME
''
SECRET_KEY
'********************'
SECRET_KEY_FALLBACKS
'********************'
SECURE_CONTENT_TYPE_NOSNIFF
True
SECURE_CROSS_ORIGIN_OPENER_POLICY
'same-origin'
SECURE_HSTS_INCLUDE_SUBDOMAINS
False
SECURE_HSTS_PRELOAD
False
SECURE_HSTS_SECONDS
0
SECURE_PROXY_SSL_HEADER
('HTTP_X_FORWARDED_PROTO', 'https')
SECURE_REDIRECT_EXEMPT
[]
SECURE_REFERRER_POLICY
'same-origin'
SECURE_SSL_HOST
None
SECURE_SSL_REDIRECT
False
SERVER_EMAIL
'root@localhost'
SESSION_CACHE_ALIAS
'default'
SESSION_COOKIE_AGE
31536000
SESSION_COOKIE_DOMAIN
None
SESSION_COOKIE_HTTPONLY
True
SESSION_COOKIE_NAME
'sessionid'
SESSION_COOKIE_PATH
'/'
SESSION_COOKIE_SAMESITE
'Lax'
SESSION_COOKIE_SECURE
False
SESSION_ENGINE
'django.contrib.sessions.backends.db'
SESSION_EXPIRE_AT_BROWSER_CLOSE
False
SESSION_FILE_PATH
None
SESSION_SAVE_EVERY_REQUEST
False
SESSION_SERIALIZER
'django.contrib.sessions.serializers.JSONSerializer'
SETTINGS_MODULE
'recipes.settings'
SHARING_ABUSE
False
SHARING_LIMIT
0
SHOPPING_MIN_AUTOSYNC_INTERVAL
5
SHORT_DATETIME_FORMAT
'm/d/Y P'
SHORT_DATE_FORMAT
'm/d/Y'
SIGNING_BACKEND
'django.core.signing.TimestampSigner'
SILENCED_SYSTEM_CHECKS
[]
SITE_ID
1
SOCIALACCOUNT_EMAIL_VERIFICATION
'none'
SOCIALACCOUNT_PROVIDERS
{'openid_connect': {'APPS': [{'client_id': '243477144301273091@recipes',
'name': 'EXAMPLE SSO',
'provider_id': 'EXAMPLE-sso',
'settings': {'server_url': 'https://sso.EXAMPLE.co'}}]}}
SOCIAL_DEFAULT_ACCESS
True
SOCIAL_DEFAULT_GROUP
'guest'
SOCIAL_PROVIDERS
['allauth.socialaccount.providers.openid_connect']
SORT_TREE_BY_NAME
False
SPACE_DEFAULT_ALLOW_SHARING
True
SPACE_DEFAULT_MAX_FILES
0
SPACE_DEFAULT_MAX_RECIPES
0
SPACE_DEFAULT_MAX_USERS
0
STATICFILES_DIRS
[]
STATICFILES_FINDERS
['django.contrib.staticfiles.finders.FileSystemFinder',
'django.contrib.staticfiles.finders.AppDirectoriesFinder']
STATICFILES_STORAGE
'whitenoise.storage.CompressedManifestStaticFilesStorage'
STATIC_ROOT
'/opt/recipes/staticfiles'
STATIC_URL
'/static/'
STICKY_NAV_PREF_DEFAULT
True
STORAGES
{'default': {'BACKEND': 'django.core.files.storage.FileSystemStorage'},
'staticfiles': {'BACKEND': 'whitenoise.storage.CompressedManifestStaticFilesStorage'}}
TEMPLATES
[{'APP_DIRS': True,
'BACKEND': 'django.template.backends.django.DjangoTemplates',
'DIRS': ['/opt/recipes/templates', '/opt/recipes/cookbook/templates'],
'OPTIONS': {'context_processors': ['django.template.context_processors.debug',
'django.template.context_processors.request',
'django.contrib.auth.context_processors.auth',
'django.contrib.messages.context_processors.messages',
'django.template.context_processors.media',
'cookbook.helper.context_processors.context_settings']}}]
TERMS_URL
''
TEST_NON_SERIALIZED_APPS
[]
TEST_RUNNER
'cookbook.helper.CustomTestRunner.CustomTestRunner'
THOUSAND_SEPARATOR
','
TIME_FORMAT
'P'
TIME_INPUT_FORMATS
['%H:%M:%S', '%H:%M:%S.%f', '%H:%M']
TIME_ZONE
'America/Detroit'
USE_DEPRECATED_PYTZ
False
USE_I18N
True
USE_L10N
True
USE_THOUSAND_SEPARATOR
False
USE_TZ
True
USE_X_FORWARDED_HOST
False
USE_X_FORWARDED_PORT
False
VUE_DIR
'/opt/recipes/vue'
WEBPACK_LOADER
{'DEFAULT': {'BUNDLE_DIR_NAME': 'vue/',
'CACHE': False,
'IGNORE': ['.+\\.hot-update.js', '.+\\.map'],
'POLL_INTERVAL': 0.1,
'STATS_FILE': '/opt/recipes/vue/webpack-stats.json',
'TIMEOUT': None}}
WRITE_SCOPE
'write'
WSGI_APPLICATION
'recipes.wsgi.application'
X_FRAME_OPTIONS
'DENY'
YEAR_MONTH_FORMAT
'F Y'
You’re seeing this error because you have DEBUG = True in your Django settings file. Change that to False, and Django will display a standard page generated by the handler for this status code.IntegrityError at /
null value in column "space_id" of relation "cookbook_userspace" violates not-null constraint
DETAIL: Failing row contains (1, f, 2023-12-04 15:40:32.871257+00, 2023-12-04 15:40:32.871266+00, null, 1, null, null).
Request Method: GET
Request URL: https://recipes.EXAMPLE.co/
Django Version: 4.2.7
Exception Type: IntegrityError
Exception Value:
null value in column "space_id" of relation "cookbook_userspace" violates not-null constraint
DETAIL: Failing row contains (1, f, 2023-12-04 15:40:32.871257+00, 2023-12-04 15:40:32.871266+00, null, 1, null, null).
Exception Location: /opt/recipes/venv/lib/python3.10/site-packages/django/db/backends/utils.py, line 89, in _execute
Raised during: cookbook.views.views.index
Python Executable: /opt/recipes/venv/bin/python
Python Version: 3.10.13
Python Path:
['/opt/recipes',
'/opt/recipes/venv/bin',
'/usr/local/lib/python310.zip',
'/usr/local/lib/python3.10',
'/usr/local/lib/python3.10/lib-dynload',
'/opt/recipes/venv/lib/python3.10/site-packages']
Server time: Mon, 04 Dec 2023 10:40:32 -0500
Traceback Switch back to interactive view
Environment:
Request Method: GET
Request URL: https://recipes.EXAMPLE.co/
Django Version: 4.2.7
Python Version: 3.10.13
Installed Applications:
['dal',
'dal_select2',
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.sites',
'django.contrib.staticfiles',
'django.contrib.postgres',
'oauth2_provider',
'django_prometheus',
'django_tables2',
'corsheaders',
'crispy_forms',
'crispy_bootstrap4',
'rest_framework',
'rest_framework.authtoken',
'django_cleanup.apps.CleanupConfig',
'webpack_loader',
'django_js_reverse',
'hcaptcha',
'allauth',
'allauth.account',
'allauth.socialaccount',
'cookbook.apps.CookbookConfig',
'treebeard',
'allauth.socialaccount.providers.openid_connect']
Installed Middleware:
['corsheaders.middleware.CorsMiddleware',
'django.middleware.security.SecurityMiddleware',
'whitenoise.middleware.WhiteNoiseMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.common.CommonMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'django.middleware.locale.LocaleMiddleware',
'django.middleware.clickjacking.XFrameOptionsMiddleware',
'cookbook.helper.scope_middleware.ScopeMiddleware']
Traceback (most recent call last):
File "/opt/recipes/venv/lib/python3.10/site-packages/django/db/backends/utils.py", line 89, in _execute
return self.cursor.execute(sql, params)
The above exception (null value in column "space_id" of relation "cookbook_userspace" violates not-null constraint
DETAIL: Failing row contains (1, f, 2023-12-04 15:40:32.871257+00, 2023-12-04 15:40:32.871266+00, null, 1, null, null).
) was the direct cause of the following exception:
File "/opt/recipes/venv/lib/python3.10/site-packages/django/core/handlers/exception.py", line 55, in inner
response = get_response(request)
File "/opt/recipes/cookbook/helper/scope_middleware.py", line 39, in __call__
return views.space_overview(request)
File "/opt/recipes/venv/lib/python3.10/site-packages/django/contrib/auth/decorators.py", line 23, in _wrapper_view
return view_func(request, *args, **kwargs)
File "/opt/recipes/cookbook/views/views.py", line 93, in space_overview
user_space = UserSpace.objects.create(space=Space.objects.first(), user=request.user, active=False)
File "/opt/recipes/venv/lib/python3.10/site-packages/django/db/models/manager.py", line 87, in manager_method
return getattr(self.get_queryset(), name)(*args, **kwargs)
File "/opt/recipes/venv/lib/python3.10/site-packages/django/db/models/query.py", line 658, in create
obj.save(force_insert=True, using=self.db)
File "/opt/recipes/venv/lib/python3.10/site-packages/django/db/models/base.py", line 814, in save
self.save_base(
File "/opt/recipes/venv/lib/python3.10/site-packages/django/db/models/base.py", line 877, in save_base
updated = self._save_table(
File "/opt/recipes/venv/lib/python3.10/site-packages/django/db/models/base.py", line 1020, in _save_table
results = self._do_insert(
File "/opt/recipes/venv/lib/python3.10/site-packages/django/db/models/base.py", line 1061, in _do_insert
return manager._insert(
File "/opt/recipes/venv/lib/python3.10/site-packages/django/db/models/manager.py", line 87, in manager_method
return getattr(self.get_queryset(), name)(*args, **kwargs)
File "/opt/recipes/venv/lib/python3.10/site-packages/django/db/models/query.py", line 1805, in _insert
return query.get_compiler(using=using).execute_sql(returning_fields)
File "/opt/recipes/venv/lib/python3.10/site-packages/django/db/models/sql/compiler.py", line 1822, in execute_sql
cursor.execute(sql, params)
File "/opt/recipes/venv/lib/python3.10/site-packages/django/db/backends/utils.py", line 102, in execute
return super().execute(sql, params)
File "/opt/recipes/venv/lib/python3.10/site-packages/django/db/backends/utils.py", line 67, in execute
return self._execute_with_wrappers(
File "/opt/recipes/venv/lib/python3.10/site-packages/django/db/backends/utils.py", line 80, in _execute_with_wrappers
return executor(sql, params, many, context)
File "/opt/recipes/venv/lib/python3.10/site-packages/django/db/backends/utils.py", line 84, in _execute
with self.db.wrap_database_errors:
File "/opt/recipes/venv/lib/python3.10/site-packages/django/db/utils.py", line 91, in __exit__
raise dj_exc_value.with_traceback(traceback) from exc_value
File "/opt/recipes/venv/lib/python3.10/site-packages/django/db/backends/utils.py", line 89, in _execute
return self.cursor.execute(sql, params)
Exception Type: IntegrityError at /
Exception Value: null value in column "space_id" of relation "cookbook_userspace" violates not-null constraint
DETAIL: Failing row contains (1, f, 2023-12-04 15:40:32.871257+00, 2023-12-04 15:40:32.871266+00, null, 1, null, null).
Request information
USER
admin_username
GET
No GET data
POST
No POST data
FILES
No FILES data
COOKIES
Variable Value
messages
'W1siX19qc29uX21lc3NhZ2UiLDAsMjUsIlN1Y2Nlc3NmdWxseSBzaWduZWQgaW4gYXMgcmxfYWRtaW4uIiwiIl1d:1rAB3g:NkwgdzJPcTnWGhsmpSROFOfBqUS62652tRFW75O09yc'
csrftoken
'********************'
sessionid
'********************'
META
Variable Value
CSRF_COOKIE
'Kqz5RMR3QCwVNp1B1bFGCBfB8NBzUJJi'
HTTP_ACCEPT
'text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7'
HTTP_ACCEPT_ENCODING
'gzip, deflate, br'
HTTP_ACCEPT_LANGUAGE
'en-US,en;q=0.9'
HTTP_CACHE_CONTROL
'max-age=0'
HTTP_CONNECTION
'close'
HTTP_COOKIE
'********************'
HTTP_HOST
'recipes.EXAMPLE.co'
HTTP_REFERER
'https://recipes.EXAMPLE.co/accounts/login/'
HTTP_SEC_CH_UA
'"Chromium";v="118", "Google Chrome";v="118", "Not=A?Brand";v="99"'
HTTP_SEC_CH_UA_MOBILE
'?0'
HTTP_SEC_CH_UA_PLATFORM
'"macOS"'
HTTP_SEC_FETCH_DEST
'empty'
HTTP_SEC_FETCH_MODE
'navigate'
HTTP_SEC_FETCH_SITE
'same-origin'
HTTP_UPGRADE_INSECURE_REQUESTS
'1'
HTTP_USER_AGENT
('Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, '
'like Gecko) Chrome/118.0.0.0 Safari/537.36')
HTTP_X_FORWARDED_FOR
'165.1.207.240'
HTTP_X_FORWARDED_PROTO
'https'
HTTP_X_FORWARDED_SCHEME
'https'
HTTP_X_REAL_IP
'165.1.207.240'
PATH_INFO
'/'
QUERY_STRING
''
RAW_URI
'/'
REMOTE_ADDR
'172.27.0.4'
REMOTE_PORT
'49980'
REQUEST_METHOD
'GET'
SCRIPT_NAME
''
SERVER_NAME
'0.0.0.0'
SERVER_PORT
'8080'
SERVER_PROTOCOL
'HTTP/1.0'
SERVER_SOFTWARE
'gunicorn/20.1.0'
gunicorn.socket
<socket.socket fd=11, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, laddr=('172.27.0.3', 8080), raddr=('172.27.0.4', 49980)>
wsgi.errors
<gunicorn.http.wsgi.WSGIErrorsWrapper object at 0x7f871331c2b0>
wsgi.file_wrapper
<class 'gunicorn.http.wsgi.FileWrapper'>
wsgi.input
<gunicorn.http.body.Body object at 0x7f8712d45210>
wsgi.input_terminated
True
wsgi.multiprocess
True
wsgi.multithread
True
wsgi.run_once
False
wsgi.url_scheme
'http'
wsgi.version
(1, 0)
Settings
Using settings module recipes.settings
Setting Value
ABSOLUTE_URL_OVERRIDES
{}
ACCOUNT_ADAPTER
'cookbook.helper.AllAuthCustomAdapter'
ACCOUNT_EMAIL_CONFIRMATION_ANONYMOUS_REDIRECT_URL
'index'
ACCOUNT_EMAIL_CONFIRMATION_EXPIRE_DAYS
90
ACCOUNT_EMAIL_REQUIRED
True
ACCOUNT_EMAIL_SUBJECT_PREFIX
'[Tandoor Recipes] '
ACCOUNT_LOGOUT_ON_GET
True
ACCOUNT_LOGOUT_REDIRECT_URL
'index'
ACCOUNT_MAX_EMAIL_ADDRESSES
3
ACCOUNT_SIGNUP_EMAIL_ENTER_TWICE
True
ACCOUNT_SIGNUP_FORM_CLASS
'cookbook.forms.AllAuthSignupForm'
ADMINS
[]
ALLOWED_HOSTS
['*']
APPEND_SLASH
True
AUTHENTICATION_BACKENDS
['django.contrib.auth.backends.ModelBackend',
'allauth.account.auth_backends.AuthenticationBackend']
AUTH_PASSWORD_VALIDATORS
'********************'
AUTH_USER_MODEL
'auth.User'
AWS_ENABLED
False
BASE_DIR
'/opt/recipes'
CACHES
{'default': {'BACKEND': 'django.core.cache.backends.locmem.LocMemCache',
'LOCATION': 'default'}}
CACHE_MIDDLEWARE_ALIAS
'default'
CACHE_MIDDLEWARE_KEY_PREFIX
'********************'
CACHE_MIDDLEWARE_SECONDS
600
COMMENT_PREF_DEFAULT
False
CORS_ALLOW_ALL_ORIGINS
True
CORS_ALLOW_METHODS
['GET', 'OPTIONS', 'POST']
CORS_ORIGIN_ALLOW_ALL
True
CORS_URLS_REGEX
'^/api/bookmarklet-import.*$'
CRISPY_TEMPLATE_PACK
'bootstrap4'
CSRF_COOKIE_AGE
31449600
CSRF_COOKIE_DOMAIN
None
CSRF_COOKIE_HTTPONLY
False
CSRF_COOKIE_MASKED
False
CSRF_COOKIE_NAME
'csrftoken'
CSRF_COOKIE_PATH
'/'
CSRF_COOKIE_SAMESITE
'Lax'
CSRF_COOKIE_SECURE
False
CSRF_FAILURE_VIEW
'django.views.csrf.csrf_failure'
CSRF_HEADER_NAME
'HTTP_X_CSRFTOKEN'
CSRF_TRUSTED_ORIGINS
[]
CSRF_USE_SESSIONS
False
DATABASES
{'default': {'ATOMIC_REQUESTS': False,
'AUTOCOMMIT': True,
'CONN_HEALTH_CHECKS': False,
'CONN_MAX_AGE': 60,
'ENGINE': 'django.db.backends.postgresql',
'HOST': 'db_recipes',
'NAME': 'djangodb',
'OPTIONS': {},
'PASSWORD': '********************',
'PORT': '5432',
'TEST': {'CHARSET': None,
'COLLATION': None,
'MIGRATE': True,
'MIRROR': None,
'NAME': None},
'TIME_ZONE': None,
'USER': 'djangouser'}}
DATABASE_ROUTERS
[]
DATA_UPLOAD_MAX_MEMORY_SIZE
2621440
DATA_UPLOAD_MAX_NUMBER_FIELDS
1000
DATA_UPLOAD_MAX_NUMBER_FILES
100
DATETIME_FORMAT
'N j, Y, P'
DATETIME_INPUT_FORMATS
['%Y-%m-%d %H:%M:%S',
'%Y-%m-%d %H:%M:%S.%f',
'%Y-%m-%d %H:%M',
'%m/%d/%Y %H:%M:%S',
'%m/%d/%Y %H:%M:%S.%f',
'%m/%d/%Y %H:%M',
'%m/%d/%y %H:%M:%S',
'%m/%d/%y %H:%M:%S.%f',
'%m/%d/%y %H:%M']
DATE_FORMAT
'N j, Y'
DATE_INPUT_FORMATS
['%Y-%m-%d',
'%m/%d/%Y',
'%m/%d/%y',
'%b %d %Y',
'%b %d, %Y',
'%d %b %Y',
'%d %b, %Y',
'%B %d %Y',
'%B %d, %Y',
'%d %B %Y',
'%d %B, %Y']
DEBUG
True
DEBUG_PROPAGATE_EXCEPTIONS
False
DEBUG_TOOLBAR
False
DECIMAL_SEPARATOR
'.'
DEFAULT_AUTO_FIELD
'django.db.models.AutoField'
DEFAULT_CHARSET
'utf-8'
DEFAULT_EXCEPTION_REPORTER
'django.views.debug.ExceptionReporter'
DEFAULT_EXCEPTION_REPORTER_FILTER
'django.views.debug.SafeExceptionReporterFilter'
DEFAULT_FILE_STORAGE
'django.core.files.storage.FileSystemStorage'
DEFAULT_FROM_EMAIL
'webmaster@localhost'
DEFAULT_INDEX_TABLESPACE
''
DEFAULT_TABLESPACE
''
DISABLE_TREE_FIX_STARTUP
False
DISALLOWED_USER_AGENTS
[]
DJANGO_TABLES2_PAGE_RANGE
8
DJANGO_TABLES2_TEMPLATE
'cookbook/templates/generic/table_template.html'
EMAIL_BACKEND
'django.core.mail.backends.smtp.EmailBackend'
EMAIL_HOST
'EXAMPLE.co'
EMAIL_HOST_PASSWORD
'********************'
EMAIL_HOST_USER
'recipes@EXAMPLE.co'
EMAIL_PORT
587
EMAIL_SSL_CERTFILE
None
EMAIL_SSL_KEYFILE
'********************'
EMAIL_SUBJECT_PREFIX
'[Django] '
EMAIL_TIMEOUT
None
EMAIL_USE_LOCALTIME
False
EMAIL_USE_SSL
False
EMAIL_USE_TLS
True
ENABLE_METRICS
False
ENABLE_PDF_EXPORT
True
ENABLE_SIGNUP
False
EXPORT_FILE_CACHE_DURATION
600
FDC_API_KEY
'********************'
FILE_UPLOAD_DIRECTORY_PERMISSIONS
None
FILE_UPLOAD_HANDLERS
['django.core.files.uploadhandler.MemoryFileUploadHandler',
'django.core.files.uploadhandler.TemporaryFileUploadHandler']
FILE_UPLOAD_MAX_MEMORY_SIZE
2621440
FILE_UPLOAD_PERMISSIONS
420
FILE_UPLOAD_TEMP_DIR
None
FIRST_DAY_OF_WEEK
0
FIXTURE_DIRS
[]
FORCE_SCRIPT_NAME
None
FORMAT_MODULE_PATH
None
FORM_RENDERER
'django.forms.renderers.DjangoTemplates'
FRACTION_PREF_DEFAULT
True
GUNICORN_MEDIA
False
HCAPTCHA_SECRET
'********************'
HCAPTCHA_SITEKEY
'********************'
HOSTED
False
IGNORABLE_404_URLS
[]
IMPRINT_URL
''
INSTALLED_APPS
['dal',
'dal_select2',
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.sites',
'django.contrib.staticfiles',
'django.contrib.postgres',
'oauth2_provider',
'django_prometheus',
'django_tables2',
'corsheaders',
'crispy_forms',
'crispy_bootstrap4',
'rest_framework',
'rest_framework.authtoken',
'django_cleanup.apps.CleanupConfig',
'webpack_loader',
'django_js_reverse',
'hcaptcha',
'allauth',
'allauth.account',
'allauth.socialaccount',
'cookbook.apps.CookbookConfig',
'treebeard',
'allauth.socialaccount.providers.openid_connect']
INTERNAL_IPS
['127.0.0.1']
JS_REVERSE_OUTPUT_PATH
'/opt/recipes/cookbook/static/django_js_reverse'
JS_REVERSE_SCRIPT_PREFIX
''
KJ_PREF_DEFAULT
False
LANGUAGES
[('hy', 'Armenian '),
('bg', 'Bulgarian'),
('ca', 'Catalan'),
('cs', 'Czech'),
('da', 'Danish'),
('nl', 'Dutch'),
('en', 'English'),
('fr', 'French'),
('de', 'German'),
('hu', 'Hungarian'),
('it', 'Italian'),
('lv', 'Latvian'),
('nb', 'Norwegian '),
('pl', 'Polish'),
('ru', 'Russian'),
('es', 'Spanish'),
('sv', 'Swedish')]
LANGUAGES_BIDI
['he', 'ar', 'ar-dz', 'ckb', 'fa', 'ur']
LANGUAGE_CODE
'en'
LANGUAGE_COOKIE_AGE
None
LANGUAGE_COOKIE_DOMAIN
None
LANGUAGE_COOKIE_HTTPONLY
False
LANGUAGE_COOKIE_NAME
'django_language'
LANGUAGE_COOKIE_PATH
'/'
LANGUAGE_COOKIE_SAMESITE
None
LANGUAGE_COOKIE_SECURE
False
LDAP_AUTH
False
LOCALE_PATHS
[]
LOGGING
{}
LOGGING_CONFIG
'logging.config.dictConfig'
LOGIN_REDIRECT_URL
'index'
LOGIN_URL
'/accounts/login/'
LOGOUT_REDIRECT_URL
'index'
MANAGERS
[]
MEDIA_ROOT
'/opt/recipes/mediafiles'
MEDIA_URL
'/media/'
MESSAGE_STORAGE
'django.contrib.messages.storage.fallback.FallbackStorage'
MESSAGE_TAGS
{40: 'danger'}
MIDDLEWARE
['corsheaders.middleware.CorsMiddleware',
'django.middleware.security.SecurityMiddleware',
'whitenoise.middleware.WhiteNoiseMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.common.CommonMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'django.middleware.locale.LocaleMiddleware',
'django.middleware.clickjacking.XFrameOptionsMiddleware',
'cookbook.helper.scope_middleware.ScopeMiddleware']
MIGRATION_MODULES
{}
MONTH_DAY_FORMAT
'F j'
NUMBER_GROUPING
0
OAUTH2_PROVIDER
{'SCOPES': {'bookmarklet': 'only access to bookmarklet',
'read': 'Read scope',
'write': 'Write scope'}}
PASSWORD_HASHERS
'********************'
PASSWORD_RESET_TIMEOUT
'********************'
PLUGINS
[]
PLUGINS_DIRECTORY
'/opt/recipes/recipes/plugins'
PREPEND_WWW
False
PRIVACY_URL
''
READ_SCOPE
'read'
REMOTE_USER_AUTH
False
REST_FRAMEWORK
{'DEFAULT_AUTHENTICATION_CLASSES': ('rest_framework.authentication.SessionAuthentication',
'oauth2_provider.contrib.rest_framework.OAuth2Authentication',
'rest_framework.authentication.BasicAuthentication'),
'DEFAULT_PERMISSION_CLASSES': ['rest_framework.permissions.IsAuthenticated']}
ROOT_URLCONF
'recipes.urls'
SCRIPT_NAME
''
SECRET_KEY
'********************'
SECRET_KEY_FALLBACKS
'********************'
SECURE_CONTENT_TYPE_NOSNIFF
True
SECURE_CROSS_ORIGIN_OPENER_POLICY
'same-origin'
SECURE_HSTS_INCLUDE_SUBDOMAINS
False
SECURE_HSTS_PRELOAD
False
SECURE_HSTS_SECONDS
0
SECURE_PROXY_SSL_HEADER
('HTTP_X_FORWARDED_PROTO', 'https')
SECURE_REDIRECT_EXEMPT
[]
SECURE_REFERRER_POLICY
'same-origin'
SECURE_SSL_HOST
None
SECURE_SSL_REDIRECT
False
SERVER_EMAIL
'root@localhost'
SESSION_CACHE_ALIAS
'default'
SESSION_COOKIE_AGE
31536000
SESSION_COOKIE_DOMAIN
None
SESSION_COOKIE_HTTPONLY
True
SESSION_COOKIE_NAME
'sessionid'
SESSION_COOKIE_PATH
'/'
SESSION_COOKIE_SAMESITE
'Lax'
SESSION_COOKIE_SECURE
False
SESSION_ENGINE
'django.contrib.sessions.backends.db'
SESSION_EXPIRE_AT_BROWSER_CLOSE
False
SESSION_FILE_PATH
None
SESSION_SAVE_EVERY_REQUEST
False
SESSION_SERIALIZER
'django.contrib.sessions.serializers.JSONSerializer'
SETTINGS_MODULE
'recipes.settings'
SHARING_ABUSE
False
SHARING_LIMIT
0
SHOPPING_MIN_AUTOSYNC_INTERVAL
5
SHORT_DATETIME_FORMAT
'm/d/Y P'
SHORT_DATE_FORMAT
'm/d/Y'
SIGNING_BACKEND
'django.core.signing.TimestampSigner'
SILENCED_SYSTEM_CHECKS
[]
SITE_ID
1
SOCIALACCOUNT_EMAIL_VERIFICATION
'none'
SOCIALACCOUNT_PROVIDERS
{'openid_connect': {'APPS': [{'client_id': '243477144301273091@recipes',
'name': 'EXAMPLE SSO',
'provider_id': 'EXAMPLE-sso',
'settings': {'server_url': 'https://sso.EXAMPLE.co'}}]}}
SOCIAL_DEFAULT_ACCESS
True
SOCIAL_DEFAULT_GROUP
'guest'
SOCIAL_PROVIDERS
['allauth.socialaccount.providers.openid_connect']
SORT_TREE_BY_NAME
False
SPACE_DEFAULT_ALLOW_SHARING
True
SPACE_DEFAULT_MAX_FILES
0
SPACE_DEFAULT_MAX_RECIPES
0
SPACE_DEFAULT_MAX_USERS
0
STATICFILES_DIRS
[]
STATICFILES_FINDERS
['django.contrib.staticfiles.finders.FileSystemFinder',
'django.contrib.staticfiles.finders.AppDirectoriesFinder']
STATICFILES_STORAGE
'whitenoise.storage.CompressedManifestStaticFilesStorage'
STATIC_ROOT
'/opt/recipes/staticfiles'
STATIC_URL
'/static/'
STICKY_NAV_PREF_DEFAULT
True
STORAGES
{'default': {'BACKEND': 'django.core.files.storage.FileSystemStorage'},
'staticfiles': {'BACKEND': 'whitenoise.storage.CompressedManifestStaticFilesStorage'}}
TEMPLATES
[{'APP_DIRS': True,
'BACKEND': 'django.template.backends.django.DjangoTemplates',
'DIRS': ['/opt/recipes/templates', '/opt/recipes/cookbook/templates'],
'OPTIONS': {'context_processors': ['django.template.context_processors.debug',
'django.template.context_processors.request',
'django.contrib.auth.context_processors.auth',
'django.contrib.messages.context_processors.messages',
'django.template.context_processors.media',
'cookbook.helper.context_processors.context_settings']}}]
TERMS_URL
''
TEST_NON_SERIALIZED_APPS
[]
TEST_RUNNER
'cookbook.helper.CustomTestRunner.CustomTestRunner'
THOUSAND_SEPARATOR
','
TIME_FORMAT
'P'
TIME_INPUT_FORMATS
['%H:%M:%S', '%H:%M:%S.%f', '%H:%M']
TIME_ZONE
'America/Detroit'
USE_DEPRECATED_PYTZ
False
USE_I18N
True
USE_L10N
True
USE_THOUSAND_SEPARATOR
False
USE_TZ
True
USE_X_FORWARDED_HOST
False
USE_X_FORWARDED_PORT
False
VUE_DIR
'/opt/recipes/vue'
WEBPACK_LOADER
{'DEFAULT': {'BUNDLE_DIR_NAME': 'vue/',
'CACHE': False,
'IGNORE': ['.+\\.hot-update.js', '.+\\.map'],
'POLL_INTERVAL': 0.1,
'STATS_FILE': '/opt/recipes/vue/webpack-stats.json',
'TIMEOUT': None}}
WRITE_SCOPE
'write'
WSGI_APPLICATION
'recipes.wsgi.application'
X_FRAME_OPTIONS
'DENY'
YEAR_MONTH_FORMAT
'F Y'
You’re seeing this error because you have DEBUG = True in your Django settings file. Change that to False, and Django will display a standard page generated by the handler for this status code.
Can you share the full tandoor container logs.
Here's the logs for the postgres container:
The files belonging to this database system will be owned by user "postgres".
This user must also own the server process.
The database cluster will be initialized with locale "en_US.utf8".
The default database encoding has accordingly been set to "UTF8".
The default text search configuration will be set to "english".
Data page checksums are disabled.
fixing permissions on existing directory /var/lib/postgresql/data ... ok
creating subdirectories ... ok
selecting dynamic shared memory implementation ... posix
selecting default max_connections ... 100
selecting default shared_buffers ... 128MB
selecting default time zone ... America/Detroit
creating configuration files ... ok
running bootstrap script ... ok
sh: locale: not found
2023-12-04 10:39:51.255 EST [31] WARNING: no usable system locales were found
performing post-bootstrap initialization ... ok
initdb: warning: enabling "trust" authentication for local connections
initdb: hint: You can change this by editing pg_hba.conf or using the option -A, or --auth-local and --auth-host, the next time you run initdb.
syncing data to disk ... ok
Success. You can now start the database server using:
pg_ctl -D /var/lib/postgresql/data -l logfile start
waiting for server to start....2023-12-04 10:39:51.757 EST [37] LOG: starting PostgreSQL 15.5 on x86_64-pc-linux-musl, compiled by gcc (Alpine 12.2.1_git20220924-r10) 12.2.1 20220924, 64-bit
2023-12-04 10:39:51.758 EST [37] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
2023-12-04 10:39:51.761 EST [40] LOG: database system was shut down at 2023-12-04 10:39:51 EST
2023-12-04 10:39:51.764 EST [37] LOG: database system is ready to accept connections
done
server started
CREATE DATABASE
/usr/local/bin/docker-entrypoint.sh: ignoring /docker-entrypoint-initdb.d/*
waiting for server to shut down...2023-12-04 10:39:51.894 EST [37] LOG: received fast shutdown request
.2023-12-04 10:39:51.895 EST [37] LOG: aborting any active transactions
2023-12-04 10:39:51.897 EST [37] LOG: background worker "logical replication launcher" (PID 43) exited with exit code 1
2023-12-04 10:39:51.897 EST [38] LOG: shutting down
2023-12-04 10:39:51.897 EST [38] LOG: checkpoint starting: shutdown immediate
2023-12-04 10:39:51.943 EST [38] LOG: checkpoint complete: wrote 918 buffers (5.6%); 0 WAL file(s) added, 0 removed, 0 recycled; write=0.018 s, sync=0.027 s, total=0.047 s; sync files=301, longest=0.002 s, average=0.001 s; distance=4222 kB, estimate=4222 kB
2023-12-04 10:39:51.949 EST [37] LOG: database system is shut down
done
server stopped
PostgreSQL init process complete; ready for start up.
2023-12-04 10:39:52.010 EST [1] LOG: starting PostgreSQL 15.5 on x86_64-pc-linux-musl, compiled by gcc (Alpine 12.2.1_git20220924-r10) 12.2.1 20220924, 64-bit
2023-12-04 10:39:52.011 EST [1] LOG: listening on IPv4 address "0.0.0.0", port 5432
2023-12-04 10:39:52.011 EST [1] LOG: listening on IPv6 address "::", port 5432
2023-12-04 10:39:52.012 EST [1] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
2023-12-04 10:39:52.014 EST [53] LOG: database system was shut down at 2023-12-04 10:39:51 EST
2023-12-04 10:39:52.017 EST [1] LOG: database system is ready to accept connections
2023-12-04 10:40:32.871 EST [64] ERROR: null value in column "space_id" of relation "cookbook_userspace" violates not-null constraint
2023-12-04 10:40:32.871 EST [64] DETAIL: Failing row contains (1, f, 2023-12-04 15:40:32.871257+00, 2023-12-04 15:40:32.871266+00, null, 1, null, null).
2023-12-04 10:40:32.871 EST [64] STATEMENT: INSERT INTO "cookbook_userspace" ("user_id", "space_id", "active", "invite_link_id", "internal_note", "created_at", "updated_at") VALUES (1, NULL, false, NULL, NULL, '2023-12-04T15:40:32.871257+00:00'::timestamptz, '2023-12-04T15:40:32.871266+00:00'::timestamptz) RETURNING "cookbook_userspace"."id"
2023-12-04 10:40:32.929 EST [68] ERROR: null value in column "space_id" of relation "cookbook_userspace" violates not-null constraint
2023-12-04 10:40:32.929 EST [68] DETAIL: Failing row contains (2, f, 2023-12-04 15:40:32.929435+00, 2023-12-04 15:40:32.929446+00, null, 1, null, null).
2023-12-04 10:40:32.929 EST [68] STATEMENT: INSERT INTO "cookbook_userspace" ("user_id", "space_id", "active", "invite_link_id", "internal_note", "created_at", "updated_at") VALUES (1, NULL, false, NULL, NULL, '2023-12-04T15:40:32.929435+00:00'::timestamptz, '2023-12-04T15:40:32.929446+00:00'::timestamptz) RETURNING "cookbook_userspace"."id"
2023-12-04 10:40:35.312 EST [69] ERROR: null value in column "space_id" of relation "cookbook_userspace" violates not-null constraint
2023-12-04 10:40:35.312 EST [69] DETAIL: Failing row contains (3, f, 2023-12-04 15:40:35.31223+00, 2023-12-04 15:40:35.31224+00, null, 1, null, null).
2023-12-04 10:40:35.312 EST [69] STATEMENT: INSERT INTO "cookbook_userspace" ("user_id", "space_id", "active", "invite_link_id", "internal_note", "created_at", "updated_at") VALUES (1, NULL, false, NULL, NULL, '2023-12-04T15:40:35.312230+00:00'::timestamptz, '2023-12-04T15:40:35.312240+00:00'::timestamptz) RETURNING "cookbook_userspace"."id"
2023-12-04 10:44:52.114 EST [51] LOG: checkpoint starting: time
Here's the nginx container:
/docker-entrypoint.sh: /docker-entrypoint.d/ is not empty, will attempt to perform configuration
/docker-entrypoint.sh: Looking for shell scripts in /docker-entrypoint.d/
/docker-entrypoint.sh: Launching /docker-entrypoint.d/10-listen-on-ipv6-by-default.sh
10-listen-on-ipv6-by-default.sh: info: /etc/nginx/conf.d/default.conf is not a file or does not exist
/docker-entrypoint.sh: Sourcing /docker-entrypoint.d/15-local-resolvers.envsh
/docker-entrypoint.sh: Launching /docker-entrypoint.d/20-envsubst-on-templates.sh
/docker-entrypoint.sh: Launching /docker-entrypoint.d/30-tune-worker-processes.sh
/docker-entrypoint.sh: Configuration complete; ready for start up
2023/12/04 10:39:51 [notice] 1#1: using the "epoll" event method
2023/12/04 10:39:51 [notice] 1#1: nginx/1.25.3
2023/12/04 10:39:51 [notice] 1#1: built by gcc 12.2.1 20220924 (Alpine 12.2.1_git20220924-r10)
2023/12/04 10:39:51 [notice] 1#1: OS: Linux 6.5.11-300.fc39.x86_64
2023/12/04 10:39:51 [notice] 1#1: getrlimit(RLIMIT_NOFILE): 1073741816:1073741816
2023/12/04 10:39:51 [notice] 1#1: start worker processes
2023/12/04 10:39:51 [notice] 1#1: start worker process 20
2023/12/04 10:39:51 [notice] 1#1: start worker process 21
2023/12/04 10:39:51 [notice] 1#1: start worker process 22
2023/12/04 10:39:51 [notice] 1#1: start worker process 23
2023/12/04 10:39:51 [notice] 1#1: start worker process 24
2023/12/04 10:39:51 [notice] 1#1: start worker process 25
2023/12/04 10:39:51 [notice] 1#1: start worker process 26
2023/12/04 10:39:51 [notice] 1#1: start worker process 27
2023/12/04 10:39:51 [notice] 1#1: start worker process 28
2023/12/04 10:39:51 [notice] 1#1: start worker process 29
2023/12/04 10:39:51 [notice] 1#1: start worker process 30
2023/12/04 10:39:51 [notice] 1#1: start worker process 31
2023/12/04 10:39:51 [notice] 1#1: start worker process 32
2023/12/04 10:39:51 [notice] 1#1: start worker process 33
2023/12/04 10:39:51 [notice] 1#1: start worker process 34
2023/12/04 10:39:51 [notice] 1#1: start worker process 35
172.27.0.1 - - [04/Dec/2023:10:40:21 -0500] "GET / HTTP/1.1" 302 0 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36" "IP.ADD.RE.SS"
172.27.0.1 - - [04/Dec/2023:10:40:21 -0500] "GET /setup/ HTTP/1.1" 200 7542 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36" "IP.ADD.RE.SS"
172.27.0.1 - - [04/Dec/2023:10:40:21 -0500] "GET /static/themes/tandoor.min.css HTTP/1.1" 304 0 "https://recipes.EXAMPLE.co/setup/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36" "IP.ADD.RE.SS"
172.27.0.1 - - [04/Dec/2023:10:40:21 -0500] "GET /static/css/app.min.css HTTP/1.1" 304 0 "https://recipes.EXAMPLE.co/setup/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36" "IP.ADD.RE.SS"
172.27.0.1 - - [04/Dec/2023:10:40:21 -0500] "GET /static/js/jquery-3.5.1.min.js HTTP/1.1" 304 0 "https://recipes.EXAMPLE.co/setup/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36" "IP.ADD.RE.SS"
172.27.0.1 - - [04/Dec/2023:10:40:21 -0500] "GET /static/js/popper.min.js HTTP/1.1" 304 0 "https://recipes.EXAMPLE.co/setup/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36" "IP.ADD.RE.SS"
172.27.0.1 - - [04/Dec/2023:10:40:21 -0500] "GET /static/themes/select2-bootstrap-theme.css HTTP/1.1" 304 0 "https://recipes.EXAMPLE.co/setup/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36" "IP.ADD.RE.SS"
172.27.0.1 - - [04/Dec/2023:10:40:21 -0500] "GET /static/css/select2.min.css HTTP/1.1" 304 0 "https://recipes.EXAMPLE.co/setup/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36" "IP.ADD.RE.SS"
172.27.0.1 - - [04/Dec/2023:10:40:21 -0500] "GET /static/js/bootstrap.min.js HTTP/1.1" 304 0 "https://recipes.EXAMPLE.co/setup/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36" "IP.ADD.RE.SS"
172.27.0.1 - - [04/Dec/2023:10:40:21 -0500] "GET /static/css/select2-bootstrap.css HTTP/1.1" 304 0 "https://recipes.EXAMPLE.co/setup/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36" "IP.ADD.RE.SS"
172.27.0.1 - - [04/Dec/2023:10:40:21 -0500] "GET /static/fontawesome/fontawesome_all.min.css HTTP/1.1" 304 0 "https://recipes.EXAMPLE.co/setup/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36" "IP.ADD.RE.SS"
172.27.0.1 - - [04/Dec/2023:10:40:21 -0500] "GET /static/js/select2.min.js HTTP/1.1" 304 0 "https://recipes.EXAMPLE.co/setup/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36" "IP.ADD.RE.SS"
172.27.0.1 - - [04/Dec/2023:10:40:21 -0500] "GET /static/webfonts/poppins_latin_400.woff2 HTTP/1.1" 304 0 "https://recipes.EXAMPLE.co/static/themes/tandoor.min.css" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36" "IP.ADD.RE.SS"
172.27.0.1 - - [04/Dec/2023:10:40:21 -0500] "GET /static/webfonts/poppins_latin_700.woff2 HTTP/1.1" 304 0 "https://recipes.EXAMPLE.co/static/themes/tandoor.min.css" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36" "IP.ADD.RE.SS"
172.27.0.1 - - [04/Dec/2023:10:40:21 -0500] "GET /static/webfonts/poppins_latin_500.woff2 HTTP/1.1" 304 0 "https://recipes.EXAMPLE.co/static/themes/tandoor.min.css" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36" "IP.ADD.RE.SS"
172.27.0.1 - - [04/Dec/2023:10:40:21 -0500] "GET /static/webfonts/fa-solid-900.woff2 HTTP/1.1" 304 0 "https://recipes.EXAMPLE.co/static/fontawesome/fontawesome_all.min.css" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36" "IP.ADD.RE.SS"
172.27.0.1 - - [04/Dec/2023:10:40:22 -0500] "GET /manifest.json HTTP/1.1" 200 1113 "https://recipes.EXAMPLE.co/setup/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36" "IP.ADD.RE.SS"
172.27.0.1 - - [04/Dec/2023:10:40:23 -0500] "GET /service-worker.js HTTP/1.1" 200 33402 "https://recipes.EXAMPLE.co/service-worker.js" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36" "IP.ADD.RE.SS"
172.27.0.1 - - [04/Dec/2023:10:40:30 -0500] "POST /setup/ HTTP/1.1" 302 0 "https://recipes.EXAMPLE.co/setup/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36" "IP.ADD.RE.SS"
172.27.0.1 - - [04/Dec/2023:10:40:31 -0500] "GET /accounts/login/ HTTP/1.1" 200 8083 "https://recipes.EXAMPLE.co/setup/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36" "IP.ADD.RE.SS"
172.27.0.1 - - [04/Dec/2023:10:40:31 -0500] "GET /static/themes/tandoor.min.css HTTP/1.1" 304 0 "https://recipes.EXAMPLE.co/accounts/login/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36" "IP.ADD.RE.SS"
172.27.0.1 - - [04/Dec/2023:10:40:31 -0500] "GET /static/css/app.min.css HTTP/1.1" 304 0 "https://recipes.EXAMPLE.co/accounts/login/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36" "IP.ADD.RE.SS"
172.27.0.1 - - [04/Dec/2023:10:40:31 -0500] "GET /static/js/jquery-3.5.1.min.js HTTP/1.1" 304 0 "https://recipes.EXAMPLE.co/accounts/login/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36" "IP.ADD.RE.SS"
172.27.0.1 - - [04/Dec/2023:10:40:31 -0500] "GET /static/js/select2.min.js HTTP/1.1" 304 0 "https://recipes.EXAMPLE.co/accounts/login/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36" "IP.ADD.RE.SS"
172.27.0.1 - - [04/Dec/2023:10:40:31 -0500] "GET /static/css/select2-bootstrap.css HTTP/1.1" 304 0 "https://recipes.EXAMPLE.co/accounts/login/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36" "IP.ADD.RE.SS"
172.27.0.1 - - [04/Dec/2023:10:40:31 -0500] "GET /static/css/select2.min.css HTTP/1.1" 304 0 "https://recipes.EXAMPLE.co/accounts/login/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36" "IP.ADD.RE.SS"
172.27.0.1 - - [04/Dec/2023:10:40:31 -0500] "GET /static/themes/select2-bootstrap-theme.css HTTP/1.1" 304 0 "https://recipes.EXAMPLE.co/accounts/login/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36" "IP.ADD.RE.SS"
172.27.0.1 - - [04/Dec/2023:10:40:31 -0500] "GET /static/fontawesome/fontawesome_all.min.css HTTP/1.1" 304 0 "https://recipes.EXAMPLE.co/accounts/login/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36" "IP.ADD.RE.SS"
172.27.0.1 - - [04/Dec/2023:10:40:31 -0500] "GET /static/js/bootstrap.min.js HTTP/1.1" 304 0 "https://recipes.EXAMPLE.co/accounts/login/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36" "IP.ADD.RE.SS"
172.27.0.1 - - [04/Dec/2023:10:40:31 -0500] "GET /static/js/popper.min.js HTTP/1.1" 304 0 "https://recipes.EXAMPLE.co/accounts/login/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36" "IP.ADD.RE.SS"
172.27.0.1 - - [04/Dec/2023:10:40:31 -0500] "GET /static/webfonts/poppins_latin_400.woff2 HTTP/1.1" 304 0 "https://recipes.EXAMPLE.co/static/themes/tandoor.min.css" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36" "IP.ADD.RE.SS"
172.27.0.1 - - [04/Dec/2023:10:40:31 -0500] "GET /static/webfonts/fa-solid-900.woff2 HTTP/1.1" 304 0 "https://recipes.EXAMPLE.co/static/fontawesome/fontawesome_all.min.css" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36" "IP.ADD.RE.SS"
172.27.0.1 - - [04/Dec/2023:10:40:31 -0500] "GET /static/webfonts/poppins_latin_700.woff2 HTTP/1.1" 304 0 "https://recipes.EXAMPLE.co/static/themes/tandoor.min.css" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36" "IP.ADD.RE.SS"
172.27.0.1 - - [04/Dec/2023:10:40:31 -0500] "GET /static/webfonts/poppins_latin_500.woff2 HTTP/1.1" 304 0 "https://recipes.EXAMPLE.co/static/themes/tandoor.min.css" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36" "IP.ADD.RE.SS"
172.27.0.1 - - [04/Dec/2023:10:40:31 -0500] "GET /manifest.json HTTP/1.1" 200 1113 "https://recipes.EXAMPLE.co/accounts/login/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36" "IP.ADD.RE.SS"
172.27.0.1 - - [04/Dec/2023:10:40:32 -0500] "POST /accounts/login/ HTTP/1.1" 302 0 "https://recipes.EXAMPLE.co/accounts/login/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36" "IP.ADD.RE.SS"
172.27.0.1 - - [04/Dec/2023:10:40:32 -0500] "GET / HTTP/1.1" 500 151455 "https://recipes.EXAMPLE.co/accounts/login/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36" "IP.ADD.RE.SS"
172.27.0.1 - - [04/Dec/2023:10:40:32 -0500] "GET /service-worker.js HTTP/1.1" 500 151014 "https://recipes.EXAMPLE.co/service-worker.js" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36" "IP.ADD.RE.SS"
172.27.0.1 - - [04/Dec/2023:10:40:35 -0500] "GET /service-worker.js HTTP/1.1" 500 150998 "https://recipes.EXAMPLE.co/service-worker.js" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36" "IP.ADD.RE.SS"
172.27.0.1 - - [04/Dec/2023:10:43:22 -0500] "GET / HTTP/1.1" 302 0 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36" "IP.ADD.RE.SS"
172.27.0.1 - - [04/Dec/2023:10:43:22 -0500] "GET /search/ HTTP/1.1" 302 0 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36" "IP.ADD.RE.SS"
172.27.0.1 - - [04/Dec/2023:10:43:22 -0500] "GET /accounts/login/?next=/search/ HTTP/1.1" 200 7617 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36" "IP.ADD.RE.SS"
172.27.0.1 - - [04/Dec/2023:10:43:22 -0500] "GET /static/themes/tandoor.min.css HTTP/1.1" 200 202282 "https://recipes.EXAMPLE.co/accounts/login/?next=/search/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36" "IP.ADD.RE.SS"
172.27.0.1 - - [04/Dec/2023:10:43:22 -0500] "GET /static/js/popper.min.js HTTP/1.1" 200 21257 "https://recipes.EXAMPLE.co/accounts/login/?next=/search/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36" "IP.ADD.RE.SS"
172.27.0.1 - - [04/Dec/2023:10:43:22 -0500] "GET /static/js/jquery-3.5.1.min.js HTTP/1.1" 200 89476 "https://recipes.EXAMPLE.co/accounts/login/?next=/search/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36" "IP.ADD.RE.SS"
172.27.0.1 - - [04/Dec/2023:10:43:22 -0500] "GET /static/css/app.min.css HTTP/1.1" 200 41342 "https://recipes.EXAMPLE.co/accounts/login/?next=/search/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36" "IP.ADD.RE.SS"
172.27.0.1 - - [04/Dec/2023:10:43:22 -0500] "GET /static/css/select2.min.css HTTP/1.1" 200 14966 "https://recipes.EXAMPLE.co/accounts/login/?next=/search/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36" "IP.ADD.RE.SS"
172.27.0.1 - - [04/Dec/2023:10:43:22 -0500] "GET /static/assets/brand_logo.png HTTP/1.1" 200 35616 "https://recipes.EXAMPLE.co/accounts/login/?next=/search/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36" "IP.ADD.RE.SS"
172.27.0.1 - - [04/Dec/2023:10:43:22 -0500] "GET /static/themes/select2-bootstrap-theme.css HTTP/1.1" 200 23209 "https://recipes.EXAMPLE.co/accounts/login/?next=/search/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36" "IP.ADD.RE.SS"
172.27.0.1 - - [04/Dec/2023:10:43:22 -0500] "GET /static/fontawesome/fontawesome_all.min.css HTTP/1.1" 200 56842 "https://recipes.EXAMPLE.co/accounts/login/?next=/search/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36" "IP.ADD.RE.SS"
172.27.0.1 - - [04/Dec/2023:10:43:22 -0500] "GET /static/js/bootstrap.min.js HTTP/1.1" 200 60010 "https://recipes.EXAMPLE.co/accounts/login/?next=/search/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36" "IP.ADD.RE.SS"
172.27.0.1 - - [04/Dec/2023:10:43:22 -0500] "GET /static/js/select2.min.js HTTP/1.1" 200 70851 "https://recipes.EXAMPLE.co/accounts/login/?next=/search/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36" "IP.ADD.RE.SS"
172.27.0.1 - - [04/Dec/2023:10:43:22 -0500] "GET /static/css/select2-bootstrap.css HTTP/1.1" 200 23192 "https://recipes.EXAMPLE.co/accounts/login/?next=/search/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36" "IP.ADD.RE.SS"
172.27.0.1 - - [04/Dec/2023:10:43:22 -0500] "GET /static/webfonts/poppins_latin_500.woff2 HTTP/1.1" 200 7776 "https://recipes.EXAMPLE.co/static/themes/tandoor.min.css" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36" "IP.ADD.RE.SS"
172.27.0.1 - - [04/Dec/2023:10:43:22 -0500] "GET /static/webfonts/poppins_latin_400.woff2 HTTP/1.1" 200 7900 "https://recipes.EXAMPLE.co/static/themes/tandoor.min.css" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36" "IP.ADD.RE.SS"
172.27.0.1 - - [04/Dec/2023:10:43:22 -0500] "GET /static/webfonts/fa-solid-900.woff2 HTTP/1.1" 200 75728 "https://recipes.EXAMPLE.co/static/fontawesome/fontawesome_all.min.css" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36" "IP.ADD.RE.SS"
172.27.0.1 - - [04/Dec/2023:10:43:23 -0500] "GET /static/assets/favicon.svg HTTP/1.1" 200 5971 "https://recipes.EXAMPLE.co/accounts/login/?next=/search/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36" "IP.ADD.RE.SS"
172.27.0.1 - - [04/Dec/2023:10:43:23 -0500] "GET /service-worker.js HTTP/1.1" 200 33402 "https://recipes.EXAMPLE.co/accounts/login/?next=/search/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36" "IP.ADD.RE.SS"
172.27.0.1 - - [04/Dec/2023:10:43:23 -0500] "GET /static/assets/favicon.svg HTTP/1.1" 304 0 "https://recipes.EXAMPLE.co/accounts/login/?next=/search/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36" "IP.ADD.RE.SS"
172.27.0.1 - - [04/Dec/2023:10:43:23 -0500] "GET /offline/ HTTP/1.1" 200 16307 "https://recipes.EXAMPLE.co/service-worker.js" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36" "IP.ADD.RE.SS"
Recipes container:
Checking configuration...
Waiting for database to be ready...
Database is ready
Migrating database
Operations to perform:
Apply all migrations: account, admin, auth, authtoken, contenttypes, cookbook, oauth2_provider, sessions, sites, socialaccount
Running migrations:
Applying contenttypes.0001_initial... OK
Applying auth.0001_initial... OK
Applying account.0001_initial... OK
Applying account.0002_email_max_length... OK
Applying admin.0001_initial... OK
Applying admin.0002_logentry_remove_auto_add... OK
Applying admin.0003_logentry_add_action_flag_choices... OK
Applying contenttypes.0002_remove_content_type_name... OK
Applying auth.0002_alter_permission_name_max_length... OK
Applying auth.0003_alter_user_email_max_length... OK
Applying auth.0004_alter_user_username_opts... OK
Applying auth.0005_alter_user_last_login_null... OK
Applying auth.0006_require_contenttypes_0002... OK
Applying auth.0007_alter_validators_add_error_messages... OK
Applying auth.0008_alter_user_username_max_length... OK
Applying auth.0009_alter_user_last_name_max_length... OK
Applying auth.0010_alter_group_name_max_length... OK
Applying auth.0011_update_proxy_permissions... OK
Applying auth.0012_alter_user_first_name_max_length... OK
Applying authtoken.0001_initial... OK
Applying authtoken.0002_auto_20160226_1747... OK
Applying authtoken.0003_tokenproxy... OK
Applying cookbook.0001_initial... OK
Applying cookbook.0002_auto_20191119_2035... OK
Applying cookbook.0003_enable_pgtrm... OK
Applying cookbook.0004_storage_created_by... OK
Applying cookbook.0005_recipebook_recipebookentry... OK
Applying cookbook.0006_recipe_image... OK
Applying cookbook.0007_auto_20191226_0852... OK
Applying cookbook.0008_mealplan... OK
Applying cookbook.0009_auto_20200130_1056... OK
Applying cookbook.0010_auto_20200130_1059... OK
Applying cookbook.0011_remove_recipeingredients_unit... OK
Applying cookbook.0012_auto_20200130_1116... OK
Applying cookbook.0013_userpreference... OK
Applying cookbook.0014_auto_20200213_2332... OK
Applying cookbook.0015_auto_20200213_2334... OK
Applying cookbook.0016_auto_20200213_2335... OK
Applying cookbook.0017_auto_20200216_2257... OK
Applying cookbook.0018_auto_20200216_2303... OK
Applying cookbook.0019_ingredient... OK
Applying cookbook.0020_recipeingredient_ingredient... OK
Applying cookbook.0021_auto_20200216_2309... OK
Applying cookbook.0022_remove_recipeingredient_name... OK
Applying cookbook.0023_auto_20200216_2311... OK
Applying cookbook.0024_auto_20200216_2313... OK
Applying cookbook.0025_userpreference_nav_color... OK
Applying cookbook.0026_auto_20200219_1605... OK
Applying cookbook.0027_ingredient_recipe... OK
Applying cookbook.0028_auto_20200317_1901... OK
Applying cookbook.0029_auto_20200317_1901... OK
Applying cookbook.0030_recipeingredient_note... OK
Applying cookbook.0031_auto_20200407_1841... OK
Applying cookbook.0032_userpreference_default_unit... OK
Applying cookbook.0033_userpreference_default_page... OK
Applying cookbook.0034_auto_20200426_1614... OK
Applying cookbook.0035_auto_20200427_1637... OK
Applying cookbook.0036_auto_20200427_1800... OK
Applying cookbook.0037_userpreference_search_style... OK
Applying cookbook.0038_auto_20200502_1259... OK
Applying cookbook.0039_recipebook_shared... OK
Applying cookbook.0040_auto_20200502_1433... OK
Applying cookbook.0041_auto_20200502_1446... OK
Applying cookbook.0042_cooklog... OK
Applying cookbook.0043_auto_20200507_2302... OK
Applying cookbook.0044_viewlog... OK
Applying cookbook.0045_userpreference_show_recent... OK
Applying cookbook.0046_auto_20200602_1133... OK
Applying cookbook.0047_auto_20200602_1133... OK
Applying cookbook.0048_auto_20200602_1140... OK
Applying cookbook.0049_mealtype_created_by... OK
Applying cookbook.0050_auto_20200611_1509... OK
Applying cookbook.0051_auto_20200611_1518... OK
Applying cookbook.0052_userpreference_ingredient_decimals... OK
Applying cookbook.0053_auto_20200611_2217... OK
Applying cookbook.0054_sharelink... OK
Applying cookbook.0055_auto_20200616_1236... OK
Applying cookbook.0056_auto_20200625_2118... OK
Applying cookbook.0057_auto_20200625_2127... OK
Applying cookbook.0058_auto_20200625_2128... OK
Applying cookbook.0059_auto_20200625_2137... OK
Applying cookbook.0060_auto_20200625_2144... OK
Applying cookbook.0056_auto_20200625_2157... OK
Applying cookbook.0061_merge_20200625_2209... OK
Applying cookbook.0062_auto_20200625_2219... OK
Applying cookbook.0063_auto_20200625_2230... OK
Applying cookbook.0064_auto_20200625_2329... OK
Applying cookbook.0065_auto_20200626_1444... OK
Applying cookbook.0066_auto_20200626_1455... OK
Applying cookbook.0067_auto_20200629_1508... OK
Applying cookbook.0068_auto_20200629_2127... OK
Applying cookbook.0069_auto_20200629_2134... OK
Applying cookbook.0070_auto_20200701_2007... OK
Applying cookbook.0071_auto_20200701_2048... OK
Applying cookbook.0072_step_show_as_header... OK
Applying cookbook.0073_auto_20200708_2311... OK
Applying cookbook.0074_remove_keyword_created_by... OK
Applying cookbook.0075_shoppinglist_shoppinglistentry_shoppinglistrecipe... OK
Applying cookbook.0076_shoppinglist_entries... OK
Applying cookbook.0077_invitelink... OK
Applying cookbook.0078_invitelink_used_by... OK
Applying cookbook.0079_invitelink_group... OK
Applying cookbook.0080_auto_20200921_2331... OK
Applying cookbook.0081_auto_20200921_2349... OK
Applying cookbook.0082_auto_20200922_1143... OK
Applying cookbook.0083_space... OK
Applying cookbook.0084_auto_20200922_1233... OK
Applying cookbook.0085_auto_20200922_1235... OK
Applying cookbook.0086_auto_20200929_1143... OK
Applying cookbook.0087_auto_20200929_1152... OK
Applying cookbook.0088_shoppinglist_finished... OK
Applying cookbook.0089_auto_20201117_2222... OK
Applying cookbook.0090_auto_20201214_1359... OK
Applying cookbook.0091_auto_20201226_1551... OK
Applying cookbook.0092_recipe_servings... OK
Applying cookbook.0093_auto_20201231_1236... OK
Applying cookbook.0094_auto_20201231_1238... OK
Applying cookbook.0095_auto_20210107_1804... OK
Applying cookbook.0096_auto_20210109_2044... OK
Applying cookbook.0097_auto_20210113_1315... OK
Applying cookbook.0098_auto_20210113_1320... OK
Applying cookbook.0099_auto_20210113_1518... OK
Applying cookbook.0100_recipe_servings_text... OK
Applying cookbook.0101_storage_path... OK
Applying cookbook.0102_auto_20210125_1147... OK
Applying cookbook.0103_food_ignore_shopping... OK
Applying cookbook.0104_auto_20210125_2133... OK
Applying cookbook.0105_auto_20210126_1604... OK
Applying cookbook.0106_shoppinglist_supermarket... OK
Applying cookbook.0107_auto_20210128_1535... OK
Applying cookbook.0108_auto_20210219_1410... OK
Applying cookbook.0109_auto_20210221_1204... OK
Applying cookbook.0110_auto_20210221_1406... OK
Applying cookbook.0111_space_created_by... OK
Applying cookbook.0112_remove_synclog_space... OK
Applying cookbook.0113_auto_20210317_2017... OK
Applying cookbook.0114_importlog... OK
Applying cookbook.0115_telegrambot... OK
Applying cookbook.0116_auto_20210319_0012... OK
Applying cookbook.0117_space_max_recipes... OK
Applying cookbook.0118_auto_20210406_1805... OK
Applying cookbook.0119_auto_20210411_2101... OK
Applying cookbook.0120_bookmarklet... OK
Applying cookbook.0121_auto_20210518_1638... OK
Applying cookbook.0122_auto_20210527_1712... OK
Applying cookbook.0123_invitelink_email... OK
Applying cookbook.0124_alter_userpreference_theme... OK
Applying cookbook.0125_space_demo... OK
Applying cookbook.0126_alter_userpreference_theme... OK
Applying cookbook.0127_remove_invitelink_username... OK
Applying cookbook.0128_userfile... OK
Applying cookbook.0129_auto_20210608_1233... OK
Applying cookbook.0130_alter_userfile_file_size_kb... OK
Applying cookbook.0131_auto_20210608_1929... OK
Applying cookbook.0132_sharelink_request_count... OK
Applying cookbook.0133_sharelink_abuse_blocked... OK
Applying cookbook.0134_space_allow_sharing... OK
Applying cookbook.0135_auto_20210615_2210... OK
Applying cookbook.0136_auto_20210617_1343... OK
Applying cookbook.0137_auto_20210617_1501... OK
Applying cookbook.0138_auto_20210617_1602... OK
Applying cookbook.0139_space_created_at... OK
Applying cookbook.0140_userpreference_created_at... OK
Applying cookbook.0141_auto_20210713_1042... OK
Applying cookbook.0142_alter_userpreference_search_style... OK
Applying cookbook.0143_build_full_text_index... OK
Applying cookbook.0144_create_searchfields... OK
Applying cookbook.0145_alter_userpreference_search_style... OK
Applying cookbook.0146_alter_userpreference_use_fractions... OK
Applying cookbook.0147_keyword_to_tree... OK
Applying cookbook.0148_auto_20210813_1829... OK
Applying cookbook.0149_fix_leading_trailing_spaces... OK
Applying cookbook.0150_food_to_tree... OK
Applying cookbook.0151_auto_20210915_1037... OK
Applying cookbook.0152_automation... OK
Applying cookbook.0153_auto_20210915_2327... OK
Applying cookbook.0154_auto_20210922_1705... OK
Applying cookbook.0155_mealtype_default... OK
Applying cookbook.0156_searchpreference_trigram_threshold... OK
Applying cookbook.0157_alter_searchpreference_trigram... OK
Applying cookbook.0158_userpreference_use_kj... OK
Applying cookbook.0159_add_shoppinglistentry_fields... OK
Applying cookbook.0160_delete_shoppinglist_orphans... OK
Applying cookbook.0161_alter_shoppinglistentry_food... OK
Applying cookbook.0162_userpreference_csv_delim... OK
Applying cookbook.0163_auto_20220105_0758... OK
Applying cookbook.0164_space_show_facet_count... OK
Applying cookbook.0165_remove_step_type... OK
Applying cookbook.0166_alter_userpreference_shopping_add_onhand... OK
Applying cookbook.0167_userpreference_left_handed... OK
Applying cookbook.0168_add_unit_searchfields... OK
Applying cookbook.0169_exportlog... OK
Applying cookbook.0170_auto_20220207_1848... OK
Applying cookbook.0171_alter_searchpreference_trigram_threshold... OK
Applying cookbook.0172_ingredient_original_text... OK
Applying cookbook.0173_recipe_source_url... OK
Applying cookbook.0174_alter_food_substitute_userspace... OK
Applying cookbook.0175_remove_userpreference_space... OK
Applying cookbook.0176_alter_searchpreference_icontains_and_more... OK
Applying cookbook.0177_recipe_show_ingredient_overview... OK
Applying cookbook.0178_remove_userpreference_search_style_and_more... OK
Applying cookbook.0179_recipe_private_recipe_shared... OK
Applying cookbook.0180_invitelink_reusable... OK
Applying cookbook.0181_space_image... OK
Applying cookbook.0182_userpreference_image... OK
Applying cookbook.0183_alter_space_image... OK
Applying cookbook.0184_alter_userpreference_image... OK
Applying cookbook.0185_food_plural_name_ingredient_always_use_plural_food_and_more... OK
Applying cookbook.0186_automation_order_alter_automation_type... OK
Applying cookbook.0187_alter_space_use_plural... OK
Applying cookbook.0188_space_no_sharing_limit... OK
Applying cookbook.0189_property_propertytype_unitconversion_food_fdc_id_and_more... OK
Applying cookbook.0190_auto_20230525_1506...Transforming nutrition information, this might take a while on large databases
OK
Applying cookbook.0191_foodproperty_property_import_food_id_and_more... OK
Applying cookbook.0192_food_food_unique_open_data_slug_per_space_and_more... OK
Applying cookbook.0193_space_internal_note... OK
Applying cookbook.0194_alter_food_properties_food_amount... OK
Applying cookbook.0195_invitelink_internal_note_userspace_internal_note_and_more... OK
Applying cookbook.0196_food_url... OK
Applying cookbook.0197_step_show_ingredients_table_and_more... OK
Applying cookbook.0198_propertytype_order... OK
Applying cookbook.0199_alter_propertytype_options_alter_automation_type_and_more... OK
Applying cookbook.0200_alter_propertytype_options_remove_keyword_icon_and_more... OK
Applying cookbook.0201_rename_date_mealplan_from_date_mealplan_to_date... OK
Applying cookbook.0202_remove_space_show_facet_count... OK
Applying cookbook.0203_alter_unique_contstraints... OK
Applying cookbook.0204_propertytype_fdc_id... OK
Applying cookbook.0205_alter_food_fdc_id_alter_propertytype_fdc_id... OK
Applying oauth2_provider.0001_initial... OK
Applying oauth2_provider.0002_auto_20190406_1805... OK
Applying oauth2_provider.0003_auto_20201211_1314... OK
Applying oauth2_provider.0004_auto_20200902_2022... OK
Applying oauth2_provider.0005_auto_20211222_2352... OK
Applying oauth2_provider.0006_alter_application_client_secret... OK
Applying oauth2_provider.0007_application_post_logout_redirect_uris... OK
Applying sessions.0001_initial... OK
Applying sites.0001_initial... OK
Applying sites.0002_alter_domain_unique... OK
Applying socialaccount.0001_initial... OK
Applying socialaccount.0002_token_max_lengths... OK
Applying socialaccount.0003_extra_data_default_dict... OK
Generating static files
js-reverse file written to /opt/recipes/cookbook/static/django_js_reverse
641 static files copied to '/opt/recipes/staticfiles', 1687 post-processed.
Done
[2023-12-04 10:40:18 -0500] [1] [INFO] Starting gunicorn 20.1.0
[2023-12-04 10:40:18 -0500] [1] [INFO] Listening at: http://0.0.0.0:8080 (1)
[2023-12-04 10:40:18 -0500] [1] [INFO] Using worker: gthread
[2023-12-04 10:40:18 -0500] [14] [INFO] Booting worker with pid: 14
[2023-12-04 10:40:18 -0500] [15] [INFO] Booting worker with pid: 15
[2023-12-04 10:40:18 -0500] [16] [INFO] Booting worker with pid: 16
172.27.0.4 - - [04/Dec/2023:10:40:21 -0500] "GET / HTTP/1.0" 302 0 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36"
172.27.0.4 - - [04/Dec/2023:10:40:21 -0500] "GET /setup/ HTTP/1.0" 200 7542 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36"
172.27.0.4 - - [04/Dec/2023:10:40:21 -0500] "GET /static/themes/tandoor.min.css HTTP/1.0" 304 0 "https://recipes.EXAMPLE.co/setup/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36"
172.27.0.4 - - [04/Dec/2023:10:40:21 -0500] "GET /static/css/app.min.css HTTP/1.0" 304 0 "https://recipes.EXAMPLE.co/setup/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36"
172.27.0.4 - - [04/Dec/2023:10:40:21 -0500] "GET /static/js/jquery-3.5.1.min.js HTTP/1.0" 304 0 "https://recipes.EXAMPLE.co/setup/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36"
172.27.0.4 - - [04/Dec/2023:10:40:21 -0500] "GET /static/js/popper.min.js HTTP/1.0" 304 0 "https://recipes.EXAMPLE.co/setup/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36"
172.27.0.4 - - [04/Dec/2023:10:40:21 -0500] "GET /static/themes/select2-bootstrap-theme.css HTTP/1.0" 304 0 "https://recipes.EXAMPLE.co/setup/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36"
172.27.0.4 - - [04/Dec/2023:10:40:21 -0500] "GET /static/css/select2.min.css HTTP/1.0" 304 0 "https://recipes.EXAMPLE.co/setup/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36"
172.27.0.4 - - [04/Dec/2023:10:40:21 -0500] "GET /static/css/select2-bootstrap.css HTTP/1.0" 304 0 "https://recipes.EXAMPLE.co/setup/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36"
172.27.0.4 - - [04/Dec/2023:10:40:21 -0500] "GET /static/fontawesome/fontawesome_all.min.css HTTP/1.0" 304 0 "https://recipes.EXAMPLE.co/setup/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36"
172.27.0.4 - - [04/Dec/2023:10:40:21 -0500] "GET /static/js/bootstrap.min.js HTTP/1.0" 304 0 "https://recipes.EXAMPLE.co/setup/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36"
172.27.0.4 - - [04/Dec/2023:10:40:21 -0500] "GET /static/js/select2.min.js HTTP/1.0" 304 0 "https://recipes.EXAMPLE.co/setup/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36"
172.27.0.4 - - [04/Dec/2023:10:40:21 -0500] "GET /static/webfonts/poppins_latin_400.woff2 HTTP/1.0" 304 0 "https://recipes.EXAMPLE.co/static/themes/tandoor.min.css" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36"
172.27.0.4 - - [04/Dec/2023:10:40:21 -0500] "GET /static/webfonts/poppins_latin_700.woff2 HTTP/1.0" 304 0 "https://recipes.EXAMPLE.co/static/themes/tandoor.min.css" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36"
172.27.0.4 - - [04/Dec/2023:10:40:21 -0500] "GET /static/webfonts/poppins_latin_500.woff2 HTTP/1.0" 304 0 "https://recipes.EXAMPLE.co/static/themes/tandoor.min.css" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36"
172.27.0.4 - - [04/Dec/2023:10:40:21 -0500] "GET /static/webfonts/fa-solid-900.woff2 HTTP/1.0" 304 0 "https://recipes.EXAMPLE.co/static/fontawesome/fontawesome_all.min.css" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36"
172.27.0.4 - - [04/Dec/2023:10:40:22 -0500] "GET /manifest.json HTTP/1.0" 200 1113 "https://recipes.EXAMPLE.co/setup/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36"
172.27.0.4 - - [04/Dec/2023:10:40:23 -0500] "GET /service-worker.js HTTP/1.0" 200 33402 "https://recipes.EXAMPLE.co/service-worker.js" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36"
172.27.0.4 - - [04/Dec/2023:10:40:30 -0500] "POST /setup/ HTTP/1.0" 302 0 "https://recipes.EXAMPLE.co/setup/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36"
172.27.0.4 - - [04/Dec/2023:10:40:31 -0500] "GET /accounts/login/ HTTP/1.0" 200 8083 "https://recipes.EXAMPLE.co/setup/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36"
172.27.0.4 - - [04/Dec/2023:10:40:31 -0500] "GET /static/themes/tandoor.min.css HTTP/1.0" 304 0 "https://recipes.EXAMPLE.co/accounts/login/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36"
172.27.0.4 - - [04/Dec/2023:10:40:31 -0500] "GET /static/css/app.min.css HTTP/1.0" 304 0 "https://recipes.EXAMPLE.co/accounts/login/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36"
172.27.0.4 - - [04/Dec/2023:10:40:31 -0500] "GET /static/js/jquery-3.5.1.min.js HTTP/1.0" 304 0 "https://recipes.EXAMPLE.co/accounts/login/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36"
172.27.0.4 - - [04/Dec/2023:10:40:31 -0500] "GET /static/js/select2.min.js HTTP/1.0" 304 0 "https://recipes.EXAMPLE.co/accounts/login/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36"
172.27.0.4 - - [04/Dec/2023:10:40:31 -0500] "GET /static/css/select2-bootstrap.css HTTP/1.0" 304 0 "https://recipes.EXAMPLE.co/accounts/login/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36"
172.27.0.4 - - [04/Dec/2023:10:40:31 -0500] "GET /static/css/select2.min.css HTTP/1.0" 304 0 "https://recipes.EXAMPLE.co/accounts/login/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36"
172.27.0.4 - - [04/Dec/2023:10:40:31 -0500] "GET /static/themes/select2-bootstrap-theme.css HTTP/1.0" 304 0 "https://recipes.EXAMPLE.co/accounts/login/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36"
172.27.0.4 - - [04/Dec/2023:10:40:31 -0500] "GET /static/fontawesome/fontawesome_all.min.css HTTP/1.0" 304 0 "https://recipes.EXAMPLE.co/accounts/login/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36"
172.27.0.4 - - [04/Dec/2023:10:40:31 -0500] "GET /static/js/bootstrap.min.js HTTP/1.0" 304 0 "https://recipes.EXAMPLE.co/accounts/login/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36"
172.27.0.4 - - [04/Dec/2023:10:40:31 -0500] "GET /static/js/popper.min.js HTTP/1.0" 304 0 "https://recipes.EXAMPLE.co/accounts/login/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36"
172.27.0.4 - - [04/Dec/2023:10:40:31 -0500] "GET /static/webfonts/poppins_latin_400.woff2 HTTP/1.0" 304 0 "https://recipes.EXAMPLE.co/static/themes/tandoor.min.css" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36"
172.27.0.4 - - [04/Dec/2023:10:40:31 -0500] "GET /static/webfonts/fa-solid-900.woff2 HTTP/1.0" 304 0 "https://recipes.EXAMPLE.co/static/fontawesome/fontawesome_all.min.css" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36"
172.27.0.4 - - [04/Dec/2023:10:40:31 -0500] "GET /static/webfonts/poppins_latin_700.woff2 HTTP/1.0" 304 0 "https://recipes.EXAMPLE.co/static/themes/tandoor.min.css" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36"
172.27.0.4 - - [04/Dec/2023:10:40:31 -0500] "GET /static/webfonts/poppins_latin_500.woff2 HTTP/1.0" 304 0 "https://recipes.EXAMPLE.co/static/themes/tandoor.min.css" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36"
172.27.0.4 - - [04/Dec/2023:10:40:31 -0500] "GET /manifest.json HTTP/1.0" 200 1113 "https://recipes.EXAMPLE.co/accounts/login/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36"
172.27.0.4 - - [04/Dec/2023:10:40:32 -0500] "POST /accounts/login/ HTTP/1.0" 302 0 "https://recipes.EXAMPLE.co/accounts/login/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36"
Internal Server Error: /
Traceback (most recent call last):
File "/opt/recipes/venv/lib/python3.10/site-packages/django/db/backends/utils.py", line 89, in _execute
return self.cursor.execute(sql, params)
psycopg2.errors.NotNullViolation: null value in column "space_id" of relation "cookbook_userspace" violates not-null constraint
DETAIL: Failing row contains (1, f, 2023-12-04 15:40:32.871257+00, 2023-12-04 15:40:32.871266+00, null, 1, null, null).
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/opt/recipes/venv/lib/python3.10/site-packages/django/core/handlers/exception.py", line 55, in inner
response = get_response(request)
File "/opt/recipes/cookbook/helper/scope_middleware.py", line 39, in __call__
return views.space_overview(request)
File "/opt/recipes/venv/lib/python3.10/site-packages/django/contrib/auth/decorators.py", line 23, in _wrapper_view
return view_func(request, *args, **kwargs)
File "/opt/recipes/cookbook/views/views.py", line 93, in space_overview
user_space = UserSpace.objects.create(space=Space.objects.first(), user=request.user, active=False)
File "/opt/recipes/venv/lib/python3.10/site-packages/django/db/models/manager.py", line 87, in manager_method
return getattr(self.get_queryset(), name)(*args, **kwargs)
File "/opt/recipes/venv/lib/python3.10/site-packages/django/db/models/query.py", line 658, in create
obj.save(force_insert=True, using=self.db)
File "/opt/recipes/venv/lib/python3.10/site-packages/django/db/models/base.py", line 814, in save
self.save_base(
File "/opt/recipes/venv/lib/python3.10/site-packages/django/db/models/base.py", line 877, in save_base
updated = self._save_table(
File "/opt/recipes/venv/lib/python3.10/site-packages/django/db/models/base.py", line 1020, in _save_table
results = self._do_insert(
File "/opt/recipes/venv/lib/python3.10/site-packages/django/db/models/base.py", line 1061, in _do_insert
return manager._insert(
File "/opt/recipes/venv/lib/python3.10/site-packages/django/db/models/manager.py", line 87, in manager_method
return getattr(self.get_queryset(), name)(*args, **kwargs)
File "/opt/recipes/venv/lib/python3.10/site-packages/django/db/models/query.py", line 1805, in _insert
return query.get_compiler(using=using).execute_sql(returning_fields)
File "/opt/recipes/venv/lib/python3.10/site-packages/django/db/models/sql/compiler.py", line 1822, in execute_sql
cursor.execute(sql, params)
File "/opt/recipes/venv/lib/python3.10/site-packages/django/db/backends/utils.py", line 102, in execute
return super().execute(sql, params)
File "/opt/recipes/venv/lib/python3.10/site-packages/django/db/backends/utils.py", line 67, in execute
return self._execute_with_wrappers(
File "/opt/recipes/venv/lib/python3.10/site-packages/django/db/backends/utils.py", line 80, in _execute_with_wrappers
return executor(sql, params, many, context)
File "/opt/recipes/venv/lib/python3.10/site-packages/django/db/backends/utils.py", line 84, in _execute
with self.db.wrap_database_errors:
File "/opt/recipes/venv/lib/python3.10/site-packages/django/db/utils.py", line 91, in __exit__
raise dj_exc_value.with_traceback(traceback) from exc_value
File "/opt/recipes/venv/lib/python3.10/site-packages/django/db/backends/utils.py", line 89, in _execute
return self.cursor.execute(sql, params)
django.db.utils.IntegrityError: null value in column "space_id" of relation "cookbook_userspace" violates not-null constraint
DETAIL: Failing row contains (1, f, 2023-12-04 15:40:32.871257+00, 2023-12-04 15:40:32.871266+00, null, 1, null, null).
Internal Server Error: /
Traceback (most recent call last):
File "/opt/recipes/venv/lib/python3.10/site-packages/django/db/backends/utils.py", line 89, in _execute
return self.cursor.execute(sql, params)
psycopg2.errors.NotNullViolation: null value in column "space_id" of relation "cookbook_userspace" violates not-null constraint
DETAIL: Failing row contains (1, f, 2023-12-04 15:40:32.871257+00, 2023-12-04 15:40:32.871266+00, null, 1, null, null).
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/opt/recipes/venv/lib/python3.10/site-packages/django/core/handlers/exception.py", line 55, in inner
response = get_response(request)
File "/opt/recipes/cookbook/helper/scope_middleware.py", line 39, in __call__
return views.space_overview(request)
File "/opt/recipes/venv/lib/python3.10/site-packages/django/contrib/auth/decorators.py", line 23, in _wrapper_view
return view_func(request, *args, **kwargs)
File "/opt/recipes/cookbook/views/views.py", line 93, in space_overview
user_space = UserSpace.objects.create(space=Space.objects.first(), user=request.user, active=False)
File "/opt/recipes/venv/lib/python3.10/site-packages/django/db/models/manager.py", line 87, in manager_method
return getattr(self.get_queryset(), name)(*args, **kwargs)
File "/opt/recipes/venv/lib/python3.10/site-packages/django/db/models/query.py", line 658, in create
obj.save(force_insert=True, using=self.db)
File "/opt/recipes/venv/lib/python3.10/site-packages/django/db/models/base.py", line 814, in save
self.save_base(
File "/opt/recipes/venv/lib/python3.10/site-packages/django/db/models/base.py", line 877, in save_base
updated = self._save_table(
File "/opt/recipes/venv/lib/python3.10/site-packages/django/db/models/base.py", line 1020, in _save_table
results = self._do_insert(
File "/opt/recipes/venv/lib/python3.10/site-packages/django/db/models/base.py", line 1061, in _do_insert
return manager._insert(
File "/opt/recipes/venv/lib/python3.10/site-packages/django/db/models/manager.py", line 87, in manager_method
return getattr(self.get_queryset(), name)(*args, **kwargs)
File "/opt/recipes/venv/lib/python3.10/site-packages/django/db/models/query.py", line 1805, in _insert
return query.get_compiler(using=using).execute_sql(returning_fields)
File "/opt/recipes/venv/lib/python3.10/site-packages/django/db/models/sql/compiler.py", line 1822, in execute_sql
cursor.execute(sql, params)
File "/opt/recipes/venv/lib/python3.10/site-packages/django/db/backends/utils.py", line 102, in execute
return super().execute(sql, params)
File "/opt/recipes/venv/lib/python3.10/site-packages/django/db/backends/utils.py", line 67, in execute
return self._execute_with_wrappers(
File "/opt/recipes/venv/lib/python3.10/site-packages/django/db/backends/utils.py", line 80, in _execute_with_wrappers
return executor(sql, params, many, context)
File "/opt/recipes/venv/lib/python3.10/site-packages/django/db/backends/utils.py", line 84, in _execute
with self.db.wrap_database_errors:
File "/opt/recipes/venv/lib/python3.10/site-packages/django/db/utils.py", line 91, in __exit__
raise dj_exc_value.with_traceback(traceback) from exc_value
File "/opt/recipes/venv/lib/python3.10/site-packages/django/db/backends/utils.py", line 89, in _execute
return self.cursor.execute(sql, params)
django.db.utils.IntegrityError: null value in column "space_id" of relation "cookbook_userspace" violates not-null constraint
DETAIL: Failing row contains (1, f, 2023-12-04 15:40:32.871257+00, 2023-12-04 15:40:32.871266+00, null, 1, null, null).
172.27.0.4 - - [04/Dec/2023:10:40:32 -0500] "GET / HTTP/1.0" 500 151455 "https://recipes.EXAMPLE.co/accounts/login/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36"
Internal Server Error: /service-worker.js
Traceback (most recent call last):
File "/opt/recipes/venv/lib/python3.10/site-packages/django/db/backends/utils.py", line 89, in _execute
return self.cursor.execute(sql, params)
psycopg2.errors.NotNullViolation: null value in column "space_id" of relation "cookbook_userspace" violates not-null constraint
DETAIL: Failing row contains (2, f, 2023-12-04 15:40:32.929435+00, 2023-12-04 15:40:32.929446+00, null, 1, null, null).
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/opt/recipes/venv/lib/python3.10/site-packages/django/core/handlers/exception.py", line 55, in inner
response = get_response(request)
File "/opt/recipes/cookbook/helper/scope_middleware.py", line 39, in __call__
return views.space_overview(request)
File "/opt/recipes/venv/lib/python3.10/site-packages/django/contrib/auth/decorators.py", line 23, in _wrapper_view
return view_func(request, *args, **kwargs)
File "/opt/recipes/cookbook/views/views.py", line 93, in space_overview
user_space = UserSpace.objects.create(space=Space.objects.first(), user=request.user, active=False)
File "/opt/recipes/venv/lib/python3.10/site-packages/django/db/models/manager.py", line 87, in manager_method
return getattr(self.get_queryset(), name)(*args, **kwargs)
File "/opt/recipes/venv/lib/python3.10/site-packages/django/db/models/query.py", line 658, in create
obj.save(force_insert=True, using=self.db)
File "/opt/recipes/venv/lib/python3.10/site-packages/django/db/models/base.py", line 814, in save
self.save_base(
File "/opt/recipes/venv/lib/python3.10/site-packages/django/db/models/base.py", line 877, in save_base
updated = self._save_table(
File "/opt/recipes/venv/lib/python3.10/site-packages/django/db/models/base.py", line 1020, in _save_table
results = self._do_insert(
File "/opt/recipes/venv/lib/python3.10/site-packages/django/db/models/base.py", line 1061, in _do_insert
return manager._insert(
File "/opt/recipes/venv/lib/python3.10/site-packages/django/db/models/manager.py", line 87, in manager_method
return getattr(self.get_queryset(), name)(*args, **kwargs)
File "/opt/recipes/venv/lib/python3.10/site-packages/django/db/models/query.py", line 1805, in _insert
return query.get_compiler(using=using).execute_sql(returning_fields)
File "/opt/recipes/venv/lib/python3.10/site-packages/django/db/models/sql/compiler.py", line 1822, in execute_sql
cursor.execute(sql, params)
File "/opt/recipes/venv/lib/python3.10/site-packages/django/db/backends/utils.py", line 102, in execute
return super().execute(sql, params)
File "/opt/recipes/venv/lib/python3.10/site-packages/django/db/backends/utils.py", line 67, in execute
return self._execute_with_wrappers(
File "/opt/recipes/venv/lib/python3.10/site-packages/django/db/backends/utils.py", line 80, in _execute_with_wrappers
return executor(sql, params, many, context)
File "/opt/recipes/venv/lib/python3.10/site-packages/django/db/backends/utils.py", line 84, in _execute
with self.db.wrap_database_errors:
File "/opt/recipes/venv/lib/python3.10/site-packages/django/db/utils.py", line 91, in __exit__
raise dj_exc_value.with_traceback(traceback) from exc_value
File "/opt/recipes/venv/lib/python3.10/site-packages/django/db/backends/utils.py", line 89, in _execute
return self.cursor.execute(sql, params)
django.db.utils.IntegrityError: null value in column "space_id" of relation "cookbook_userspace" violates not-null constraint
DETAIL: Failing row contains (2, f, 2023-12-04 15:40:32.929435+00, 2023-12-04 15:40:32.929446+00, null, 1, null, null).
Internal Server Error: /service-worker.js
Traceback (most recent call last):
File "/opt/recipes/venv/lib/python3.10/site-packages/django/db/backends/utils.py", line 89, in _execute
return self.cursor.execute(sql, params)
psycopg2.errors.NotNullViolation: null value in column "space_id" of relation "cookbook_userspace" violates not-null constraint
DETAIL: Failing row contains (2, f, 2023-12-04 15:40:32.929435+00, 2023-12-04 15:40:32.929446+00, null, 1, null, null).
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/opt/recipes/venv/lib/python3.10/site-packages/django/core/handlers/exception.py", line 55, in inner
response = get_response(request)
File "/opt/recipes/cookbook/helper/scope_middleware.py", line 39, in __call__
return views.space_overview(request)
File "/opt/recipes/venv/lib/python3.10/site-packages/django/contrib/auth/decorators.py", line 23, in _wrapper_view
return view_func(request, *args, **kwargs)
File "/opt/recipes/cookbook/views/views.py", line 93, in space_overview
user_space = UserSpace.objects.create(space=Space.objects.first(), user=request.user, active=False)
File "/opt/recipes/venv/lib/python3.10/site-packages/django/db/models/manager.py", line 87, in manager_method
return getattr(self.get_queryset(), name)(*args, **kwargs)
File "/opt/recipes/venv/lib/python3.10/site-packages/django/db/models/query.py", line 658, in create
obj.save(force_insert=True, using=self.db)
File "/opt/recipes/venv/lib/python3.10/site-packages/django/db/models/base.py", line 814, in save
self.save_base(
File "/opt/recipes/venv/lib/python3.10/site-packages/django/db/models/base.py", line 877, in save_base
updated = self._save_table(
File "/opt/recipes/venv/lib/python3.10/site-packages/django/db/models/base.py", line 1020, in _save_table
results = self._do_insert(
File "/opt/recipes/venv/lib/python3.10/site-packages/django/db/models/base.py", line 1061, in _do_insert
return manager._insert(
File "/opt/recipes/venv/lib/python3.10/site-packages/django/db/models/manager.py", line 87, in manager_method
return getattr(self.get_queryset(), name)(*args, **kwargs)
File "/opt/recipes/venv/lib/python3.10/site-packages/django/db/models/query.py", line 1805, in _insert
return query.get_compiler(using=using).execute_sql(returning_fields)
File "/opt/recipes/venv/lib/python3.10/site-packages/django/db/models/sql/compiler.py", line 1822, in execute_sql
cursor.execute(sql, params)
File "/opt/recipes/venv/lib/python3.10/site-packages/django/db/backends/utils.py", line 102, in execute
return super().execute(sql, params)
File "/opt/recipes/venv/lib/python3.10/site-packages/django/db/backends/utils.py", line 67, in execute
return self._execute_with_wrappers(
File "/opt/recipes/venv/lib/python3.10/site-packages/django/db/backends/utils.py", line 80, in _execute_with_wrappers
return executor(sql, params, many, context)
File "/opt/recipes/venv/lib/python3.10/site-packages/django/db/backends/utils.py", line 84, in _execute
with self.db.wrap_database_errors:
File "/opt/recipes/venv/lib/python3.10/site-packages/django/db/utils.py", line 91, in __exit__
raise dj_exc_value.with_traceback(traceback) from exc_value
File "/opt/recipes/venv/lib/python3.10/site-packages/django/db/backends/utils.py", line 89, in _execute
return self.cursor.execute(sql, params)
django.db.utils.IntegrityError: null value in column "space_id" of relation "cookbook_userspace" violates not-null constraint
DETAIL: Failing row contains (2, f, 2023-12-04 15:40:32.929435+00, 2023-12-04 15:40:32.929446+00, null, 1, null, null).
172.27.0.4 - - [04/Dec/2023:10:40:32 -0500] "GET /service-worker.js HTTP/1.0" 500 151014 "https://recipes.EXAMPLE.co/service-worker.js" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36"
Internal Server Error: /service-worker.js
Traceback (most recent call last):
File "/opt/recipes/venv/lib/python3.10/site-packages/django/db/backends/utils.py", line 89, in _execute
return self.cursor.execute(sql, params)
psycopg2.errors.NotNullViolation: null value in column "space_id" of relation "cookbook_userspace" violates not-null constraint
DETAIL: Failing row contains (3, f, 2023-12-04 15:40:35.31223+00, 2023-12-04 15:40:35.31224+00, null, 1, null, null).
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/opt/recipes/venv/lib/python3.10/site-packages/django/core/handlers/exception.py", line 55, in inner
response = get_response(request)
File "/opt/recipes/cookbook/helper/scope_middleware.py", line 39, in __call__
return views.space_overview(request)
File "/opt/recipes/venv/lib/python3.10/site-packages/django/contrib/auth/decorators.py", line 23, in _wrapper_view
return view_func(request, *args, **kwargs)
File "/opt/recipes/cookbook/views/views.py", line 93, in space_overview
user_space = UserSpace.objects.create(space=Space.objects.first(), user=request.user, active=False)
File "/opt/recipes/venv/lib/python3.10/site-packages/django/db/models/manager.py", line 87, in manager_method
return getattr(self.get_queryset(), name)(*args, **kwargs)
File "/opt/recipes/venv/lib/python3.10/site-packages/django/db/models/query.py", line 658, in create
obj.save(force_insert=True, using=self.db)
File "/opt/recipes/venv/lib/python3.10/site-packages/django/db/models/base.py", line 814, in save
self.save_base(
File "/opt/recipes/venv/lib/python3.10/site-packages/django/db/models/base.py", line 877, in save_base
updated = self._save_table(
File "/opt/recipes/venv/lib/python3.10/site-packages/django/db/models/base.py", line 1020, in _save_table
results = self._do_insert(
File "/opt/recipes/venv/lib/python3.10/site-packages/django/db/models/base.py", line 1061, in _do_insert
return manager._insert(
File "/opt/recipes/venv/lib/python3.10/site-packages/django/db/models/manager.py", line 87, in manager_method
return getattr(self.get_queryset(), name)(*args, **kwargs)
File "/opt/recipes/venv/lib/python3.10/site-packages/django/db/models/query.py", line 1805, in _insert
return query.get_compiler(using=using).execute_sql(returning_fields)
File "/opt/recipes/venv/lib/python3.10/site-packages/django/db/models/sql/compiler.py", line 1822, in execute_sql
cursor.execute(sql, params)
File "/opt/recipes/venv/lib/python3.10/site-packages/django/db/backends/utils.py", line 102, in execute
return super().execute(sql, params)
File "/opt/recipes/venv/lib/python3.10/site-packages/django/db/backends/utils.py", line 67, in execute
return self._execute_with_wrappers(
File "/opt/recipes/venv/lib/python3.10/site-packages/django/db/backends/utils.py", line 80, in _execute_with_wrappers
return executor(sql, params, many, context)
File "/opt/recipes/venv/lib/python3.10/site-packages/django/db/backends/utils.py", line 84, in _execute
with self.db.wrap_database_errors:
File "/opt/recipes/venv/lib/python3.10/site-packages/django/db/utils.py", line 91, in __exit__
raise dj_exc_value.with_traceback(traceback) from exc_value
File "/opt/recipes/venv/lib/python3.10/site-packages/django/db/backends/utils.py", line 89, in _execute
return self.cursor.execute(sql, params)
django.db.utils.IntegrityError: null value in column "space_id" of relation "cookbook_userspace" violates not-null constraint
DETAIL: Failing row contains (3, f, 2023-12-04 15:40:35.31223+00, 2023-12-04 15:40:35.31224+00, null, 1, null, null).
Internal Server Error: /service-worker.js
Traceback (most recent call last):
File "/opt/recipes/venv/lib/python3.10/site-packages/django/db/backends/utils.py", line 89, in _execute
return self.cursor.execute(sql, params)
psycopg2.errors.NotNullViolation: null value in column "space_id" of relation "cookbook_userspace" violates not-null constraint
DETAIL: Failing row contains (3, f, 2023-12-04 15:40:35.31223+00, 2023-12-04 15:40:35.31224+00, null, 1, null, null).
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/opt/recipes/venv/lib/python3.10/site-packages/django/core/handlers/exception.py", line 55, in inner
response = get_response(request)
File "/opt/recipes/cookbook/helper/scope_middleware.py", line 39, in __call__
return views.space_overview(request)
File "/opt/recipes/venv/lib/python3.10/site-packages/django/contrib/auth/decorators.py", line 23, in _wrapper_view
return view_func(request, *args, **kwargs)
File "/opt/recipes/cookbook/views/views.py", line 93, in space_overview
user_space = UserSpace.objects.create(space=Space.objects.first(), user=request.user, active=False)
File "/opt/recipes/venv/lib/python3.10/site-packages/django/db/models/manager.py", line 87, in manager_method
return getattr(self.get_queryset(), name)(*args, **kwargs)
File "/opt/recipes/venv/lib/python3.10/site-packages/django/db/models/query.py", line 658, in create
obj.save(force_insert=True, using=self.db)
File "/opt/recipes/venv/lib/python3.10/site-packages/django/db/models/base.py", line 814, in save
self.save_base(
File "/opt/recipes/venv/lib/python3.10/site-packages/django/db/models/base.py", line 877, in save_base
updated = self._save_table(
File "/opt/recipes/venv/lib/python3.10/site-packages/django/db/models/base.py", line 1020, in _save_table
results = self._do_insert(
File "/opt/recipes/venv/lib/python3.10/site-packages/django/db/models/base.py", line 1061, in _do_insert
return manager._insert(
File "/opt/recipes/venv/lib/python3.10/site-packages/django/db/models/manager.py", line 87, in manager_method
return getattr(self.get_queryset(), name)(*args, **kwargs)
File "/opt/recipes/venv/lib/python3.10/site-packages/django/db/models/query.py", line 1805, in _insert
return query.get_compiler(using=using).execute_sql(returning_fields)
File "/opt/recipes/venv/lib/python3.10/site-packages/django/db/models/sql/compiler.py", line 1822, in execute_sql
cursor.execute(sql, params)
File "/opt/recipes/venv/lib/python3.10/site-packages/django/db/backends/utils.py", line 102, in execute
return super().execute(sql, params)
File "/opt/recipes/venv/lib/python3.10/site-packages/django/db/backends/utils.py", line 67, in execute
return self._execute_with_wrappers(
File "/opt/recipes/venv/lib/python3.10/site-packages/django/db/backends/utils.py", line 80, in _execute_with_wrappers
return executor(sql, params, many, context)
File "/opt/recipes/venv/lib/python3.10/site-packages/django/db/backends/utils.py", line 84, in _execute
with self.db.wrap_database_errors:
File "/opt/recipes/venv/lib/python3.10/site-packages/django/db/utils.py", line 91, in __exit__
raise dj_exc_value.with_traceback(traceback) from exc_value
File "/opt/recipes/venv/lib/python3.10/site-packages/django/db/backends/utils.py", line 89, in _execute
return self.cursor.execute(sql, params)
django.db.utils.IntegrityError: null value in column "space_id" of relation "cookbook_userspace" violates not-null constraint
DETAIL: Failing row contains (3, f, 2023-12-04 15:40:35.31223+00, 2023-12-04 15:40:35.31224+00, null, 1, null, null).
172.27.0.4 - - [04/Dec/2023:10:40:35 -0500] "GET /service-worker.js HTTP/1.0" 500 150998 "https://recipes.EXAMPLE.co/service-worker.js" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36"
172.27.0.4 - - [04/Dec/2023:10:43:22 -0500] "GET / HTTP/1.0" 302 0 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36"
172.27.0.4 - - [04/Dec/2023:10:43:22 -0500] "GET /search/ HTTP/1.0" 302 0 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36"
172.27.0.4 - - [04/Dec/2023:10:43:22 -0500] "GET /accounts/login/?next=/search/ HTTP/1.0" 200 7617 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36"
172.27.0.4 - - [04/Dec/2023:10:43:22 -0500] "GET /static/themes/tandoor.min.css HTTP/1.0" 200 0 "https://recipes.EXAMPLE.co/accounts/login/?next=/search/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36"
172.27.0.4 - - [04/Dec/2023:10:43:22 -0500] "GET /static/css/app.min.css HTTP/1.0" 200 0 "https://recipes.EXAMPLE.co/accounts/login/?next=/search/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36"
172.27.0.4 - - [04/Dec/2023:10:43:22 -0500] "GET /static/js/popper.min.js HTTP/1.0" 200 0 "https://recipes.EXAMPLE.co/accounts/login/?next=/search/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36"
172.27.0.4 - - [04/Dec/2023:10:43:22 -0500] "GET /static/js/jquery-3.5.1.min.js HTTP/1.0" 200 0 "https://recipes.EXAMPLE.co/accounts/login/?next=/search/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36"
172.27.0.4 - - [04/Dec/2023:10:43:22 -0500] "GET /static/css/select2.min.css HTTP/1.0" 200 0 "https://recipes.EXAMPLE.co/accounts/login/?next=/search/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36"
172.27.0.4 - - [04/Dec/2023:10:43:22 -0500] "GET /static/assets/brand_logo.png HTTP/1.0" 200 0 "https://recipes.EXAMPLE.co/accounts/login/?next=/search/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36"
172.27.0.4 - - [04/Dec/2023:10:43:22 -0500] "GET /static/themes/select2-bootstrap-theme.css HTTP/1.0" 200 0 "https://recipes.EXAMPLE.co/accounts/login/?next=/search/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36"
172.27.0.4 - - [04/Dec/2023:10:43:22 -0500] "GET /static/fontawesome/fontawesome_all.min.css HTTP/1.0" 200 0 "https://recipes.EXAMPLE.co/accounts/login/?next=/search/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36"
172.27.0.4 - - [04/Dec/2023:10:43:22 -0500] "GET /static/js/bootstrap.min.js HTTP/1.0" 200 0 "https://recipes.EXAMPLE.co/accounts/login/?next=/search/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36"
172.27.0.4 - - [04/Dec/2023:10:43:22 -0500] "GET /static/js/select2.min.js HTTP/1.0" 200 0 "https://recipes.EXAMPLE.co/accounts/login/?next=/search/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36"
172.27.0.4 - - [04/Dec/2023:10:43:22 -0500] "GET /static/css/select2-bootstrap.css HTTP/1.0" 200 0 "https://recipes.EXAMPLE.co/accounts/login/?next=/search/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36"
172.27.0.4 - - [04/Dec/2023:10:43:22 -0500] "GET /static/webfonts/poppins_latin_500.woff2 HTTP/1.0" 200 0 "https://recipes.EXAMPLE.co/static/themes/tandoor.min.css" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36"
172.27.0.4 - - [04/Dec/2023:10:43:22 -0500] "GET /static/webfonts/poppins_latin_400.woff2 HTTP/1.0" 200 0 "https://recipes.EXAMPLE.co/static/themes/tandoor.min.css" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36"
172.27.0.4 - - [04/Dec/2023:10:43:22 -0500] "GET /static/webfonts/fa-solid-900.woff2 HTTP/1.0" 200 0 "https://recipes.EXAMPLE.co/static/fontawesome/fontawesome_all.min.css" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36"
172.27.0.4 - - [04/Dec/2023:10:43:23 -0500] "GET /static/assets/favicon.svg HTTP/1.0" 200 0 "https://recipes.EXAMPLE.co/accounts/login/?next=/search/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36"
172.27.0.4 - - [04/Dec/2023:10:43:23 -0500] "GET /service-worker.js HTTP/1.0" 200 33402 "https://recipes.EXAMPLE.co/accounts/login/?next=/search/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36"
172.27.0.4 - - [04/Dec/2023:10:43:23 -0500] "GET /static/assets/favicon.svg HTTP/1.0" 304 0 "https://recipes.EXAMPLE.co/accounts/login/?next=/search/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36"
172.27.0.4 - - [04/Dec/2023:10:43:23 -0500] "GET /offline/ HTTP/1.0" 200 16307 "https://recipes.EXAMPLE.co/service-worker.js" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36"
When initially launching you get the superuser creation page, correct? It then redirects to a login page? Does that login fail or do you see this screen:
That's correct, I get the superuser creation, create my superuser, get directed to the login page, login, and then I get the error, I never see the screen in your screenshot.
Are there perhaps restrictions on username or password special characters that I missed in the documentation or something similar that could be causing this?
Are there perhaps restrictions on username or password special characters that I missed in the documentation or something similar that could be causing this?
You'd get feedback on the account creation page if that were true. I'll spend some time a bit later to see if I can recreate the problem.
I can't recreate this - can you share your env and compose?
Sure. Compose:
version: "3"
services:
db_recipes:
restart: always
image: postgres:15-alpine
volumes:
- /containers/data/tandoor/pgsql:/var/lib/postgresql/data
env_file:
- ../stack.env
web_recipes:
restart: always
image: vabene1111/recipes:latest
env_file:
- ../stack.env
volumes:
- staticfiles:/opt/recipes/staticfiles
- nginx_config:/opt/recipes/nginx/conf.d
- /containers/data/tandoor/mediafiles:/opt/recipes/mediafiles
depends_on:
- db_recipes
nginx_recipes:
image: nginx:mainline-alpine
restart: always
ports:
- 60123:80
env_file:
- ../stack.env
depends_on:
- web_recipes
volumes:
- nginx_config:/etc/nginx/conf.d:ro
- staticfiles:/static:ro
- /containers/data/tandoor/mediafiles:/media:ro
volumes:
nginx_config:
staticfiles:
ENV:
DEBUG=1
SQL_DEBUG=0
DEBUG_TOOLBAR=0
ALLOWED_HOSTS=*
SECRET_KEY=SECRET_KEY
TZ=America/Detroit
DB_ENGINE=django.db.backends.postgresql
POSTGRES_HOST=db_recipes
POSTGRES_PORT=5432
POSTGRES_USER=djangouser
POSTGRES_PASSWORD=POSTGRES_PASSWORD
POSTGRES_DB=djangodb
FRACTION_PREF_DEFAULT=1
COMMENT_PREF_DEFAULT=0
SHOPPING_MIN_AUTOSYNC_INTERVAL=5
GUNICORN_MEDIA=0
REMOTE_USER_AUTH=0
EMAIL_HOST=EMAIL_HOST
EMAIL_PORT=587
EMAIL_HOST_USER=EMAIL_USER
EMAIL_HOST_PASSWORD=EMAIL_PASS
EMAIL_USE_TLS=1
SOCIALACCOUNT_PROVIDERS={ "openid_connect": { "APPS": [ { "provider_id": "example-sso", "name": "SSO", "client_id": "CLIENT_ID@recipes", "settings": { "server_url": "https://sso.EXAMPLE.co", }, } ] }}
SOCIAL_PROVIDERS=allauth.socialaccount.providers.openid_connect
SOCIAL_DEFAULT_ACCESS=1
SOCIAL_DEFAULT_GROUP=guest
ENABLE_PDF_EXPORT=1
Sensitive values in env have been redacted.
Can you disable these and try again:
SOCIALACCOUNT_PROVIDERS={ "openid_connect": { "APPS": [ { "provider_id": "example-sso", "name": "SSO", "client_id": "CLIENT_ID@recipes", "settings": { "server_url": "https://sso.EXAMPLE.co", }, } ] }}
SOCIAL_PROVIDERS=allauth.socialaccount.providers.openid_connect
SOCIAL_DEFAULT_ACCESS=1
SOCIAL_DEFAULT_GROUP=guest
Ok, that seems to have worked, now how do I get OIDC configured if this keeps causing the errors?
I'm also seeing the application report that it is not using Postgres, even though it appears to be doing so, there's logs from the Postgres containers showing traffic.
Ok, that seems to have worked, now how do I get OIDC configured if this keeps causing the errors?
I was just trying to isolate the root cause -
I'm also seeing the application report that it is not using Postgres, even though it appears to be doing so, there's logs from the Postgres containers showing traffic.
It's a false negative - it will be fixed in an upcoming release.
Actually - once you've created the space, the social access should work now I think.
Looks like I can now login with the social stuff set, still need to get it all configured, but thanks for the help! We can call this one resolved, so I'll close it and open another issue if something else comes up.
ran into the same issue; i think it's SOCIAL_DEFAULT_ACCESS=1
that's the problem. i had to log in as the default user once to create a space, then social logins worked.
Tandoor Version
Latest tag on docker hub, can't login to find actual version number
Setup
Docker / Docker-Compose
Reverse Proxy
Nginx Proxy Manager (NPM)
Other
No response
Bug description
This is a fresh installation, and after creating the admin user and logging in, the application instantly gives a 500 error.
This appears to be related to #2751 and #2757, but I'm not completely sure of that.
Relevant logs