Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error installing hr module #2767

Open
Campbelllouis opened this issue Feb 6, 2025 · 0 comments
Open

error installing hr module #2767

Campbelllouis opened this issue Feb 6, 2025 · 0 comments

Comments

@Campbelllouis
Copy link

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': ['seltonerp.com'], 'force': False, 'verbose': False, 'profile': False}
apps = ('hrms',)
force = False
_install_app = <function install_app at 0x7f85968c5a20>
filelock = <function filelock at 0x7f85968af7f0>
exit_code = 0
site = 'seltonerp.com'
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 0x7f8595e34160>
sync_for = <function sync_for at 0x7f8595e34b80>
sync_customizations = <function sync_customizations at 0x7f85975a1120>
sync_fixtures = <function sync_fixtures at 0x7f8595e34dc0>
app_hooks = {'accounting_dimension_doctypes': ['Expense Claim', 'Expense Claim Detail', 'Expense Taxes and Charges', 'Payroll Entry'], 'add_to_apps_screen': [{'name': 'hrms', 'logo': '/assets/hrms/images/frappe-hr-logo.svg', 'title': 'Frappe HR', 'route': '/app/overview', 'has_permission': 'hrms.hr.utils.check_app_permission'}], 'advance_payment_payable_doctypes': ['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': ['[email protected]'], 'app_home': ['/app/overview'], 'app_include_css': ['hrms.bundle.css'], 'app_include_js': ['hrms.bundle.js'], 'app_license': ['GNU General Public License (v3)'], 'app_logo_url': ['/assets/hrms/images/frappe-hr-logo.svg'], 'app_name': ['hrms'], 'app_publisher': ['Frappe Technologies Pvt. Ltd.'], 'app_title': ['Frappe HR'], 'bank_reconciliation_doctyp...
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 213, 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'_51ee8e81e35aa80e|_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'_51ee8e81e35aa80e|_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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant