-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error when migrating database #6550
Comments
Hello @DesNotMe , My guess is that you are probably not using all the necessary environment variables. If you want to install and use the Prowler App from sources, installing and running each service by yourself, please follow the steps from https://github.com/prowler-cloud/prowler/blob/master/README.md#from-github. If you have docker and docker-compose installed, you can simply clone the repository and run Let me know if you need anything else. |
i am facing this error when running docker compose up: |
Additionally, I can't find dockerfile. |
The error is probably coming from the platform issues with MacOS and docker. Please take a look at the requirements for docker installation in https://github.com/prowler-cloud/prowler/blob/master/README.md#docker-compose:
Regarding the Dockerfile, it's at root level: https://github.com/prowler-cloud/prowler/blob/5.1.0/Dockerfile |
thanks for the reply @vicferpoy! So I gotta copy and paste the docker file from the link into a created Dockerfile, am I right? For context, I followed the 2 commands before composing. Additionally, do I have to build first, before composing? |
Apologies for the confusion. I assumed you were going to use the If you take a look at the |
but isn't my platform wrong? I need to change linux/amd64 right? |
You can use I have that line in my |
So currently, I did the 2 commands and only 2 files were created. The rest of the prowler files were not included. So I just need to edit in the docker-compose.yml? https://docs.prowler.com/projects/prowler-open-source/en/latest/#__tabbed_1_1 |
No. If you already have the 2 files, you just need to:
Then, the Prowler App will be running in the background, but you will be able to check the services status with |
sorry for my noob technicality, but im getting this error: |
hey @vicferpoy, was able to access the application, however, I have this issue while the app is running.: |
Hey @DesNotMe , I see you are trying to pull |
hey @vicferpoy appreciate the reply. Please bear with me, I am new to this. I am using M2 Pro. Prowler v5.1, do you mean image or what? |
@vicferpoy appreciate if you could reply ! thank you ! |
currently getting this error when pulling v5.1 image:
This is my docker-compose.yml: `services: ui: postgres: valkey: worker: worker-beat: |
As I said here, you just need to export that environment variable and run the command. You can download the Prowler |
Steps to Reproduce
Expected behavior
Actual Result with Screenshots or Logs
(venv) mervyn.lee.int@IT-MAC backend % python manage.py migrate --database admin usage: manage.py migrate [-h] [--noinput] [--database {default}] [--fake] [--fake-initial] [--plan] [--run-syncdb] [--check] [--prune] [--version] [-v {0,1,2,3}] [--settings SETTINGS] [--pythonpath PYTHONPATH] [--traceback] [--no-color] [--force-color] [--skip-checks] [app_label] [migration_name] manage.py migrate: error: argument --database: invalid choice: 'admin' (choose from default)
(venv) mervyn.lee.int@IT-MAC backend % python manage.py migrate --database default Traceback (most recent call last): File "/Users/mervyn.lee.int/prowler/api/src/backend/manage.py", line 24, in <module> main() ~~~~^^ File "/Users/mervyn.lee.int/prowler/api/src/backend/manage.py", line 20, in main execute_from_command_line(sys.argv) ~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^ File "/Users/mervyn.lee.int/prowler/api/src/backend/venv/lib/python3.13/site-packages/django/core/management/__init__.py", line 442, in execute_from_command_line utility.execute() ~~~~~~~~~~~~~~~^^ File "/Users/mervyn.lee.int/prowler/api/src/backend/venv/lib/python3.13/site-packages/django/core/management/__init__.py", line 436, in execute self.fetch_command(subcommand).run_from_argv(self.argv) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ File "/Users/mervyn.lee.int/prowler/api/src/backend/venv/lib/python3.13/site-packages/django/core/management/base.py", line 413, in run_from_argv self.execute(*args, **cmd_options) ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^ File "/Users/mervyn.lee.int/prowler/api/src/backend/venv/lib/python3.13/site-packages/django/core/management/base.py", line 459, in execute output = self.handle(*args, **options) File "/Users/mervyn.lee.int/prowler/api/src/backend/venv/lib/python3.13/site-packages/django/core/management/base.py", line 107, in wrapper res = handle_func(*args, **kwargs) File "/Users/mervyn.lee.int/prowler/api/src/backend/venv/lib/python3.13/site-packages/django/core/management/commands/migrate.py", line 118, in handle executor = MigrationExecutor(connection, self.migration_progress_callback) File "/Users/mervyn.lee.int/prowler/api/src/backend/venv/lib/python3.13/site-packages/django/db/migrations/executor.py", line 18, in __init__ self.loader = MigrationLoader(self.connection) ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^ File "/Users/mervyn.lee.int/prowler/api/src/backend/venv/lib/python3.13/site-packages/django/db/migrations/loader.py", line 58, in __init__ self.build_graph() ~~~~~~~~~~~~~~~~^^ File "/Users/mervyn.lee.int/prowler/api/src/backend/venv/lib/python3.13/site-packages/django/db/migrations/loader.py", line 235, in build_graph self.applied_migrations = recorder.applied_migrations() ~~~~~~~~~~~~~~~~~~~~~~~~~~~^^ File "/Users/mervyn.lee.int/prowler/api/src/backend/venv/lib/python3.13/site-packages/django/db/migrations/recorder.py", line 89, in applied_migrations if self.has_table(): ~~~~~~~~~~~~~~^^ File "/Users/mervyn.lee.int/prowler/api/src/backend/venv/lib/python3.13/site-packages/django/db/migrations/recorder.py", line 63, in has_table with self.connection.cursor() as cursor: ~~~~~~~~~~~~~~~~~~~~~~^^ File "/Users/mervyn.lee.int/prowler/api/src/backend/venv/lib/python3.13/site-packages/django/utils/asyncio.py", line 26, in inner return func(*args, **kwargs) File "/Users/mervyn.lee.int/prowler/api/src/backend/venv/lib/python3.13/site-packages/django/db/backends/base/base.py", line 320, in cursor return self._cursor() ~~~~~~~~~~~~^^ File "/Users/mervyn.lee.int/prowler/api/src/backend/venv/lib/python3.13/site-packages/django/db/backends/dummy/base.py", line 20, in complain raise ImproperlyConfigured( ...<3 lines>... ) django.core.exceptions.ImproperlyConfigured: settings.DATABASES is improperly configured. Please supply the ENGINE value. Check settings documentation for more details.
How did you install Prowler?
Cloning the repository from github.com (git clone)
Environment Resource
OS used
Prowler version
Prowler 5.1.0
Pip version
(venv) mervyn.lee.int@IT-MAC backend % python manage.py migrate --database default Traceback (most recent call last): File "/Users/mervyn.lee.int/prowler/api/src/backend/manage.py", line 24, in main() ~~~~^^ File "/Users/mervyn.lee.int/prowler/api/src/backend/manage.py", line 20, in main execute_from_command_line(sys.argv) ~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^ File "/Users/mervyn.lee.int/prowler/api/src/backend/venv/lib/python3.13/site-packages/django/core/management/init.py", line 442, in execute_from_command_line utility.execute() ~~~~~~~~~~~~~~~^^ File "/Users/mervyn.lee.int/prowler/api/src/backend/venv/lib/python3.13/site-packages/django/core/management/init.py", line 436, in execute self.fetch_command(subcommand).run_from_argv(self.argv) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ File "/Users/mervyn.lee.int/prowler/api/src/backend/venv/lib/python3.13/site-packages/django/core/management/base.py", line 413, in run_from_argv self.execute(*args, **cmd_options) ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^ File "/Users/mervyn.lee.int/prowler/api/src/backend/venv/lib/python3.13/site-packages/django/core/management/base.py", line 459, in execute output = self.handle(*args, **options) File "/Users/mervyn.lee.int/prowler/api/src/backend/venv/lib/python3.13/site-packages/django/core/management/base.py", line 107, in wrapper res = handle_func(*args, **kwargs) File "/Users/mervyn.lee.int/prowler/api/src/backend/venv/lib/python3.13/site-packages/django/core/management/commands/migrate.py", line 118, in handle executor = MigrationExecutor(connection, self.migration_progress_callback) File "/Users/mervyn.lee.int/prowler/api/src/backend/venv/lib/python3.13/site-packages/django/db/migrations/executor.py", line 18, in init self.loader = MigrationLoader(self.connection) ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^ File "/Users/mervyn.lee.int/prowler/api/src/backend/venv/lib/python3.13/site-packages/django/db/migrations/loader.py", line 58, in init self.build_graph() ~~~~~~~~~~~~~~~~^^ File "/Users/mervyn.lee.int/prowler/api/src/backend/venv/lib/python3.13/site-packages/django/db/migrations/loader.py", line 235, in build_graph self.applied_migrations = recorder.applied_migrations() ~~~~~~~~~~~~~~~~~~~~~~~~~~~^^ File "/Users/mervyn.lee.int/prowler/api/src/backend/venv/lib/python3.13/site-packages/django/db/migrations/recorder.py", line 89, in applied_migrations if self.has_table(): ~~~~~~~~~~~~~~^^ File "/Users/mervyn.lee.int/prowler/api/src/backend/venv/lib/python3.13/site-packages/django/db/migrations/recorder.py", line 63, in has_table with self.connection.cursor() as cursor: ~~~~~~~~~~~~~~~~~~~~~~^^ File "/Users/mervyn.lee.int/prowler/api/src/backend/venv/lib/python3.13/site-packages/django/utils/asyncio.py", line 26, in inner return func(*args, **kwargs) File "/Users/mervyn.lee.int/prowler/api/src/backend/venv/lib/python3.13/site-packages/django/db/backends/base/base.py", line 320, in cursor return self._cursor() ~~~~~~~~~~~~^^ File "/Users/mervyn.lee.int/prowler/api/src/backend/venv/lib/python3.13/site-packages/django/db/backends/dummy/base.py", line 20, in complain raise ImproperlyConfigured( ...<3 lines>... ) django.core.exceptions.ImproperlyConfigured: settings.DATABASES is improperly configured. Please supply the ENGINE value. Check settings documentation for more details.
Context
No response
The text was updated successfully, but these errors were encountered: