MarquezProject / marquez

Collect, aggregate, and visualize a data ecosystem's metadata
https://marquezproject.ai
Apache License 2.0
1.78k stars 320 forks source link

Database startup error #2884

Open im76ix opened 2 months ago

im76ix commented 2 months ago

Hello, I have run the project and found that the database is in a closed state. When I check the logs, it shows that the configuration file /etc/postgresql/postgresql.conf cannot be found. I am running the project on a Windows system.

2024-08-28 17:56:38 The files belonging to this database system will be owned by user "postgres".
2024-08-28 17:56:38 This user must also own the server process.
2024-08-28 17:56:38 
2024-08-28 17:56:38 The database cluster will be initialized with locale "en_US.utf8".
2024-08-28 17:56:38 The default database encoding has accordingly been set to "UTF8".
2024-08-28 17:56:38 The default text search configuration will be set to "english".
2024-08-28 17:56:38 
2024-08-28 17:56:38 Data page checksums are disabled.
2024-08-28 17:56:38 
2024-08-28 17:56:38 fixing permissions on existing directory /var/lib/postgresql/data ... ok
2024-08-28 17:56:38 creating subdirectories ... ok
2024-08-28 17:56:38 selecting dynamic shared memory implementation ... posix
2024-08-28 17:56:38 selecting default max_connections ... 100
2024-08-28 17:56:38 selecting default shared_buffers ... 128MB
2024-08-28 17:56:38 selecting default time zone ... Etc/UTC
2024-08-28 17:56:38 creating configuration files ... ok
2024-08-28 17:56:39 running bootstrap script ... ok
2024-08-28 17:56:39 performing post-bootstrap initialization ... ok
2024-08-28 17:56:41 syncing data to disk ... ok
2024-08-28 17:56:41 
2024-08-28 17:56:41 
2024-08-28 17:56:41 Success. You can now start the database server using:
2024-08-28 17:56:41 
2024-08-28 17:56:41     pg_ctl -D /var/lib/postgresql/data -l logfile start
2024-08-28 17:56:41 
2024-08-28 17:57:27 
2024-08-28 17:57:27 PostgreSQL Database directory appears to contain a database; Skipping initialization
2024-08-28 17:56:41 initdb: warning: enabling "trust" authentication for local connections
2024-08-28 17:56:41 You can change this by editing pg_hba.conf or using the option -A, or
2024-08-28 17:56:41 --auth-local and --auth-host, the next time you run initdb.
2024-08-28 17:56:41 postgres: could not access the server configuration file "/etc/postgresql/postgresql.conf": No such file or directory
2024-08-28 17:57:27 postgres: could not access the server configuration file "/etc/postgresql/postgresql.conf": No such file or directory
2024-08-28 17:57:27
boring-cyborg[bot] commented 2 months ago

Thanks for opening your first issue in the Marquez project! Please be sure to follow the issue template!

im76ix commented 2 months ago
marquez-search  | ### or run ./securityadmin_demo.sh
marquez-search  | ### To use the Security Plugin ConfigurationGUI
marquez-search  | ### To access your secured cluster open https://<hostname>:<HTTP port> and log in with admin/admin.
marquez-search  | ### (Ignore the SSL certificate warning because we installed self-signed demo certificates)
marquez-search  | Enabling OpenSearch Security Plugin
marquez-search  | Enabling execution of OPENSEARCH_HOME/bin/opensearch-performance-analyzer/performance-analyzer-agent-cli for OpenSearch Performance Analyzer Plugin
marquez-db      | The files belonging to this database system will be owned by user "postgres".
marquez-db      | This user must also own the server process.
marquez-db      |
marquez-db      | The database cluster will be initialized with locale "en_US.utf8".
marquez-db      | The default database encoding has accordingly been set to "UTF8".
marquez-db      | The default text search configuration will be set to "english".
marquez-db      |
marquez-db      | Data page checksums are disabled.
marquez-db      |
marquez-db      | fixing permissions on existing directory /var/lib/postgresql/data ... ok
marquez-db      | creating subdirectories ... ok
marquez-db      | selecting dynamic shared memory implementation ... posix
marquez-db      | selecting default max_connections ... 100
marquez-db      | selecting default shared_buffers ... 128MB
marquez-db      | selecting default time zone ... Etc/UTC
marquez-db      | creating configuration files ... ok
marquez-db      | running bootstrap script ... ok
Gracefully stopping... (press Ctrl+C again to force)
Error response from daemon: failed to create task for container: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: exec: "/opt/marquez/wait-for-it.sh": stat /opt/marquez/wait-for-it.sh: no such file or directory: unknown
wslulciuc commented 2 months ago

@im76ix can you try running Marquez using our windows guide for docker?