Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps | Demo | Docs | Install
S

stephan

@stephan
About
Posts
4
Topics
1
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Update app : Read-only file system
    S stephan

    @joseph
    I found my problem. It was a typo (user error). When I was running the following command: cloudron update --image [image_name] --app [name_app], I accidentally added an unexpected parameter, resulting in cloudron update --image docker pull [image_name] --app [name_app]. Naturally, this didn’t work, but I must admit I can’t explain why the error message was something other than a fail to load...

    Sorry again for the inconvenience.

    App Packaging & Development

  • Update app : Read-only file system
    S stephan

    Hello,

    I’m encountering an issue when updating my custom app: I get a Read-only file system error, but I’m unsure why it only occurs during updates. The deployment to a new URL works fine, but when updating, I see the following error:

    Jul 28 17:00:02 mkdir: can't create directory '/certs/ca': Read-only file system
    

    My app is a Java application with the following Docker configuration:

    FROM cloudron/base:4.2.0@sha256:46da2fffb36353ef714f97ae8e962bd2c212ca091108d768ba473078319a47f4
    
    RUN mkdir -p /app/code
    WORKDIR /app/code
    
    RUN apt-get update && apt-get install -y openjdk-21-jdk-headless && rm -rf /var/cache/apt /var/lib/apt/lists
    
    # copy code
    ADD ./cicd/start.sh /app/code/
    
    COPY ./target/back-0.0.1-SNAPSHOT.jar /app/code/back.jar
    COPY ./src/main/resources/application-prod.properties /app/code/application-prod.properties
    
    CMD [ "/app/code/start.sh" ]
    

    The start.sh script is as follows:

    #!/bin/bash
    
    set -eu
    chown -R cloudron:cloudron /app/data
    
    echo "Starting app server"
    
    exec gosu cloudron:cloudron java -jar myApp.jar --spring.profiles.active=prod
    

    During the first deployment, everything works correctly, and the app starts fine. However, when I update the JAR file, I encounter this error:

    Jul 28 17:03:03 mkdir: can't create directory '/certs/ca': Read-only file system
    Jul 28 17:03:47 => Healtheck error: Error: Timeout of 7000ms exceeded
    Jul 28 17:03:56 => Healtheck error: Error: connect EHOSTUNREACH 172.18.18.128:8080
    

    Here is the manifest used for deploying my app:

    {
      "version": "0.0.2",
      "healthCheckPath": "/",
      "httpPort": 8080,
      "addons": {
        "localstorage": {},
        "postgresql": {},
        "redis": {}
      },
      "icon": "file://logo.png",
     "manifestVersion": 2
    }
    

    I have checked various forums and the web but couldn’t find any solutions specific to my issue. Could anyone help me with this?

    Thanks and have a nice day!

    App Packaging & Development

  • Update app : Read-only file system
    S stephan

    @joseph The start.sh file is entirety.
    The java app is a spring app with redis and postgres.
    In that case, why is it that on a first deployment I don't get the error and for the same version of the docker image I could get this error?

    I'll have another look, but even locally I don't create files, I expose an api and store data in the database.

    Thank for your answer.

    App Packaging & Development
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search