When deployed we get an error from the storage class :
TypeError: dbbackup.storage.Storage() argument after ** must be a mapping, not str
File "/root/.local/lib/python3.11/site-packages/dbbackup/utils.py", line 120, in wrapper
func(*args, **kwargs)
File "/root/.local/lib/python3.11/site-packages/dbbackup/management/commands/dbbackup.py", line 80, in handle
self.storage = get_storage()
^^^^^^^^^^^^^
File "/root/.local/lib/python3.11/site-packages/dbbackup/storage.py", line 33, in get_storage
return Storage(path, **options)
^^^^^^^^^^^^^^^^^^^^^^^^
Traceback (most recent call last):
File "/home/inventree/src/backend/InvenTree/manage.py", line 24, in <module>
main()
File "/home/inventree/src/backend/InvenTree/manage.py", line 20, in main
execute_from_command_line(sys.argv)
File "/root/.local/lib/python3.11/site-packages/django/core/management/__init__.py", line 442, in execute_from_command_line
utility.execute()
File "/root/.local/lib/python3.11/site-packages/django/core/management/__init__.py", line 436, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
So it appears it sees our dict as a string, what would be the correct syntax to fix this using enviroment variables?
Deployment Method
Steps to Reproduce
Describe the problem*
We are trying to deploy inventree in our k8s cluster. We want to store our backups in S3.
Based on your documentation we do not find it clear how to provide a dict to this env variable -> https://docs.inventree.org/en/stable/start/backup/#configuration
Our deployement looks something like this:
When deployed we get an error from the storage class :
So it appears it sees our dict as a string, what would be the correct syntax to fix this using enviroment variables?
Steps to Reproduce
Relevant log output
No response