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. DocuSeal
  3. latest version 0.3.0 broken

latest version 0.3.0 broken

Scheduled Pinned Locked Moved Solved DocuSeal
8 Posts 3 Posters 1.1k Views 3 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.
    • imc67I Offline
      imc67I Offline
      imc67
      translator
      wrote on last edited by
      #1

      after the double latest update of today the app is broken:

      Oct 02 12:56:20=> Healtheck error got response status 500
      Oct 02 12:56:30I, [2023-10-02T10:56:30.040135 #1] INFO -- : [2b2b3477-a047-44c1-93ea-7340ba253989] {"method":"GET","path":"/","format":"html","controller":"DashboardController","action":"index","status":500,"allocations":1210,"duration":5.04,"view":0.0,"db":0.99,"fwd":"172.18.0.1"}
      Oct 02 12:56:30F, [2023-10-02T10:56:30.041109 #1] FATAL -- : [2b2b3477-a047-44c1-93ea-7340ba253989]
      Oct 02 12:56:30[2b2b3477-a047-44c1-93ea-7340ba253989] ActionView::Template::Error (ActiveRecord::Encryption::Errors::Decryption):
      Oct 02 12:56:30[2b2b3477-a047-44c1-93ea-7340ba253989] 5: <meta property="og:title" content="DocuSeal | Open Source Document Filling and Signing">
      Oct 02 12:56:30[2b2b3477-a047-44c1-93ea-7340ba253989] 6: <meta property="og:description" content="Open source, self-hosted tool to streamline document filling and signing. Create custom PDF forms to complete and sign with an easy to use online tool.">
      Oct 02 12:56:30[2b2b3477-a047-44c1-93ea-7340ba253989] 7: <meta property="og:type" content="website">
      Oct 02 12:56:30[2b2b3477-a047-44c1-93ea-7340ba253989] 8: <meta property="og:url" content="<%= root_url %>">
      Oct 02 12:56:30[2b2b3477-a047-44c1-93ea-7340ba253989] 9: <meta property="og:site_name" content="DocuSeal">
      Oct 02 12:56:30[2b2b3477-a047-44c1-93ea-7340ba253989] 10: <meta property="og:image" content="<%= image_pack_url('images/preview.png') %>">
      Oct 02 12:56:30[2b2b3477-a047-44c1-93ea-7340ba253989] 11: <meta property="og:image:width" content="800">
      Oct 02 12:56:30[2b2b3477-a047-44c1-93ea-7340ba253989]
      Oct 02 12:56:30[2b2b3477-a047-44c1-93ea-7340ba253989] lib/docuseal.rb:54:in `default_url_options'
      Oct 02 12:56:30[2b2b3477-a047-44c1-93ea-7340ba253989] app/controllers/application_controller.rb:30:in `default_url_options'
      Oct 02 12:56:30[2b2b3477-a047-44c1-93ea-7340ba253989] app/views/shared/_meta.html.erb:8
      Oct 02 12:56:30[2b2b3477-a047-44c1-93ea-7340ba253989] app/views/layouts/application.html.erb:7
      Oct 02 12:56:30[2b2b3477-a047-44c1-93ea-7340ba253989] app/controllers/dashboard_controller.rb:68:in `maybe_render_landing'
      Oct 02 12:56:30[2b2b3477-a047-44c1-93ea-7340ba253989] lib/api_path_consider_json_middleware.rb:15:in `call'
      
      1 Reply Last reply
      0
      • D Offline
        D Offline
        docuseal
        wrote on last edited by docuseal
        #2

        @girish https://git.cloudron.io/cloudron/docuseal-app/-/commit/40dbb6272dae9bdad11b8bd13f3032aadc25b86f#9dcf658ee8180c343527e6fa4612975d22036004_7_10

        I think this line breaks DocuSeal for existing users. At DocuSeal secret key base is automatically generated by the app itself on the first run. With this new update a new key has been generated for users and so the old data that seats in the DB can't be decrypted with that new key.

        Btw DocuSeal accept WORKDIR= env variable to specify where the app data should be stored (possibly /app/data ?) But setting this variable without moving all the data to a new folder will also break the app for existing users.

        girishG 1 Reply Last reply
        2
        • D docuseal

          @girish https://git.cloudron.io/cloudron/docuseal-app/-/commit/40dbb6272dae9bdad11b8bd13f3032aadc25b86f#9dcf658ee8180c343527e6fa4612975d22036004_7_10

          I think this line breaks DocuSeal for existing users. At DocuSeal secret key base is automatically generated by the app itself on the first run. With this new update a new key has been generated for users and so the old data that seats in the DB can't be decrypted with that new key.

          Btw DocuSeal accept WORKDIR= env variable to specify where the app data should be stored (possibly /app/data ?) But setting this variable without moving all the data to a new folder will also break the app for existing users.

          girishG Offline
          girishG Offline
          girish
          Staff
          wrote on last edited by
          #3

          @docuseal Is the automatically generated secret key saved somewhere?

          I was trying to get the app to a stable state and saw that we don't generate secret key, which is possibly a security issue. We do this for other rails apps.

          The app package is still 'unstable', so it's OK if things break for the sake of security.

          1 Reply Last reply
          1
          • D Offline
            D Offline
            docuseal
            wrote on last edited by
            #4

            @girish autogenerated secret is stored in the docuseal.env file in the code folder by default.
            Also the root code folder contains attachments folder with all files ever uploaded to the app.
            Maybe a better solution would be to use WORKDIR=/app/data to store .env file and attached files there ?
            It feels like generating a secret key base in the start.sh is not necessary since the app does that already.

            girishG 1 Reply Last reply
            1
            • D docuseal

              @girish autogenerated secret is stored in the docuseal.env file in the code folder by default.
              Also the root code folder contains attachments folder with all files ever uploaded to the app.
              Maybe a better solution would be to use WORKDIR=/app/data to store .env file and attached files there ?
              It feels like generating a secret key base in the start.sh is not necessary since the app does that already.

              girishG Offline
              girishG Offline
              girish
              Staff
              wrote on last edited by
              #5

              @docuseal thanks, I will adjust the package accordingly

              1 Reply Last reply
              0
              • imc67I Offline
                imc67I Offline
                imc67
                translator
                wrote on last edited by
                #6

                Any update?

                1 Reply Last reply
                0
                • girishG Offline
                  girishG Offline
                  girish
                  Staff
                  wrote on last edited by
                  #7

                  I have removed the generation of the secret key.

                  1 Reply Last reply
                  0
                  • imc67I Offline
                    imc67I Offline
                    imc67
                    translator
                    wrote on last edited by
                    #8

                    Thanks! It works again!

                    1 Reply Last reply
                    0
                    • imc67I imc67 marked this topic as a question on
                    • imc67I imc67 has marked this topic as solved on
                    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