Kavita .NET issue missing DOTNET_SYSTEM_GLOBALIZATION_INVARIANT env #296

Closed
opened 2026-02-04 17:49:38 +03:00 by OVERLORD · 6 comments
Owner

Originally created by @b3nw on GitHub (Jan 8, 2025).

Originally assigned to: @michelroegl-brunner on GitHub.

Have you read and understood the above guidelines?

yes

📜 What is the name of the script you are using?

Kavita

📂 What was the exact command used to execute the script?

bash -c "$(wget -qLO - https://github.com/community-scripts/ProxmoxVE/raw/main/ct/kavita.sh)"

📝 Provide a clear and concise description of the issue.

lxc.environment: DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=1
missing from lxc.conf created

⚙️ What settings are you using?

  • Default Settings
  • Advanced Settings

🖥️ Which Linux distribution are you using?

Debian 12

🔄 Steps to reproduce the issue.

Install script, note lxc.environment: DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=1 is missing, attempt to add folders to Kavita, and see them not properly add.

Paste the full error output (if available).

error was non-obvious, effectively folders would be parsed by application, and then immediately removed.
ex:

Jan 06 20:36:27 read Kavita[147]: [Kavita] [2025-01-06 20:36:27.345 -06:00  32] [Information] API.Services.Tasks.ScannerService [ScannerService] Finished file scan in 94503 milliseconds. Updating database
Jan 06 20:36:27 read Kavita[147]: [Kavita] [2025-01-06 20:36:27.346 -06:00  32] [Debug] API.Services.Tasks.ScannerService [ScannerService] Library Comic (Temp) Step 3: Save Library
Jan 06 20:36:27 read Kavita[147]: [Kavita] [2025-01-06 20:36:27.463 -06:00  32] [Information] API.Services.Tasks.ScannerService [ScannerService] Finished library scan of 7134 files and 111 series in 96513 milliseconds for Comic (Temp)
Jan 06 20:36:27 read Kavita[147]: [Kavita] [2025-01-06 20:36:27.463 -06:00  32] [Debug] API.Services.Tasks.ScannerService [ScannerService] Library Comic (Temp) Step 5: Remove Deleted Series
Jan 06 20:36:27 read Kavita[147]: [Kavita] [2025-01-06 20:36:27.463 -06:00  32] [Debug] API.Services.Tasks.ScannerService [ScannerService] Removing series that were not found during the scan
Jan 06 20:36:27 read Kavita[147]: [Kavita] [2025-01-06 20:36:27.485 -06:00  32] [Debug] API.Services.Tasks.ScannerService [ScannerService] Found 111 series to remove: 

solution was obtained from Kavita Discord and developers who pointed out this env variable was needed.

🖼️ Additional context (optional).

ref: https://discord.com/channels/821879810934439936/840693141082341406/1326187503585329205

