# Sync failing with LB in front

**URL:** <https://forum.pritunl.com/t/sync-failing-with-lb-in-front/493>\
**Category:** Pritunl VPN\
**Tags:** pritunl-client, pritunl\
**Created:** [October 27, 2022, 1:59pm UTC](https://forum.pritunl.com/t/sync-failing-with-lb-in-front/493 "2022-10-27T13:59:33Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![margus](https://forum.pritunl.com/user_avatar/forum.pritunl.com/margus/32/189_2.png) [@margus](https://forum.pritunl.com/u/margus)\
**Post date:** [October 27, 2022, 1:59pm UTC](https://forum.pritunl.com/t/sync-failing-with-lb-in-front/493/1 "2022-10-27T13:59:33Z")

</div>

Hello,

I have setup a LB in front of a 3 node setup, where we can access easily the UI for both admins and users but for some reason the sync address is not working, even tho at every host I have set it to [vpn.example.com](http://vpn.example.com) but when I check client logs it still tries to download it from  
[https://123.123.123.123:80/key/sync/](https://123.123.123.123:80/key/sync/)…

Any reasons why this is happening ?

---

<div class="post-metadata">

**Author:** ![zach](https://forum.pritunl.com/user_avatar/forum.pritunl.com/zach/32/1105_2.png) [@zach](https://forum.pritunl.com/u/zach)\
**Post date:** [October 27, 2022, 7:02pm UTC](https://forum.pritunl.com/t/sync-failing-with-lb-in-front/493/2 "2022-10-27T19:02:46Z")

</div>

After setting the sync address on all the hosts the profile must be re-imported into the client.

---

<div class="post-metadata">

**Author:** ![margus](https://forum.pritunl.com/user_avatar/forum.pritunl.com/margus/32/189_2.png) [@margus](https://forum.pritunl.com/u/margus)\
**Post date:** [October 28, 2022, 5:26am UTC](https://forum.pritunl.com/t/sync-failing-with-lb-in-front/493/3 "2022-10-28T05:26:48Z")

</div>

I have done this  
All hosts have the same [vpn.example.com](http://vpn.example.com) domain set in the Sync Address

And profile has been imported too multiple times after this change was made and seeing still this error.

Any other things I should check ?

---

<div class="post-metadata">

**Author:** ![zach](https://forum.pritunl.com/user_avatar/forum.pritunl.com/zach/32/1105_2.png) [@zach](https://forum.pritunl.com/u/zach)\
**Post date:** [October 28, 2022, 6:01pm UTC](https://forum.pritunl.com/t/sync-failing-with-lb-in-front/493/4 "2022-10-28T18:01:54Z")

</div>

Check the value of `sync_hosts` in he `.conf` file in the profiles directory. This will be one of the directories below.

```auto
~/.config/pritunl/profiles/
~/Library/Application Support/pritunl/profiles/
C:\Users\USERNAME\AppData\Roaming\pritunl\profiles\

```

---

<div class="post-metadata">

**Author:** ![margus](https://forum.pritunl.com/user_avatar/forum.pritunl.com/margus/32/189_2.png) [@margus](https://forum.pritunl.com/u/margus)\
**Post date:** [October 29, 2022, 9:25pm UTC](https://forum.pritunl.com/t/sync-failing-with-lb-in-front/493/5 "2022-10-29T21:25:36Z")

</div>

There I can see vpn…com and even on the client settings I can see vpn…com  
Tho form logs I see it’s trying to access them via the IP of the VPN on port 80
