diff --git a/reproman/support/jobs/orchestrators.py b/reproman/support/jobs/orchestrators.py
index 8191a70..2ec5a8a 100644
--- a/reproman/support/jobs/orchestrators.py
+++ b/reproman/support/jobs/orchestrators.py
@@ -890,19 +890,18 @@ class FetchPlainMixin(object):
                 # treat it as the file.
                 op.join(self.local_directory, ""))
 
-        def get_failed_meta(mdir, failed):
-            for idx in failed:
-                for f in ["status", "stdout", "stderr"]:
-                    self.session.get(
-                        op.join(self.meta_directory,
-                                "{}.{:d}".format(f, idx)),
-                        op.join(self.local_directory,
-                                op.relpath(self.meta_directory,
-                                           self.working_directory),
-                                ""))
+        for idx in range(len(self.job_spec["_command_array"])):
+            for f in ["status", "stdout", "stderr"]:
+                self.session.get(
+                    op.join(self.meta_directory,
+                            "{}.{:d}".format(f, idx)),
+                    op.join(self.local_directory,
+                            op.relpath(self.meta_directory,
+                                       self.working_directory),
+                            ""))
 
         failed = self.get_failed_subjobs()
-        self.log_failed(failed, func=get_failed_meta)
+        self.log_failed(failed)
 
         lgr.info("Outputs fetched. Finished with remote resource '%s'",
                  self.resource.name)

plain orchestrator: make sure that it at least fetches logs (stdout/err) even if not --output's were specified?
diff --git a/reproman/support/jobs/tests/test_orchestrators.py b/reproman/support/jobs/tests/test_orchestrators.py
index 290422b..925db6d 100644
--- a/reproman/support/jobs/tests/test_orchestrators.py
+++ b/reproman/support/jobs/tests/test_orchestrators.py
@@ -104,6 +104,11 @@ def check_orc_plain(tmpdir):
 
             orc.fetch()
             assert open("out").read() == "content\nmore\n"
+
+            metadir_local = op.relpath(orc.meta_directory,
+                                       orc.working_directory)
+            for fname in "status", "stderr", "stdout":
+                assert op.exists(op.join(metadir_local, fname + ".0"))
     return fn
 
 

pip install -e .[devel]
parse_log_pytest
requirements.txt
pytest pytest-cov pytest-xdist pytest-mock pytest-asyncio
apt-get update apt-get install -y gcc
3.9
requirements.txt
pytest --no-header -rA --tb=line --color=no -p no:cacheprovider -W ignore::DeprecationWarning
alabaster==0.7.16
annexremote==1.6.6
appdirs==1.4.4
attrs==25.3.0
babel==2.17.0
backports.tarfile==1.2.0
bcrypt==4.3.0
boto3==1.37.23
botocore==1.37.23
certifi==2025.1.31
cffi==1.17.1
chardet==5.2.0
charset-normalizer==3.4.1
coverage==7.8.0
cryptography==44.0.2
datalad==1.1.5
datalad_container==1.2.5
decorator==5.2.1
Deprecated==1.2.18
distro==1.9.0
docker==7.1.0
dockerpty==0.4.1
docutils==0.21.2
exceptiongroup==1.2.2
execnet==2.1.1
fabric==3.2.2
fasteners==0.19
humanize==4.12.2
idna==3.10
imagesize==1.4.1
importlib_metadata==8.6.1
importlib_resources==6.5.2
iniconfig==2.1.0
invoke==2.2.0
iso8601==2.1.0
isodate==0.7.2
jaraco.classes==3.4.0
jaraco.context==6.0.1
jaraco.functools==4.1.0
jeepney==0.9.0
Jinja2==3.1.6
jmespath==1.0.1
keyring==25.6.0
keyrings.alt==5.0.2
line_profiler==4.2.0
looseversion==1.3.0
MarkupSafe==3.0.2
more-itertools==10.6.0
msgpack==1.1.0
nibabel==5.3.2
numpy==2.0.2
packaging==24.2
paramiko==3.5.1
patool==1.15.0
platformdirs==4.3.7
pluggy==1.5.0
pycparser==2.22
pycrypto==2.6.1
Pygments==2.19.1
PyNaCl==1.5.0
pyOpenSSL==16.2.0
pyparsing==3.2.3
pytest==8.3.5
pytest-asyncio==0.26.0
pytest-cov==6.0.0
pytest-mock==3.14.0
pytest-xdist==3.6.1
python-dateutil==2.9.0.post0
python-debian==1.0.1
python-gitlab==5.6.0
pytz==2025.2
PyYAML==6.0.2
rdflib==7.1.4
-e git+https://github.com/ReproNim/reproman.git@98bcaf28682181ad36f5a7a9f8de9f22ad242300#egg=reproman
reprozip==1.3
requests==2.32.3
requests-toolbelt==1.0.0
rpaths==1.0.0
s3transfer==0.11.4
scp==0.15.0
SecretStorage==3.3.3
six==1.17.0
snowballstemmer==2.2.0
Sphinx==7.4.7
sphinx-rtd-theme==3.0.2
sphinxcontrib-applehelp==2.0.0
sphinxcontrib-devhelp==2.0.0
sphinxcontrib-htmlhelp==2.1.0
sphinxcontrib-jquery==4.1
sphinxcontrib-jsmath==1.0.1
sphinxcontrib-qthelp==2.0.0
sphinxcontrib-serializinghtml==2.0.0
swebench_matterhorn @ file:///swebench_matterhorn
tomli==2.2.1
tqdm==4.67.1
typing_extensions==4.13.0
urllib3==1.26.20
usagestats==1.0.1
wrapt==1.17.2
zipp==3.21.0

