Project

General

Profile

Bug #90694

Si deux pipeline tournent en même temps la dernière à lancer postgresql part en erreur

Added by Yann Weber about 1 month ago. Updated about 1 month ago.

Status:
Nouveau
Priority:
Normal
Assignee:
-
Target version:
-
Start date:
16 May 2024
Due date:
% Done:

0%

Estimated time:
Patch proposed:
No
Planning:
No

Description

Par exemple cette pipeline qui échoue a démarrer postgresql

[2024-05-16T14:18:47.811Z] Starting PostgreSQL 16 database server: mainError: /usr/lib/postgresql/16/bin/pg_ctl /usr/lib/postgresql/16/bin/pg_ctl start -D /var/lib/postgresql/16/main -l /var/log/postgresql/postgresql-16-main.log -s -o  -c config_file="/etc/postgresql/16/main/postgresql.conf"  exited with status 1: 
[2024-05-16T14:18:47.811Z] 2024-05-16 16:18:47.661 CEST [9072] LOG:  starting PostgreSQL 16.3 (Debian 16.3-1) on x86_64-pc-linux-gnu, compiled by gcc (Debian 13.2.0-24) 13.2.0, 64-bit
[2024-05-16T14:18:47.811Z] 2024-05-16 16:18:47.662 CEST [9072] LOG:  could not bind IPv6 address "::1": Address already in use
[2024-05-16T14:18:47.811Z] 2024-05-16 16:18:47.662 CEST [9072] HINT:  Is another postmaster already running on port 5436? If not, wait a few seconds and retry.
[2024-05-16T14:18:47.811Z] 2024-05-16 16:18:47.662 CEST [9072] LOG:  could not bind IPv4 address "127.0.0.1": Address already in use
[2024-05-16T14:18:47.811Z] 2024-05-16 16:18:47.662 CEST [9072] HINT:  Is another postmaster already running on port 5436? If not, wait a few seconds and retry.
[2024-05-16T14:18:47.811Z] 2024-05-16 16:18:47.662 CEST [9072] WARNING:  could not create listen socket for "localhost" 
[2024-05-16T14:18:47.811Z] 2024-05-16 16:18:47.662 CEST [9072] FATAL:  could not create any TCP/IP sockets
[2024-05-16T14:18:47.811Z] 2024-05-16 16:18:47.663 CEST [9072] LOG:  database system is shut down
[2024-05-16T14:18:47.811Z] pg_ctl: could not start server

pendant qu'en même temps il y avait cette pipeline avec un postgresql lancé :

[2024-05-16T14:14:02.380Z] + service postgresql start
[2024-05-16T14:14:04.241Z] Starting PostgreSQL 15 database server: main.
[...]
[2024-05-16T14:20:22.872Z] PLAY RECAP *********************************************************************
[2024-05-16T14:20:22.872Z] localhost                  : ok=399  changed=355  unreachable=0    failed=0    skipped=35   rescued=0    ignored=0   

Il y a peut être une piste de résolution dans le commentaire de ce ticket : passer --private-network à nspawn ?


Related issues

Related to Publik Installation Développeur - Development #72899: Utiliser de vraies machines virtuelles pour les builds jenkinsSolution validée03 January 2023

Actions

History

#1

Updated by Emmanuel Cazenave about 1 month ago

  • Related to Development #72899: Utiliser de vraies machines virtuelles pour les builds jenkins added

Also available in: Atom PDF