[Bug]: User account deleted #904

Closed
opened 2026-04-24 23:25:39 +02:00 by adam · 7 comments
Owner

Originally created by @jt196 on GitHub (Jan 21, 2023).

Describe the issue

After my NAS accidentally powered off, ABS (running in Docker) rebooted with the user account missing that was listening at the time.

Can't really see anything in Docker logs, you might have to help me figure out what's going on here - sounds like a DB corruption issue.

Steps to reproduce the issue

  1. Listen to audiobooks
  2. Force kill Docker?
  3. Missing user

Audiobookshelf version

v2.2.12

How are you running audiobookshelf?

Docker

Originally created by @jt196 on GitHub (Jan 21, 2023). ### Describe the issue After my NAS accidentally powered off, ABS (running in Docker) rebooted with the user account missing that was listening at the time. Can't really see anything in Docker logs, you might have to help me figure out what's going on here - sounds like a DB corruption issue. ### Steps to reproduce the issue 1. Listen to audiobooks 2. Force kill Docker? 3. Missing user ### Audiobookshelf version v2.2.12 ### How are you running audiobookshelf? Docker
adam added the bug label 2026-04-24 23:25:39 +02:00
adam closed this issue 2026-04-24 23:25:40 +02:00
Author
Owner

@k9withabone commented on GitHub (Jan 23, 2023):

How are you running docker? Are you using docker compose? If so, share your docker-compose.yaml file. If you are using a docker run command please share that.

@k9withabone commented on GitHub (Jan 23, 2023): How are you running docker? Are you using docker compose? If so, share your `docker-compose.yaml` file. If you are using a `docker run` command please share that.
Author
Owner

@jt196 commented on GitHub (Jan 23, 2023):

Hey there, pretty simple, docker-compose.

Been running this for a year or so without any issues. Funnily enough, the same thing happened about 1hr later (accidental power off the NAS) and the same thing happened. User account that was listening to the audiobooks was deleted.

version: '3.3'
services:
  audiobookshelf:
    environment:
        - AUDIOBOOKSHELF_UID=1029
        - AUDIOBOOKSHELF_GID=100
    ports:
        - '13378:80'
    volumes:
        - '/volume1/audio/audiobooks:/audiobooks'
        - './config:/config'
        - './metadata:/metadata'
    labels:
      - com.centurylinklabs.watchtower.enable=true
    container_name: audiobookshelf
    image: advplyr/audiobookshelf:latest

@jt196 commented on GitHub (Jan 23, 2023): Hey there, pretty simple, docker-compose. Been running this for a year or so without any issues. Funnily enough, the same thing happened about 1hr later (accidental power off the NAS) and the same thing happened. User account that was listening to the audiobooks was deleted. ``` version: '3.3' services: audiobookshelf: environment: - AUDIOBOOKSHELF_UID=1029 - AUDIOBOOKSHELF_GID=100 ports: - '13378:80' volumes: - '/volume1/audio/audiobooks:/audiobooks' - './config:/config' - './metadata:/metadata' labels: - com.centurylinklabs.watchtower.enable=true container_name: audiobookshelf image: advplyr/audiobookshelf:latest ```
Author
Owner

@jt196 commented on GitHub (Jan 23, 2023):

The watchtower is an automatic updater as you may know.

@jt196 commented on GitHub (Jan 23, 2023): The watchtower is an automatic updater as you may know.
Author
Owner

@roebling138 commented on GitHub (Feb 14, 2023):

I just had the same issue:

version: "3"
volumes:
bookself-config:
bookself-metadata:

services:
audiobookshelf:
image: ghcr.io/advplyr/audiobookshelf:latest
container_name: audiobookshelf
environment:
- AUDIOBOOKSHELF_UID=0
- AUDIOBOOKSHELF_GID=0
ports:
- 13378:80
volumes:
- /audio/audiobooks:/audiobooks
- /audio/podcast:/podcasts
- bookself-config:/config
- bookself-metadata:/metadata
restart: unless-stopped

@roebling138 commented on GitHub (Feb 14, 2023): I just had the same issue: version: "3" volumes: bookself-config: bookself-metadata: services: audiobookshelf: image: ghcr.io/advplyr/audiobookshelf:latest container_name: audiobookshelf environment: - AUDIOBOOKSHELF_UID=0 - AUDIOBOOKSHELF_GID=0 ports: - 13378:80 volumes: - /audio/audiobooks:/audiobooks - /audio/podcast:/podcasts - bookself-config:/config - bookself-metadata:/metadata restart: unless-stopped
Author
Owner

@susan3333333 commented on GitHub (Apr 20, 2023):

Is there a way to retrieve the user data when this happens?

@susan3333333 commented on GitHub (Apr 20, 2023): Is there a way to retrieve the user data when this happens?
Author
Owner

@PurpleBooth commented on GitHub (Jun 13, 2023):

This is happening to me too, I am running in Kubernetes. I assume it's something to do with an unclean shutdown. Also it only seems to happen to user accounts that are being actively used, I have a "admin" account that never seems to be deleted.

I have seen similar behaviour with entries in my library too, and at one point the whole library.

@PurpleBooth commented on GitHub (Jun 13, 2023): This is happening to me too, I am running in Kubernetes. I assume it's something to do with an unclean shutdown. Also it only seems to happen to user accounts that are being actively used, I have a "admin" account that never seems to be deleted. I have seen similar behaviour with entries in my library too, and at one point the whole library.
Author
Owner

@advplyr commented on GitHub (Jul 21, 2023):

The latest release 2.3.3 is using a Sqlite database now. This issue was related to the old database

@advplyr commented on GitHub (Jul 21, 2023): The latest release 2.3.3 is using a Sqlite database now. This issue was related to the old database
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/audiobookshelf#904