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:
- 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
- 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
- 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.