adam commented on issue starred/audiobookshelf#2124 2026-04-25 00:03:45 +02:00
[Bug] Server crash episode auto download, unhandled rejection

@advplyr commented on GitHub (Jul 31, 2024):

and just NOT add the troublesome one

So far nothing points to this being related to a specific podcast other than the corruption happened to…

adam commented on issue starred/audiobookshelf#2124 2026-04-25 00:03:45 +02:00
[Bug] Server crash episode auto download, unhandled rejection

@mikiher commented on GitHub (Jul 31, 2024):

Yes, I agree with @advplyr. I don't think there's anything special or wrong about this podcast. In fact, I tried adding that specific podcast and…

adam commented on issue starred/audiobookshelf#2124 2026-04-25 00:03:45 +02:00
[Bug] Server crash episode auto download, unhandled rejection

@jeffreyswiggins commented on GitHub (Jul 31, 2024):

All the comments make sense. I have the app make backups. I use Kopia as a Container backup solution to take snapshot backups to a secondary…

adam commented on issue starred/audiobookshelf#2124 2026-04-25 00:03:44 +02:00
[Bug] Server crash episode auto download, unhandled rejection

@advplyr commented on GitHub (Jul 31, 2024):

I don't think Step 2 will work since that record of the DB will be read in the middleware step of the delete API call.

I think in these cases it is…

adam commented on issue starred/audiobookshelf#2124 2026-04-25 00:03:44 +02:00
[Bug] Server crash episode auto download, unhandled rejection

@mikiher commented on GitHub (Jul 31, 2024):

The quesion is - a backup from when? it is quite possible that the problem exists in all previous backups, especially if they are cleaned after 3 days…

adam commented on issue starred/audiobookshelf#2124 2026-04-25 00:03:44 +02:00
[Bug] Server crash episode auto download, unhandled rejection

@jeffreyswiggins commented on GitHub (Jul 31, 2024):

The quesion is - a backup from when? it is quite possible that the problem exists in all previous backups, especially if they are cleaned…

adam commented on issue starred/audiobookshelf#2124 2026-04-25 00:03:44 +02:00
[Bug] Server crash episode auto download, unhandled rejection

@mikiher commented on GitHub (Jul 31, 2024):

The socket disconnect is indicative of a server crash.

Please wait with re-scanning everything. I will provide you with the option D you…

adam commented on issue starred/audiobookshelf#2124 2026-04-25 00:03:44 +02:00
[Bug] Server crash episode auto download, unhandled rejection

@mikiher commented on GitHub (Jul 31, 2024):

So please try the following:

  • Run the query: DELETE FROM podcastepisodes WHERE podcastId = '08101be9-9416-437b-8f36-ab65d2d4630b';
  • Make sure…
adam commented on issue starred/audiobookshelf#2124 2026-04-25 00:03:43 +02:00
[Bug] Server crash episode auto download, unhandled rejection

@jeffreyswiggins commented on GitHub (Jul 31, 2024):

Can you export all the rows (into a csv, spreadsheet, or whatever file format) and attach them here?

is that CSV file i uploaded what you…

adam commented on issue starred/audiobookshelf#2124 2026-04-25 00:03:43 +02:00
[Bug] Server crash episode auto download, unhandled rejection

@mikiher commented on GitHub (Jul 31, 2024):

OK, thanks for uploading the export.

I wanted to update that I found the culprit of the crash. In Row 27, which represets episode number 465,…

adam commented on issue starred/audiobookshelf#2124 2026-04-25 00:03:43 +02:00
[Bug] Server crash episode auto download, unhandled rejection

@advplyr commented on GitHub (Jul 31, 2024):

This shouldn't be able to happen from Abs making multiple writes at the same time unless sqlite had a file locking issue. That would be my first guess…

adam commented on issue starred/audiobookshelf#2124 2026-04-25 00:03:43 +02:00
[Bug] Server crash episode auto download, unhandled rejection

@jeffreyswiggins commented on GitHub (Jul 31, 2024):

Okay... so trying to do anything with that podcast in the "app" results with app seeming to just drop connection and I have to refresh back to…

adam commented on issue starred/audiobookshelf#2124 2026-04-25 00:03:43 +02:00
[Bug] Server crash episode auto download, unhandled rejection

@mikiher commented on GitHub (Jul 31, 2024):

I believe just deleting them from the filesystem will likely not repair the database, because of all those duplicate records that are kind of…

adam commented on issue starred/audiobookshelf#2124 2026-04-25 00:03:43 +02:00
[Bug] Server crash episode auto download, unhandled rejection

@mikiher commented on GitHub (Jul 31, 2024):

This shouldn't be able to happen from Abs making multiple writes at the same time unless sqlite had a file locking issue. That would be my first…

adam commented on issue starred/audiobookshelf#2124 2026-04-25 00:03:42 +02:00
[Bug] Server crash episode auto download, unhandled rejection

@jeffreyswiggins commented on GitHub (Jul 30, 2024):

This is what it has shown up in the log so far since the top of this hour....

2024-07-30 08:00:00.572

DEBUG

Running the following…

adam commented on issue starred/audiobookshelf#2124 2026-04-25 00:03:42 +02:00
[Bug] Server crash episode auto download, unhandled rejection

@mikiher commented on GitHub (Jul 30, 2024):

OK, good, that's progress - we now have the query which Sequelize fails to parse its results.

Are you familiar with how to run queries directly…

adam commented on issue starred/audiobookshelf#2124 2026-04-25 00:03:42 +02:00
[Bug] Server crash episode auto download, unhandled rejection

@jeffreyswiggins commented on GitHub (Jul 30, 2024):

OK, good, that's progress - we now have the query which Sequelize fails to parse its results.

Are you familiar with how to run…

adam commented on issue starred/audiobookshelf#2124 2026-04-25 00:03:42 +02:00
[Bug] Server crash episode auto download, unhandled rejection

@jeffreyswiggins commented on GitHub (Jul 31, 2024):

Okay I went and just used my old standby DB Browser for SQLite. This was the results:

Execution finished without errors. Result: 209 rows…

adam commented on issue starred/audiobookshelf#2124 2026-04-25 00:03:42 +02:00
[Bug] Server crash episode auto download, unhandled rejection

@mikiher commented on GitHub (Jul 31, 2024):

Can you export all the rows (into a csv, spreadsheet, or whatever file format) and attach them here?

adam commented on issue starred/audiobookshelf#2124 2026-04-25 00:03:42 +02:00
[Bug] Server crash episode auto download, unhandled rejection

@jeffreyswiggins commented on GitHub (Jul 31, 2024):

audiobookshelf.export.csv