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
  1. Cloudron Forum
  2. HedgeDoc
  3. hackmd - Read-Only file system when exporting to PDF

hackmd - Read-Only file system when exporting to PDF

Scheduled Pinned Locked Moved Solved HedgeDoc
18 Posts 5 Posters 3.5k Views 5 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • girishG Offline
    girishG Offline
    girish
    Staff
    wrote on last edited by girish
    #6

    @rmdes said in Read-Only file system when exporting to PDF:

    tmp

    I see this - https://github.com/codimd/server/blob/3461993ee05d09106e276e606b143d472908b166/lib/config/index.js#L212

    Can you set tmpPath to /tmp in your config ?

    rmdesR 1 Reply Last reply
    0
    • girishG girish

      @rmdes said in Read-Only file system when exporting to PDF:

      tmp

      I see this - https://github.com/codimd/server/blob/3461993ee05d09106e276e606b143d472908b166/lib/config/index.js#L212

      Can you set tmpPath to /tmp in your config ?

      rmdesR Offline
      rmdesR Offline
      rmdes
      wrote on last edited by rmdes
      #7

      @girish I tried but I may confused I can't find the config for the app ??
      if I do cp config.json.example config.json I get :
      cp: cannot create regular file 'config.json': Read-only file system
      if I go to parent direction, I see the linux tree, I'm confused

      fbartelsF 1 Reply Last reply
      0
      • rmdesR rmdes

        @girish I tried but I may confused I can't find the config for the app ??
        if I do cp config.json.example config.json I get :
        cp: cannot create regular file 'config.json': Read-only file system
        if I go to parent direction, I see the linux tree, I'm confused

        fbartelsF Offline
        fbartelsF Offline
        fbartels
        App Dev
        wrote on last edited by
        #8

        @rmdes you have to edit /app/data/config.json

        rmdesR 1 Reply Last reply
        0
        • fbartelsF fbartels

          @rmdes you have to edit /app/data/config.json

          rmdesR Offline
          rmdesR Offline
          rmdes
          wrote on last edited by
          #9

          @fbartels Thats the thing, I don't have any config.json there, I see a build and upload and build directory, if I try to edit the only config.json.example I see at the root hackmd directory it say I cant edit in a read-only filesystem..

          I'm wondering if this is because the first time I installed this app was a custom build app that I then upgraded to the official cloudron build release..

          fbartelsF 1 Reply Last reply
          0
          • rmdesR rmdes

            @fbartels Thats the thing, I don't have any config.json there, I see a build and upload and build directory, if I try to edit the only config.json.example I see at the root hackmd directory it say I cant edit in a read-only filesystem..

            I'm wondering if this is because the first time I installed this app was a custom build app that I then upgraded to the official cloudron build release..

            fbartelsF Offline
            fbartelsF Offline
            fbartels
            App Dev
            wrote on last edited by fbartels
            #10

            @rmdes that is strange. because the startup script creates this file if it does not exist.

            Can you post the output of cat /app/code/start.sh?

            Which version does Cloudron say you have installed? (mine is v1.10.0-1)

            rmdesR 2 Replies Last reply
            0
            • fbartelsF fbartels

              @rmdes that is strange. because the startup script creates this file if it does not exist.

              Can you post the output of cat /app/code/start.sh?

              Which version does Cloudron say you have installed? (mine is v1.10.0-1)

              rmdesR Offline
              rmdesR Offline
              rmdes
              wrote on last edited by
              #11

              @fbartels I'm on v5.6.3
              I don't have a code/start.sh in the first place, I don't have a code directory.

              fbartelsF 1 Reply Last reply
              0
              • fbartelsF fbartels

                @rmdes that is strange. because the startup script creates this file if it does not exist.

                Can you post the output of cat /app/code/start.sh?

                Which version does Cloudron say you have installed? (mine is v1.10.0-1)

                rmdesR Offline
                rmdesR Offline
                rmdes
                wrote on last edited by
                #12

                @fbartels installing now codiMD on another domain, will compare the two apps

                1 Reply Last reply
                0
                • rmdesR rmdes

                  @fbartels I'm on v5.6.3
                  I don't have a code/start.sh in the first place, I don't have a code directory.

                  fbartelsF Offline
                  fbartelsF Offline
                  fbartels
                  App Dev
                  wrote on last edited by
                  #13

                  @rmdes said in Read-Only file system when exporting to PDF:

                  I'm on v5.6.3

                  I was asking about the version of the app, not cloudron itself. In the Cloudron web ui u can click on the "info" button that becomes visible when hovering with the mouse over the Codimd icon.

                  1 Reply Last reply
                  0
                  • rmdesR Offline
                    rmdesR Offline
                    rmdes
                    wrote on last edited by
                    #14

                    Oh sorry, the one I just installed is Package v1.10.0-1
                    App v1.6.0

                    the one coming from the time this app was called HackMD is Package v0.0.2
                    does not give more details than this..
                    I think I will backup this old app, install CodiMD fresh and restore backup, not sure it will work

                    1 Reply Last reply
                    0
                    • nebulonN Offline
                      nebulonN Offline
                      nebulon
                      Staff
                      wrote on last edited by
                      #15

                      Looks like you have installed and used ever since a version which was not yet published to the app library as stable or even installed it manually via cli.

                      rmdesR 1 Reply Last reply
                      0
                      • nebulonN nebulon

                        Looks like you have installed and used ever since a version which was not yet published to the app library as stable or even installed it manually via cli.

                        rmdesR Offline
                        rmdesR Offline
                        rmdes
                        wrote on last edited by rmdes
                        #16

                        @nebulon Correct this was installed via cli at least 2 years ago, at some point there was an upgrade to the package and that was it, it stopped to evolve because the move to CodiMD
                        since then we have used it without issue, other than PDF exporting now working.

                        Now that I have installed CodiMD, I went to the defauld config.json file and enabled PDFexport to True, I'm not seeing PDF in the export choice but that's maybe another issue ?
                        Screenshot_20201022_064556.jpg

                        1 Reply Last reply
                        0
                        • rmdesR Offline
                          rmdesR Offline
                          rmdes
                          wrote on last edited by rmdes
                          #17

                          This is what I see in the dropdown menu when trying to export with PDF enabled to true in the config.json file, I restart the app after making the change to config.json
                          abeff29e-e69f-4dde-b9c3-b1319ebd2f7a-image.png

                          1 Reply Last reply
                          0
                          • rmdesR Offline
                            rmdesR Offline
                            rmdes
                            wrote on last edited by
                            #18

                            I think we can close this since it's irrelevant to the actual codiMD app in the store 🙂

                            1 Reply Last reply
                            0
                            Reply
                            • Reply as topic
                            Log in to reply
                            • Oldest to Newest
                            • Newest to Oldest
                            • Most Votes


                            • Login

                            • Don't have an account? Register

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