Il y a toutefois une erreur qui a lieu a chaque fois en executant ce script que je ne comprends pas :
bench new-site $site_name --db-name $db_name --db-password $db_pwd --no-setup-db --admin-password $admin_pwd
Pas de soucis
Installing frappe...
Updating DocTypes for frappe : [========================================] 100%
Updating Dashboard for frappe
dokos.local: SystemSettings.enable_scheduler is UNSET
*** Scheduler is disabled ***
Puis,
bench --site $site_name install-app payments
bench --site $site_name install-app dokos
Pas de soucis non plus
Installing payments...
Updating DocTypes for payments : [========================================] 100%
* Updating Payment Custom Fields in Web Form
Updating Dashboard for payments
App payments already installed
Installing erpnext...
Updating DocTypes for erpnext : [========================================] 100%
Updating customizations for Address
ââ Updating Custom DocPerms
Updating customizations for Contact
ââ Updating Custom DocPerms
Updating customizations for Contact
ââ Updating Custom Fields
Updating customizations for Address
ââ Updating Custom Fields
Updating customizations for Contact
ââ Updating Property Setters
Updating customizations for Event
ââ Updating Custom Fields
ââ Updating Property Setters
Updating Dashboard for erpnext
App payments already installed
App erpnext already installed
Mais malheureusement,
bench --site $site_name install-app hrms
me donne lâerreur suivante :
Installing hrms...
Updating DocTypes for hrms : [========================================] 100%
Setting up HRMS...
Patching Existing Data...
Installation for HRMS app failed due to an error. Please try re-installing the app or report the issue on https://gitlab.com/dokos/hrms/-/issues if not resolved.
An error occurred while installing hrms: Error 111 connecting to localhost:13000. Connection refused.
Traceback (most recent call last):
File "env/lib/python3.10/site-packages/redis/connection.py", line 264, in connect
sock = self.retry.call_with_retry(
File "env/lib/python3.10/site-packages/redis/retry.py", line 46, in call_with_retry
return do()
File "env/lib/python3.10/site-packages/redis/connection.py", line 265, in <lambda>
lambda: self._connect(), lambda error: self.disconnect(error)
File "env/lib/python3.10/site-packages/redis/connection.py", line 627, in _connect
raise err
File "env/lib/python3.10/site-packages/redis/connection.py", line 615, 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 "apps/frappe/frappe/commands/site.py", line 470, in install_app
_install_app(app, verbose=context.verbose, force=force)
File "apps/frappe/frappe/installer.py", line 326, in install_app
frappe.get_attr(after_install)()
File "apps/hrms/hrms/install.py", line 21, in after_install
raise e
File "apps/hrms/hrms/install.py", line 9, in after_install
setup()
File "apps/hrms/hrms/setup.py", line 22, in after_install
run_post_install_patches()
File "apps/hrms/hrms/setup.py", line 674, in run_post_install_patches
frappe.get_attr(f"hrms.patches.post_install.{patch_name}.execute")()
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 60, in rename_field
update_user_settings(doctype, old_fieldname, new_fieldname)
File "apps/frappe/frappe/model/utils/rename_field.py", line 171, in update_user_settings
sync_user_settings()
File "apps/frappe/frappe/model/utils/user_settings.py", line 48, 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))
File "env/lib/python3.10/site-packages/redis/commands/core.py", line 4954, in hgetall
return self.execute_command("HGETALL", name)
File "env/lib/python3.10/site-packages/redis/client.py", line 533, in execute_command
conn = self.connection or pool.get_connection(command_name, **options)
File "env/lib/python3.10/site-packages/redis/connection.py", line 1086, in get_connection
connection.connect()
File "env/lib/python3.10/site-packages/redis/connection.py", line 270, in connect
raise ConnectionError(self._error_message(e))
redis.exceptions.ConnectionError: Error 111 connecting to localhost:13000. Connection refused.