Error -- invalid byte sequence in US-ASCII

Hi,

Thank you very much for you help. One of our user (and only one user) has a problem to open OnDemand on his laptop. He even does not see the login page and I can not see logs on the cluster. He get an error (his AD directory looks like others; he tested few passwords; nothing works).

Error – invalid byte sequence in US-ASCII Run ‘nginx_stage --help’ to see a full list of available command line options.

Sorry for the delay in response.

That’s not good news. Everything should be UTF-8. What’s the username? I can try to track down where this is coming from and supply a patch shortly.

Hi Jeff,

Many thanks for reply. I do not think it is secure share the username but will check doble with our AD team and let you know.

Best wishes,

Lilianna

OK that’s fine, I assume it has some latin characters. I’m going to test with jéfé and see if I can’t reproduce.

Hi Jeff,

Many thanks. OnDemand is new for me and pain a bit :blush:

Best wishes,

Lilianna

Actually I found this same topic below. I wonder if this is the solution for you too

Adding LANG=en_US.UTF8 to /etc/ood/profile fixed the problem!

Hi Jeff,

Really many thanks for your reply. OnDemand is new for me and small headache a bit. I will wait for AD team to reply and test your suggested solution. Our structure is /etc/ood/config and probably need create profile there. It is only one user, maybe I can add LANG=en_US.UTF8 to his .bashrc. Thanks again for reply and ideas.

OnDemand doesn’t load the users’ ~/.bashrc or similar rc shell files. That’s why what /etc/ood/profile entrypoint exists to load environment variables.

Sorry to hear OnDemand is a bit of a headache for you. We’re here to help if we can.

We have in /etc/locale.conf

LANG=en_US.UTF-8

but will try /etc/ood/profile when find some time. Thanks.

Probably need to reload httpd service as well after changes.

Same answer in the other post - you only need to restart the PUN for these configurations. Though this user hasn’t ever started a PUN so in this case I don’t think you need to restart anything. Just let the user login and it’ll pick it up and for other users they’ll eventually get it.