Bench CLI won't work, even though Frappe/ERPNEXT is running

Hello, and happy 14th anniversary!

This is a new/fresh installation with Docker.

Whenever I run any bench command, I get this error:

Traceback (most recent call last):
  File "/usr/local/bin/", line 48, in <module>
    raise SystemExit(main())
  File "/usr/local/bin/", line 43, in main
  File "/home/frappe/frappe-bench/apps/frappe/frappe/utils/", line 16, in main
    commands = get_app_groups()
  File "/home/frappe/frappe-bench/apps/frappe/frappe/utils/", line 25, in get_app_groups
    for app in get_apps():
  File "/home/frappe/frappe-bench/apps/frappe/frappe/utils/", line 102, in get_apps
    return frappe.get_all_apps(with_internal_apps=False, sites_path=".")
  File "/home/frappe/frappe-bench/apps/frappe/frappe/", line 1371, in get_all_apps
    apps = get_file_items(os.path.join(sites_path, "apps.txt"), raise_not_found=True)
  File "/home/frappe/frappe-bench/apps/frappe/frappe/", line 1519, in get_file_items
    content = read_file(path, raise_not_found=raise_not_found)
  File "/home/frappe/frappe-bench/apps/frappe/frappe/", line 1547, in read_file
    raise OSError(f"{path} Not Found")
OSError: b'./apps.txt' Not Found

I checked the file /frappe-bench/sites/apps.txt, it exists and it contains:


The public site ( works. I completed the setup wizard, however, after switching to Desk, the Workspace screen appears for a second and then redirects to the home page (out of Desk).

If I changed the URL to any app under Desk, I get an error message that the app is not found/installed.

Any hints to troubleshoot?

Version 13
Host: CentOS 7.9