Insights Hub Resolving Mendix App Crash on Cloud Foundry Due to Insufficient Disk Space

2024-01-05T06:09:09.000-0500
Developer Tools Applications

Summary

If you have deployed a Mendix app on Cloud Foundry and are experiencing crashes during startup with error messages indicating "No space left on device," it is likely due to insufficient disk space. This article provides a solution to address this issue by increasing both RAM and disk space and restaging the application.


Details

Error Message:

[CELL/0] ERR tar: ./app/runtimes/9.2.0.20531/runtime/bundles/org.postgresql.postgresql.42.2.20.jar: Cannot open: No space left on device
[CELL/0] ERR tar: ./app/runtimes/9.2.0.20531/runtime/bundles/com.sap.cloud.db.jdbc.ngdbc.2.7.15.jar: Cannot open: No space left on device
[CELL/0] ERR tar: ./app/runtimes/9.2.0.20531/runtime/bundles/org.scala-lang.scala-reflect.jar: Cannot open: No space left on device
[CELL/0] ERR tar: ./app/runtimes/9.2.0.20531/runtime/bundles/com.mendix.storage-azure.jar: Cannot open: No space left on device
[CELL/0] ERR tar: ./app/runtimes/9.2.0.20531/runtime/bundles/com.mendix.http.jar: Cannot open: No space left on device
[CELL/0] ERR tar: ./app/runtimes/9.2.0.20531/runtime/bundles/com.mendix.documentexporter.jar: Cannot open: No space left on device

Solution:

To resolve the issue, follow these steps:
  1. Increase RAM and Disk Space:
Use the Cloud Foundry Command Line Interface (CLI) to scale the RAM and Disk space for your application.
Run the following command:
cf scale <your-app-name> -k <new-disk-size> -m <new-ram-size>
Replace <your-app-name> with the actual name of your Mendix application, <new-disk-size> with the desired disk size, and <new-ram-size> with the desired RAM size.

Example:
cf scale my-mendix-app -k 1G -m 1G
  1. Restage the Application:
After scaling the resources, restage your Mendix application to apply the changes.
Use the following command:  
  cf restage <your-app-name>
Replace <your-app-name> with the actual name of your Mendix application.

Example:
cf restage my-mendix-app
  1. Verify the Changes:
    After restaging, ensure that the application starts without errors and functions correctly.

By following these steps, you should be able to resolve the "No space left on device" issue causing your Mendix app to crash during startup on Cloud Foundry.

KB Article ID# KB000128978_EN_US

Contents

SummaryDetails

Associated Components

Cloud Foundry