Should I wait or should change maintenance mode to 0 !?

Chage the maintenance mode to 0

1 Like

After any update some file are missing like:

image

Should I go and rename the each file in the file system or !?

bench build --force

please apply it.

What should I do after any update ?

migrate the site and build the app.

1 Like

bench build --force

Failed to log error in db: Filelock: Failed to aquire {lock_path}
Traceback (most recent call last):
File “/cloudclusters/erpnext/frappe-bench/apps/frappe/frappe/utils/synchronization.py”, line 40, in filelock
with _StrongFileLock(lock_path, timeout=timeout):
File “/cloudclusters/erpnext/frappe-bench/env/lib/python3.10/site-packages/filelock/_api.py”, line 314, in enter
self.acquire()
File “/cloudclusters/erpnext/frappe-bench/env/lib/python3.10/site-packages/filelock/_api.py”, line 279, in acquire
raise Timeout(lock_filename) # noqa: TRY301
filelock._error.Timeout: The file lock ‘/cloudclusters/erpnext/frappe-bench/config/bench_build.lock’ could not be acquired.

The above exception was the direct cause of the following exception:

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 “/cloudclusters/erpnext/frappe-bench/apps/frappe/frappe/utils/bench_helper.py”, line 114, in
main()
File “/cloudclusters/erpnext/frappe-bench/apps/frappe/frappe/utils/bench_helper.py”, line 20, in main
click.Group(commands=commands)(prog_name=“bench”)
File “/cloudclusters/erpnext/frappe-bench/env/lib/python3.10/site-packages/click/core.py”, line 1157, in call
return self.main(*args, **kwargs)
File “/cloudclusters/erpnext/frappe-bench/env/lib/python3.10/site-packages/click/core.py”, line 1078, in main
rv = self.invoke(ctx)
File “/cloudclusters/erpnext/frappe-bench/env/lib/python3.10/site-packages/click/core.py”, line 1688, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/cloudclusters/erpnext/frappe-bench/env/lib/python3.10/site-packages/click/core.py”, line 1688, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/cloudclusters/erpnext/frappe-bench/env/lib/python3.10/site-packages/click/core.py”, line 1434, in invoke
return ctx.invoke(self.callback, **ctx.params)
File “/cloudclusters/erpnext/frappe-bench/env/lib/python3.10/site-packages/click/core.py”, line 783, in invoke
return __callback(*args, **kwargs)
File “/cloudclusters/erpnext/frappe-bench/apps/frappe/frappe/commands/utils.py”, line 63, in build
with filelock(“bench_build”, is_global=True, timeout=10):
File “/usr/lib/python3.10/contextlib.py”, line 135, in enter
return next(self.gen)
File “/cloudclusters/erpnext/frappe-bench/apps/frappe/frappe/utils/synchronization.py”, line 45, in filelock
raise LockTimeoutError(
frappe.utils.file_lock.LockTimeoutError: Failed to aquire lock: bench_build. Lock may be held by another process.
You can manually remove the lock if you think it’s safe: /cloudclusters/erpnext/frappe-bench/config/bench_build.lock

issue from bench. Please apply the command and check it.

bench setup requirements
1 Like

Thanks.

I faced a problem
when I setup app like lms by get-app and then install it
give me when I run bench install-app lms → not found in apps.txt

I have to add it by my hand !?

bench setup requirements

$ /cloudclusters/erpnext/frappe-bench/env/bin/python -m pip install --quiet --upgrade pip
Installing 7 applications…
Installing frappe
$ /cloudclusters/erpnext/frappe-bench/env/bin/python -m pip install --quiet --upgrade -e /cloudclusters/erpnext/frappe-bench/apps/frappe
$ yarn install
yarn install v1.22.19
[1/5] Validating package.json…
info Visit yarn install | Yarn for documentation about this command.
ERROR: yarn install
subprocess.CalledProcessError: Command ‘yarn install’ returned non-zero exit status 1.

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File “/usr/local/bin/bench”, line 8, in
sys.exit(cli())
File “/usr/local/lib/python3.10/dist-packages/bench/cli.py”, line 132, in cli
bench_command()
File “/usr/local/lib/python3.10/dist-packages/bench/commands/setup.py”, line 228, in setup_requirements
bench.setup.requirements(apps=apps)
File “/usr/local/lib/python3.10/dist-packages/bench/utils/render.py”, line 105, in wrapper_fn
return fn(*args, **kwargs)
File “/usr/local/lib/python3.10/dist-packages/bench/bench.py”, line 464, in requirements
app = App(path_to_app, bench=self.bench, to_clone=False).install(
File “/usr/local/lib/python3.10/dist-packages/bench/utils/render.py”, line 126, in wrapper_fn
return fn(*args, **kwargs)
File “/usr/local/lib/python3.10/dist-packages/bench/app.py”, line 242, in install
install_app(
File “/usr/local/lib/python3.10/dist-packages/bench/app.py”, line 581, in install_app
bench.run(“yarn install”, cwd=app_path)
File “/usr/local/lib/python3.10/dist-packages/bench/bench.py”, line 48, in run
return exec_cmd(cmd, cwd=cwd or self.cwd, _raise=_raise)
File “/usr/local/lib/python3.10/dist-packages/bench/utils/init.py”, line 158, in exec_cmd
raise CommandFailedError(cmd) from subprocess.CalledProcessError(return_code, cmd)
bench.exceptions.CommandFailedError: yarn install

error frappe-framework@: The engine “node” is incompatible with this module. Expected version “>=18”. Got “16.20.1”
error Found incompatible module.
INFO: A newer version of bench is available: 5.16.3 → 5.22.9