Hello,
Such a nice community and helpful discussion board. I’ve gone through most of the similar upgrade errors similar to what i’ve been facing but unfortunately with no success!
From what i’ve read, i tried the upgrade and the retry-upgrade, while they both are outputting the same error.
As the message Updating! we will be back in moments is appearing wile trying to login.
Can you please take a look at the error code i’m getting while upgrading
billy@ubuntu:~$ bench retry-upgrade
INFO:bench.app:pulling frappe
From GitHub - frappe/frappe: Low code web framework for real world applications, in Python and Javascript
- branch v4.x.x → FETCH_HEAD
Already up-to-date.
INFO:bench.app:pulling erpnext
From GitHub - frappe/erpnext: Free and Open Source Enterprise Resource Planning (ERP) - branch v4.x.x → FETCH_HEAD
Already up-to-date.
Error: no such option: --site
Traceback (most recent call last):
File “/usr/local/bin/bench”, line 9, in
load_entry_point(‘bench==0.1’, ‘console_scripts’, ‘bench’)()
File “/home/billy/bench-repo/bench/cli.py”, line 60, in cli
bench()
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 610, in call
return self.main(*args, **kwargs)
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 590, in main
rv = self.invoke(ctx)
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 936, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 782, in invoke
return ctx.invoke(self.callback, **ctx.params)
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 416, in invoke
return callback(*args, **kwargs)
File “/home/billy/bench-repo/bench/cli.py”, line 286, in retry_upgrade
patch_sites()
File “/home/billy/bench-repo/bench/utils.py”, line 163, in patch_sites
run_frappe_cmd(‘–site’, ‘all’, ‘migrate’, bench=bench)
File “/home/billy/bench-repo/bench/utils.py”, line 498, in run_frappe_cmd
raise CommandFailedError(args)
bench.utils.CommandFailedError: (‘–site’, ‘all’, ‘migrate’)
billy@ubuntu:~$ bench update --upgrade
INFO:bench.utils:setting up sudoers
Already up-to-date.
Requirement already satisfied (use --upgrade to upgrade): Pillow in ./env/lib/python2.7/site-packages
INFO:bench.app:pulling frappe
From GitHub - frappe/frappe: Low code web framework for real world applications, in Python and Javascript
- branch v4.x.x → FETCH_HEAD
Already up-to-date.
INFO:bench.app:pulling erpnext
From GitHub - frappe/erpnext: Free and Open Source Enterprise Resource Planning (ERP) - branch v4.x.x → FETCH_HEAD
Already up-to-date.
/home/billy/frappe-bench/env/local/lib/python2.7/site-packages/pip/vendor/requests/packages/urllib3/util/ssl.py:315: SNIMissingWarning: An HTTPS request has been made, but the SNI (Subject Name Indication) extension to TLS is not available on this platform. This may cause the server to present an incorrect TLS certificate, which can cause validation failures. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#snimissingwarning.
SNIMissingWarning
/home/billy/frappe-bench/env/local/lib/python2.7/site-packages/pip/vendor/requests/packages/urllib3/util/ssl.py:120: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
InsecurePlatformWarning
Requirement already up-to-date: pip in ./env/lib/python2.7/site-packages
Traceback (most recent call last):
File “/home/billy/frappe-bench/env/bin/frappe”, line 5, in
from pkg_resources import load_entry_point
File “/home/billy/frappe-bench/env/local/lib/python2.7/site-packages/pkg_resources/init.py”, line 3141, in
@_call_aside
File “/home/billy/frappe-bench/env/local/lib/python2.7/site-packages/pkg_resources/init.py”, line 3127, in _call_aside
f(*args, **kwargs)
File “/home/billy/frappe-bench/env/local/lib/python2.7/site-packages/pkg_resources/init.py”, line 3154, in _initialize_master_working_set
working_set = WorkingSet._build_master()
File “/home/billy/frappe-bench/env/local/lib/python2.7/site-packages/pkg_resources/init.py”, line 642, in _build_master
return cls._build_from_requirements(requires)
File “/home/billy/frappe-bench/env/local/lib/python2.7/site-packages/pkg_resources/init.py”, line 655, in _build_from_requirements
dists = ws.resolve(reqs, Environment())
File “/home/billy/frappe-bench/env/local/lib/python2.7/site-packages/pkg_resources/init.py”, line 828, in resolve
raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The ‘frappe==4.9.3’ distribution was not found and is required by the application
Traceback (most recent call last):
File “/usr/local/bin/bench”, line 9, in
load_entry_point(‘bench==0.1’, ‘console_scripts’, ‘bench’)()
File “/home/billy/bench-repo/bench/cli.py”, line 60, in cli
bench()
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 610, in call
return self.main(*args, **kwargs)
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 590, in main
rv = self.invoke(ctx)
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 936, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 782, in invoke
return ctx.invoke(self.callback, **ctx.params)
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 416, in invoke
return callback(*args, **kwargs)
File “/home/billy/bench-repo/bench/cli.py”, line 241, in _update
update(pull, patch, build, bench, auto, restart_supervisor, requirements, no_backup, upgrade, force=force)
File “/home/billy/bench-repo/bench/cli.py”, line 269, in update
backup_all_sites(bench=bench_path)
File “/home/billy/bench-repo/bench/utils.py”, line 374, in backup_all_sites
backup_site(site, bench=bench)
File “/home/billy/bench-repo/bench/utils.py”, line 368, in backup_site
cwd=os.path.join(bench, ‘sites’))
File “/home/billy/bench-repo/bench/utils.py”, line 105, in exec_cmd
raise CommandFailedError(cmd)
bench.utils.CommandFailedError: /home/billy/frappe-bench/env/bin/frappe --backup site1.local
billy@ubuntu:~$ sudo bench update --upgrade
INFO:bench.utils:setting up sudoers
Already up-to-date.
Requirement already satisfied (use --upgrade to upgrade): Pillow in ./env/lib/python2.7/site-packages
INFO:bench.app:pulling frappe
From GitHub - frappe/frappe: Low code web framework for real world applications, in Python and Javascript - branch v4.x.x → FETCH_HEAD
Already up-to-date.
INFO:bench.app:pulling erpnext
From GitHub - frappe/erpnext: Free and Open Source Enterprise Resource Planning (ERP) - branch v4.x.x → FETCH_HEAD
Already up-to-date.
Requirement already up-to-date: pip in ./env/lib/python2.7/site-packages
Traceback (most recent call last):
File “/home/billy/frappe-bench/env/bin/frappe”, line 5, in
from pkg_resources import load_entry_point
File “/home/billy/frappe-bench/env/local/lib/python2.7/site-packages/pkg_resources/init.py”, line 3141, in
@_call_aside
File “/home/billy/frappe-bench/env/local/lib/python2.7/site-packages/pkg_resources/init.py”, line 3127, in _call_aside
f(*args, **kwargs)
File “/home/billy/frappe-bench/env/local/lib/python2.7/site-packages/pkg_resources/init.py”, line 3154, in _initialize_master_working_set
working_set = WorkingSet._build_master()
File “/home/billy/frappe-bench/env/local/lib/python2.7/site-packages/pkg_resources/init.py”, line 642, in _build_master
return cls._build_from_requirements(requires)
File “/home/billy/frappe-bench/env/local/lib/python2.7/site-packages/pkg_resources/init.py”, line 655, in _build_from_requirements
dists = ws.resolve(reqs, Environment())
File “/home/billy/frappe-bench/env/local/lib/python2.7/site-packages/pkg_resources/init.py”, line 828, in resolve
raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The ‘frappe==4.9.3’ distribution was not found and is required by the application
Traceback (most recent call last):
File “/usr/local/bin/bench”, line 9, in
load_entry_point(‘bench==0.1’, ‘console_scripts’, ‘bench’)()
File “/home/billy/bench-repo/bench/cli.py”, line 60, in cli
bench()
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 610, in call
return self.main(*args, **kwargs)
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 590, in main
rv = self.invoke(ctx)
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 936, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 782, in invoke
return ctx.invoke(self.callback, **ctx.params)
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 416, in invoke
return callback(*args, **kwargs)
File “/home/billy/bench-repo/bench/cli.py”, line 241, in _update
update(pull, patch, build, bench, auto, restart_supervisor, requirements, no_backup, upgrade, force=force)
File “/home/billy/bench-repo/bench/cli.py”, line 269, in update
backup_all_sites(bench=bench_path)
File “/home/billy/bench-repo/bench/utils.py”, line 374, in backup_all_sites
backup_site(site, bench=bench)
File “/home/billy/bench-repo/bench/utils.py”, line 368, in backup_site
cwd=os.path.join(bench, ‘sites’))
File “/home/billy/bench-repo/bench/utils.py”, line 105, in exec_cmd
raise CommandFailedError(cmd)
bench.utils.CommandFailedError: /home/billy/frappe-bench/env/bin/frappe --backup site1.local
billy@ubuntu:~$