Skip to content

calibre-web: options.enableBookConversion fails due to missing 'calibredb' #391702

@mksafavi

Description

@mksafavi

Nixpkgs version

  • Unstable (25.05)

Describe the bug

Book conversion fails with the following error:

ERROR {cps.tasks.convert:210} Ebook-converter failed: [Errno 2] No such file or directory: 'calibredb'

Steps to reproduce

  • Enable calibre-web
  services.calibre-web = {
    enable = true;
    options = {
      enableBookConversion = true;
    };

  };
  • Choose a book, open Edit metadata menu

  • Try to convert it to another format.

Book successfully queued for converting to PDF

  • On the Tasks page the job status is failed:
User Task Status Progress Run Time Start Time Actions
admin Convert: EPUB -> PDF: The Twelve-Factor App Failed 100 % 0s 3/21/25, 3:55 AM  
  • check journalctl -u calibre-web.service logs

Expected behaviour

successfully convert the book

Screenshots

No response

Relevant log output

Mar 21 03:55:48 t70 calibre-web[31407]: [2025-03-21 03:55:48,322]  INFO {cps.editbooks:320} converting: book id: 27 from: EPUB to: PDF
Mar 21 03:55:48 t70 calibre-web[31407]: [2025-03-21 03:55:48,334]  INFO {cps.tasks.convert:159} Book id 27 - target format of .pdf does not exist. Moving forward with convert.
Mar 21 03:55:48 t70 calibre-web[31407]: [2025-03-21 03:55:48,351]  INFO {cps.tasks.convert:206} ebook converter failed with error while converting book
Mar 21 03:55:48 t70 calibre-web[31407]: [2025-03-21 03:55:48,352] ERROR {cps.tasks.convert:210} Ebook-converter failed: [Errno 2] No such file or directory: 'calibredb'

Additional context

I also tried adding the calibre package to environment and systemd packages but it didn't fix the issue:

  environment.systemPackages = [
    pkgs.calibre
    pkgs.calibre-web
  ];

  systemd.packages = [
    pkgs.calibre
    pkgs.calibre-web
  ];

System metadata

  • system: "x86_64-linux"
  • host os: Linux 6.13.6, NixOS, 25.05 (Warbler), 25.05.20250313.6607cf7
  • multi-user?: yes
  • sandbox: yes
  • version: nix-env (Nix) 2.25.5
  • nixpkgs: /nix/store/sznkl4iwqvxprlg05fx24xx8bd8j7y6l-source

Notify maintainers

@pborzenkov

Note for maintainers: Please tag this issue in your pull request description. (i.e. Resolves #ISSUE.)

I assert that this issue is relevant for Nixpkgs

Is this issue important to you?

Add a 👍 reaction to issues you find important.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions