Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Airflow Ooops Page

Tags:

airflow

When attempting to see the logs, Airflow throws an oops page with the following message:

File "/Users/user/.pyenv/versions/3.5.2/lib/python3.5/locale.py", line 486, in _parse_localename
raise ValueError('unknown locale: %s' % localename)

ValueError: unknown locale: UTF-8

So I followed the recommendations to add the lines:

export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8

and verfied:

(airflow-local) user-mbp:Desktop user$ echo $LC_ALL
en_US.UTF-8
(airflow-local) user-mbp:Desktop user$ echo $LANG
en_US.UTF-8

But that error is still showing. What's the missing thing that needs to be done?

like image 873
bryan.blackbee Avatar asked Mar 20 '19 07:03

bryan.blackbee


1 Answers

I just solved the issue.

If you are in the virtual environment.

Type echo $LANG in the terminal. It will show an empty output.

Now run this command source ~/.bash_profile

and again run echo $LANG. the response will show like this:- en_US.UTF-8

Restart the server and scheduler and you can see the logs from the UI.

P.S :- do all stuff in a single terminal window.

like image 157
Aman Raheja Avatar answered Nov 10 '22 22:11

Aman Raheja