Unable to install HRMS in a production setup

Frappe: v15.0.0
ERPNext: v15.38.0

Installing hrms...
Updating DocTypes for hrms          : [=========================               ] 63%An error occurred while installing hrms: '/hr/roster/' is not a valid URL
Traceback (most recent call last):
  File "apps/frappe/frappe/commands/site.py", line 462, in install_app
    _install_app(app, verbose=context.verbose, force=force)
  File "apps/frappe/frappe/installer.py", line 296, in install_app
    sync_for(name, force=force, reset_permissions=True)
  File "apps/frappe/frappe/model/sync.py", line 111, in sync_for
    import_file_by_path(
  File "apps/frappe/frappe/modules/import_file.py", line 148, in import_file_by_path
    import_doc(
  File "apps/frappe/frappe/modules/import_file.py", line 245, in import_doc
    doc.insert()
  File "apps/frappe/frappe/model/document.py", line 287, in insert
    self._validate()
  File "apps/frappe/frappe/model/document.py", line 568, in _validate
    d._validate_data_fields()
  File "apps/frappe/frappe/model/base_document.py", line 898, in _validate_data_fields
    frappe.utils.validate_url(data, throw=True)
  File "apps/frappe/frappe/utils/__init__.py", line 246, in validate_url
    frappe.throw(frappe._("'{0}' is not a valid URL").format(frappe.bold(txt)))
  File "apps/frappe/frappe/__init__.py", line 570, in throw
    msgprint(
  File "apps/frappe/frappe/__init__.py", line 542, in msgprint
    _raise_exception()
  File "apps/frappe/frappe/__init__.py", line 496, in _raise_exception
    raise exc
frappe.exceptions.ValidationError: '/hr/roster/' is not a valid URL

@Robot
Try with frappe as latest version?

Sure, I will try.

Thanks for the reply @Saravanan-1

1 Like