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. Support
  3. Unable to install apps

Unable to install apps

Scheduled Pinned Locked Moved Solved Support
installcloudflare
13 Posts 4 Posters 1.9k Views 4 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 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 Offline
    M Offline
    metalcated
    wrote on last edited by metalcated
    #3

    @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

    girishG 1 Reply Last reply
    0
    • M 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

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

      @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 O 2 Replies Last reply
      0
      • girishG girish

        @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 Offline
        M Offline
        metalcated
        wrote on last edited by metalcated
        #5

        @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

        girishG 1 Reply Last reply
        0
        • M Offline
          M Offline
          metalcated
          wrote on last edited by metalcated
          #6

          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.

          girishG 2 Replies Last reply
          0
          • M 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

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

            @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
            0
            • M 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.

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

              @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
              0
              • M 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.

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

                @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
                0
                • girishG girish

                  @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.

                  O Offline
                  O Offline
                  opensourced
                  wrote on last edited by
                  #10

                  @girish just hit the same error...

                  May 28 14:27:13 box:tasks update 186: {"percent":50,"message":"Creating app data directory"}
                  May 28 14:27:13 box:apptask run: app error for state pending_install: BoxError: Error creating directory: EACCES: permission denied, mkdir '/home/yellowtent/appsdata/8076edfc-1155-43e1-9bc1-f00aa3f207c5'
                  at createAppDir (/home/yellowtent/box/src/apptask.js:119:22)
                  at async install (/home/yellowtent/box/src/apptask.js:358:5) {
                  reason: 'FileSystem Error',
                  details: {}
                  May 28 14:27:13 box:taskworker Task took 12.297 seconds
                  May 28 14:27:13 box:tasks setCompleted - 186: {"result":null,"error":{"stack":"BoxError: Error creating directory: EACCES: permission denied, mkdir '/home/yellowtent/appsdata/8076edfc-1155-43e1-9bc1-f00aa3f207c5'\n at createAppDir (/home/yellowtent/box/src/apptask.js:119:22)\n at async install (/home/yellowtent/box/src/apptask.js:358:5)","name":"BoxError","reason":"FileSystem Error","details":{},"message":"Error creating directory: EACCES: permission denied, mkdir '/home/yellowtent/appsdata/8076edfc-1155-43e1-9bc1-f00aa3f207c5'"}}
                  May 28 14:27:13 box:tasks update 186: {"percent":100,"result":null,"error":{"stack":"BoxError: Error creating directory: EACCES: permission denied, mkdir '/home/yellowtent/appsdata/8076edfc-1155-43e1-9bc1-f00aa3f207c5'\n at createAppDir (/home/yellowtent/box/src/apptask.js:119:22)\n at async install (/home/yellowtent/box/src/apptask.js:358:5)","name":"BoxError","reason":"FileSystem Error","details":{},"message":"Error creating directory: EACCES: permission denied, mkdir '/home/yellowtent/appsdata/8076edfc-1155-43e1-9bc1-f00aa3f207c5'"}}
                  Error creating directory: EACCES: permission denied, mkdir '/home/yellowtent/appsdata/8076edfc-1155-43e1-9bc1-f00aa3f207c5'
                  at createAppDir (/home/yellowtent/box/src/apptask.js:119:22)
                  at async install (/home/yellowtent/box/src/apptask.js:358:5)
                  

                  my outputs are as followed:

                  root@host:/home/# systemctl show box | grep User=
                  User=yellowtent
                  DynamicUser=no
                  
                  root@host:/home/# su - yellowtent
                  This account is currently not available.
                  
                  

                  What could be the reasons for my yellowtent not to be availlable? 😶

                  Thanks in advance!

                  girishG 1 Reply Last reply
                  0
                  • O opensourced

                    @girish just hit the same error...

                    May 28 14:27:13 box:tasks update 186: {"percent":50,"message":"Creating app data directory"}
                    May 28 14:27:13 box:apptask run: app error for state pending_install: BoxError: Error creating directory: EACCES: permission denied, mkdir '/home/yellowtent/appsdata/8076edfc-1155-43e1-9bc1-f00aa3f207c5'
                    at createAppDir (/home/yellowtent/box/src/apptask.js:119:22)
                    at async install (/home/yellowtent/box/src/apptask.js:358:5) {
                    reason: 'FileSystem Error',
                    details: {}
                    May 28 14:27:13 box:taskworker Task took 12.297 seconds
                    May 28 14:27:13 box:tasks setCompleted - 186: {"result":null,"error":{"stack":"BoxError: Error creating directory: EACCES: permission denied, mkdir '/home/yellowtent/appsdata/8076edfc-1155-43e1-9bc1-f00aa3f207c5'\n at createAppDir (/home/yellowtent/box/src/apptask.js:119:22)\n at async install (/home/yellowtent/box/src/apptask.js:358:5)","name":"BoxError","reason":"FileSystem Error","details":{},"message":"Error creating directory: EACCES: permission denied, mkdir '/home/yellowtent/appsdata/8076edfc-1155-43e1-9bc1-f00aa3f207c5'"}}
                    May 28 14:27:13 box:tasks update 186: {"percent":100,"result":null,"error":{"stack":"BoxError: Error creating directory: EACCES: permission denied, mkdir '/home/yellowtent/appsdata/8076edfc-1155-43e1-9bc1-f00aa3f207c5'\n at createAppDir (/home/yellowtent/box/src/apptask.js:119:22)\n at async install (/home/yellowtent/box/src/apptask.js:358:5)","name":"BoxError","reason":"FileSystem Error","details":{},"message":"Error creating directory: EACCES: permission denied, mkdir '/home/yellowtent/appsdata/8076edfc-1155-43e1-9bc1-f00aa3f207c5'"}}
                    Error creating directory: EACCES: permission denied, mkdir '/home/yellowtent/appsdata/8076edfc-1155-43e1-9bc1-f00aa3f207c5'
                    at createAppDir (/home/yellowtent/box/src/apptask.js:119:22)
                    at async install (/home/yellowtent/box/src/apptask.js:358:5)
                    

                    my outputs are as followed:

                    root@host:/home/# systemctl show box | grep User=
                    User=yellowtent
                    DynamicUser=no
                    
                    root@host:/home/# su - yellowtent
                    This account is currently not available.
                    
                    

                    What could be the reasons for my yellowtent not to be availlable? 😶

                    Thanks in advance!

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

                    @opensourced said in Unable to install apps:

                    What could be the reasons for my yellowtent not to be availlable?

                    This is expected. yellowtent is created as a system user (it's only used to run the box code as a non-root user for security reasons).

                    Can you please try:

                    sudo -u yellowtent mkdir /home/yellowtent/appsdata/8076edfc-1155-43e1-9bc1-f00aa3f207c5
                    

                    For some reason, the above thing fails on your system. Is there something special about /home/yellowtent mount we need to know about? Can you check if /home/yellowtent/appsdata and /home/yellowtent/ are owned by the yellowtent user?

                    O 1 Reply Last reply
                    0
                    • girishG girish

                      @opensourced said in Unable to install apps:

                      What could be the reasons for my yellowtent not to be availlable?

                      This is expected. yellowtent is created as a system user (it's only used to run the box code as a non-root user for security reasons).

                      Can you please try:

                      sudo -u yellowtent mkdir /home/yellowtent/appsdata/8076edfc-1155-43e1-9bc1-f00aa3f207c5
                      

                      For some reason, the above thing fails on your system. Is there something special about /home/yellowtent mount we need to know about? Can you check if /home/yellowtent/appsdata and /home/yellowtent/ are owned by the yellowtent user?

                      O Offline
                      O Offline
                      opensourced
                      wrote on last edited by
                      #12

                      @girish I moved the appsdata folder to another mounted drive -> after creating the symlink (as root) i didn't propperly set the permissions. I fixed it, so all good now. Thanks!

                      necrevistonnezrN 1 Reply Last reply
                      1
                      • O opensourced

                        @girish I moved the appsdata folder to another mounted drive -> after creating the symlink (as root) i didn't propperly set the permissions. I fixed it, so all good now. Thanks!

                        necrevistonnezrN Offline
                        necrevistonnezrN Offline
                        necrevistonnezr
                        wrote on last edited by
                        #13

                        @opensourced said in Unable to install apps:

                        @girish I moved the appsdata folder to another mounted drive

                        I think you should have led with that... 🙂

                        1 Reply Last reply
                        1
                        • girishG girish marked this topic as a question on
                        • girishG girish 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