Skip to content

HRMS App Keeps Breaking After One day of Installation in ERPNext v16 Docker Setup – “Module HR not found” / Shift Assignment ImportError #4195

@Rishikeshsynosys

Description

@Rishikeshsynosys

Information about bug

Hi everyone,

I’m running ERPNext v16 using the official frappe_docker setup (custom pwd.yml compose file). Initially, only ERPNext was installed. Later, I manually installed the HRMS v16 app using:

bench get-app hrms --branch version-16 bench --site frontend install-app hrms bench --site frontend migrate

After installation, everything works correctly:
Company creation
User creation
Employee creation
Departments
Designations
Shift Type
Shift Assignment
Attendance

However, the next day (usually after a container restart or system restart), I start getting errors like

DoesNotExistError: Module HR not found

When I check:
bench --site frontend list-apps

It still shows:
frappe erpnext hrms

But Shift Assignment and other HRMS-related doctypes fail to load.

Somehow I fix it by running migrate/reinstall steps, but the issue keeps repeating the next day.

My Questions:

  1. Is manually installing HRMS inside an existing frappe_docker ERPNext setup the correct approach?

  2. Should HRMS be added at image build time instead of installing via bench inside a running container?

  3. Is this likely a Docker volume persistence issue (apps/sites not mounted correctly)?

  4. Would using the official HRMS Docker setup from the HRMS repo be a more stable approach?

I’m using HRMS mainly for:

  • Employee management
  • Shift Assignment
  • Attendance integration via API

Any guidance on the correct and stable way to set this up in Docker (for v16) would be greatly appreciated.

Thanks in advance.

Module

HR

Version

16

Installation method

None

Relevant log output / Stack trace / Full Error Message.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions