-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Description
Information about bug
sknittechno@sknittechno:~/Documents/Frappe/frappe-bench$ bench --site hrms.localhost install-app hrms
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.
An error occurred while installing hrms: Error 111 connecting to 127.0.0.1:13000. Connection refused.
Traceback with variables (most recent call last):
File "apps/frappe/frappe/commands/site.py", line 484, in install_app
_install_app(app, verbose=context.verbose, force=force)
context = {'sites': ['hrms.localhost'], 'force': False, 'verbose': False, 'profile': False}
apps = ('hrms',)
force = False
_install_app = <function install_app at 0x7ab3e58fc700>
filelock = <function filelock at 0x7ab3e63ec310>
exit_code = 0
site = 'hrms.localhost'
app = 'hrms'
err = ConnectionError('Error 111 connecting to 127.0.0.1:13000. Connection refused.')
File "apps/frappe/frappe/installer.py", line 326, in install_app
frappe.get_attr(after_install)()
name = 'hrms'
verbose = False
set_as_patched = True
force = False
sync_jobs = <function sync_jobs at 0x7ab3e4508dc0>
sync_for = <function sync_for at 0x7ab3e4509a20>
sync_customizations = <function sync_customizations at 0x7ab3e6218310>
sync_fixtures = <function sync_fixtures at 0x7ab3e4509e10>
app_hooks = {'accounting_dimension_doctypes': ['Expense Claim', 'Expense Claim Detail', 'Expense Taxes and Charges', 'Payroll Entry', 'Leave Encashment'], 'add_to_apps_screen': [{'name': 'hrms', 'logo': '/assets/hrms/images/frappe-hr-logo.svg', 'title': 'Frappe HR', 'route': '/app/hr', 'has_permission': 'hrms.hr.utils.check_app_permission'}], 'advance_payment_doctypes': ['Leave Encashment', 'Gratuity', 'Employee Advance'], 'after_app_install': ['hrms.setup.after_app_install'], 'after_install': ['hrms.install.after_install'], 'after_migrate': ['hrms.setup.update_select_perm_after_install'], 'app_description': ['Modern HR and Payroll Software'], 'app_email': ['contact@frappe.io'], 'app_include_css': ['hrms.bundle.css'], 'app_include_js': ['hrms.bundle.js'], 'app_license': ['GNU General Public License (v3)'], 'app_name': ['hrms'], 'app_publisher': ['Frappe Technologies Pvt. Ltd.'], 'app_title': ['Frappe HR'], 'bank_reconciliation_doctypes': ['Expense Claim'], 'before_app_uninstall': ['hrms.setup.befo...
installed_apps = ['frappe', 'erpnext']
app = 'frappe/erpnext'
required_app = 'erpnext'
after_install = 'hrms.install.after_install'
File "apps/hrms/hrms/install.py", line 21, in after_install
raise e
BUG_REPORT_URL = 'https://github.com/frappe/hrms/issues/new'
File "apps/hrms/hrms/install.py", line 9, in after_install
setup()
BUG_REPORT_URL = 'https://github.com/frappe/hrms/issues/new'
File "apps/hrms/hrms/setup.py", line 23, in after_install
run_post_install_patches()
File "apps/hrms/hrms/setup.py", line 568, in run_post_install_patches
frappe.get_attr(f"hrms.patches.post_install.{patch_name}.execute")()
POST_INSTALL_PATCHES = ('erpnext.patches.v13_0.move_tax_slabs_from_payroll_period_to_income_tax_slab', 'erpnext.patches.v13_0.move_doctype_reports_and_notification_from_hr_to_payroll', 'erpnext.patches.v13_0.move_payroll_setting_separately_from_hr_settings', 'erpnext.patches.v13_0.update_start_end_date_for_old_shift_assignment', 'erpnext.patches.v13_0.updates_for_multi_currency_payroll', 'erpnext.patches.v13_0.update_reason_for_resignation_in_employee', 'erpnext.patches.v13_0.set_company_in_leave_ledger_entry', 'erpnext.patches.v13_0.rename_stop_to_send_birthday_reminders', 'erpnext.patches.v13_0.set_training_event_attendance', 'erpnext.patches.v14_0.set_payroll_cost_centers', 'erpnext.patches.v13_0.update_employee_advance_status', 'erpnext.patches.v13_0.update_expense_claim_status_for_paid_advances', 'erpnext.patches.v14_0.delete_employee_transfer_property_doctype', 'erpnext.patches.v13_0.set_payroll_entry_status', 'create_country_fixtures', 'update_allocate_on_in_leave_type', 'update_performance_module_cha...
patch = 'erpnext.patches.v13_0.rename_stop_to_send_birthday_reminders'
patch_name = 'rename_stop_to_send_birthday_reminders'
File "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 "apps/frappe/frappe/model/utils/rename_field.py", line 56, in rename_field
update_user_settings(doctype, old_fieldname, new_fieldname)
doctype = 'HR Settings'
old_fieldname = 'stop_birthday_reminders'
new_fieldname = 'send_birthday_reminders'
validate = True
meta = <Meta: HR Settings>
new_field = <CheckDocField: send_birthday_reminders parent=HR Settings>
File "apps/frappe/frappe/model/utils/rename_field.py", line 166, in update_user_settings
sync_user_settings()
doctype = 'HR Settings'
old_fieldname = 'stop_birthday_reminders'
new_fieldname = 'send_birthday_reminders'
File "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 "apps/frappe/frappe/utils/redis_wrapper.py", line 215, in hgetall
value = super().hgetall(self.make_key(name))
self = RedisWrapper<ConnectionPool<Connection<host=127.0.0.1,port=13000,db=0>>>
name = '_user_settings'
class = <class 'frappe.utils.redis_wrapper.RedisWrapper'>
File "env/lib/python3.10/site-packages/redis/commands/core.py", line 4887, in hgetall
return self.execute_command("HGETALL", name)
self = RedisWrapper<ConnectionPool<Connection<host=127.0.0.1,port=13000,db=0>>>
name = b'_5027d3f4dbf10571|_user_settings'
File "env/lib/python3.10/site-packages/redis/client.py", line 1266, in execute_command
conn = self.connection or pool.get_connection(command_name, **options)
pool = ConnectionPool<Connection<host=127.0.0.1,port=13000,db=0>>
args = ('HGETALL', b'_5027d3f4dbf10571|_user_settings')
command_name = 'HGETALL'
options = {}
self = RedisWrapper<ConnectionPool<Connection<host=127.0.0.1,port=13000,db=0>>>
File "env/lib/python3.10/site-packages/redis/connection.py", line 1457, in get_connection
connection.connect()
self = ConnectionPool<Connection<host=127.0.0.1,port=13000,db=0>>
command_name = 'HGETALL'
keys = ********
options = {}
connection = Connection<host=127.0.0.1,port=13000,db=0>
File "env/lib/python3.10/site-packages/redis/connection.py", line 705, in connect
raise ConnectionError(self._error_message(e))
self = Connection<host=127.0.0.1,port=13000,db=0>
redis.exceptions.ConnectionError: Error 111 connecting to 127.0.0.1:13000. Connection refused.
Module
HR
Version
Frappe Version: 15.83.0
Erpnext Version: 15.80.1
HRMS Version: 15.50.1
Installation method
manual install
Relevant log output / Stack trace / Full Error Message.
Code of Conduct
- I agree to follow this project's Code of Conduct