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
  • Brite
  • 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. EspoCRM
  3. Issue: User "www-data" lacking permissions to read/write/delete in custom Espo crm extension folders (~/client/custom/modules etc)

Issue: User "www-data" lacking permissions to read/write/delete in custom Espo crm extension folders (~/client/custom/modules etc)

Scheduled Pinned Locked Moved EspoCRM
2 Posts 2 Posters 161 Views 2 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.
  • C Offline
    C Offline
    cdejongfiero
    wrote last edited by
    #1

    I have two instances of Espo CRM set up on my Cloudron instance. I am running into an issue with read/write/delete permissions on the extensions folders which are critical for our customizations.

    I think the user "www-data" may not have enough permissions to delete files in the following folders:
    ~/client/custom/modules
    ~/custom/Espo/Modules
    ~/data/upload

    I have already gone through the documentation and tried the following:

    1. Went through these steps:
      https://docs.espocrm.com/administration/extensions/#installing

    2. Then tried these steps from source: https://github.com/espocrm/documentation/blob/master/docs/administration/commands.md#extension
      A. Logged in to Cloudron
      B. Hover over the EspoCRM square + click the gears icon
      C. Up+right - Click on: Terminal
      D. Entered the template line (modified as needed for our installation)
      bin/command extension --file="path/to/extension/package.zip"

    3. Tried following this uninstall extensions documentation:
      https://docs.cloudron.io/packages/espocrm/#uninstalling-extension

    I am still stuck dealing with this error message though: espo-error.png

    I believe the documentation does not mention this issue. There is the documentation for uninstalling extensions, but that is for the terminal and not the admin interface.

    Does anyone know how to fix this or if it is intentional?

    J 1 Reply Last reply
    2
    • C cdejongfiero

      I have two instances of Espo CRM set up on my Cloudron instance. I am running into an issue with read/write/delete permissions on the extensions folders which are critical for our customizations.

      I think the user "www-data" may not have enough permissions to delete files in the following folders:
      ~/client/custom/modules
      ~/custom/Espo/Modules
      ~/data/upload

      I have already gone through the documentation and tried the following:

      1. Went through these steps:
        https://docs.espocrm.com/administration/extensions/#installing

      2. Then tried these steps from source: https://github.com/espocrm/documentation/blob/master/docs/administration/commands.md#extension
        A. Logged in to Cloudron
        B. Hover over the EspoCRM square + click the gears icon
        C. Up+right - Click on: Terminal
        D. Entered the template line (modified as needed for our installation)
        bin/command extension --file="path/to/extension/package.zip"

      3. Tried following this uninstall extensions documentation:
        https://docs.cloudron.io/packages/espocrm/#uninstalling-extension

      I am still stuck dealing with this error message though: espo-error.png

      I believe the documentation does not mention this issue. There is the documentation for uninstalling extensions, but that is for the terminal and not the admin interface.

      Does anyone know how to fix this or if it is intentional?

      J Offline
      J Offline
      joseph
      Staff
      wrote last edited by
      #2

      @cdejongfiero As you found out when files are added to the app's filesystem, the permissions can become different depending on how the files were added.

      When uploading a file via the File Manager, the permissions are "guessed" based on the permissions of the files around it. This is correct most of the time , but can be wrong especially for apps that run with multiple user ids.

      When running commands via Web Terminal, the files are created as "root". The default permissions of the Web Terminal is root - again because apps can have multiple user ids and root can be any user id.

      For this reason: after you run a command, run chown -R www-data:www-data on the necessary files. Alternately, run the command with "gosu www-data php command.php ..." (this runs as user www-data).

      Finally, I am not sure about the "Permission denied to delete files" . Is there a verbose mode for that command to figure what it is not able to delete?

      1 Reply Last reply
      1
      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