Skip to content

[Bug] cloning:run cannot be run with PHAR executable #156

Description

@felabrecque

What happened?

Error displayed when trying "cloning:run" command.

The stream or file "phar:///var/www//clonio.phar/storage/logs/laravel.log" could not be opened in append mode: Failed to open stream: phar error: open mode appe
nd not supported
The exception occurred while attempting to log: The stream or file "phar:///var/www//clonio.phar/storage/logs/laravel.log" could not be opened in append mode: F
ailed to open stream: phar error: open mode append not supported
The exception occurred while attempting to log: run_started
Context: {"source":"local","target":"test-remote"}
Context: {"exception":{}}

Expected behaviour

Cloning started without errors.

Steps to reproduce

using the PHAR file, start a cloning run (without dry-run)

Environment

WSL

Latest Clonio version

PHP 8.5

Error was created in the PR: #85

Using laravel-zero, please follow: https://laravel-zero.com/docs/logging

Solution:

Re-add the lines specified by the laravel-zero documentation.

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