Originally created by @b3nw on GitHub (Jan 8, 2025). Originally assigned to: @michelroegl-brunner on GitHub. ### ✅ Have you read and understood the above guidelines? yes ### 📜 What is the name of the script you are using? Kavita ### 📂 What was the exact command used to execute the script? bash -c "$(wget -qLO - https://github.com/community-scripts/ProxmoxVE/raw/main/ct/kavita.sh)" ### 📝 Provide a clear and concise description of the issue. `lxc.environment: DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=1` missing from lxc.conf created ### ⚙️ What settings are you using? - [X] Default Settings - [ ] Advanced Settings ### 🖥️ Which Linux distribution are you using? Debian 12 ### 🔄 Steps to reproduce the issue. Install script, note lxc.environment: DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=1 is missing, attempt to add folders to Kavita, and see them not properly add. ### ❌ Paste the full error output (if available). error was non-obvious, effectively folders would be parsed by application, and then immediately removed. ex: ``` Jan 06 20:36:27 read Kavita[147]: [Kavita] [2025-01-06 20:36:27.345 -06:00 32] [Information] API.Services.Tasks.ScannerService [ScannerService] Finished file scan in 94503 milliseconds. Updating database Jan 06 20:36:27 read Kavita[147]: [Kavita] [2025-01-06 20:36:27.346 -06:00 32] [Debug] API.Services.Tasks.ScannerService [ScannerService] Library Comic (Temp) Step 3: Save Library Jan 06 20:36:27 read Kavita[147]: [Kavita] [2025-01-06 20:36:27.463 -06:00 32] [Information] API.Services.Tasks.ScannerService [ScannerService] Finished library scan of 7134 files and 111 series in 96513 milliseconds for Comic (Temp) Jan 06 20:36:27 read Kavita[147]: [Kavita] [2025-01-06 20:36:27.463 -06:00 32] [Debug] API.Services.Tasks.ScannerService [ScannerService] Library Comic (Temp) Step 5: Remove Deleted Series Jan 06 20:36:27 read Kavita[147]: [Kavita] [2025-01-06 20:36:27.463 -06:00 32] [Debug] API.Services.Tasks.ScannerService [ScannerService] Removing series that were not found during the scan Jan 06 20:36:27 read Kavita[147]: [Kavita] [2025-01-06 20:36:27.485 -06:00 32] [Debug] API.Services.Tasks.ScannerService [ScannerService] Found 111 series to remove: ``` solution was obtained from Kavita Discord and developers who pointed out this env variable was needed. ### 🖼️ Additional context (optional). ref: https://discord.com/channels/821879810934439936/840693141082341406/1326187503585329205
Author
Owner

@michelroegl-brunner commented on GitHub (Jan 9, 2025):

I can not open the link.

@michelroegl-brunner commented on GitHub (Jan 9, 2025): I can not open the link.
Author
Owner

@b3nw commented on GitHub (Jan 11, 2025):

See https://wiki.kavitareader.com/installation/docker/

specifically the -e DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=true \ requirement in docker

@b3nw commented on GitHub (Jan 11, 2025): See https://wiki.kavitareader.com/installation/docker/ specifically the ```-e DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=true \``` requirement in docker
Author
Owner

@michelroegl-brunner commented on GitHub (Jan 11, 2025):

thank you. We do not use docker to install it, but i will have a look how to implement that.

@michelroegl-brunner commented on GitHub (Jan 11, 2025): thank you. We do not use docker to install it, but i will have a look how to implement that.
Author
Owner

@b3nw commented on GitHub (Jan 12, 2025):

Appending lxc.environment: DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=1 to the lxc.conf resolved the issue, not sure how to accomplish that in the install script.

@b3nw commented on GitHub (Jan 12, 2025): Appending `lxc.environment: DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=1` to the lxc.conf resolved the issue, not sure how to accomplish that in the install script.
Author
Owner

@MickLesk commented on GitHub (Jan 12, 2025):

Not at all. I wouldn't do it either, it's an intervention in the LXC Config because of a single script. You can record it on the website, but nothing more.

@MickLesk commented on GitHub (Jan 12, 2025): Not at all. I wouldn't do it either, it's an intervention in the LXC Config because of a single script. You can record it on the website, but nothing more.
Author
Owner

@proddy commented on GitHub (Feb 17, 2025):

Hey @b3nw - thanks for the DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=1 tip. I ran into an issue with Kavita 0.8.4.2 that I'm unable to set any of the server settings from Server->General page. The other web pages work. I've been chatting with the owner and he's requested more use cases to reproduce it. If you don't mind me asking, does it work for you? Like changing for example "# days of backups", and then refresh the page, does the new value persist at all?

@proddy commented on GitHub (Feb 17, 2025): Hey @b3nw - thanks for the `DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=1` tip. I ran into an issue with Kavita 0.8.4.2 that I'm unable to set any of the server settings from Server->General page. The other web pages work. I've been chatting with the owner and he's requested more use cases to reproduce it. If you don't mind me asking, does it work for you? Like changing for example "# days of backups", and then refresh the page, does the new value persist at all?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/ProxmoxVE#296