ERROR - You are not permitted to access this page

Please clarify on the below error,
while trying access as Administrator for the first time after fresh install of v11 on Ubuntu 18.04 system.

The host_name is already added as below yet nginx showing connect() failed (111: Connection refused) error.


 "db_name": "NAME",
 "db_password": "PASSWORD",
 "host_name": "http://Address"

Please note that, all other servers are running.

This error may come when you are trying to access the page by either Guest user or Website user, Here you are saying that you are accessing with the Administrator. First, please ensure that is it really has a System User role or removed?

I didn’t reach the start-up wizard yet, it just the first time to access.
below is the logged error at /home/USER/frappe-bench/logs/worker.log

Traceback (most recent call last):
  File "/usr/lib/python3.6/", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/usr/lib/python3.6/", line 85, in _run_code
    exec(code, run_globals)
  File "/home/USER/frappe-bench/apps/frappe/frappe/utils/", line 97, in <module>
  File "/home/USER/frappe-bench/apps/frappe/frappe/utils/", line 18, in main
  File "/home/USER/frappe-bench/env/lib/python3.6/site-packages/click/", line 764, in __call__
    return self.main(*args, **kwargs)
  File "/home/USER/frappe-bench/env/lib/python3.6/site-packages/click/", line 696, in main
  File "/home/USER/frappe-bench/env/lib/python3.6/site-packages/click/", line 124, in _verify_python3_env
    ' mitigation steps.' + extra
RuntimeError: Click will abort further execution because Python 3 was configured to use ASCII as encoding for the environment. Consult for mitigation steps.

This system supports the C.UTF-8 locale which is recommended.
You might be able to resolve your issue by exporting the
following environment variables:

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

Click discovered that you exported a UTF-8 locale
but the locale system could not pick up from it because
it does not exist.  The exported locale is "en_US.utf8" but it
is not supported

after running the commands,

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

the login page showing verifying then success before displaying the below error screen

and sometimes not and keep showing You are not permitted to access this page
what to do with locale settings? install script takes care about it already.