Error while "bench init --frappe-branch version-14 frappe-bench"

frappe@apexerp1v:~$ bench init --frappe-branch version-14 frappe-bench
Setting Up Environment
$ python3 -m venv env
$ /home/frappe/frappe-bench/env/bin/python -m pip install --quiet --upgrade pip
$ /home/frappe/frappe-bench/env/bin/python -m pip install --quiet wheel
Getting frappe
$ git clone GitHub - frappe/frappe: Low code web framework for real world applications, in Python and Javascript --branch version-14 --depth 1 --origin upstream
Cloning into ‘frappe’…
remote: Enumerating objects: 3237, done.
remote: Counting objects: 100% (3237/3237), done.
remote: Compressing objects: 100% (2865/2865), done.
remote: Total 3237 (delta 375), reused 2014 (delta 261), pack-reused 0
Receiving objects: 100% (3237/3237), 16.32 MiB | 5.18 MiB/s, done.
Resolving deltas: 100% (375/375), done.
Updating files: 100% (3083/3083), done.
Installing frappe
$ /home/frappe/frappe-bench/env/bin/python -m pip install --quiet --upgrade -e /home/frappe/frappe-bench/apps/frappe
$ yarn install --check-files
yarn install v1.22.21
[1/5] Validating package.json…
[2/5] Resolving packages…
[3/5] Fetching packages…
[4/5] Linking dependencies…
warning " > @frappe/esbuild-plugin-postcss2@0.1.3" has unmet peer dependency “less@^4.x”.
warning " > @frappe/esbuild-plugin-postcss2@0.1.3" has unmet peer dependency “stylus@^0.x”.
[5/5] Building fresh packages…
$ npm run snyk-protect

snyk-protect
snyk-protect

Applied Snyk patches.
Done in 59.06s.
Found existing apps updating states…
WARN: restart failed: Couldn’t find supervisorctl in PATH
$ bench build
Assets for Release v14.65.0 don’t exist
:heavy_check_mark: Application Assets Linked

yarn run v1.22.21
$ node esbuild --production --run-build-command
clean: postcss.plugin was deprecated. Migration guide:

Browserslist: caniuse-lite is outdated. Please run:
npx browserslist@latest --update-db
Why you should do it regularly: GitHub - browserslist/browserslist: 🦔 Share target browsers between different front-end tools, like Autoprefixer, Stylelint and babel-preset-env
clean: postcss.plugin was deprecated. Migration guide:
PostCSS 8.0: Plugin migration guide—Martian Chronicles, Evil Martians’ team blog
clean: postcss.plugin was deprecated. Migration guide:
PostCSS 8.0: Plugin migration guide—Martian Chronicles, Evil Martians’ team blog
File Size

frappe/dist/js/
├─ bootstrap-4-web.bundle.22U72DEL.js 1.73 Kb
├─ controls.bundle.SVAY6SB2.js 1229.49 Kb
├─ data_import_tools.bundle.3E3NNDZO.js 106.97 Kb
├─ desk.bundle.X7AJSFGO.js 1434.32 Kb
├─ dialog.bundle.Q2SG6ORY.js 54.83 Kb
├─ form.bundle.Y6G7DJ54.js 160.87 Kb
├─ frappe-web.bundle.7TRDEE3G.js 1176.90 Kb
├─ libs.bundle.5QWQF2M7.js 790.84 Kb
├─ list.bundle.GI7TAUZB.js 190.84 Kb
├─ logtypes.bundle.7STJ7YLS.js 0.73 Kb
├─ onboarding_tours.bundle.UGIMX7PI.js 7.62 Kb
├─ recorder.bundle.BE4B6ZDU.js 181.99 Kb
├─ report.bundle.EAKS4IWR.js 174.44 Kb
├─ telemetry.bundle.ESRPVZ24.js 2.22 Kb
├─ user_profile_controller.bundle.WCRWDNHY.js 11.98 Kb
├─ video_player.bundle.UO3KNN5D.js 120.59 Kb
├─ web_form.bundle.NUVVJFCR.js 1565.84 Kb
├─ print_format_builder.bundle.4HKLLEUN.js 169.76 Kb
├─ build_events.bundle.P7UL6LUB.js 11.60 Kb
└─ kanban_board.bundle.YPJO3YOS.js 27.89 Kb

frappe/dist/css/
├─ desk.bundle.OCIN7X2T.css 564.62 Kb
├─ email.bundle.XSIKBZZE.css 5.97 Kb
├─ login.bundle.W5O2HRIL.css 27.68 Kb
├─ print.bundle.XEVG3Q5C.css 196.35 Kb
├─ print_format.bundle.PJPCZSVX.css 178.85 Kb
├─ report.bundle.7ZRMT2SP.css 5.36 Kb
├─ web_form.bundle.IZZXNHTC.css 14.73 Kb
└─ website.bundle.Y3XCSBOC.css 423.82 Kb

frappe/dist/css-rtl/
├─ desk.bundle.76U5LFMI.css 564.88 Kb
├─ email.bundle.FI5F3BZF.css 5.98 Kb
├─ login.bundle.NLPUP2EY.css 27.68 Kb
├─ print.bundle.SVU2EK2H.css 196.49 Kb
├─ print_format.bundle.BFPPT62X.css 178.96 Kb
├─ report.bundle.6SZIUBRF.css 5.35 Kb
├─ web_form.bundle.D3CPWXOQ.css 14.72 Kb
└─ website.bundle.Y3QBEXQM.css 423.97 Kb

DONE Total Build Time: 2:01.204 (m:ss.mmm)

WARN Cannot connect to redis_cache to update assets_json
WARN Cannot connect to redis_cache to update assets_json
WARN Cannot connect to redis_cache to update assets_json
Done in 126.74s.
Traceback (most recent call last):
File “/usr/local/lib/python3.10/dist-packages/bench/commands/make.py”, line 75, in init
init(
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/utils/system.py”, line 115, in init
bench.setup.backups()
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/bench.py”, line 438, in backups
system_crontab = CronTab(user=user)
File “/usr/local/lib/python3.10/dist-packages/crontab.py”, line 228, in init
self.read(tabfile)
File “/usr/local/lib/python3.10/dist-packages/crontab.py”, line 291, in read
(out, err) = open_pipe(self.cron_command, l=‘’, **self.user_opt).communicate()
File “/usr/local/lib/python3.10/dist-packages/crontab.py”, line 190, in open_pipe
return sp.Popen(args, stdout=sp.PIPE, stderr=sp.PIPE, env=env)
File “/usr/lib/python3.10/subprocess.py”, line 971, in init
self._execute_child(args, executable, preexec_fn, close_fds,
File “/usr/lib/python3.10/subprocess.py”, line 1863, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: ‘/usr/bin/crontab’

ERROR: There was a problem while creating frappe-bench
Do you want to rollback these changes? [y/N]:

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