Error using ubunto 22.04 cannot istall branch frappe V14

i use ubunto 22.04 and use terminal ,when I want to create new site sing this commend : ```
bench new-site [site-name]

Traceback (most recent call last):
  File "/usr/lib/python3.10/runpy.py", line 196, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/usr/lib/python3.10/runpy.py", line 86, in _run_code
    exec(code, run_globals)
  File "/home/frappe/frappe-bench/apps/frappe/frappe/utils/bench_helper.py", line 109, in <module>
    main()
  File "/home/frappe/frappe-bench/apps/frappe/frappe/utils/bench_helper.py", line 16, in main
    commands = get_app_groups()
  File "/home/frappe/frappe-bench/apps/frappe/frappe/utils/bench_helper.py", line 25, in get_app_groups
    for app in get_apps():
  File "/home/frappe/frappe-bench/apps/frappe/frappe/utils/bench_helper.py", line 102, in get_apps
    return frappe.get_all_apps(with_internal_apps=False, sites_path=".")
  File "/home/frappe/frappe-bench/apps/frappe/frappe/__init__.py", line 1381, 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/__init__.py", line 1535, in get_file_items
    content = read_file(path, raise_not_found=raise_not_found)
  File "/home/frappe/frappe-bench/apps/frappe/frappe/__init__.py", line 1563, in read_file
    raise OSError(f"{path} Not Found")
OSError: b'./apps.txt' Not Found

Traceback (most recent call last):
  File "/usr/lib/python3.10/runpy.py", line 196, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/usr/lib/python3.10/runpy.py", line 86, in _run_code
    exec(code, run_globals)
  File "/home/frappe/frappe-bench/apps/frappe/frappe/utils/bench_helper.py", line 109, in <module>
    main()
  File "/home/frappe/frappe-bench/apps/frappe/frappe/utils/bench_helper.py", line 16, in main
    commands = get_app_groups()
  File "/home/frappe/frappe-bench/apps/frappe/frappe/utils/bench_helper.py", line 25, in get_app_groups
    for app in get_apps():
  File "/home/frappe/frappe-bench/apps/frappe/frappe/utils/bench_helper.py", line 102, in get_apps
    return frappe.get_all_apps(with_internal_apps=False, sites_path=".")
  File "/home/frappe/frappe-bench/apps/frappe/frappe/__init__.py", line 1381, 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/__init__.py", line 1535, in get_file_items
    content = read_file(path, raise_not_found=raise_not_found)
  File "/home/frappe/frappe-bench/apps/frappe/frappe/__init__.py", line 1563, in read_file
    raise OSError(f"{path} Not Found")
OSError: b'./apps.txt' Not Found

Hi

Try: sudo pip3 install frappe-bench --force-reinstall , then see if the site can be created.

sudo pip3 install frappe-bench --force-reinstall

its not working Traceback (most recent call last):
File “/usr/lib/python3.10/runpy.py”, line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File “/usr/lib/python3.10/runpy.py”, line 86, in _run_code
exec(code, run_globals)
File “/home/frappe/frappe-bench/apps/frappe/frappe/utils/bench_helper.py”, line 109, in
main()
File “/home/frappe/frappe-bench/apps/frappe/frappe/utils/bench_helper.py”, line 16, in main
commands = get_app_groups()
File “/home/frappe/frappe-bench/apps/frappe/frappe/utils/bench_helper.py”, line 25, in get_app_groups
for app in get_apps():
File “/home/frappe/frappe-bench/apps/frappe/frappe/utils/bench_helper.py”, line 102, in get_apps
return frappe.get_all_apps(with_internal_apps=False, sites_path=“.”)
File “/home/frappe/frappe-bench/apps/frappe/frappe/init.py”, line 1381, 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/init.py”, line 1535, in get_file_items
content = read_file(path, raise_not_found=raise_not_found)
File “/home/frappe/frappe-bench/apps/frappe/frappe/init.py”, line 1563, in read_file
raise OSError(f"{path} Not Found")
OSError: b’./apps.txt’ Not Found

Traceback (most recent call last):
File “/usr/lib/python3.10/runpy.py”, line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File “/usr/lib/python3.10/runpy.py”, line 86, in _run_code
exec(code, run_globals)
File “/home/frappe/frappe-bench/apps/frappe/frappe/utils/bench_helper.py”, line 109, in
main()
File “/home/frappe/frappe-bench/apps/frappe/frappe/utils/bench_helper.py”, line 16, in main
commands = get_app_groups()
File “/home/frappe/frappe-bench/apps/frappe/frappe/utils/bench_helper.py”, line 25, in get_app_groups
for app in get_apps():
File “/home/frappe/frappe-bench/apps/frappe/frappe/utils/bench_helper.py”, line 102, in get_apps
return frappe.get_all_apps(with_internal_apps=False, sites_path=“.”)
File “/home/frappe/frappe-bench/apps/frappe/frappe/init.py”, line 1381, 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/init.py”, line 1535, in get_file_items
content = read_file(path, raise_not_found=raise_not_found)
File “/home/frappe/frappe-bench/apps/frappe/frappe/init.py”, line 1563, in read_file
raise OSError(f"{path} Not Found")
OSError: b’./apps.txt’ Not Found

not working

What is the operating environment? The OS is Ubuntu 22.04, what sort of machine is it running on(cpu/memory/disk/)?

Im using disk

It may help to say what method was used to install Frappe/ErpNext. The error looks like a file is missing, maybe something in the setup was missed.

1 Like

There’s a chance your bench wasn’t initialised correctly - you’ll have to either manually fix it or create a new one.

A hack that may work: Run ls apps > ./sites/apps.txt from the bench folder and try running your command again.

1 Like

error show . thats i need to update nod js to be in v14

the error i have that need to update nod js

Hi,

What does sudo npm update -g update nodejs return?

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.