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 Move backup to external EXT4 (USB) disk error: Directory does not exist or cannot be accessed: EACCES: permission denied

    Support
    backups
    3
    9
    430
    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.
    • ei8fdb
      ei8fdb last edited by ei8fdb

      I'm moving my backups (from an internal disk..I know I know 🙂 ) to an USB external disk (ext4).

      The disk is mounted as /media/bernat/owncloud/ and permissions are:
      drwx------ 20 www-data www-data 4096 Nov 8 09:18 owncloud

      Before changing the config in Cloudron I've created the directory on the external USB disk:

      alt text

      The yellowtent user/group owns this directory (/media/bernat/owncloud/cloudron-backups) recursively.

      This is the change I try to make:

      alt text

      When I try to change the backup location in Cloudron UI I get a failure:

      Directory does not exist or cannot be accessed: EACCES: permission denied, stat '/media/bernat/owncloud/cloudron-backups'

      alt text

      I've not restarted Cloudron yet.

      Any help appreciated! I'm sure I've not done something, or done something in the wrong order. Does the whole disk need to be owned by my username?

      robi girish 2 Replies Last reply Reply Quote 0
      • robi
        robi @ei8fdb last edited by robi

        @ei8fdb it's a permissions issue.

        make it look like:
        drwx-----x 20 www-data www-data 4096 Nov 8 09:18 owncloud
        .........^

        Life of Advanced Technology

        ei8fdb 1 Reply Last reply Reply Quote 2
        • ei8fdb
          ei8fdb @robi last edited by

          @robi That's what I was thinking - my username is bernat. Does the whole dis need to be owned by that user?

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

            @ei8fdb no, just chmod o+x on all dirs leading up to the backup dir.

            Life of Advanced Technology

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

              @robi said in Move backup to external EXT4 (USB) disk error: Directory does not exist or cannot be accessed: EACCES: permission denied:

              @ei8fdb no, just chmod o+x on all dirs leading up to the backup dir.

              Chmod to 755?

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

                @ei8fdb no, I said: chmod o+x

                Life of Advanced Technology

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

                  @ei8fdb The issue is most likely permissions of the parent directory i.e /media/bernat/owncloud. What is the output of ls -l /media/bernat/owncloud ?

                  Make sure the directory has 'rx' for others. So, chmod o+rx /media/bernat/owncloud . This is because the backup code accesses the directory as "yellowtent" user. Without the rx, it cannot read and cd into the parent directory.

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

                    @robi said in Move backup to external EXT4 (USB) disk error: Directory does not exist or cannot be accessed: EACCES: permission denied:

                    no, I said: chmod o+x

                    🤦 👍

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

                      What is the output of ls -l /media/bernat/owncloud ?

                      drwx------ 20 www-data www-data 4096 Nov 8 09:18 owncloud

                      Thanks @girish I thought it was permissions. 👍

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