Skip to content

[Bug]: [LibraryItemController] Failed to download file "{FILE}" Error: Request aborted #3803

Open
@AthenaShikata

Description

@AthenaShikata

What happened?

When the error occurs a popup appears in the browser saying "Progress is not being synced, restart playback." The chapter finishes, but won't continue. In the flappa mobile app, the chapter finishes, but won't continue. It may say it is unable to connect to the server, but usually not (I think it only says that after the issue resolves itself, but not 100%). The docker logs show this:

[2025-01-05 19:26:54.939] ERROR: [LibraryItemController] Failed to download file "{FILE}" Error: Request aborted at onaborted (/node_modules/express/lib/response.js:1052:15) at Immediate.<anonymous> (/node_modules/express/lib/response.js:1094:9) at process.processImmediate (node:internal/timers:483:21) { code: 'ECONNABORTED' }

When I reload the page, I get stuck on the my.domain.com/login, but no login appears. When I try to log in on another device, the login gives an unknown error. Restarting the container or compose fixes the issue.

This issue persists for an arbitrary amount of time before fixing itself and doesn't happen for every chapter. Last night I had this happen for a couple chapters, but later that night I got through several chapters without issue. Today I've had it for every chapter so far. If I restart the container after the issue appears, the issue will reappear after a minute or two.

What did you expect to happen?

Continuous playback

Steps to reproduce the issue

  1. It happens at random

Audiobookshelf version

v2.17.6 - v2.17.7

How are you running audiobookshelf?

Docker

What OS is your Audiobookshelf server hosted from?

Linux

If the issue is being seen in the UI, what browsers are you seeing the problem on?

None

Logs

[2025-01-05 18:56:58.344] INFO: [LibraryItemController] User "{USER}" requested download for item "{TITLE}" file at "{FILE}"
[2025-01-05 18:56:59.755] INFO: [LibraryItemController] Downloaded file "{FILE}"
[2025-01-05 19:26:54.929] INFO: [LibraryItemController] User "{USER}" requested download for item "{TITLE}" file at "{FILE}"
[2025-01-05 19:26:54.939] ERROR: [LibraryItemController] Failed to download file "{FILE}" Error: Request aborted
    at onaborted (/node_modules/express/lib/response.js:1052:15)
    at Immediate.<anonymous> (/node_modules/express/lib/response.js:1094:9)
    at process.processImmediate (node:internal/timers:483:21) {
  code: 'ECONNABORTED'
}

Additional Notes

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingunable to reproduceIssue is not yet reproduciblewaitingWaiting for OP

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions