Skip to content

Memory Unit issue in .env file #325

@Mr-ZohaibHassan

Description

@Mr-ZohaibHassan

Problem Description:
After Cloning the SORMAS-Docker repository into your local machine, when you try “docker-compose up”. You receive some errors like mentioned below:

error while interpolating services.base-apache2.mem_limit: failed to cast to expected type: strconv.ParseInt: parsing "1000M": invalid syntax

Current Setup:
OS: Windows 10
Docker Client: Docker Desktop 4.3.2 (72729)
Windows Subsystem for Linux Version: WSL2

Quick Fix:
Change All the memory Units in the .env file without “M”. Replace “M” with “000”.
For Example:
APPSERVER_MEM=4300M should be replaced like APPSERVER_MEM=4300000

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions