25.12 is working well, but NOW the calendar is broken. Im on ubuntu 24.04 with locale set as en-us , why is Carbonio using en_us? thanks
app-error-catcher.tsx:13 RangeError: Invalid language tag: en_US
at new DateTimeFormat (<anonymous>)
at o (use-get-date-range-c…-timezone.tsx:45:25)
at use-get-date-range-c…o-timezone.tsx:80:9
at s (use-get-date-range-c…o-timezone.tsx:79:9)
at vt (editor-summary.tsx:88:23)
react-dom.production.min.js:188 RangeError: Invalid language tag: en_US
at new DateTimeFormat (<anonymous>)
at o (use-get-date-range-converted-to-timezone.tsx:45:25)
at use-get-date-range-converted-to-timezone.tsx:80:9
at Object.useMemo (react-dom.production.min.js:177:189)
at t.useMemo (react.production.min.js:26:48)
at s (use-get-date-range-converted-to-timezone.tsx:79:9)
at vt (editor-summary.tsx:88:23)
en_US.UTF-8 as the default system locale.@sharif HI
This is ubuntu 24.04 Well, as the zextras user locale returns
zextras@mail:~$ locale
LANG=C.UTF-8
LANGUAGE=
LC_CTYPE="C.UTF-8"
LC_NUMERIC="C.UTF-8"
LC_TIME="C.UTF-8"
LC_COLLATE="C.UTF-8"
LC_MONETARY="C.UTF-8"
LC_MESSAGES="C.UTF-8"
LC_PAPER="C.UTF-8"
LC_NAME="C.UTF-8"
LC_ADDRESS="C.UTF-8"
LC_TELEPHONE="C.UTF-8"
LC_MEASUREMENT="C.UTF-8"
LC_IDENTIFICATION="C.UTF-8"
LC_ALL=C.UTF-8
AS ROOT
it returns
root@mail:~# locale
LANG=en_US.utf8
LANGUAGE=
LC_CTYPE="en_US.utf8"
LC_NUMERIC="en_US.utf8"
LC_TIME="en_US.utf8"
LC_COLLATE="en_US.utf8"
LC_MONETARY="en_US.utf8"
LC_MESSAGES="en_US.utf8"
LC_PAPER="en_US.utf8"
LC_NAME="en_US.utf8"
LC_ADDRESS="en_US.utf8"
LC_TELEPHONE="en_US.utf8"
LC_MEASUREMENT="en_US.utf8"
LC_IDENTIFICATION="en_US.utf8"
LC_ALL=
Why is there a difference. Im pretty good with Linux 🙂 !
thanks
Could you please walk me through followings:
If you set the locale using this:
https://docs.zextras.com/carbonio-ce/html/admincli/management/locale.html#setting-system-locale
- What you are encountering?
- How you are reproducing it?
- What is your expected behavior?
The difference of locale value between root and Zextras user environment is normal, so don't mind it.
Regards
@sharif HI.
I followed the link precisely and all the expected responses match per your document.
Reproduce.
Login to the user account (there is only one ) at the BASH command prompt
isb@mail:~$ locale
LANG=en_US.utf8
LANGUAGE=
LC_CTYPE="en_US.utf8"
LC_NUMERIC="en_US.utf8"
LC_TIME="en_US.utf8"
LC_COLLATE="en_US.utf8"
LC_MONETARY="en_US.utf8"
LC_MESSAGES="en_US.utf8"
LC_PAPER="en_US.utf8"
LC_NAME="en_US.utf8"
LC_ADDRESS="en_US.utf8"
LC_TELEPHONE="en_US.utf8"
LC_MEASUREMENT="en_US.utf8"
LC_IDENTIFICATION="en_US.utf8"
LC_ALL=
Now I go to broswer and login to the isb account on Carbonio
I see the calendar
But as soon as I click on ANY cell in the calendar I see a modal popup that says
"Invalid language tag: en_US"
The developer tools in Firefox and Chrome (latest rev) BOTH show the same errors in
app-error-catcher.tsx:13 RangeError: Invalid language tag: en_US
and
react-dom.production.min.js:188 RangeError: Invalid language tag: en_US
I believe javascript shouild NOT use en_US but always en-US
This find shows seveal .js scripts using en_US
root@mail:~# for it in `locate .js`; do grep -lH en_US $it; done;
/opt/zextras/admin/iris/carbonio-admin-console-ui/a9f259b021a77ffd351459479a083d1312f36009/943.641fbe93.chunk.js.map
/opt/zextras/common/share/doc/ClamAV/html/searchindex.js
/opt/zextras/docs/share/coolwsd/browser/dist/bundle.js
/opt/zextras/web/iris/carbonio-calendars-ui/fcf164b196a06547c97d41a28204df533cc218c5/374.b3f98f25.chunk.js.map
/opt/zextras/web/iris/carbonio-mails-ui/9eb3b0e62570f26a06e7bb9685f42b17703170b2/326.97ca2884.chunk.js.map
/opt/zextras/web/iris/carbonio-ws-collaboration-ui/45130334cec54ea28a10f61e97aaf4613a292e78/531.4d43a36a.chunk.js.map
I think this may be an issue,
thanks
Ivan
Could you please share the output of following commands for any user whose calendar is breaking:
zextras@mail:~$ carbonio prov ga testuser@example.com | grep -i locale
regards,
Ah! That's the issue... thanks....why is the account not using the global locale 🙂 ?
How can I force it?
thankyou
carbonio prov ga isb@forscotland.com | grep -i locale
zimbraPrefLocale: en_US
this fixed it , thanks for putting me on right track...
This account was migrated in from ZIMBRA 8.8.15..... brought bad locale with it I guess.
carbonio prov ma isb@forscotland.com zimbraPrefLocale en-US
Thaks
Ivan
Then root cause is Zimbra was VEY heavily Java based and en_us is pretty common for Java whereas en0us is common for Javascript
