Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in invoke db-export due to incorrect service name and obsolete version warnings #72

Closed
ndmitri opened this issue May 8, 2024 · 0 comments · Fixed by #73
Closed
Assignees
Labels
bug Something isn't working

Comments

@ndmitri
Copy link

ndmitri commented May 8, 2024

Description

When running invoke db-export within the nautobot-docker-compose project, the command fails due to warnings about deprecated version fields in YAML configuration files and a service naming error indicating "no such service: postgres."

Steps to Reproduce

  1. Clone the nautobot-docker-compose repository.
  2. Navigate to the project directory.
  3. Execute the command invoke db-export.

Expected Behavior

The database export process should execute without errors, properly identifying the correct database service name and avoiding any deprecated warnings.

Actual Behavior

The following issues were encountered:

  • Obsolete version field warnings in docker-compose.postgres.yml, docker-compose.base.yml, and docker-compose.local.yml.
  • Error message: "no such service: postgres".

It was noted that the actual database service is named db and not postgres, as evidenced by docker ps output.

Possible Fix

  • Modify the tasks.py file to reference the correct service name (db instead of postgres).
  • Review and update the Docker Compose YAML files to comply with current Docker standards, specifically removing or updating the deprecated version field.

Additional Information

  • It may be necessary to confirm the database service configuration to ensure the service is intended to use PostgreSQL and not MySQL, as inferred by the use of the postgres:13-alpine image.
@jdrew82 jdrew82 self-assigned this May 8, 2024
@jdrew82 jdrew82 added the bug Something isn't working label May 8, 2024
@jdrew82 jdrew82 linked a pull request May 8, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants