audiobookshelf icon indicating copy to clipboard operation
audiobookshelf copied to clipboard

[Bug]: Library keeps restoring settings to an older version

Open C0rn3j opened this issue 1 year ago • 3 comments

Describe the issue

Wrong state(I already corrected the folder here from /opt/audiobooks, that changes too):

image

State I keep trying to set it to:

image

This is about the third time it has happened.

If I had to suspect something, it would be the backup(???) routine

[2024-04-30 11:00:01.005] ERROR: 
[fileUtils] Failed to getFileTimestampsWithIno for path "/opt/audiobooks/opt/ebooks/Audio" 
[Error: ENOENT: no such file or directory, stat '/opt/audiobooks/opt/ebooks/Audio'] {

/opt/audiobooks is a symlink to /opt/ebooks/Audio by ln -s ebooks/Audio/ audiobooks

Steps to reproduce the issue

Unsure about repro, seems to happen over a longer period of time.

Audiobookshelf version

v2.9.0, Arch Linux

How are you running audiobookshelf?

Other

C0rn3j avatar Apr 30 '24 09:04 C0rn3j

I'm not sure who manages the arch linux package for Abs so hopefully this isn't an issue with that. You should check that the sqlite database is in your /config folder wherever that is mapped. If you can open up the sqlite db there is a libraries table you can make sure that your path is being saved.

advplyr avatar Apr 30 '24 12:04 advplyr

It's a user package on AUR - https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=audiobookshelf

ends up with this config

METADATA_PATH=/var/lib/audiobookshelf/metadata
CONFIG_PATH=/var/lib/audiobookshelf/config
FFMPEG_PATH=/usr/bin/ffmpeg
FFPROBE_PATH=/usr/bin/ffprobe
TONE_PATH=/usr/bin/tone
PORT=13378
HOST=0.0.0.0

Now it has saved my changes but not my icon change, so the icon keeps reverting (which is infinitely less annoying than having my entire library break every few hours) - how exactly can I check the sqlite db for this?

I figure I can just sqlite3 absdatabase.sqlite .dump dump it, but unsure what to look for

C0rn3j avatar May 01 '24 10:05 C0rn3j

There is a libraries table in the db. If you don't have a visual editor you can use a free one online and upload your sqlite file.

advplyr avatar May 02 '24 22:05 advplyr

This bug was found and will be fixed in the next release. The issue for this is #3079

advplyr avatar Jun 20 '24 22:06 advplyr