# COPY TO fails with 'Not Serializable Exception Wrapper ...'

**URL:** <https://community.cratedb.com/t/copy-to-fails-with-not-serializable-exception-wrapper/1602>\
**Category:** CrateDB\
**Created:** [September 22, 2023, 8:29am UTC](https://community.cratedb.com/t/copy-to-fails-with-not-serializable-exception-wrapper/1602 "2023-09-22T08:29:32Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![cocoa](https://sea2.discourse-cdn.com/flex020/user_avatar/community.cratedb.com/cocoa/32/783_2.png) [@cocoa](https://community.cratedb.com/u/cocoa)\
**Post date:** [September 22, 2023, 8:29am UTC](https://community.cratedb.com/t/copy-to-fails-with-not-serializable-exception-wrapper/1602/1 "2023-09-22T08:29:32Z")

</div>

Hello,

the SQL

```sql
COPY test.data to DIRECTORY '/backup';

```

fails with

`NotSerializableExceptionWrapper[unhandled_server_exception: Failed to open output: '/backup/data_4_.json (No such file or directory)']`

Cluster configuration as in [https://community.cratedb.com/t/unable-to-create-a-repository-cratedb-cluster-running-with-docker-containers/1589?u=cocoa](https://community.cratedb.com/t/unable-to-create-a-repository-cratedb-cluster-running-with-docker-containers/1589)

Thanks a lot !!

---

<div class="post-metadata">

**Author:** ![cocoa](https://sea2.discourse-cdn.com/flex020/user_avatar/community.cratedb.com/cocoa/32/783_2.png) [@cocoa](https://community.cratedb.com/u/cocoa)\
**Post date:** [September 24, 2023, 12:38pm UTC](https://community.cratedb.com/t/copy-to-fails-with-not-serializable-exception-wrapper/1602/2 "2023-09-24T12:38:49Z")

</div>

SOLVED using MinIO and S3 ‘COPY TO’ option.
