Open mzch opened 2 years ago
Same error, not working!
On Tue, 21 Feb 2023 at 20:23, Maxime @.***> wrote:
I'm facing the same error, did you find a solution?
— Reply to this email directly, view it on GitHub https://github.com/kaleidos-ventures/taiga-back/issues/103#issuecomment-1438761361, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFBHFNCYID34W4GP4T5PYSTWYTTX7ANCNFSM55XZO6CQ . You are receiving this because you commented.Message ID: @.***>
Nope, i switched to Redmine instead
facing the same error, did you find a solution?
No, I didn't.
On Fri, 10 Mar 2023 at 03:03, Fady Shafeek @.***> wrote:
facing the same error, did you find a solution?
— Reply to this email directly, view it on GitHub https://github.com/kaleidos-ventures/taiga-back/issues/103#issuecomment-1462945134, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFBHFNEB7OJVYRAZQQ7E2P3W3JOVXANCNFSM55XZO6CQ . You are receiving this because you commented.Message ID: @.***>
I solved it using a docker container for the postgres database and changing the database port in the /settings/common.py file as showed below.
I added a docker-compose file in the root folder (above taiga-back) (I don't know if the location matters but worth mention)
The docker-compose.yml
:
version: '3.5'
services:
taiga-db-2:
container_name: taiga-db-2
image: postgres:12.3
restart: always
environment:
POSTGRES_DB: taiga
POSTGRES_USER: taiga
POSTGRES_PASSWORD: taiga
ports:
- "5433:5432"
volumes:
- taiga-db-data-2:/var/lib/posrgresql/data
volumes:
taiga-db-data-2:
Then did docker compose up
to run the container
Is worth mention that i ran this code: sudo netstat -nl | grep postgres
to check in what port was postgres running, and it showed that it was running in port 5432
I had the database port configured like this, to work with the port that I thought was the appropiate:
DATABASES = {
"default": {
"ENGINE": "django.db.backends.postgresql",
"NAME": "taiga",
"USER": "taiga",
"PASSWORD": "taiga",
"HOST": "127.0.0.1",
'PORT': '5432'
}
}
Then I changed the port to 5433 and it works (when the docker container from above is running):
DATABASES = {
"default": {
"ENGINE": "django.db.backends.postgresql",
"NAME": "taiga",
"USER": "taiga",
"PASSWORD": "taiga",
"HOST": "127.0.0.1",
'PORT': '5433'
}
}
After this changes the migration ran without error
Describe the bug
When running
DJANGO_SETTINGS_MODULE=settings.config python manage.py migrate --noinput
, the following error occurred. This seems to happen using PostgreSQL 14 or later. Ref. mailing list articleHow can we reproduce the behavior
Run
DJANGO_SETTINGS_MODULE=settings.config python manage.py migrate --noinput
Workarounds
Screenshots
None.
Taiga environment
14.4
Additional context