mirror of
https://github.com/pocket-id/pocket-id.git
synced 2025-12-11 07:42:58 +03:00
[PR #979] [MERGED] fix: remove previous socket file to prevent bind error #519
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/pocket-id/pocket-id/pull/979
Author: @Caian
Created: 9/24/2025
Status: ✅ Merged
Merged: 9/24/2025
Merged by: @stonith404
Base:
main← Head:issue/remove_previous_socket📝 Commits (1)
db2024eRemove previous socket file to prevent bind error📊 Changes
1 file changed (+1 additions, -0 deletions)
View changed files
📝
backend/internal/bootstrap/router_bootstrap.go(+1 -0)📄 Description
Unix sockets cannot be created if the file already exists. The current socket file can be left behind if pocket-id closes ungracefully, either because of a crash or if the system loses power.
In those cases pocket-id fails to restart with the following error:
This PR removes the previous socket file, if it exists, before creating the router.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.