No Code Attached Yet
avatar muhme
muhme
13 May 2024

(edited)

Steps to reproduce the issue

Expected result

  • Cypress.based Joomla installation runs without errors, 'Install Joomla' spec is passing
  • configuration.php parameters like $mailer = 'smtp' are set correct
  • configuration.php file mask is still read-only (444)

Actual result

  1) Install Joomla
       Install Joomla:
     CypressError: `cy.task('writeFile')` failed with the following error:

> EACCES: permission denied, open './configuration.php'

System information (as much as possible)

  • seen with local Joomla installations on macOS 14.4.1, Windows 11 and Linux
  • does not occur on Linux with root user (as typically in Docker container based installation)
    • in Linux root installation there is the file mask 777 from the web-server created configuration.php file, which may be another problem

Additional comments

  • the read-only (444) file mask of configuration.php will likely be the cause
  • workaround for Linux, macOS and Windows WSL 2 is to run the installation step as root user who is able to overwrite a read-only file:
    • sudo npx cypress run --spec 'tests/System/integration/install/Installation.cy.js'
    • this needs Cypress to be installed for root user or you use actual users Cypress installation cache, e.g.
      • sudo CYPRESS_CACHE_FOLDER=$HOME/.cache/Cypress npx cypress run --spec 'tests/System/integration/install/Installation.cy.js'
  • ongoing pull request is #43466
avatar muhme muhme - open - 13 May 2024
avatar joomla-cms-bot joomla-cms-bot - change - 13 May 2024
Labels Added: No Code Attached Yet
avatar joomla-cms-bot joomla-cms-bot - labeled - 13 May 2024
avatar alikon alikon - change - 13 May 2024
Status New Closed
Closed_Date 0000-00-00 00:00:00 2024-05-13 14:19:40
Closed_By alikon
avatar alikon alikon - close - 13 May 2024
avatar alikon
alikon - comment - 13 May 2024

please test #43466

avatar muhme muhme - change - 2 Jun 2024
The description was changed
avatar muhme muhme - edited - 2 Jun 2024

Add a Comment

Login with GitHub to post a comment