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

    Unable to install apps

    Support
    install cloudflare
    2
    9
    241
    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.
    • M
      metalcated last edited by girish

      I am followings this simple guide https://docs.cloudron.io/installation/ using Ubuntu 20.04 LTS and every single time I try to install an App, I get an error saying unable to write to /root/appdata/etc.

      Based on what I am seeing this isn't supposed to be the case? I have tried installing 2x now and don't understand where things are going wrong.

      Any direction would be great. I am just testing this out to see how it works and performs.

      Thanks

      girish 1 Reply Last reply Reply Quote 0
      • girish
        girish Staff @metalcated last edited by girish

        @metalcated Thanks for trying us out! Can you give us more information about the error? Maybe some screenshot ?

        When the app install fails, can you get the logs using the app's log viewer (it's a button in the top toolbar) ? See https://docs.cloudron.io/apps/#log-viewer . You can paste the logs into https://paste.cloudron.io and give us a link.

        M 1 Reply Last reply Reply Quote 0
        • M
          metalcated @girish last edited by metalcated

          @girish Hey sorry about that, I should have included that with my original post.

          Sep 28 15:41:29 box:apptask test.domain.com error installing app: BoxError: Error creating directory: EACCES: permission denied, mkdir '/root/appsdata/645af55f-853d-47a1-9e29-6504e1fc00b5'
          at /home/yellowtent/box/src/apptask.js:162:36
          at FSReqCallback.oncomplete (fs.js:171:23) {
          reason: 'FileSystem Error',
          details: {}
          

          Full log: https://paste.cloudron.io/inukequheh.js

          girish 1 Reply Last reply Reply Quote 0
          • girish
            girish Staff @metalcated last edited by

            @metalcated Thanks. For some reason, it thinks that /root is the home directory. Cloudron runs as the user yellowtent and it should be using /home/yellowtent as the "base".

            Can you check the output of systemctl show box | grep User= ? It should say yellowtent. Also, can you check the output of su - yellowtent and then env | grep HOME ?

            If you can tell me which VPS provider you use, I can test out the installation there myself as well.

            M 1 Reply Last reply Reply Quote 0
            • M
              metalcated @girish last edited by metalcated

              @girish said in Unable to install apps:

              systemctl show box | grep User=

              root@cloudron] ~$ systemctl show box | grep User=
              User=yellowtent
              DynamicUser=no
              
              $ env | grep HOME
              HOME=/home/yellowtent
              

              This is a self built VM on my home lab vCenter instance.
              Ubuntu 20.04.3 LTS

              girish 1 Reply Last reply Reply Quote 0
              • M
                metalcated last edited by metalcated

                Also, I just noticed that this wiped out my entire set of A records from Cloudflare! Took me all weekend to notice. Believe I am done using this with a bug like that. Thanks.

                girish 2 Replies Last reply Reply Quote 0
                • girish
                  girish Staff @metalcated last edited by

                  @metalcated Mmm, everything looks OK. If you can give us SSH access, please send a mail to support@cloudron.io and we can look into it.

                  1 Reply Last reply Reply Quote 0
                  • girish
                    girish Staff @metalcated last edited by

                    @metalcated mm, our cloudflare backend is used quite extensively, so I would be surprised to hit such a bug. If Cloudflare has audit logs, can you check where the delete requests came from?

                    1 Reply Last reply Reply Quote 0
                    • girish
                      girish Staff @metalcated last edited by

                      @metalcated https://support.cloudflare.com/hc/en-us/articles/115002833612-Understanding-Cloudflare-Audit-Logs . In our cloudflare account, I can see there are records for every DNS change as "Rec del" and "Rec add".

                      1 Reply Last reply Reply Quote 0
                      • First post
                        Last post
                      Powered by NodeBB