I was trying to reinstall a site, all the modules got installed properly except the hrms. Below is the following error that I got,
ransike@ransikevm:~/frappe-bench$ bench --site ucsctest_site.com reinstall
This will wipe your database. Are you sure you want to reinstall? [y/N]: y
MySQL root password:
Installing frappe...
Updating DocTypes for frappe : [========================================] 100%
Updating country info : [========================================] 100%
Set Administrator password:
Re-enter Administrator password:
Updating Dashboard for frappe
App frappe already installed
Installing payments...
Updating DocTypes for payments : [========================================] 100%
* Installing Payment Custom Fields in Web Form
Updating Dashboard for payments
Installing erpnext...
Updating DocTypes for erpnext : [========================================] 100%
Updating customizations for Address
Updating customizations for Contact
Updating Dashboard for erpnext
App erpnext already installed
Installing hrms...
Updating DocTypes for hrms : [========================================] 100%
Setting up Frappe HR...
Patching Existing Data...
Installation for Frappe HR app failed due to an error. Please try re-installing the app or report the issue on https://github.com/frappe/hrms/issues/new if not resolved.
Traceback (most recent call last):
File "/home/ransike/frappe-bench/env/lib/python3.10/site-packages/redis/connection.py", line 559, in connect
sock = self._connect()
File "/home/ransike/frappe-bench/env/lib/python3.10/site-packages/redis/connection.py", line 615, in _connect
raise err
File "/home/ransike/frappe-bench/env/lib/python3.10/site-packages/redis/connection.py", line 603, in _connect
sock.connect(socket_address)
ConnectionRefusedError: [Errno 111] Connection refused
During handling of the above exception, another exception occurred:
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 "/home/ransike/frappe-bench/apps/frappe/frappe/utils/bench_helper.py", line 109, in <module>
main()
File "/home/ransike/frappe-bench/apps/frappe/frappe/utils/bench_helper.py", line 18, in main
click.Group(commands=commands)(prog_name="bench")
File "/home/ransike/frappe-bench/env/lib/python3.10/site-packages/click/core.py", line 829, in __call__
return self.main(*args, **kwargs)
File "/home/ransike/frappe-bench/env/lib/python3.10/site-packages/click/core.py", line 782, in main
rv = self.invoke(ctx)
File "/home/ransike/frappe-bench/env/lib/python3.10/site-packages/click/core.py", line 1259, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/home/ransike/frappe-bench/env/lib/python3.10/site-packages/click/core.py", line 1259, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/home/ransike/frappe-bench/env/lib/python3.10/site-packages/click/core.py", line 1066, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/home/ransike/frappe-bench/env/lib/python3.10/site-packages/click/core.py", line 610, in invoke
return callback(*args, **kwargs)
File "/home/ransike/frappe-bench/env/lib/python3.10/site-packages/click/decorators.py", line 21, in new_func
return f(get_current_context(), *args, **kwargs)
File "/home/ransike/frappe-bench/apps/frappe/frappe/commands/__init__.py", line 29, in _func
ret = f(frappe._dict(ctx.obj), *args, **kwargs)
File "/home/ransike/frappe-bench/apps/frappe/frappe/commands/site.py", line 344, in reinstall
_reinstall(site, admin_password, db_root_username, db_root_password, yes, verbose=context.verbose)
File "/home/ransike/frappe-bench/apps/frappe/frappe/commands/site.py", line 368, in _reinstall
_new_site(
File "/home/ransike/frappe-bench/apps/frappe/frappe/installer.py", line 104, in _new_site
install_app(app, verbose=verbose, set_as_patched=not source_sql, force=False)
File "/home/ransike/frappe-bench/apps/frappe/frappe/installer.py", line 305, in install_app
frappe.get_attr(after_install)()
File "/home/ransike/frappe-bench/apps/hrms/hrms/install.py", line 21, in after_install
raise e
File "/home/ransike/frappe-bench/apps/hrms/hrms/install.py", line 9, in after_install
setup()
File "/home/ransike/frappe-bench/apps/hrms/hrms/setup.py", line 24, in after_install
run_post_install_patches()
File "/home/ransike/frappe-bench/apps/hrms/hrms/setup.py", line 686, in run_post_install_patches
frappe.get_attr(f"hrms.patches.post_install.{patch_name}.execute")()
File "/home/ransike/frappe-bench/apps/hrms/hrms/patches/post_install/rename_stop_to_send_birthday_reminders.py", line 10, in execute
rename_field("HR Settings", "stop_birthday_reminders", "send_birthday_reminders")
File "/home/ransike/frappe-bench/apps/frappe/frappe/model/utils/rename_field.py", line 54, in rename_field
update_user_settings(doctype, old_fieldname, new_fieldname)
File "/home/ransike/frappe-bench/apps/frappe/frappe/model/utils/rename_field.py", line 164, in update_user_settings
sync_user_settings()
File "/home/ransike/frappe-bench/apps/frappe/frappe/model/utils/user_settings.py", line 49, in sync_user_settings
for key, data in frappe.cache().hgetall("_user_settings").items():
File "/home/ransike/frappe-bench/apps/frappe/frappe/utils/redis_wrapper.py", line 184, in hgetall
value = super().hgetall(self.make_key(name))
File "/home/ransike/frappe-bench/env/lib/python3.10/site-packages/redis/client.py", line 3014, in hgetall
return self.execute_command('HGETALL', name)
File "/home/ransike/frappe-bench/env/lib/python3.10/site-packages/redis/client.py", line 898, in execute_command
conn = self.connection or pool.get_connection(command_name, **options)
File "/home/ransike/frappe-bench/env/lib/python3.10/site-packages/redis/connection.py", line 1192, in get_connection
connection.connect()
File "/home/ransike/frappe-bench/env/lib/python3.10/site-packages/redis/connection.py", line 563, in connect
raise ConnectionError(self._error_message(e))
redis.exceptions.ConnectionError: Error 111 connecting to localhost:13000. Connection refused.