name: reproman
channels:
  - defaults
  - https://repo.anaconda.com/pkgs/main
  - https://repo.anaconda.com/pkgs/r
  - conda-forge
dependencies:
  - _libgcc_mutex=0.1=main
  - _openmp_mutex=5.1=1_gnu
  - ca-certificates=2025.2.25=h06a4308_0
  - ld_impl_linux-64=2.40=h12ee557_0
  - libffi=3.4.4=h6a678d5_1
  - libgcc-ng=11.2.0=h1234567_1
  - libgomp=11.2.0=h1234567_1
  - libstdcxx-ng=11.2.0=h1234567_1
  - ncurses=6.4=h6a678d5_0
  - openssl=3.0.16=h5eee18b_0
  - pip=25.0=py39h06a4308_0
  - python=3.9.21=he870216_1
  - readline=8.2=h5eee18b_0
  - setuptools=75.8.0=py39h06a4308_0
  - sqlite=3.45.3=h5eee18b_0
  - tk=8.6.14=h39e8969_0
  - tzdata=2025a=h04d1e81_0
  - wheel=0.45.1=py39h06a4308_0
  - xz=5.6.4=h5eee18b_1
  - zlib=1.2.13=h5eee18b_1
  - pip:
      - alabaster==0.7.16
      - annexremote==1.6.6
      - appdirs==1.4.4
      - attrs==25.3.0
      - babel==2.17.0
      - backports-tarfile==1.2.0
      - bcrypt==4.3.0
      - boto3==1.37.23
      - botocore==1.37.23
      - certifi==2025.1.31
      - cffi==1.17.1
      - chardet==5.2.0
      - charset-normalizer==3.4.1
      - coverage==7.8.0
      - cryptography==44.0.2
      - datalad==1.1.5
      - datalad-container==1.2.5
      - decorator==5.2.1
      - deprecated==1.2.18
      - distro==1.9.0
      - docker==7.1.0
      - dockerpty==0.4.1
      - docutils==0.21.2
      - exceptiongroup==1.2.2
      - execnet==2.1.1
      - fabric==3.2.2
      - fasteners==0.19
      - humanize==4.12.2
      - idna==3.10
      - imagesize==1.4.1
      - importlib-metadata==8.6.1
      - importlib-resources==6.5.2
      - iniconfig==2.1.0
      - invoke==2.2.0
      - iso8601==2.1.0
      - isodate==0.7.2
      - jaraco-classes==3.4.0
      - jaraco-context==6.0.1
      - jaraco-functools==4.1.0
      - jeepney==0.9.0
      - jinja2==3.1.6
      - jmespath==1.0.1
      - keyring==25.6.0
      - keyrings-alt==5.0.2
      - line-profiler==4.2.0
      - looseversion==1.3.0
      - markupsafe==3.0.2
      - more-itertools==10.6.0
      - msgpack==1.1.0
      - nibabel==5.3.2
      - numpy==2.0.2
      - packaging==24.2
      - paramiko==3.5.1
      - patool==1.15.0
      - platformdirs==4.3.7
      - pluggy==1.5.0
      - pycparser==2.22
      - pycrypto==2.6.1
      - pygments==2.19.1
      - pynacl==1.5.0
      - pyopenssl==16.2.0
      - pyparsing==3.2.3
      - pytest==8.3.5
      - pytest-asyncio==0.26.0
      - pytest-cov==6.0.0
      - pytest-mock==3.14.0
      - pytest-xdist==3.6.1
      - python-dateutil==2.9.0.post0
      - python-debian==1.0.1
      - python-gitlab==5.6.0
      - pytz==2025.2
      - pyyaml==6.0.2
      - rdflib==7.1.4
      - reprozip==1.3
      - requests==2.32.3
      - requests-toolbelt==1.0.0
      - rpaths==1.0.0
      - s3transfer==0.11.4
      - scp==0.15.0
      - secretstorage==3.3.3
      - six==1.17.0
      - snowballstemmer==2.2.0
      - sphinx==7.4.7
      - sphinx-rtd-theme==3.0.2
      - sphinxcontrib-applehelp==2.0.0
      - sphinxcontrib-devhelp==2.0.0
      - sphinxcontrib-htmlhelp==2.1.0
      - sphinxcontrib-jquery==4.1
      - sphinxcontrib-jsmath==1.0.1
      - sphinxcontrib-qthelp==2.0.0
      - sphinxcontrib-serializinghtml==2.0.0
      - swebench-matterhorn==0.0.0
      - tomli==2.2.1
      - tqdm==4.67.1
      - typing-extensions==4.13.0
      - urllib3==1.26.20
      - usagestats==1.0.1
      - wrapt==1.17.2
      - zipp==3.21.0
prefix: /opt/conda/envs/reproman

reproman/support/jobs/tests/test_orchestrators.py::test_orc_plain_shell
reproman/support/jobs/tests/test_orchestrators.py::test_orc_no_dataset
reproman/support/jobs/tests/test_orchestrators.py::test_orc_root_directory reproman/support/jobs/tests/test_orchestrators.py::test_orc_root_directory_error[no reproman/support/jobs/tests/test_orchestrators.py::test_orc_root_directory_error[relative] reproman/support/jobs/tests/test_orchestrators.py::test_orc_resurrection_invalid_job_spec reproman/support/jobs/tests/test_orchestrators.py::test_orc_log_failed[1] reproman/support/jobs/tests/test_orchestrators.py::test_orc_log_failed[2] reproman/support/jobs/tests/test_orchestrators.py::test_orc_log_failed[10]
reproman/support/jobs/orchestrators.py
reproman/support/jobs/orchestrators.py