Skip to content

/usr/bin/rsync not found when trying to seed metacpan-api #127

@stefanhaerter

Description

@stefanhaerter

I followed the instructions and got the containers running with docker compose --profile dev up:

ingest-1  | MetaCPAN Ingest Image
web-asset-build-1  | building assets...
ingest-1 exited with code 0
elasticsearch-1    | [2025-08-19 15:38:07,148][INFO ][node                     ] [Doppelganger] version[2.4.6], pid[1], build[5376dca/2017-07-18T12:17:44Z]
elasticsearch-1    | [2025-08-19 15:38:07,150][INFO ][node                     ] [Doppelganger] initializing ...
elasticsearch-1    | [2025-08-19 15:38:07,574][INFO ][plugins                  ] [Doppelganger] modules [reindex, lang-expression, lang-groovy], plugins [], sites []
elasticsearch-1    | [2025-08-19 15:38:07,634][INFO ][env                      ] [Doppelganger] using [1] data paths, mounts [[/usr/share/elasticsearch/data (/dev/mapper/main-root)]], net usable_space [146.4gb], net total_space [195.8gb], spins? [possibly], types [ext4]
elasticsearch-1    | [2025-08-19 15:38:07,634][INFO ][env                      ] [Doppelganger] heap size [990.7mb], compressed ordinary object pointers [true]
web-asset-build-1  | build complete (fa-brands-400-Q3XCMWHQ.woff2 fa-brands-400-R2XQZCET.ttf fa-regular-400-QSNYFYRT.woff2 fa-regular-400-XUOPSR7E.ttf fa-solid-900-5ZUYHGA7.woff2 fa-solid-900-PJNKLK6W.ttf glyphicons-halflings-regular-ACNUA6UY.ttf glyphicons-halflings-regular-JOUF32XT.woff glyphicons-halflings-regular-PIHUWCJO.eot glyphicons-halflings-regular-QXYEM3FU.svg glyphicons-halflings-regular-W4DYDFZM.woff2 main-SNDPTXX6.js style-343O7SNY.css)
elasticsearch-1    | [2025-08-19 15:38:08,727][INFO ][node                     ] [Doppelganger] initialized
elasticsearch-1    | [2025-08-19 15:38:08,728][INFO ][node                     ] [Doppelganger] starting ...
elasticsearch-1    | [2025-08-19 15:38:08,771][INFO ][transport                ] [Doppelganger] publish_address {172.21.0.2:9300}, bound_addresses {[::]:9300}
elasticsearch-1    | [2025-08-19 15:38:08,774][INFO ][discovery                ] [Doppelganger] elasticsearch/q2ObuOFBREOv1JYboJOsjg
elasticsearch-1    | [2025-08-19 15:38:11,841][INFO ][cluster.service          ] [Doppelganger] new_master {Doppelganger}{q2ObuOFBREOv1JYboJOsjg}{172.21.0.2}{172.21.0.2:9300}, reason: zen-disco-join(elected_as_master, [0] joins received)
elasticsearch-1    | [2025-08-19 15:38:11,895][INFO ][http                     ] [Doppelganger] publish_address {172.21.0.2:9200}, bound_addresses {[::]:9200}
elasticsearch-1    | [2025-08-19 15:38:11,895][INFO ][node                     ] [Doppelganger] started
elasticsearch-1    | [2025-08-19 15:38:11,926][INFO ][gateway                  ] [Doppelganger] recovered [0] indices into cluster_state
api-1              | Web application available at http://127.0.0.1:5000

However, when trying to execute docker compose exec api index-cpan.sh, I got the following:

$ docker compose exec api index-cpan.sh
Can't locate cpanfile: (cpanfile)
/bin/partial-cpan-mirror.sh: 9: /usr/bin/rsync: not found
/bin/partial-cpan-mirror.sh: 10: /usr/bin/rsync: not found
/bin/partial-cpan-mirror.sh: 11: /usr/bin/rsync: not found
/bin/partial-cpan-mirror.sh: 12: /usr/bin/rsync: not found
/bin/partial-cpan-mirror.sh: 13: /usr/bin/rsync: not found
/bin/partial-cpan-mirror.sh: 15: /usr/bin/rsync: not found
/bin/partial-cpan-mirror.sh: 16: /usr/bin/rsync: not found
/bin/partial-cpan-mirror.sh: 18: /usr/bin/rsync: not found
/bin/partial-cpan-mirror.sh: 19: /usr/bin/rsync: not found
Can't locate cpanfile: (cpanfile)
Can't locate cpanfile: (cpanfile)
Can't locate cpanfile: (cpanfile)
Can't locate cpanfile: (cpanfile)

I am running an up-to-date Arch Linux at time of writing (2025-08-19). First, I checked that rsync is installed on my system (it was not, I installed it and rebooted). After that, I tried to execute the command with sudo, then with sudo -u myusername, but nothing doing.

Next, I wanted to check if rsync is actually installed in the api container, which appears to not be the case:

$ docker compose exec -it api bash
metacpan@080b4bb6e815:/app$ rsync --help
bash: rsync: command not found

I'll appreciate any help, hint or correction.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions