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


    Cloudron Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular

    Solved Umami - Failed container start with environment variables

    Umami
    5
    6
    191
    Loading More Posts
    • 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.
    • E
      echokos last edited by

      Adding any environment variables to the env file and then restarting the container causes the app to never start.

      For example - on a new install, add FORCE_SSL = 1 to the env file and restart the container. The error log contains:

      May 24 20:30:40 /app/data/env: line 5: FORCE_SSL: command not found
      May 24 20:31:41 ==> Changing ownership
      May 24 20:31:41 => Building database
      May 24 20:31:41 /app/data/env: line 5: FORCE_SSL: command not found
      May 24 20:32:41 ==> Changing ownership
      May 24 20:32:41 => Building database
      May 24 20:32:41 /app/data/env: line 5: FORCE_SSL: command not found
      

      And it will continually stay in this state creating the errors forever until the container is stopped.

      robi 1 Reply Last reply Reply Quote 0
      • robi
        robi @echokos last edited by

        @echokos Sounds like a packaging bug. @staff will find it.

        Life of Advanced Technology

        1 Reply Last reply Reply Quote 1
        • Topic has been marked as a question  nebulon nebulon 
        • N
          Neiluj last edited by Neiluj

          @echokos said in Umami - Failed container start with environment variables:

          May 24 20:32:41 /app/data/env: line

          I had something similar with IGNORE_IP when I lazily copied the variable from the umami doc (https://umami.is/docs/environment-variables)

          try this FORCE_SSL=1 (without spaces)

          and restart your app - This seems to work.

          E 3246 2 Replies Last reply Reply Quote 3
          • E
            echokos @Neiluj last edited by

            @Neiluj That sure is the issue. @staff - maybe just adding a note in the Cloudron docs would be enough for this issue.

            1 Reply Last reply Reply Quote 1
            • nebulon
              nebulon Staff last edited by

              For background, that file is source /app/data/env in the start.sh so it has to be a valid shell script. Such a behavior is happening in many apps, not sure how to document this or if we can add some extra trimming/filtering for such cases?

              1 Reply Last reply Reply Quote 0
              • 3246
                3246 @Neiluj last edited by

                @Neiluj thank you! That fixed it for me 🙂

                Visit https://www.bebravernow.com for more

                1 Reply Last reply Reply Quote 0
                • Topic has been marked as solved  nebulon nebulon 
                • First post
                  Last post
                Powered by NodeBB