Closed adrian62 closed 2 months ago
The celery_worker startup errors should be fixable by changing the docker-compose so that it has:
depends_on:
nautobot:
condition: service_healthy
so that it doesn't attempt to start up while the nautobot container is still running initial database migrations.
Likely a similar change would be appropriate for the celery_beat container as well.
Hi adrian62 Did you find any solution to this? I am facing same issue with docker compose. This error came up when I tried to install a plugin.
Nautobot Docker version: 1.5.11 Python version: 3.9
nautobot-docker-compose-nautobot-1 | usage: nautobot-server post_upgrade [-h] [--version] [-v {0,1,2,3}] nautobot-docker-compose-nautobot-1 | [--settings SETTINGS] nautobot-docker-compose-nautobot-1 | [--pythonpath PYTHONPATH] [--traceback] nautobot-docker-compose-nautobot-1 | [--no-color] [--force-color] nautobot-docker-compose-nautobot-1 | [--skip-checks] [--no-clearsessions] nautobot-docker-compose-nautobot-1 | [--no-collectstatic] [--no-migrate] nautobot-docker-compose-nautobot-1 | [--no-remove-stale-contenttypes] nautobot-docker-compose-nautobot-1 | [--no-trace-paths] nautobot-docker-compose-nautobot-1 | [--no-send-installation-metrics] nautobot-docker-compose-nautobot-1 | [--no-refresh-content-type-cache] nautobot-docker-compose-nautobot-1 | [--no-refresh-dynamic-group-member-caches] nautobot-docker-compose-nautobot-1 | nautobot-server post_upgrade: error: unrecognized arguments: --no-invalidate-all nautobot-docker-compose-nautobot-1 | ⏳ Waiting on DB... (0s / 30s)
Would be helpful if someone shed some light on this.
@NetOpsChic That specific error suggests that you're trying to run a newer version of Nautobot (2.x) in a docker container that was built for an older version (1.x), as the --[no-]invalidate-all
flag was removed in 2.0.
I'd suggest checking the version and dependencies of the plugin that you're installing, it may be that its own Nautobot dependency may be triggering an unintended upgrade of Nautobot itself as a side effect.
This has been addressed so closing.
I followed all the directions in this project. I have a plugin so I included all the steps required to build the image with the plugin module. Image built fine. When I bring up the compose stack I see a bunch of errors that are actually just 2 errors repeating and appearing from the various containers:
This one is related to a query made to the Postgres DB and it can be seen on the database and the two celery containers:
And this one appears on both nautobot containers:
thank you