rsync compatibility with version 2.x

Created on 22 February 2023, about 2 years ago
Updated 8 December 2023, over 1 year ago

Problem/Motivation

We try to use this module on drupal 9.5 with rsync. but with rsync we became an error. the question: is rsync working?

Steps to reproduce

drupal 9.5 with version 2.7 of automatic updates. then set rsync (drush config:set package_manager.settings file_syncer rsync and drush config:set package_manager.settings executables.rsync /usr/local/bin/rsync). If we downgrade i.e. search_api and want to update it we receve the following error. withouth rsync (with php copy) it works fine!

  • rsync version 3.2.7 protocol version 31
  • drupal 9.5.3
  • php 8.1.16
  • freebsd 12.4-RELEASE-p2
Loading composer repositories with package information
Updating dependencies
Lock file operations: 0 installs, 1 update, 0 removals
- Upgrading drupal/search_api (1.26.0 => 1.28.0)
Writing lock file
Installing dependencies from lock file (including require-dev)
Package operations: 5 installs, 1 update, 0 removals
0 [>---------------------------]    0 [->--------------------------]
- Installing symfony/config (v4.4.44): Extracting archive
- Upgrading drupal/search_api (1.26.0 => 1.28.0): Extracting archive
- Installing consolidation/config (1.2.1): Extracting archive
- Installing drush/drush (10.6.2): Extracting archive
0/6 [>---------------------------]   0%
5/6 [=======================>----]  83%
6/6 [============================] 100%
Cleaning: drush/drush
Package doctrine/reflection is abandoned, you should avoid using it. Use roave/better-reflection instead.
Package symfony/debug is abandoned, you should avoid using it. Use symfony/error-handler instead.
Package webmozart/path-util is abandoned, you should avoid using it. Use symfony/filesystem instead.
Generating autoload files
Hardening vendor directory with .htaccess and web.config files.
Skipped installation of bin scripts/release for package consolidation/self-update: file not found in package
94 packages you are using are looking for funding.
Use the `composer fund` command to find out more!
In ScaffoldFilePath.php line 136:
Scaffold file assets/scaffold/files/editorconfig not found in package drupa  
l/core.

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Closed: outdated

Version

2.7

Component

Code

Created by

πŸ‡¨πŸ‡­Switzerland cola

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @cola
  • πŸ‡¨πŸ‡­Switzerland cola
  • Status changed to Postponed: needs info about 2 years ago
  • πŸ‡§πŸ‡ͺBelgium wim leers Ghent πŸ‡§πŸ‡ͺπŸ‡ͺπŸ‡Ί

    Peculiar! Can you check whether the file assets/scaffold/files/editorconfig actually exists on your filesystem? πŸ™

  • πŸ‡¨πŸ‡­Switzerland cola

    yes it exists on my original drupal core... did you mean on the tmp folder or "original" drupal core?

  • πŸ‡ΉπŸ‡³Tunisia azizos

    Good afternoon, I'm trying to solve this issue. In my local machine, I've php 8.2.2. Is that ok? or I've to install php 8.1.16?

  • πŸ‡¨πŸ‡­Switzerland cola

    If we remove the core-composer-scaffold then is working fine with rsync... But with core-composer-scaffold we don't can run it.

  • πŸ‡¨πŸ‡­Switzerland cola

    @ahmed-aziz-abbassi you need to check if you have installed rsync (with "which rsync"), there sou see the path of the bin. Then you can change the settings with drush.

    drush config:set package_manager.settings file_syncer rsync
    drush config:set package_manager.settings executables.rsync /usr/local/bin/rsync

  • πŸ‡ΉπŸ‡³Tunisia azizos


    this is the version of rsync. How to see the path of the bin?
    I've tried looking under /usr/bin and I haven't found anything.
    Could you explain more please?

  • πŸ‡¨πŸ‡­Switzerland cola

    @ahmed-aziz-abbassi you can use the command "which rsync"

  • @ahmed-aziz-abbassi opened merge request.
  • πŸ‡ΊπŸ‡ΈUnited States tedbow Ithaca, NY, USA
  • Status changed to Closed: outdated over 1 year ago
  • πŸ‡ΊπŸ‡ΈUnited States phenaproxima Massachusetts

    8.x-2.x is no longer supported, so I think it's time to close this issue out.

    The 3.0.x not only supports rsync, it actively encourages its use (the PHP file syncer isn't quite ready for prime time), and tests against it.

Production build 0.71.5 2024