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

UnknownLocaleError: unknown locale 'la' #743

Closed
calgara12 opened this issue Jan 2, 2019 · 3 comments
Closed

UnknownLocaleError: unknown locale 'la' #743

calgara12 opened this issue Jan 2, 2019 · 3 comments

Comments

@calgara12
Copy link

Hello, I have the following issue:

I'm trying to set up calibre web inside docker. But it is not working.
Im running Ubuntu Server 16.04. When i try to access calibre-web through my browser i get the internal server error message. Here are the logs that i receive at the server end:

https://pastebin.com/fVFpnt1Y

Thanks in advance!

apetresc added a commit to apetresc/calibre-web that referenced this issue Jan 3, 2019
At the moment, calibre-web will raise an internal 500 error if an invalid locale identifier
is passed in through the `Accept-Language` HTTP header (for a non-logged-in user).

This breaks some crappily-built OPDS feed readers, and there's no reason to error out
so severely. This commit just gracefully falls back to `en` if it can't parse the locale
identifier.

Fixes janeczku#743 among others.
apetresc added a commit to apetresc/calibre-web that referenced this issue Jan 3, 2019
At the moment, calibre-web will raise an internal 500 error if an
invalid locale identifier is passed in through the `Accept-Language`
HTTP header (for a non-logged-in user).

This breaks some crappily-built OPDS feed readers, and there's no reason
to error out so severely. This commit just gracefully falls back to `en`
if it can't parse the locale identifier.

Fixes janeczku#743 among others.
@calgara12
Copy link
Author

Thanks for handling this issue better, but what settings would i have to change to avoid this error in the first place? Is this a problem with docker or something else?

@OzzieIsaacs
Copy link
Collaborator

OzzieIsaacs commented Jan 4, 2019

Your problem now is that you have to update it, but you can't update, because the server crashes, right?
You have to force the docker container to somehow update it's content. I think the technosoft one does this every container restart. The linuxserver one, is build once a week I think, so for this one you have to wait till next week and than restart(?).
Another option would be changing the "accept language-header" in your browser. For firefox and chrome there are add-ons which allow doing this easily (like Quick Accept-Language Switcher). You should enter like "en" (for english), afterwards the startpage should load and you could do the update.
Afterwards everything should work

@calgara12
Copy link
Author

Thanks, i solved it, by editing web.py myself with the exact changes. Now it works!

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

2 participants