[Bug]: Not saving square cover setting #192

Closed
opened 2026-04-24 23:00:42 +02:00 by adam · 15 comments
Owner

Originally created by @kaldigo on GitHub (Jan 31, 2022).

Describe the issue

Whenever the server restarts or is updated it goes back to square covers. It looks like it doesn't save that setting between restarts.

Steps to reproduce the issue

  1. Turn off square covers
  2. Restart Server

Audiobookshelf version

1.6.62

How are you running audiobookshelf?

Docker

Originally created by @kaldigo on GitHub (Jan 31, 2022). ### Describe the issue Whenever the server restarts or is updated it goes back to square covers. It looks like it doesn't save that setting between restarts. ### Steps to reproduce the issue 1. Turn off square covers 2. Restart Server ### Audiobookshelf version 1.6.62 ### How are you running audiobookshelf? Docker
adam added the bug label 2026-04-24 23:00:42 +02:00
adam closed this issue 2026-04-24 23:00:44 +02:00
Author
Owner

@advplyr commented on GitHub (Jan 31, 2022):

There was an issue with the db in that version that impacted all server settings.
I just released v1.6.63 that fixes this.

@advplyr commented on GitHub (Jan 31, 2022): There was an issue with the db in that version that impacted all server settings. I just released `v1.6.63` that fixes this.
Author
Owner

@kaldigo commented on GitHub (Feb 1, 2022):

I am still having this issue on 1.6.63

@kaldigo commented on GitHub (Feb 1, 2022): I am still having this issue on 1.6.63
Author
Owner

@advplyr commented on GitHub (Feb 1, 2022):

Is the server log showing db settings updated 0?

If you can run this project locally, are you also experiencing it on local? Looking for more data.

@advplyr commented on GitHub (Feb 1, 2022): Is the server log showing db settings updated 0? If you can run this project locally, are you also experiencing it on local? Looking for more data.
Author
Owner

@kaldigo commented on GitHub (Feb 1, 2022):

So the log is saying "[DB] Updated settings: 2" whenever I change the setting. I am also having the same issue when running it locally.

@kaldigo commented on GitHub (Feb 1, 2022): So the log is saying "[DB] Updated settings: 2" whenever I change the setting. I am also having the same issue when running it locally.
Author
Owner

@advplyr commented on GitHub (Feb 1, 2022):

It should definitely not have a value of 2. Can you check the json file in /config/settings/data/?
There should only be 1 json object in there.
image

@advplyr commented on GitHub (Feb 1, 2022): It should definitely not have a value of 2. Can you check the json file in `/config/settings/data/`? There should only be 1 json object in there. ![image](https://user-images.githubusercontent.com/67830747/152062720-ee87e7df-dfba-4a68-ae73-e324ec96a323.png)
Author
Owner

@kaldigo commented on GitHub (Feb 1, 2022):

So I have 2 files there. Both have 1 object inside and coverAspectRatio set to 0.
image

@kaldigo commented on GitHub (Feb 1, 2022): So I have 2 files there. Both have 1 object inside and coverAspectRatio set to 0. ![image](https://user-images.githubusercontent.com/6437691/152063231-4a558230-dfcb-4cfb-a181-e97b5049a722.png)
Author
Owner

@advplyr commented on GitHub (Feb 1, 2022):

That is really strange. You can delete one of those files.

@advplyr commented on GitHub (Feb 1, 2022): That is really strange. You can delete one of those files.
Author
Owner

@kaldigo commented on GitHub (Feb 1, 2022):

So I deleted the first one but its still doing it.

@kaldigo commented on GitHub (Feb 1, 2022): So I deleted the first one but its still doing it.
Author
Owner

@advplyr commented on GitHub (Feb 1, 2022):

I think I'm confused about what it is doing exactly. When the coverAspectRatio is 0 it should be showing regular book aspect ratio covers (1.6:1). If the coverAspectRatio is 1 it will be showing square book covers.

Are you not ever able to see a chance in the cover aspect ratio?

@advplyr commented on GitHub (Feb 1, 2022): I think I'm confused about what it is doing exactly. When the coverAspectRatio is 0 it should be showing regular book aspect ratio covers (1.6:1). If the coverAspectRatio is 1 it will be showing square book covers. Are you not ever able to see a chance in the cover aspect ratio?
Author
Owner

@kaldigo commented on GitHub (Feb 1, 2022):

So it is set to 0 in that file but after a server restart it shows square covers.

@kaldigo commented on GitHub (Feb 1, 2022): So it is set to 0 in that file but after a server restart it shows square covers.
Author
Owner

@advplyr commented on GitHub (Feb 1, 2022):

Ah yeah I see the issue now, it is saving fine but not loading properly. Not sure how you got a duplicate file though.

@advplyr commented on GitHub (Feb 1, 2022): Ah yeah I see the issue now, it is saving fine but not loading properly. Not sure how you got a duplicate file though.
Author
Owner

@kaldigo commented on GitHub (Feb 1, 2022):

So I just deleted both of the files and let the server recreate it. "coverAspectRatio" doesn't change when I change the setting. It only does when I also change something else. It seems to be the only setting that has a problem.

@kaldigo commented on GitHub (Feb 1, 2022): So I just deleted both of the files and let the server recreate it. "coverAspectRatio" doesn't change when I change the setting. It only does when I also change something else. It seems to be the only setting that has a problem.
Author
Owner

@advplyr commented on GitHub (Feb 1, 2022):

It was the initialization. I'm going to patch the current version.

@advplyr commented on GitHub (Feb 1, 2022): It was the initialization. I'm going to patch the current version.
Author
Owner

@advplyr commented on GitHub (Feb 2, 2022):

Just pushed the update, let me know how it goes

@advplyr commented on GitHub (Feb 2, 2022): Just pushed the update, let me know how it goes
Author
Owner

@kaldigo commented on GitHub (Feb 2, 2022):

That's all working now. Thank you

@kaldigo commented on GitHub (Feb 2, 2022): That's all working now. Thank you
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/audiobookshelf#192