Skip to content

CI/CD: symlink not created resulting in CD not working anymore #350

Description

@kulisse

Sometimes a continuous delivery github action will fail during "create symlink" step with the error below:

Run sudo ln -s /var/www/shared/storage /var/www/caravel/backend -f
ln: /var/www/caravel/backend/public/uploads: cannot overwrite directory
Error: Process completed with exit code 1.

Apparently this is because sometimes the symlink is not created and laravel create a directory automatically. When this happens, you can't create a symlink anymore.

The workaround is to go on the server in /var/www/caravel/backend/public/uploads and move everything inside this folder to /var/www/shared and then delete the uploads folder.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions