@codingCoffee I removed the bench_manager app and the site tied to it as requested. However when i tried to reinstall the app using the command in README, i got the following error:
ubuntu@ip-172-31-37-46:/home/frappe/frappe-bench$ bench new-site bench-manager.local
Traceback (most recent call last):
File “/home/frappe/frappe-bench/apps/frappe/frappe/utils/bench_helper.py”, line 64, in get_app_commands
app_command_module = importlib.import_module(app + ‘.commands’)
File “/usr/lib/python2.7/importlib/init.py”, line 37, in import_module
import(name)
ImportError: No module named bench_manager.commands
Traceback (most recent call last):
File “/usr/lib/python2.7/runpy.py”, line 174, in _run_module_as_main
“main”, fname, loader, pkg_name)
File “/usr/lib/python2.7/runpy.py”, line 72, in _run_code
exec code in run_globals
File “/home/frappe/frappe-bench/apps/frappe/frappe/utils/bench_helper.py”, line 94, in
main()
File “/home/frappe/frappe-bench/apps/frappe/frappe/utils/bench_helper.py”, line 18, in main
click.Group(commands=commands)(prog_name=‘bench’)
File “/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 722, in call
return self.main(*args, **kwargs)
File “/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 697, in main
rv = self.invoke(ctx)
File “/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 1066, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 1066, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 895, in invoke
return ctx.invoke(self.callback, **ctx.params)
File “/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 535, in invoke
return callback(*args, **kwargs)
File “/home/frappe/frappe-bench/apps/frappe/frappe/commands/site.py”, line 26, in new_site
frappe.init(site=site, new_site=True)
File “/home/frappe/frappe-bench/apps/frappe/frappe/init.py”, line 158, in init
setup_module_map()
File “/home/frappe/frappe-bench/apps/frappe/frappe/init.py”, line 856, in setup_module_map
for module in get_module_list(app):
File “/home/frappe/frappe-bench/apps/frappe/frappe/init.py”, line 730, in get_module_list
return get_file_items(os.path.join(os.path.dirname(get_module(app_name).file), “modules.txt”))
File “/home/frappe/frappe-bench/apps/frappe/frappe/init.py”, line 688, in get_module
return importlib.import_module(modulename)
File “/usr/lib/python2.7/importlib/init.py”, line 37, in import_module
import(name)
ImportError: No module named bench_manager
This action caused a fatal error as my instance was no longer reachable from the website, i switched to a second demo instance on google cloud (i have quite a few of them) that didn’t have any errors and ran the commands. They worked until the point where i was supposed to run $ bench update. I got the following error:
admin@erpnext:/home/frappe/frappe-bench$ sudo bench update
INFO:bench.utils:updating bench
INFO:bench.utils:git pull
Already up-to-date.
remote: Counting objects: 1159, done.
remote: Compressing objects: 100% (30/30), done.
remote: Total 1159 (delta 918), reused 936 (delta 913), pack-reused 216
Receiving objects: 100% (1159/1159), 1.20 MiB | 0 bytes/s, done.
Resolving deltas: 100% (964/964), completed with 256 local objects.
From GitHub - frappe/frappe: Low code web framework for real world applications, in Python and Javascript
6b9a95a…3cfbae5 master → upstream/master
09404a7…24e5d72 develop → upstream/develop
e7f49f5…3cfbae5 hotfix → upstream/hotfix
- [new branch] revert-4072-hotfix → upstream/revert-4072-hotfix
ad704aa…df8de9f staging → upstream/staging
- [new tag] v8.10.6 → v8.10.6
- [new tag] v8.10.0 → v8.10.0
- [new tag] v8.10.1 → v8.10.1
- [new tag] v8.10.2 → v8.10.2
- [new tag] v8.10.3 → v8.10.3
- [new tag] v8.10.4 → v8.10.4
- [new tag] v8.10.5 → v8.10.5
- [new tag] v8.9.4 → v8.9.4
INFO:bench.utils:./env/bin/pip install Pillow
Requirement already satisfied: Pillow in ./env/lib/python2.7/site-packages
Requirement already satisfied: olefile in ./env/lib/python2.7/site-packages (from Pillow)
Cannot proceed with update: You have local changes in app “frappe” that are not committed.
Here are your choices:
- Merge the frappe app manually with “git pull” / “git pull --rebase” and fix conflicts.
- Temporarily remove your changes with “git stash” or discard them completely
with “bench update --reset” or for individual repositries “git reset --hard”
- If your changes are helpful for others, send in a pull request via GitHub and
wait for them to be merged in the core.
admin@erpnext:/home/frappe/frappe-bench$
By the way, note that i again had to use the sudo command as running bench without sudo returns a permission denied error on all my instances in all cases and i understand that this is a standard restriction on ubuntu.