Skip to content

🐛 Error running local development with solution #880

@da-wilky

Description

@da-wilky

Describe the bug
I try to follow the documentation for the local development (https://hi.events/docs/getting-started/local-development). Doing so results in multiple errors. The first one to approach is the following:

Running composer install in the backend service...
Installing dependencies from lock file (including require-dev)
Verifying lock file contents can be installed on current platform.
Package operations: 184 installs, 0 updates, 0 removals

In Filesystem.php line 261:

/var/www/html/vendor does not exist and could not be created:

install [--prefer-source] [--prefer-dist] [--prefer-install PREFER-INSTALL] [--dry-run] [--download-only] [--dev] [--no-suggest] [--no-dev] [--no-autoloader] [--no-progress] [--no-install] [--audit] [--audit-format AUDIT-FORMAT] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--apcu-autoloader-prefix APCU-AUTOLOADER-PREFIX] [--ignore-platform-req IGNORE-PLATFORM-REQ] [--ignore-platform-reqs] [--] [<packages>...]

Composer install failed within the backend service.

To Reproduce
Steps to reproduce the behavior:

  1. Follow the first two steps of the linked documentation. (https://hi.events/docs/getting-started/local-development)
  2. Running the start-dev.sh script results in the error above.

Expected behavior
The development environment should be setup successfully.

Hi.Events Version and platform
Im on the v1.3.0-beta.1 branch.

System
I am trying this on NixOS 25.05.

Solution
It seems to be an error with the permissions of the cloned repo. When I change the owner of all files from that repo to 82, this script runs successfully. My system doesnt have the www-data user.
The documentation should maybe get extended to include this information about setting the new owner of all files of that repo, or the start-dev.sh should be adjusted so it successfully runs even with other owners of those files.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions