can't write to data/.backup/

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jamie
    Senior Member
    • Aug 2025
    • 143

    #1

    can't write to data/.backup/

    I keep getting this error when trying to update extensions:

    Error: Permission denied: data/.backup/extensions/690323356ab1d4a89

    The permissions seem correct:

    drwxrwxr-x 3 www-data www-data 4.0K Oct 30 08:30 .backup/
    drwxrwxr-x 2 www-data www-data 4.0K Oct 30 08:29 backup/

    What could be causing this?
  • lazovic
    Super Moderator
    • Jan 2022
    • 1187

    #2
    Hi @jamie,

    Please try to execute the following command in CLI from your EspoCRM instance directory:
    Code:
    sudo chown -R www-data:www-data data
    Also, you can review the following section of the configuration files; you can also change it if necessary:

    'defaultPermissions' => [
    'user' => 'www-data',
    'group' => 'www-data',
    ],


    where www-data is your web server user.

    Comment

    • jamie
      Senior Member
      • Aug 2025
      • 143

      #3
      Originally posted by lazovic
      Hi @jamie,

      Please try to execute the following command in CLI from your EspoCRM instance directory:
      Code:
      sudo chown -R www-data:www-data data
      Also, you can review the following section of the configuration files; you can also change it if necessary:

      'defaultPermissions' => [
      'user' => 'www-data',
      'group' => 'www-data',
      ],


      where www-data is your web server user.
      Hello,

      yes its all owned by www-data with the right permissions

      Comment

      Working...