Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Kavita - No default locale configured in the container #3016

Open
sync-by-unito bot opened this issue Dec 24, 2024 · 1 comment
Open

Kavita - No default locale configured in the container #3016

sync-by-unito bot opened this issue Dec 24, 2024 · 1 comment

Comments

@sync-by-unito
Copy link

sync-by-unito bot commented Dec 24, 2024

There appears to be a bug in the TrueCharts Kavita container that no locale is configured and there is an underlying application issue when this is the case

(run locale on the command line and notice LANG is empty)

The error from the application is as follows

2024-12-24 09:19:29.803390-07:00[Kavita] [2024-12-24 09:19:29.803 -07:00  82] [Error] API.Services.Tasks.Scanner.ProcessSeries [ScannerService] There was an exception updating series for I Am Legend
2024-12-24 09:19:29.803403-07:00System.NullReferenceException: Object reference not set to an instance of an object.
2024-12-24 09:19:29.803409-07:00at System.Globalization.NumberFormatInfo.InitializeInvariantAndNegativeSignFlags()
2024-12-24 09:19:29.803415-07:00at System.Globalization.CultureInfo.GetFormat(Type formatType)
2024-12-24 09:19:29.803420-07:00at API.Services.Tasks.Scanner.ProcessSeries.UpdateChapters(Series series, Volume volume, IList`1 parsedInfos, Boolean forceUpdate) in /home/runner/work/Kavita/Kavita/API/Services/Tasks/Scanner/ProcessSeries.cs:line 706
2024-12-24 09:19:29.803425-07:00at API.Services.Tasks.Scanner.ProcessSeries.UpdateVolumes(Series series, IList`1 parsedInfos, Boolean forceUpdate) in /home/runner/work/Kavita/Kavita/API/Services/Tasks/Scanner/ProcessSeries.cs:line 624
2024-12-24 09:19:29.803431-07:00at API.Services.Tasks.Scanner.ProcessSeries.ProcessSeriesAsync(IList`1 parsedInfos, Library library, Int32 totalToProcess, Boolean forceUpdate) in /home/runner/work/Kavita/Kavita/API/Services/Tasks/Scanner/ProcessSeries.cs:line 118
2024-12-24 09:19:29.803460-07:00[Kavita] [2024-12-24 09:19:29.803 -07:00  82] [Debug] API.Services.Tasks.ScannerService [TIME] Kavita took 0 ms to process I Am LegendThe application bug is detailed here - [https://github.com/Kareadita/Kavita/issues/3408](https://github.com/Kareadita/Kavita/issues/3408|smart-link) 

If I’m reading it correctly it’s simply solved by ensuring the container locale is configured.

Copy link
Author

sync-by-unito bot commented Dec 24, 2024

➤ Aaron Hughes commented:

Found after writing this in the app container the language can be defined as en_US.UTF-8 which appears to work around this. Leaving this here as I think this should be either well documented or default on a basic install… who wants to spend time debugging app bugs in a docker container?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants