Erpnext Update - Applying v15 to latest fixes- Update Error on Yarn

I am updating my server to latest fixes for version 15 with the command:
bench update --reset

I am getting the following error:

Please advise. Thank you.

Setting up requirements…
$ /home/bench/frappe/env/bin/python -m pip install --quiet --upgrade pip
Installing 3 applications…
Installing frappe
$ /home/bench/frappe/env/bin/python -m pip install --quiet --upgrade -e /home/bench/frappe/apps/frappe
$ yarn install --check-files
yarn install v1.22.19
warning …/…/…/package.json: No license field
[1/5] Validating package.json…
[2/5] Resolving packages…
[3/5] Fetching packages…
info There appears to be trouble with your network connection. Retrying…
info There appears to be trouble with your network connection. Retrying…
info There appears to be trouble with your network connection. Retrying…
info There appears to be trouble with your network connection. Retrying…
info There appears to be trouble with your network connection. Retrying…
info There appears to be trouble with your network connection. Retrying…
info There appears to be trouble with your network connection. Retrying…
info There appears to be trouble with your network connection. Retrying…
error An unexpected error occurred: “https://registry.yarnpkg.com/@sentry/browser/-/browser-7.119.1.tgz: ETIMEDOUT”.
info If you think this is a bug, please open a bug report with the information provided in “/home/bench/frappe/apps/frappe/yarn-error.log”.
info Visit yarn install | Yarn for documentation about this command.
info There appears to be trouble with your network connection. Retrying…
info There appears to be trouble with your network connection. Retrying…
info There appears to be trouble with your network connection. Retrying…
info There appears to be trouble with your network connection. Retrying…
ERROR: yarn install --check-files
subprocess.CalledProcessError: Command ‘yarn install --check-files’ 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 “/home/frappe/.local/lib/python3.10/site-packages/bench/cli.py”, line 132, in cli
bench_command()
File “/home/frappe/.local/lib/python3.10/site-packages/bench/commands/update.py”, line 59, in update
update(
File “/home/frappe/.local/lib/python3.10/site-packages/bench/utils/bench.py”, line 475, in update
bench.setup.requirements()
File “/home/frappe/.local/lib/python3.10/site-packages/bench/utils/render.py”, line 105, in wrapper_fn
return fn(*args, **kwargs)
File “/home/frappe/.local/lib/python3.10/site-packages/bench/bench.py”, line 464, in requirements
app = App(path_to_app, bench=self.bench, to_clone=False).install(
File “/home/frappe/.local/lib/python3.10/site-packages/bench/utils/render.py”, line 126, in wrapper_fn
return fn(*args, **kwargs)
File “/home/frappe/.local/lib/python3.10/site-packages/bench/app.py”, line 254, in install
install_app(
File “/home/frappe/.local/lib/python3.10/site-packages/bench/app.py”, line 920, in install_app
bench.run(yarn_install, cwd=app_path)
File “/home/frappe/.local/lib/python3.10/site-packages/bench/bench.py”, line 48, in run
return exec_cmd(cmd, cwd=cwd or self.cwd, _raise=_raise)
File “/home/frappe/.local/lib/python3.10/site-packages/bench/utils/init.py”, line 178, in exec_cmd
raise CommandFailedError(cmd) from subprocess.CalledProcessError(return_code, cmd)
bench.exceptions.CommandFailedError: yarn install --check-files

1 Like

Resolved. This was a networking issue with ipv6. As a temporary fix I edit my /etc/hosts file with the following:

104.16.25.34 registry.yarnpkg.com
104.16.3.35 registry.npmjs.org
104.16.168.120 yarnpkg.com

1 Like