# Cta-verify-file fails: v5.8.7-1

**URL:** <https://cta-community.web.cern.ch/t/cta-verify-file-fails-v5-8-7-1/223>\
**Category:** Site Administrators\
**Created:** [26 May 2023 09:49 UTC](https://cta-community.web.cern.ch/t/cta-verify-file-fails-v5-8-7-1/223 "2023-05-26T09:49:16Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mwai](https://cta-community.web.cern.ch/letter_avatar_proxy/v4/letter/m/74df32/32.png) [@Mwai](https://cta-community.web.cern.ch/u/Mwai)\
**Post date:** [26 May 2023 09:49 UTC](https://cta-community.web.cern.ch/t/cta-verify-file-fails-v5-8-7-1/223/1 "2023-05-26T09:49:16Z")

</div>

Hello,

`cta-verify-file` doesn’t seem to work in v5.8.7-1…fails with:

```auto
[root@dcache-enstore01 ~]# cta-verify-file -v V01026 -I 3690234 -i dot -u rlueken
prepareToRetrieveFile: getMountPolicy: bindString failed: paramName=:MOUNT_POLICY_NAME: bindString failed for SQL statement SELECT MOUNT_POLICY_NAME AS MOUNT_POLICY_NAME,ARCHIVE_PRIORITY AS ARCHIVE_PRI...: Optional string parameter :MOUNT_POLICY_NAME is an empty string. An optional string parameter should either have a non-empty string value or no value at all.

```

Any ideas?

Mwai

---

<div class="post-metadata">

**Author:** ![vlado](https://cta-community.web.cern.ch/letter_avatar_proxy/v4/letter/v/779978/32.png) [@vlado](https://cta-community.web.cern.ch/u/vlado)\
**Post date:** [26 May 2023 10:14 UTC](https://cta-community.web.cern.ch/t/cta-verify-file-fails-v5-8-7-1/223/2 "2023-05-26T10:14:56Z")

</div>

Mwai,

strange, this works for me (using 50% of your options):

```auto
[vlado@cta-frontend01 /]$ cta-verify-file -v L85310 -I 4298481550 -i dot -u rlueken
RetrieveRequest-Frontend-cta-frontend01.cern.ch-19324-20230524-17:13:58-0-18

```

Here is how we have the `verification` mount policy configured:

```auto
[vlado@cta-frontend01 /]$ cta-admin mp ls | grep verifi
       verification 50 14400 50 300 mvelosob ctapreproductionfrontend01 2022-05-04 13:39 vlado cta-frontend01 2022-06-09 10:17 Tape Media Verification framework mount policy
[vlado@cta-frontend01 /]$ grep -i verifi /etc/cta/cta-frontend-xrootd.conf
cta.verification.mount_policy verification

```

As for the nasty error message, that is definitely a bug. Can you please open a CTA ticket?

Thanks.

Vladimir

---

<div class="post-metadata">

**Author:** ![Mwai](https://cta-community.web.cern.ch/letter_avatar_proxy/v4/letter/m/74df32/32.png) [@Mwai](https://cta-community.web.cern.ch/u/Mwai)\
**Post date:** [26 May 2023 10:43 UTC](https://cta-community.web.cern.ch/t/cta-verify-file-fails-v5-8-7-1/223/3 "2023-05-26T10:43:52Z")

</div>

hi Vlado,

Thanks. It now seems to work after defining the verification policy on the cta-frontend-xrootd.conf file.

best,  
Mwai

---

<div class="post-metadata">

**Author:** ![vlado](https://cta-community.web.cern.ch/letter_avatar_proxy/v4/letter/v/779978/32.png) [@vlado](https://cta-community.web.cern.ch/u/vlado)\
**Post date:** [26 May 2023 12:53 UTC](https://cta-community.web.cern.ch/t/cta-verify-file-fails-v5-8-7-1/223/4 "2023-05-26T12:53:07Z")

</div>

I was able to reproduce this at CERN and opened internal issue: [Sign in to CERN](https://gitlab.cern.ch/cta/operations/-/issues/1076)
