Skip to content

The service cannot be started, and it keeps showing the error: "unhealthy." #55

@yangyunzhao

Description

@yangyunzhao
  • **AnkiDesktop version number:**2.1.19
  • **AnkiDroid version number:**None

Summary

Urgent help needed! Our entire family has been using Anki for learning for several years now. We are extremely grateful for your development of this tool. Recently, we encountered a problem where the Anki sync server cannot start properly, and it keeps showing an "unhealthy" error. In the past, we occasionally had errors, but restarting the server would fix it. Today, I've already restarted it 5 or 6 times, but the issue persists.

Here is my YAML file.

version: "3"

services:
    anki-container:
        image: kuklinistvan/anki-sync-server:latest
        container_name: anki-container
        restart: always
        ports:
        - "15000:27701"
        volumes:
        - /opt/docker/anki/data:/app/data
volumes:
    data:

Here is the Docker log.

root@yangyunzhao-HP-Z230-SFF-Workstation:/opt/docker# docker logs anki-container
ankisyncd.conf found
auth.db found
collections directory exists
Updating database schema
No outdated 'auth' table found.
No outdated 'session' table found.
Starting tsudoko's anki-sync-server
[2025-02-01 07:36:47,722]:INFO:ankisyncd:ankisyncd [unknown version] (https://github.com/tsudoko/anki-sync-server)
[2025-02-01 07:36:47,752]:INFO:ankisyncd:Loaded config from /app/anki-sync-server/ankisyncd.conf
[2025-02-01 07:36:47,752]:INFO:ankisyncd.users:Found auth_db_path in config, using SqliteUserManager for auth
[2025-02-01 07:36:47,753]:INFO:ankisyncd.sessions:Found session_db_path in config, using SqliteSessionManager for auth
[2025-02-01 07:36:47,753]:INFO:ankisyncd:Serving HTTP on 0.0.0.0 port 27701...

Here is the docker ps log.

root@yangyunzhao-HP-Z230-SFF-Workstation:/opt/docker# docker ps
CONTAINER ID   IMAGE                                  COMMAND                  CREATED         STATUS                     PORTS                                                                                NAMES
0be97749b5cf   kuklinistvan/anki-sync-server:latest   "/bin/sh -c /app/scr…"   7 minutes ago   Up 7 minutes (unhealthy)   0.0.0.0:15000->27701/tcp, :::15000->27701/tcp                                        anki-container

I'm really anxious because the learning progress of our entire family is now on hold.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions