Skip to content

PostgreSQL service stop attempt repeats infinitelyΒ #644

@Lezvix

Description

@Lezvix

When the installation was almost complete, and the PostgreSQL analysis phase ended, the code got stuck in an endless attempt to stop PostgreSQL:

+ '[' 0 -ne 0 ']'
+ kill 0
+ stopServices
+ service postgresql stop
 * Stopping PostgreSQL 16 database server
   ...done.
++ '[' 0 -ne 0 ']'
++ kill 0
++ stopServices
++ service postgresql stop
 * Stopping PostgreSQL 16 database server
   ...done.
+++ '[' 0 -ne 0 ']'
+++ kill 0
+++ stopServices
+++ service postgresql stop
 * Stopping PostgreSQL 16 database server
   ...done.
Image

The process wouldn't stop. I manually stopped the container. Later, while trying to launch it in interactive mode, I accidentally started it again. It immediately executed start.sh, and the first action it performed was a DROP table 😭. I spent 3 days importing the entire planet and $50 on server rental. πŸ™ Please, add intermediate import stage checks to the container, not just one for the entire init.sh.

Server:
OS: Ubuntu 22.04.1
Docker: 28.1.1, build 4eba377
Nominatim: 5.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions