# CloudQuery sync fails on one server but works on another with same config

**URL:** <https://community.cloudquery.io/t/cloudquery-sync-fails-on-one-server-but-works-on-another-with-same-config/552>\
**Category:** CloudQuery Plugins\
**Created:** [November 24, 2023, 12:27pm UTC](https://community.cloudquery.io/t/cloudquery-sync-fails-on-one-server-but-works-on-another-with-same-config/552 "2023-11-24T12:27:38Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![fun-griffon](https://avatars.discourse-cdn.com/v4/letter/f/4da419/32.png) [@fun-griffon](https://community.cloudquery.io/u/fun-griffon)\
**Post date:** [November 24, 2023, 12:27pm UTC](https://community.cloudquery.io/t/cloudquery-sync-fails-on-one-server-but-works-on-another-with-same-config/552/1 "2023-11-24T12:27:38Z")

</div>

Hi folks!

I am encountering a weird behavior while running syncs. On one server running Docker, CloudQuery runs fine, whereas on another server for the same config and version, it fails. Can someone look into this anomaly?

Posting my config files here:

```yaml
kind: source
spec:
  destinations: ["duckdb"]
  name: "postgresql"
  path: "cloudquery/postgresql"
  registry: "cloudquery"
  spec:
    connection_string: "<abcd>?sslmode=disable"
  tables: ["*"]
  version: "v3.0.7"

```

---

<div class="post-metadata">

**Author:** ![erez](https://sea1.discourse-cdn.com/flex001/user_avatar/community.cloudquery.io/erez/32/40_2.png) [@erez](https://community.cloudquery.io/u/erez)\
**Post date:** [November 24, 2023, 12:47pm UTC](https://community.cloudquery.io/t/cloudquery-sync-fails-on-one-server-but-works-on-another-with-same-config/552/2 "2023-11-24T12:47:21Z")

</div>

Hi @fun-griffon, can you share the error you’re getting when it fails?

---

<div class="post-metadata">

**Author:** ![fun-griffon](https://avatars.discourse-cdn.com/v4/letter/f/4da419/32.png) [@fun-griffon](https://community.cloudquery.io/u/fun-griffon)\
**Post date:** [November 24, 2023, 2:04pm UTC](https://community.cloudquery.io/t/cloudquery-sync-fails-on-one-server-but-works-on-another-with-same-config/552/3 "2023-11-24T14:04:25Z")

</div>

Hi Erez, sure.

```auto
2023-11-24T14:02:39Z ERR exiting with error error="failed to start plugin .cq/plugins/source/cloudquery/postgresql/v3.0.7/plugin: fork/exec .cq/plugins/source/cloudquery/postgresql/v3.0.7/plugin: exec format error" module=cli

```

---

<div class="post-metadata">

**Author:** ![erez](https://sea1.discourse-cdn.com/flex001/user_avatar/community.cloudquery.io/erez/32/40_2.png) [@erez](https://community.cloudquery.io/u/erez)\
**Post date:** [November 24, 2023, 2:14pm UTC](https://community.cloudquery.io/t/cloudquery-sync-fails-on-one-server-but-works-on-another-with-same-config/552/4 "2023-11-24T14:14:27Z")

</div>

That usually means the plugin binary doesn’t match the architecture of the container, so I would verify the servers are using the same architecture.

---

<div class="post-metadata">

**Author:** ![fun-griffon](https://avatars.discourse-cdn.com/v4/letter/f/4da419/32.png) [@fun-griffon](https://community.cloudquery.io/u/fun-griffon)\
**Post date:** [November 24, 2023, 2:22pm UTC](https://community.cloudquery.io/t/cloudquery-sync-fails-on-one-server-but-works-on-another-with-same-config/552/5 "2023-11-24T14:22:45Z")

</div>

Oh, I see. I was assuming it to be the case, but thanks for clarifying. Also, how did you interpret the error? It’s something I couldn’t understand just by reading it.

---

<div class="post-metadata">

**Author:** ![erez](https://sea1.discourse-cdn.com/flex001/user_avatar/community.cloudquery.io/erez/32/40_2.png) [@erez](https://community.cloudquery.io/u/erez)\
**Post date:** [November 24, 2023, 2:26pm UTC](https://community.cloudquery.io/t/cloudquery-sync-fails-on-one-server-but-works-on-another-with-same-config/552/6 "2023-11-24T14:26:41Z")

</div>

`exec format error` is the hint.

---

<div class="post-metadata">

**Author:** ![fun-griffon](https://avatars.discourse-cdn.com/v4/letter/f/4da419/32.png) [@fun-griffon](https://community.cloudquery.io/u/fun-griffon)\
**Post date:** [November 24, 2023, 3:27pm UTC](https://community.cloudquery.io/t/cloudquery-sync-fails-on-one-server-but-works-on-another-with-same-config/552/7 "2023-11-24T15:27:19Z")

</div>

Understood, thanks again 🙂
