# Syncing fails when running okteto with local kubernetes cluster

**URL:** <https://community.okteto.com/t/syncing-fails-when-running-okteto-with-local-kubernetes-cluster/992>\
**Category:** Not sure?\
**Created:** [August 7, 2023, 8:56am UTC](https://community.okteto.com/t/syncing-fails-when-running-okteto-with-local-kubernetes-cluster/992 "2023-08-07T08:56:35Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![prasanta](https://avatars.discourse-cdn.com/v4/letter/p/bbce88/32.png) [@prasanta](https://community.okteto.com/u/prasanta)\
**Post date:** [August 7, 2023, 8:56am UTC](https://community.okteto.com/t/syncing-fails-when-running-okteto-with-local-kubernetes-cluster/992/1 "2023-08-07T08:56:35Z")

</div>

Hi,  
I am getting below sync error when running okteto up. Deployment succeeded and I can see pod is created in k8s cluster.(I am running in k3d cluster)

✓ Images successfully pulled  
time=“2023-08-07T14:12:22+05:30” level=info msg=“starting SSH port forwards”  
⠦ Configuring SSH tunnel to your development container…time=“2023-08-07T14:12:23+05:30” level=info msg=“starting SSH forward manager”  
time=“2023-08-07T14:12:23+05:30” level=info msg=“SSH forward manager retry 1”  
⠹ Configuring SSH tunnel to your development container…time=“2023-08-07T14:12:23+05:30” level=info msg=“all k8s port-forwards are connected”  
time=“2023-08-07T14:12:23+05:30” level=info msg=“k8s port forward to dev pod connected”  
time=“2023-08-07T14:12:23+05:30” level=info msg=“starting SSH connection pool on :55519”  
⠙ Configuring SSH tunnel to your development container…time=“2023-08-07T14:12:25+05:30” level=info msg=“ssh ping to :55519 was successful”  
time=“2023-08-07T14:12:25+05:30” level=info msg=“updating file ‘C:\Users\prasanta\.okteto\zenith\hello-world\okteto.state’”  
time=“2023-08-07T14:12:25+05:30” level=info msg=“file ‘C:\Users\prasanta\.okteto\zenith\hello-world\okteto.state’ updated successfully”  
⠴ Starting the file synchronization service…time=“2023-08-07T14:12:26+05:30” level=info msg=“waiting for syncthing local=true to be ready”

⠏ Starting the file synchronization service…time=“2023-08-07T14:12:34+05:30” level=info msg=“retrying syncthing call[rest/system/ping] local=true: failed to call syncthing [rest/syst  
em/ping]: Get "[http://localhost:55568/rest/system/ping\](http://localhost:55568/rest/system/ping%5C)”: dial tcp [::1]:55568: connectex: No connection could be made because the target machine actively refused it."

Please help.

---

<div class="post-metadata">

**Author:** ![jLopezbarb](https://sea1.discourse-cdn.com/flex019/user_avatar/community.okteto.com/jlopezbarb/32/48_2.png) [@jLopezbarb](https://community.okteto.com/u/jLopezbarb)\
**Post date:** [August 7, 2023, 10:51am UTC](https://community.okteto.com/t/syncing-fails-when-running-okteto-with-local-kubernetes-cluster/992/2 "2023-08-07T10:51:00Z")

</div>

Hi @prasanta,

The error you’re receiving is stating that your local machine (which runs syncthing in background) is rejecting the connections made by the CLI. It could be due to several reasons but the most common one is a firewall blocking the connection. In order to know what’s the root issue can you provide more information about your issue:

Do you have any firewall locally?  
Do you get any error from the command?  
What’s your okteto version?  
Do you have okteto chart installed in your k3d?

Happy coding!!

---

<div class="post-metadata">

**Author:** ![prasanta](https://avatars.discourse-cdn.com/v4/letter/p/bbce88/32.png) [@prasanta](https://community.okteto.com/u/prasanta)\
**Post date:** [August 7, 2023, 11:13am UTC](https://community.okteto.com/t/syncing-fails-when-running-okteto-with-local-kubernetes-cluster/992/3 "2023-08-07T11:13:53Z")

</div>

Hi @jLopezbarb , When I ran okteto deploy, it deployed successfully to k3d cluster and created pod -hello-world-okteto-6b796f756b-w2ft2

While executing okteto up -l debug I could see below ssh successful  
⠙ Configuring SSH tunnel to your development container…time=“2023-08-07T14:12:25+05:30” level=info msg=“ssh ping to :55519 was successful”

But down the logs I got error as below

⠴ Starting the file synchronization service…time=“2023-08-07T14:12:26+05:30” level=info msg=“waiting for syncthing local=true to be ready”  
⠹ Starting the file synchronization service…time=“2023-08-07T14:12:29+05:30” level=info msg=“retrying syncthing call[rest/system/ping] local=true: failed to call syncthing [rest/syst  
em/ping]: Get "[http://localhost:55568/rest/system/ping\](http://localhost:55568/rest/system/ping%5C)”: dial tcp [::1]:55568: connectex: No connection could be made because the target machine actively refused it."  
time=“2023-08-07T14:12:29+05:30” level=info msg=“error pinging syncthing: failed to call syncthing [rest/system/ping]: Get "[http://localhost:55568/rest/system/ping\](http://localhost:55568/rest/system/ping%5C)”: dial tcp [::1]:5  
5568: connectex: No connection could be made because the target machine actively refused it."

---

<div class="post-metadata">

**Author:** ![jLopezbarb](https://sea1.discourse-cdn.com/flex019/user_avatar/community.okteto.com/jlopezbarb/32/48_2.png) [@jLopezbarb](https://community.okteto.com/u/jLopezbarb)\
**Post date:** [August 7, 2023, 12:21pm UTC](https://community.okteto.com/t/syncing-fails-when-running-okteto-with-local-kubernetes-cluster/992/4 "2023-08-07T12:21:20Z")

</div>

@prasanta, As I posted before the error is during the connection with syncthing, that’s why it’s not failing during deploy. In order to get more insight about the problem we need more data.

- Do you have any firewall activated locally? If so, can you try running the command again with it disabled
- Do you get any error from the command? After the logs your provided did it end up with an error or is in an infinite loop
- What’s your okteto version? Run `okteto version`
- How does your okteto manifest looks like? (removing personal information)

---

<div class="post-metadata">

**Author:** ![prasanta](https://avatars.discourse-cdn.com/v4/letter/p/bbce88/32.png) [@prasanta](https://community.okteto.com/u/prasanta)\
**Post date:** [August 7, 2023, 1:26pm UTC](https://community.okteto.com/t/syncing-fails-when-running-okteto-with-local-kubernetes-cluster/992/5 "2023-08-07T13:26:58Z")

</div>

Hi @jLopezbarb ,

Thanks for responding. Below response

- Do you have any firewall activated locally? If so, can you try running the command again with it disabled- I run locally other applications such as tomcat and it works. Firewall not enabled.

- Do you get any error from the command? After the logs your provided did it end up with an error or is in an infinite loop- I get “Syncthing local=true didn’t respond after 1m0s”

- What’s your okteto version? Run `okteto version`- 2.18.0

- How does your okteto manifest looks like? (removing personal information)- I took sample app from okteto only. Below

build:  
hello-world:  
image: repo/java-maven-hello-world:1.0.0  
context: k3d-abcd1  
deploy:

- kubectl apply -f k8s.yml  
dev:  
hello-world:  
image: okteto/maven:3  
command: bash  
sync:
  - .:/usr/src/app  
forward:
  - 5005:5005  
volumes:
  - /root/.m2

---

<div class="post-metadata">

**Author:** ![adripedriza](https://sea1.discourse-cdn.com/flex019/user_avatar/community.okteto.com/adripedriza/32/297_2.png) [@adripedriza](https://community.okteto.com/u/adripedriza)\
**Post date:** [August 8, 2023, 3:20pm UTC](https://community.okteto.com/t/syncing-fails-when-running-okteto-with-local-kubernetes-cluster/992/6 "2023-08-08T15:20:37Z")

</div>

Hi @prasanta

can you provide the output about the Syncthing service stored in `$OKTETO_HOME/.okteto/<namespace-in-use>/hello-world/syncthing.log` ? Are you able to access synching GUI? you can check needed values if you exec `okteto status --info`.

---

<div class="post-metadata">

**Author:** ![prasanta](https://avatars.discourse-cdn.com/v4/letter/p/bbce88/32.png) [@prasanta](https://community.okteto.com/u/prasanta)\
**Post date:** [August 9, 2023, 5:04am UTC](https://community.okteto.com/t/syncing-fails-when-running-okteto-with-local-kubernetes-cluster/992/7 "2023-08-09T05:04:03Z")

</div>

Hi @adripedriza

When I am running okteto up below contents

```auto
apikey: cnd
password: 41d65e3c-b250-41de-8d30-242b43857359
folders:
- name: "1"
  localPath: C:\projects\okteto\java-maven-getting-started
  remotePath: /usr/src/app
local: localhost:50664
remote: localhost:50663

```

Also I am unable to access “…localhost:50663”(pop up appears but I could not authenticate). Afterone min I am getting “activate failed with: syncthing local=true didn’t respond after 1m0s” in okteto.log

Also during one min when I run okteto status --info I get below message

```auto
 okteto status --info
 i Using zenith @ k3d-<domain> as context
⠹ Activating your development container...

```

---

<div class="post-metadata">

**Author:** ![adripedriza](https://sea1.discourse-cdn.com/flex019/user_avatar/community.okteto.com/adripedriza/32/297_2.png) [@adripedriza](https://community.okteto.com/u/adripedriza)\
**Post date:** [August 9, 2023, 10:52am UTC](https://community.okteto.com/t/syncing-fails-when-running-okteto-with-local-kubernetes-cluster/992/8 "2023-08-09T10:52:36Z")

</div>

@prasanta can you share the content of syncthing logs? you can find it at `$OKTETO_HOME/.okteto/<namespace-in-use>/hello-world/syncthing.log`

---

<div class="post-metadata">

**Author:** ![prasanta](https://avatars.discourse-cdn.com/v4/letter/p/bbce88/32.png) [@prasanta](https://community.okteto.com/u/prasanta)\
**Post date:** [August 9, 2023, 11:24am UTC](https://community.okteto.com/t/syncing-fails-when-running-okteto-with-local-kubernetes-cluster/992/9 "2023-08-09T11:24:56Z")

</div>

Hi @adripedriza,

Interestingly I dont see syncthing.log created. Only okteto.log is generated.  
May be I need some permissions to run the same on my system(I am running the script in powersheel as administrator through). Is there any workaround you can suggest to run synching?

---

<div class="post-metadata">

**Author:** ![adripedriza](https://sea1.discourse-cdn.com/flex019/user_avatar/community.okteto.com/adripedriza/32/297_2.png) [@adripedriza](https://community.okteto.com/u/adripedriza)\
**Post date:** [August 9, 2023, 2:19pm UTC](https://community.okteto.com/t/syncing-fails-when-running-okteto-with-local-kubernetes-cluster/992/10 "2023-08-09T14:19:17Z")

</div>

@prasanta I cannot see your first message with the logs related to the issue. Can you post again the logs related to exec `okteto up --log-level=debug` command?

---

<div class="post-metadata">

**Author:** ![prasanta](https://avatars.discourse-cdn.com/v4/letter/p/bbce88/32.png) [@prasanta](https://community.okteto.com/u/prasanta)\
**Post date:** [August 10, 2023, 6:19am UTC](https://community.okteto.com/t/syncing-fails-when-running-okteto-with-local-kubernetes-cluster/992/11 "2023-08-10T06:19:32Z")

</div>

Hi @adripedriza

PFB logs

```auto
time="2023-08-09T10:22:55+05:30" level=info msg="file 'C:\\Users\\prasanta\\.okteto\\domain1\\hello-world\\okteto.state' updated successfully" action=dbcb3308-c6fb-4be0-ae2b-48aa4ae4e5c1 version=2.18.2
time="2023-08-09T10:22:58+05:30" level=info msg="waiting for syncthing local=true to be ready" action=dbcb3308-c6fb-4be0-ae2b-48aa4ae4e5c1 version=2.18.2
time="2023-08-09T10:23:01+05:30" level=info msg="retrying syncthing call[rest/system/ping] local=true: failed to call syncthing [rest/system/ping]: Get \"http://localhost:50524/rest/system/ping\": dial tcp [::1]:50524: connectex: No connection could be made because the target machine actively refused it." action=dbcb3308-c6fb-4be0-ae2b-48aa4ae4e5c1 version=2.18.2
time="2023-08-09T10:23:01+05:30" level=info msg="error pinging syncthing: failed to call syncthing [rest/system/ping]: Get \"http://localhost:50524/rest/system/ping\": dial tcp [::1]:50524: connectex: No connection could be made because the target machine actively refused it." action=dbcb3308-c6fb-4be0-ae2b-48aa4ae4e5c1 version=2.18.2
time="2023-08-09T10:23:01+05:30" level=info msg="syncthing local=true is not ready yet" action=dbcb3308-c6fb-4be0-ae2b-48aa4ae4e5c1 version=2.18.2
time="2023-08-09T10:23:04+05:30" level=info msg="retrying syncthing call[rest/system/ping] local=true: failed to call syncthing [rest/system/ping]: Get \"http://localhost:50524/rest/system/ping\": dial tcp [::1]:50524: connectex: No connection could be made because the target machine actively refused it." action=dbcb3308-c6fb-4be0-ae2b-48aa4ae4e5c1 version=2.18.2
time="2023-08-09T10:23:04+05:30" level=info msg="error pinging syncthing: failed to call syncthing [rest/system/ping]: Get \"http://localhost:50524/rest/system/ping\": dial tcp [::1]:50524: connectex: No connection could be made because the target machine actively refused it." action=dbcb3308-c6fb-4be0-ae2b-48aa4ae4e5c1 version=2.18.2
time="2023-08-09T10:23:06+05:30" level=info msg="retrying syncthing call[rest/system/ping] local=true: failed to call syncthing [rest/system/ping]: Get \"http://localhost:50524/rest/system/ping\": dial tcp [::1]:50524: connectex: No connection could be made because the target machine actively refused it." action=dbcb3308-c6fb-4be0-ae2b-48aa4ae4e5c1 version=2.18.2
time="2023-08-09T10:23:06+05:30" level=info msg="error pinging syncthing: failed to call syncthing [rest/system/ping]: Get \"http://localhost:50524/rest/system/ping\": dial tcp [::1]:50524: connectex: No connection could be made because the target machine actively refused it." action=dbcb3308-c6fb-4be0-ae2b-48aa4ae4e5c1 version=2.18.2
time="2023-08-09T10:23:09+05:30" level=info msg="retrying syncthing call[rest/system/ping] local=true: failed to call syncthing [rest/system/ping]: Get \"http://localhost:50524/rest/system/ping\": dial tcp [::1]:50524: connectex: No connection could be made because the target machine actively refused it." action=dbcb3308-c6fb-4be0-ae2b-48aa4ae4e5c1 version=2.18.2
time="2023-08-09T10:23:09+05:30" level=info msg="error pinging syncthing: failed to call syncthing [rest/system/ping]: Get \"http://localhost:50524/rest/system/ping\": dial tcp [::1]:50524: connectex: No connection could be made because the target machine actively refused it." action=dbcb3308-c6fb-4be0-ae2b-48aa4ae4e5c1 version=2.18.2
time="2023-08-09T10:23:11+05:30" level=info msg="retrying syncthing call[rest/system/ping] local=true: failed to call syncthing [rest/system/ping]: Get \"http://localhost:50524/rest/system/ping\": dial tcp [::1]:50524: connectex: No connection could be made because the target machine actively refused it." action=dbcb3308-c6fb-4be0-ae2b-48aa4ae4e5c1 version=2.18.2
time="2023-08-09T10:23:11+05:30" level=info msg="error pinging syncthing: failed to call syncthing [rest/system/ping]: Get \"http://localhost:50524/rest/system/ping\": dial tcp [::1]:50524: connectex: No connection could be made because the target machine actively refused it." action=dbcb3308-c6fb-4be0-ae2b-48aa4ae4e5c1 version=2.18.2
time="2023-08-09T10:23:14+05:30" level=info msg="retrying syncthing call[rest/system/ping] local=true: failed to call syncthing [rest/system/ping]: Get \"http://localhost:50524/rest/system/ping\": dial tcp [::1]:50524: connectex: No connection could be made because the target machine actively refused it." action=dbcb3308-c6fb-4be0-ae2b-48aa4ae4e5c1 version=2.18.2
time="2023-08-09T10:23:14+05:30" level=info msg="error pinging syncthing: failed to call syncthing [rest/system/ping]: Get \"http://localhost:50524/rest/system/ping\": dial tcp [::1]:50524: connectex: No connection could be made because the target machine actively refused it." action=dbcb3308-c6fb-4be0-ae2b-48aa4ae4e5c1 version=2.18.2
time="2023-08-09T10:23:14+05:30" level=info msg="syncthing local=true is not ready yet" action=dbcb3308-c6fb-4be0-ae2b-48aa4ae4e5c1 version=2.18.2
time="2023-08-09T10:23:17+05:30" level=info msg="retrying syncthing call[rest/system/ping] local=true: failed to call syncthing [rest/system/ping]: Get \"http://localhost:50524/rest/system/ping\": dial tcp [::1]:50524: connectex: No connection could be made because the target machine actively refused it." action=dbcb3308-c6fb-4be0-ae2b-48aa4ae4e5c1 version=2.18.2
time="2023-08-09T10:23:17+05:30" level=info msg="error pinging syncthing: failed to call syncthing [rest/system/ping]: Get \"http://localhost:50524/rest/system/ping\": dial tcp [::1]:50524: connectex: No connection could be made because the target machine actively refused it." action=dbcb3308-c6fb-4be0-ae2b-48aa4ae4e5c1 version=2.18.2
time="2023-08-09T10:23:17+05:30" level=debug msg="Error closing remote connection: EOF" action=dbcb3308-c6fb-4be0-ae2b-48aa4ae4e5c1 version=2.18.2
time="2023-08-09T10:23:17+05:30" level=debug msg="Error closing remote connection: EOF" action=dbcb3308-c6fb-4be0-ae2b-48aa4ae4e5c1 version=2.18.2
time="2023-08-09T10:23:18+05:30" level=debug msg="Error closing remote connection: EOF" action=dbcb3308-c6fb-4be0-ae2b-48aa4ae4e5c1 version=2.18.2
time="2023-08-09T10:23:19+05:30" level=info msg="retrying syncthing call[rest/system/ping] local=true: failed to call syncthing [rest/system/ping]: Get \"http://localhost:50524/rest/system/ping\": dial tcp [::1]:50524: connectex: No connection could be made because the target machine actively refused it." action=dbcb3308-c6fb-4be0-ae2b-48aa4ae4e5c1 version=2.18.2
time="2023-08-09T10:23:19+05:30" level=info msg="error pinging syncthing: failed to call syncthing [rest/system/ping]: Get \"http://localhost:50524/rest/system/ping\": dial tcp [::1]:50524: connectex: No connection could be made because the target machine actively refused it." action=dbcb3308-c6fb-4be0-ae2b-48aa4ae4e5c1 version=2.18.2
time="2023-08-09T10:23:22+05:30" level=info msg="retrying syncthing call[rest/system/ping] local=true: failed to call syncthing [rest/system/ping]: Get \"http://localhost:50524/rest/system/ping\": dial tcp [::1]:50524: connectex: No connection could be made because the target machine actively refused it." action=dbcb3308-c6fb-4be0-ae2b-48aa4ae4e5c1 version=2.18.2
time="2023-08-09T10:23:22+05:30" level=info msg="error pinging syncthing: failed to call syncthing [rest/system/ping]: Get \"http://localhost:50524/rest/system/ping\": dial tcp [::1]:50524: connectex: No connection could be made because the target machine actively refused it." action=dbcb3308-c6fb-4be0-ae2b-48aa4ae4e5c1 version=2.18.2
time="2023-08-09T10:23:24+05:30" level=info msg="retrying syncthing call[rest/system/ping] local=true: failed to call syncthing [rest/system/ping]: Get \"http://localhost:50524/rest/system/ping\": dial tcp [::1]:50524: connectex: No connection could be made because the target machine actively refused it." action=dbcb3308-c6fb-4be0-ae2b-48aa4ae4e5c1 version=2.18.2
time="2023-08-09T10:23:24+05:30" level=info msg="error pinging syncthing: failed to call syncthing [rest/system/ping]: Get \"http://localhost:50524/rest/system/ping\": dial tcp [::1]:50524: connectex: No connection could be made because the target machine actively refused it." action=dbcb3308-c6fb-4be0-ae2b-48aa4ae4e5c1 version=2.18.2
time="2023-08-09T10:23:27+05:30" level=info msg="retrying syncthing call[rest/system/ping] local=true: failed to call syncthing [rest/system/ping]: Get \"http://localhost:50524/rest/system/ping\": dial tcp [::1]:50524: connectex: No connection could be made because the target machine actively refused it." action=dbcb3308-c6fb-4be0-ae2b-48aa4ae4e5c1 version=2.18.2
time="2023-08-09T10:23:27+05:30" level=info msg="error pinging syncthing: failed to call syncthing [rest/system/ping]: Get \"http://localhost:50524/rest/system/ping\": dial tcp [::1]:50524: connectex: No connection could be made because the target machine actively refused it." action=dbcb3308-c6fb-4be0-ae2b-48aa4ae4e5c1 version=2.18.2
time="2023-08-09T10:23:27+05:30" level=info msg="syncthing local=true is not ready yet" action=dbcb3308-c6fb-4be0-ae2b-48aa4ae4e5c1 version=2.18.2
time="2023-08-09T10:23:29+05:30" level=info msg="retrying syncthing call[rest/system/ping] local=true: failed to call syncthing [rest/system/ping]: Get \"http://localhost:50524/rest/system/ping\": dial tcp [::1]:50524: connectex: No connection could be made because the target machine actively refused it." action=dbcb3308-c6fb-4be0-ae2b-48aa4ae4e5c1 version=2.18.2
time="2023-08-09T10:23:29+05:30" level=info msg="error pinging syncthing: failed to call syncthing [rest/system/ping]: Get \"http://localhost:50524/rest/system/ping\": dial tcp [::1]:50524: connectex: No connection could be made because the target machine actively refused it." action=dbcb3308-c6fb-4be0-ae2b-48aa4ae4e5c1 version=2.18.2
time="2023-08-09T10:23:32+05:30" level=info msg="retrying syncthing call[rest/system/ping] local=true: failed to call syncthing [rest/system/ping]: Get \"http://localhost:50524/rest/system/ping\": dial tcp [::1]:50524: connectex: No connection could be made because the target machine actively refused it." action=dbcb3308-c6fb-4be0-ae2b-48aa4ae4e5c1 version=2.18.2
time="2023-08-09T10:23:32+05:30" level=info msg="error pinging syncthing: failed to call syncthing [rest/system/ping]: Get \"http://localhost:50524/rest/system/ping\": dial tcp [::1]:50524: connectex: No connection could be made because the target machine actively refused it." action=dbcb3308-c6fb-4be0-ae2b-48aa4ae4e5c1 version=2.18.2
time="2023-08-09T10:23:34+05:30" level=info msg="retrying syncthing call[rest/system/ping] local=true: failed to call syncthing [rest/system/ping]: Get \"http://localhost:50524/rest/system/ping\": dial tcp [::1]:50524: connectex: No connection could be made because the target machine actively refused it." action=dbcb3308-c6fb-4be0-ae2b-48aa4ae4e5c1 version=2.18.2
time="2023-08-09T10:23:34+05:30" level=info msg="error pinging syncthing: failed to call syncthing [rest/system/ping]: Get \"http://localhost:50524/rest/system/ping\": dial tcp [::1]:50524: connectex: No connection could be made because the target machine actively refused it." action=dbcb3308-c6fb-4be0-ae2b-48aa4ae4e5c1 version=2.18.2
time="2023-08-09T10:23:37+05:30" level=info msg="retrying syncthing call[rest/system/ping] local=true: failed to call syncthing [rest/system/ping]: Get \"http://localhost:50524/rest/system/ping\": dial tcp [::1]:50524: connectex: No connection could be made because the target machine actively refused it." action=dbcb3308-c6fb-4be0-ae2b-48aa4ae4e5c1 version=2.18.2
time="2023-08-09T10:23:37+05:30" level=info msg="error pinging syncthing: failed to call syncthing [rest/system/ping]: Get \"http://localhost:50524/rest/system/ping\": dial tcp [::1]:50524: connectex: No connection could be made because the target machine actively refused it." action=dbcb3308-c6fb-4be0-ae2b-48aa4ae4e5c1 version=2.18.2
time="2023-08-09T10:23:39+05:30" level=info msg="retrying syncthing call[rest/system/ping] local=true: failed to call syncthing [rest/system/ping]: Get \"http://localhost:50524/rest/system/ping\": dial tcp [::1]:50524: connectex: No connection could be made because the target machine actively refused it." action=dbcb3308-c6fb-4be0-ae2b-48aa4ae4e5c1 version=2.18.2
time="2023-08-09T10:23:39+05:30" level=info msg="error pinging syncthing: failed to call syncthing [rest/system/ping]: Get \"http://localhost:50524/rest/system/ping\": dial tcp [::1]:50524: connectex: No connection could be made because the target machine actively refused it." action=dbcb3308-c6fb-4be0-ae2b-48aa4ae4e5c1 version=2.18.2
time="2023-08-09T10:23:39+05:30" level=info msg="syncthing local=true is not ready yet" action=dbcb3308-c6fb-4be0-ae2b-48aa4ae4e5c1 version=2.18.2
time="2023-08-09T10:23:42+05:30" level=info msg="retrying syncthing call[rest/system/ping] local=true: failed to call syncthing [rest/system/ping]: Get \"http://localhost:50524/rest/system/ping\": dial tcp [::1]:50524: connectex: No connection could be made because the target machine actively refused it." action=dbcb3308-c6fb-4be0-ae2b-48aa4ae4e5c1 version=2.18.2
time="2023-08-09T10:23:42+05:30" level=info msg="error pinging syncthing: failed to call syncthing [rest/system/ping]: Get \"http://localhost:50524/rest/system/ping\": dial tcp [::1]:50524: connectex: No connection could be made because the target machine actively refused it." action=dbcb3308-c6fb-4be0-ae2b-48aa4ae4e5c1 version=2.18.2
time="2023-08-09T10:23:44+05:30" level=info msg="retrying syncthing call[rest/system/ping] local=true: failed to call syncthing [rest/system/ping]: Get \"http://localhost:50524/rest/system/ping\": dial tcp [::1]:50524: connectex: No connection could be made because the target machine actively refused it." action=dbcb3308-c6fb-4be0-ae2b-48aa4ae4e5c1 version=2.18.2
time="2023-08-09T10:23:44+05:30" level=info msg="error pinging syncthing: failed to call syncthing [rest/system/ping]: Get \"http://localhost:50524/rest/system/ping\": dial tcp [::1]:50524: connectex: No connection could be made because the target machine actively refused it." action=dbcb3308-c6fb-4be0-ae2b-48aa4ae4e5c1 version=2.18.2
time="2023-08-09T10:23:47+05:30" level=info msg="retrying syncthing call[rest/system/ping] local=true: failed to call syncthing [rest/system/ping]: Get \"http://localhost:50524/rest/system/ping\": dial tcp [::1]:50524: connectex: No connection could be made because the target machine actively refused it." action=dbcb3308-c6fb-4be0-ae2b-48aa4ae4e5c1 version=2.18.2
time="2023-08-09T10:23:47+05:30" level=info msg="error pinging syncthing: failed to call syncthing [rest/system/ping]: Get \"http://localhost:50524/rest/system/ping\": dial tcp [::1]:50524: connectex: No connection could be made because the target machine actively refused it." action=dbcb3308-c6fb-4be0-ae2b-48aa4ae4e5c1 version=2.18.2
time="2023-08-09T10:23:49+05:30" level=info msg="retrying syncthing call[rest/system/ping] local=true: failed to call syncthing [rest/system/ping]: Get \"http://localhost:50524/rest/system/ping\": dial tcp [::1]:50524: connectex: No connection could be made because the target machine actively refused it." action=dbcb3308-c6fb-4be0-ae2b-48aa4ae4e5c1 version=2.18.2
time="2023-08-09T10:23:49+05:30" level=info msg="error pinging syncthing: failed to call syncthing [rest/system/ping]: Get \"http://localhost:50524/rest/system/ping\": dial tcp [::1]:50524: connectex: No connection could be made because the target machine actively refused it." action=dbcb3308-c6fb-4be0-ae2b-48aa4ae4e5c1 version=2.18.2
time="2023-08-09T10:23:52+05:30" level=info msg="retrying syncthing call[rest/system/ping] local=true: failed to call syncthing [rest/system/ping]: Get \"http://localhost:50524/rest/system/ping\": dial tcp [::1]:50524: connectex: No connection could be made because the target machine actively refused it." action=dbcb3308-c6fb-4be0-ae2b-48aa4ae4e5c1 version=2.18.2
time="2023-08-09T10:23:52+05:30" level=info msg="error pinging syncthing: failed to call syncthing [rest/system/ping]: Get \"http://localhost:50524/rest/system/ping\": dial tcp [::1]:50524: connectex: No connection could be made because the target machine actively refused it." action=dbcb3308-c6fb-4be0-ae2b-48aa4ae4e5c1 version=2.18.2
time="2023-08-09T10:23:52+05:30" level=info msg="syncthing local=true is not ready yet" action=dbcb3308-c6fb-4be0-ae2b-48aa4ae4e5c1 version=2.18.2
time="2023-08-09T10:23:55+05:30" level=info msg="retrying syncthing call[rest/system/ping] local=true: failed to call syncthing [rest/system/ping]: Get \"http://localhost:50524/rest/system/ping\": dial tcp [::1]:50524: connectex: No connection could be made because the target machine actively refused it." action=dbcb3308-c6fb-4be0-ae2b-48aa4ae4e5c1 version=2.18.2
time="2023-08-09T10:23:55+05:30" level=info msg="error pinging syncthing: failed to call syncthing [rest/system/ping]: Get \"http://localhost:50524/rest/system/ping\": dial tcp [::1]:50524: connectex: No connection could be made because the target machine actively refused it." action=dbcb3308-c6fb-4be0-ae2b-48aa4ae4e5c1 version=2.18.2
time="2023-08-09T10:23:57+05:30" level=info msg="retrying syncthing call[rest/system/ping] local=true: failed to call syncthing [rest/system/ping]: Get \"http://localhost:50524/rest/system/ping\": dial tcp [::1]:50524: connectex: No connection could be made because the target machine actively refused it." action=dbcb3308-c6fb-4be0-ae2b-48aa4ae4e5c1 version=2.18.2
time="2023-08-09T10:23:57+05:30" level=info msg="error pinging syncthing: failed to call syncthing [rest/system/ping]: Get \"http://localhost:50524/rest/system/ping\": dial tcp [::1]:50524: connectex: No connection could be made because the target machine actively refused it." action=dbcb3308-c6fb-4be0-ae2b-48aa4ae4e5c1 version=2.18.2
time="2023-08-09T10:24:00+05:30" level=info msg="retrying syncthing call[rest/system/ping] local=true: failed to call syncthing [rest/system/ping]: Get \"http://localhost:50524/rest/system/ping\": dial tcp [::1]:50524: connectex: No connection could be made because the target machine actively refused it." action=dbcb3308-c6fb-4be0-ae2b-48aa4ae4e5c1 version=2.18.2
time="2023-08-09T10:24:00+05:30" level=info msg="error pinging syncthing: failed to call syncthing [rest/system/ping]: Get \"http://localhost:50524/rest/system/ping\": dial tcp [::1]:50524: connectex: No connection could be made because the target machine actively refused it." action=dbcb3308-c6fb-4be0-ae2b-48aa4ae4e5c1 version=2.18.2
time="2023-08-09T10:24:00+05:30" level=info msg="starting shutdown sequence" action=dbcb3308-c6fb-4be0-ae2b-48aa4ae4e5c1 version=2.18.2
time="2023-08-09T10:24:00+05:30" level=info msg="sent cancellation signal" action=dbcb3308-c6fb-4be0-ae2b-48aa4ae4e5c1 version=2.18.2
time="2023-08-09T10:24:00+05:30" level=info msg="ssh forward localhost:50523->0.0.0.0:8384 -> done" action=dbcb3308-c6fb-4be0-ae2b-48aa4ae4e5c1 version=2.18.2
time="2023-08-09T10:24:00+05:30" level=info msg="ssh forward localhost:5005->0.0.0.0:5005 -> done" action=dbcb3308-c6fb-4be0-ae2b-48aa4ae4e5c1 version=2.18.2
time="2023-08-09T10:24:00+05:30" level=info msg="ssh forward localhost:50522->0.0.0.0:22000 -> done" action=dbcb3308-c6fb-4be0-ae2b-48aa4ae4e5c1 version=2.18.2
time="2023-08-09T10:24:00+05:30" level=info msg="stopping syncthing" action=dbcb3308-c6fb-4be0-ae2b-48aa4ae4e5c1 version=2.18.2
time="2023-08-09T10:24:00+05:30" level=info msg="failed to stop syncthing during shutdown: error getting syncthing process 26652: process does not exist" action=dbcb3308-c6fb-4be0-ae2b-48aa4ae4e5c1 version=2.18.2
time="2023-08-09T10:24:00+05:30" level=info msg="stopping forwarders" action=dbcb3308-c6fb-4be0-ae2b-48aa4ae4e5c1 version=2.18.2
time="2023-08-09T10:24:00+05:30" level=info msg="stopped k8s forwarder" action=dbcb3308-c6fb-4be0-ae2b-48aa4ae4e5c1 version=2.18.2
time="2023-08-09T10:24:00+05:30" level=debug msg="Error closing remote connection: EOF" action=dbcb3308-c6fb-4be0-ae2b-48aa4ae4e5c1 version=2.18.2
time="2023-08-09T10:24:00+05:30" level=debug msg="Error closing remote connection: EOF" action=dbcb3308-c6fb-4be0-ae2b-48aa4ae4e5c1 version=2.18.2
time="2023-08-09T10:24:00+05:30" level=debug msg="Error closing remote connection: EOF" action=dbcb3308-c6fb-4be0-ae2b-48aa4ae4e5c1 version=2.18.2
time="2023-08-09T10:24:00+05:30" level=info msg="stopped SSH forward manager" action=dbcb3308-c6fb-4be0-ae2b-48aa4ae4e5c1 version=2.18.2
time="2023-08-09T10:24:00+05:30" level=info msg="completed shutdown sequence" action=dbcb3308-c6fb-4be0-ae2b-48aa4ae4e5c1 version=2.18.2
time="2023-08-09T10:24:00+05:30" level=info msg="activate failed with: syncthing local=true didn't respond after 1m0s" action=dbcb3308-c6fb-4be0-ae2b-48aa4ae4e5c1 version=2.18.2
time="2023-08-09T10:24:00+05:30" level=info msg="exit signal received due to error: syncthing local=true didn't respond after 1m0s" action=dbcb3308-c6fb-4be0-ae2b-48aa4ae4e5c1 version=2.18.2

```

---

<div class="post-metadata">

**Author:** ![adripedriza](https://sea1.discourse-cdn.com/flex019/user_avatar/community.okteto.com/adripedriza/32/297_2.png) [@adripedriza](https://community.okteto.com/u/adripedriza)\
**Post date:** [August 10, 2023, 7:51am UTC](https://community.okteto.com/t/syncing-fails-when-running-okteto-with-local-kubernetes-cluster/992/12 "2023-08-10T07:51:07Z")

</div>

Hi @prasanta

to better debug what is happening in your case we would need all the output of the `okteto up --log-level=debug` command, from beginning to end. Could you send it to us? You can mask any sensitive information you consider.

Regards!

---

<div class="post-metadata">

**Author:** ![prasanta](https://avatars.discourse-cdn.com/v4/letter/p/bbce88/32.png) [@prasanta](https://community.okteto.com/u/prasanta)\
**Post date:** [August 14, 2023, 5:06am UTC](https://community.okteto.com/t/syncing-fails-when-running-okteto-with-local-kubernetes-cluster/992/13 "2023-08-14T05:06:23Z")

</div>

Hi @adripedriza ,

Please find below error details

```auto
time="2023-08-14T10:31:33+05:30" level=info msg="'.stignore' exists in folder 'C:\\projects\\okteto\\java-maven-getting-started'" action=66c8d5ba-9568-438b-9379-75f260fb3d8b version=2.18.2
time="2023-08-14T10:31:34+05:30" level=info msg="file C:\\Users\\prasanta\\.okteto\\domain1\\hello-world\\okteto.pid content has been modified" action=66c8d5ba-9568-438b-9379-75f260fb3d8b version=2.18.2
time="2023-08-14T10:31:34+05:30" level=info msg="activating development container retry=false" action=66c8d5ba-9568-438b-9379-75f260fb3d8b version=2.18.2
time="2023-08-14T10:31:34+05:30" level=info msg="updating file 'C:\\Users\\prasanta\\.okteto\\domain1\\hello-world\\okteto.state'" action=66c8d5ba-9568-438b-9379-75f260fb3d8b version=2.18.2
time="2023-08-14T10:31:34+05:30" level=info msg="file 'C:\\Users\\prasanta\\.okteto\\domain1\\hello-world\\okteto.state' updated successfully" action=66c8d5ba-9568-438b-9379-75f260fb3d8b version=2.18.2
time="2023-08-14T10:31:34+05:30" level=debug msg="calling registry index.docker.io" action=66c8d5ba-9568-438b-9379-75f260fb3d8b version=2.18.2
time="2023-08-14T10:31:34+05:30" level=debug msg="couldn't decode context certificate from pem: %!s(<nil>)" action=66c8d5ba-9568-438b-9379-75f260fb3d8b version=2.18.2
time="2023-08-14T10:31:37+05:30" level=debug msg="image with digest: docker.io/okteto/maven@sha256:2762b38848636ecd4caf3a61e49c50682e25f9a4686e20363d52af8b78551796" action=66c8d5ba-9568-438b-9379-75f260fb3d8b version=2.18.2
time="2023-08-14T10:31:37+05:30" level=info msg="local syncthing initialized: gui -> 50567, sync -> 50568" action=66c8d5ba-9568-438b-9379-75f260fb3d8b version=2.18.2
time="2023-08-14T10:31:37+05:30" level=info msg="remote syncthing initialized: gui -> 50566, sync -> 50565" action=66c8d5ba-9568-438b-9379-75f260fb3d8b version=2.18.2
time="2023-08-14T10:31:37+05:30" level=info msg="termitating previous syncthing process" action=66c8d5ba-9568-438b-9379-75f260fb3d8b version=2.18.2
time="2023-08-14T10:31:37+05:30" level=info msg="updating file 'C:\\Users\\prasanta\\.okteto\\domain1\\hello-world\\okteto.state'" action=66c8d5ba-9568-438b-9379-75f260fb3d8b version=2.18.2
time="2023-08-14T10:31:37+05:30" level=info msg="file 'C:\\Users\\prasanta\\.okteto\\domain1\\hello-world\\okteto.state' updated successfully" action=66c8d5ba-9568-438b-9379-75f260fb3d8b version=2.18.2
time="2023-08-14T10:31:37+05:30" level=info msg="updating volume claim 'hello-world-okteto'" action=66c8d5ba-9568-438b-9379-75f260fb3d8b version=2.18.2
time="2023-08-14T10:31:40+05:30" level=info msg="create deployment secrets" action=66c8d5ba-9568-438b-9379-75f260fb3d8b version=2.18.2
time="2023-08-14T10:31:40+05:30" level=info msg="updated okteto secret 'okteto-hello-world'" action=66c8d5ba-9568-438b-9379-75f260fb3d8b version=2.18.2
time="2023-08-14T10:31:42+05:30" level=info msg="updating file 'C:\\Users\\prasanta\\.okteto\\domain1\\hello-world\\okteto.state'" action=66c8d5ba-9568-438b-9379-75f260fb3d8b version=2.18.2
time="2023-08-14T10:31:42+05:30" level=info msg="file 'C:\\Users\\prasanta\\.okteto\\domain1\\hello-world\\okteto.state' updated successfully" action=66c8d5ba-9568-438b-9379-75f260fb3d8b version=2.18.2
time="2023-08-14T10:31:42+05:30" level=info msg="dev pod hello-world-okteto-6f6468d445-xmkz4 is now Running" action=66c8d5ba-9568-438b-9379-75f260fb3d8b version=2.18.2
time="2023-08-14T10:31:42+05:30" level=info msg="starting SSH port forwards" action=66c8d5ba-9568-438b-9379-75f260fb3d8b version=2.18.2
time="2023-08-14T10:31:43+05:30" level=info msg="starting SSH forward manager" action=66c8d5ba-9568-438b-9379-75f260fb3d8b version=2.18.2
time="2023-08-14T10:31:43+05:30" level=info msg="SSH forward manager retry 1" action=66c8d5ba-9568-438b-9379-75f260fb3d8b version=2.18.2
time="2023-08-14T10:31:44+05:30" level=info msg="all k8s port-forwards are connected" action=66c8d5ba-9568-438b-9379-75f260fb3d8b version=2.18.2
time="2023-08-14T10:31:44+05:30" level=info msg="k8s port forward to dev pod connected" action=66c8d5ba-9568-438b-9379-75f260fb3d8b version=2.18.2
time="2023-08-14T10:31:44+05:30" level=info msg="starting SSH connection pool on :50491" action=66c8d5ba-9568-438b-9379-75f260fb3d8b version=2.18.2
time="2023-08-14T10:31:46+05:30" level=info msg="ssh ping to :50491 was successful" action=66c8d5ba-9568-438b-9379-75f260fb3d8b version=2.18.2
time="2023-08-14T10:31:46+05:30" level=info msg="updating file 'C:\\Users\\prasanta\\.okteto\\domain1\\hello-world\\okteto.state'" action=66c8d5ba-9568-438b-9379-75f260fb3d8b version=2.18.2
time="2023-08-14T10:31:46+05:30" level=info msg="file 'C:\\Users\\prasanta\\.okteto\\domain1\\hello-world\\okteto.state' updated successfully" action=66c8d5ba-9568-438b-9379-75f260fb3d8b version=2.18.2
time="2023-08-14T10:31:46+05:30" level=info msg="waiting for syncthing local=true to be ready" action=66c8d5ba-9568-438b-9379-75f260fb3d8b version=2.18.2
time="2023-08-14T10:31:49+05:30" level=info msg="retrying syncthing call[rest/system/ping] local=true: failed to call syncthing [rest/system/ping]: Get \"http://localhost:50567/rest/system/ping\": dial tcp [::1]:50567: connectex: No connection could be made because the target machine actively refused it." action=66c8d5ba-9568-438b-9379-75f260fb3d8b version=2.18.2
time="2023-08-14T10:31:49+05:30" level=info msg="error pinging syncthing: failed to call syncthing [rest/system/ping]: Get \"http://localhost:50567/rest/system/ping\": dial tcp [::1]:50567: connectex: No connection could be made because the target machine actively refused it." action=66c8d5ba-9568-438b-9379-75f260fb3d8b version=2.18.2
time="2023-08-14T10:31:49+05:30" level=info msg="syncthing local=true is not ready yet" action=66c8d5ba-9568-438b-9379-75f260fb3d8b version=2.18.2
time="2023-08-14T10:31:52+05:30" level=info msg="retrying syncthing call[rest/system/ping] local=true: failed to call syncthing [rest/system/ping]: Get \"http://localhost:50567/rest/system/ping\": dial tcp [::1]:50567: connectex: No connection could be made because the target machine actively refused it." action=66c8d5ba-9568-438b-9379-75f260fb3d8b version=2.18.2
time="2023-08-14T10:31:52+05:30" level=info msg="error pinging syncthing: failed to call syncthing [rest/system/ping]: Get \"http://localhost:50567/rest/system/ping\": dial tcp [::1]:50567: connectex: No connection could be made because the target machine actively refused it." action=66c8d5ba-9568-438b-9379-75f260fb3d8b version=2.18.2
time="2023-08-14T10:31:54+05:30" level=info msg="retrying syncthing call[rest/system/ping] local=true: failed to call syncthing [rest/system/ping]: Get \"http://localhost:50567/rest/system/ping\": dial tcp [::1]:50567: connectex: No connection could be made because the target machine actively refused it." action=66c8d5ba-9568-438b-9379-75f260fb3d8b version=2.18.2
time="2023-08-14T10:31:54+05:30" level=info msg="error pinging syncthing: failed to call syncthing [rest/system/ping]: Get \"http://localhost:50567/rest/system/ping\": dial tcp [::1]:50567: connectex: No connection could be made because the target machine actively refused it." action=66c8d5ba-9568-438b-9379-75f260fb3d8b version=2.18.2
time="2023-08-14T10:31:57+05:30" level=info msg="retrying syncthing call[rest/system/ping] local=true: failed to call syncthing [rest/system/ping]: Get \"http://localhost:50567/rest/system/ping\": dial tcp [::1]:50567: connectex: No connection could be made because the target machine actively refused it." action=66c8d5ba-9568-438b-9379-75f260fb3d8b version=2.18.2
time="2023-08-14T10:31:57+05:30" level=info msg="error pinging syncthing: failed to call syncthing [rest/system/ping]: Get \"http://localhost:50567/rest/system/ping\": dial tcp [::1]:50567: connectex: No connection could be made because the target machine actively refused it." action=66c8d5ba-9568-438b-9379-75f260fb3d8b version=2.18.2
time="2023-08-14T10:31:59+05:30" level=info msg="retrying syncthing call[rest/system/ping] local=true: failed to call syncthing [rest/system/ping]: Get \"http://localhost:50567/rest/system/ping\": dial tcp [::1]:50567: connectex: No connection could be made because the target machine actively refused it." action=66c8d5ba-9568-438b-9379-75f260fb3d8b version=2.18.2
time="2023-08-14T10:31:59+05:30" level=info msg="error pinging syncthing: failed to call syncthing [rest/system/ping]: Get \"http://localhost:50567/rest/system/ping\": dial tcp [::1]:50567: connectex: No connection could be made because the target machine actively refused it." action=66c8d5ba-9568-438b-9379-75f260fb3d8b version=2.18.2
time="2023-08-14T10:32:02+05:30" level=info msg="retrying syncthing call[rest/system/ping] local=true: failed to call syncthing [rest/system/ping]: Get \"http://localhost:50567/rest/system/ping\": dial tcp [::1]:50567: connectex: No connection could be made because the target machine actively refused it." action=66c8d5ba-9568-438b-9379-75f260fb3d8b version=2.18.2
time="2023-08-14T10:32:02+05:30" level=info msg="error pinging syncthing: failed to call syncthing [rest/system/ping]: Get \"http://localhost:50567/rest/system/ping\": dial tcp [::1]:50567: connectex: No connection could be made because the target machine actively refused it." action=66c8d5ba-9568-438b-9379-75f260fb3d8b version=2.18.2
time="2023-08-14T10:32:02+05:30" level=info msg="syncthing local=true is not ready yet" action=66c8d5ba-9568-438b-9379-75f260fb3d8b version=2.18.2
time="2023-08-14T10:32:04+05:30" level=info msg="retrying syncthing call[rest/system/ping] local=true: failed to call syncthing [rest/system/ping]: Get \"http://localhost:50567/rest/system/ping\": dial tcp [::1]:50567: connectex: No connection could be made because the target machine actively refused it." action=66c8d5ba-9568-438b-9379-75f260fb3d8b version=2.18.2
time="2023-08-14T10:32:04+05:30" level=info msg="error pinging syncthing: failed to call syncthing [rest/system/ping]: Get \"http://localhost:50567/rest/system/ping\": dial tcp [::1]:50567: connectex: No connection could be made because the target machine actively refused it." action=66c8d5ba-9568-438b-9379-75f260fb3d8b version=2.18.2
time="2023-08-14T10:32:07+05:30" level=info msg="retrying syncthing call[rest/system/ping] local=true: failed to call syncthing [rest/system/ping]: Get \"http://localhost:50567/rest/system/ping\": dial tcp [::1]:50567: connectex: No connection could be made because the target machine actively refused it." action=66c8d5ba-9568-438b-9379-75f260fb3d8b version=2.18.2
time="2023-08-14T10:32:07+05:30" level=info msg="error pinging syncthing: failed to call syncthing [rest/system/ping]: Get \"http://localhost:50567/rest/system/ping\": dial tcp [::1]:50567: connectex: No connection could be made because the target machine actively refused it." action=66c8d5ba-9568-438b-9379-75f260fb3d8b version=2.18.2
time="2023-08-14T10:32:09+05:30" level=info msg="retrying syncthing call[rest/system/ping] local=true: failed to call syncthing [rest/system/ping]: Get \"http://localhost:50567/rest/system/ping\": dial tcp [::1]:50567: connectex: No connection could be made because the target machine actively refused it." action=66c8d5ba-9568-438b-9379-75f260fb3d8b version=2.18.2
time="2023-08-14T10:32:09+05:30" level=info msg="error pinging syncthing: failed to call syncthing [rest/system/ping]: Get \"http://localhost:50567/rest/system/ping\": dial tcp [::1]:50567: connectex: No connection could be made because the target machine actively refused it." action=66c8d5ba-9568-438b-9379-75f260fb3d8b version=2.18.2
time="2023-08-14T10:32:12+05:30" level=info msg="retrying syncthing call[rest/system/ping] local=true: failed to call syncthing [rest/system/ping]: Get \"http://localhost:50567/rest/system/ping\": dial tcp [::1]:50567: connectex: No connection could be made because the target machine actively refused it." action=66c8d5ba-9568-438b-9379-75f260fb3d8b version=2.18.2
time="2023-08-14T10:32:12+05:30" level=info msg="error pinging syncthing: failed to call syncthing [rest/system/ping]: Get \"http://localhost:50567/rest/system/ping\": dial tcp [::1]:50567: connectex: No connection could be made because the target machine actively refused it." action=66c8d5ba-9568-438b-9379-75f260fb3d8b version=2.18.2
time="2023-08-14T10:32:14+05:30" level=info msg="retrying syncthing call[rest/system/ping] local=true: failed to call syncthing [rest/system/ping]: Get \"http://localhost:50567/rest/system/ping\": dial tcp [::1]:50567: connectex: No connection could be made because the target machine actively refused it." action=66c8d5ba-9568-438b-9379-75f260fb3d8b version=2.18.2
time="2023-08-14T10:32:14+05:30" level=info msg="error pinging syncthing: failed to call syncthing [rest/system/ping]: Get \"http://localhost:50567/rest/system/ping\": dial tcp [::1]:50567: connectex: No connection could be made because the target machine actively refused it." action=66c8d5ba-9568-438b-9379-75f260fb3d8b version=2.18.2
time="2023-08-14T10:32:14+05:30" level=info msg="syncthing local=true is not ready yet" action=66c8d5ba-9568-438b-9379-75f260fb3d8b version=2.18.2
time="2023-08-14T10:32:17+05:30" level=info msg="retrying syncthing call[rest/system/ping] local=true: failed to call syncthing [rest/system/ping]: Get \"http://localhost:50567/rest/system/ping\": dial tcp [::1]:50567: connectex: No connection could be made because the target machine actively refused it." action=66c8d5ba-9568-438b-9379-75f260fb3d8b version=2.18.2
time="2023-08-14T10:32:17+05:30" level=info msg="error pinging syncthing: failed to call syncthing [rest/system/ping]: Get \"http://localhost:50567/rest/system/ping\": dial tcp [::1]:50567: connectex: No connection could be made because the target machine actively refused it." action=66c8d5ba-9568-438b-9379-75f260fb3d8b version=2.18.2
time="2023-08-14T10:32:19+05:30" level=info msg="retrying syncthing call[rest/system/ping] local=true: failed to call syncthing [rest/system/ping]: Get \"http://localhost:50567/rest/system/ping\": dial tcp [::1]:50567: connectex: No connection could be made because the target machine actively refused it." action=66c8d5ba-9568-438b-9379-75f260fb3d8b version=2.18.2
time="2023-08-14T10:32:19+05:30" level=info msg="error pinging syncthing: failed to call syncthing [rest/system/ping]: Get \"http://localhost:50567/rest/system/ping\": dial tcp [::1]:50567: connectex: No connection could be made because the target machine actively refused it." action=66c8d5ba-9568-438b-9379-75f260fb3d8b version=2.18.2
time="2023-08-14T10:32:22+05:30" level=info msg="retrying syncthing call[rest/system/ping] local=true: failed to call syncthing [rest/system/ping]: Get \"http://localhost:50567/rest/system/ping\": dial tcp [::1]:50567: connectex: No connection could be made because the target machine actively refused it." action=66c8d5ba-9568-438b-9379-75f260fb3d8b version=2.18.2
time="2023-08-14T10:32:22+05:30" level=info msg="error pinging syncthing: failed to call syncthing [rest/system/ping]: Get \"http://localhost:50567/rest/system/ping\": dial tcp [::1]:50567: connectex: No connection could be made because the target machine actively refused it." action=66c8d5ba-9568-438b-9379-75f260fb3d8b version=2.18.2
time="2023-08-14T10:32:24+05:30" level=info msg="retrying syncthing call[rest/system/ping] local=true: failed to call syncthing [rest/system/ping]: Get \"http://localhost:50567/rest/system/ping\": dial tcp [::1]:50567: connectex: No connection could be made because the target machine actively refused it." action=66c8d5ba-9568-438b-9379-75f260fb3d8b version=2.18.2
time="2023-08-14T10:32:24+05:30" level=info msg="error pinging syncthing: failed to call syncthing [rest/system/ping]: Get \"http://localhost:50567/rest/system/ping\": dial tcp [::1]:50567: connectex: No connection could be made because the target machine actively refused it." action=66c8d5ba-9568-438b-9379-75f260fb3d8b version=2.18.2
time="2023-08-14T10:32:27+05:30" level=info msg="retrying syncthing call[rest/system/ping] local=true: failed to call syncthing [rest/system/ping]: Get \"http://localhost:50567/rest/system/ping\": dial tcp [::1]:50567: connectex: No connection could be made because the target machine actively refused it." action=66c8d5ba-9568-438b-9379-75f260fb3d8b version=2.18.2
time="2023-08-14T10:32:27+05:30" level=info msg="error pinging syncthing: failed to call syncthing [rest/system/ping]: Get \"http://localhost:50567/rest/system/ping\": dial tcp [::1]:50567: connectex: No connection could be made because the target machine actively refused it." action=66c8d5ba-9568-438b-9379-75f260fb3d8b version=2.18.2
time="2023-08-14T10:32:27+05:30" level=info msg="syncthing local=true is not ready yet" action=66c8d5ba-9568-438b-9379-75f260fb3d8b version=2.18.2
time="2023-08-14T10:32:29+05:30" level=info msg="retrying syncthing call[rest/system/ping] local=true: failed to call syncthing [rest/system/ping]: Get \"http://localhost:50567/rest/system/ping\": dial tcp [::1]:50567: connectex: No connection could be made because the target machine actively refused it." action=66c8d5ba-9568-438b-9379-75f260fb3d8b version=2.18.2
time="2023-08-14T10:32:29+05:30" level=info msg="error pinging syncthing: failed to call syncthing [rest/system/ping]: Get \"http://localhost:50567/rest/system/ping\": dial tcp [::1]:50567: connectex: No connection could be made because the target machine actively refused it." action=66c8d5ba-9568-438b-9379-75f260fb3d8b version=2.18.2
time="2023-08-14T10:32:32+05:30" level=info msg="retrying syncthing call[rest/system/ping] local=true: failed to call syncthing [rest/system/ping]: Get \"http://localhost:50567/rest/system/ping\": dial tcp [::1]:50567: connectex: No connection could be made because the target machine actively refused it." action=66c8d5ba-9568-438b-9379-75f260fb3d8b version=2.18.2
time="2023-08-14T10:32:32+05:30" level=info msg="error pinging syncthing: failed to call syncthing [rest/system/ping]: Get \"http://localhost:50567/rest/system/ping\": dial tcp [::1]:50567: connectex: No connection could be made because the target machine actively refused it." action=66c8d5ba-9568-438b-9379-75f260fb3d8b version=2.18.2
time="2023-08-14T10:32:34+05:30" level=info msg="retrying syncthing call[rest/system/ping] local=true: failed to call syncthing [rest/system/ping]: Get \"http://localhost:50567/rest/system/ping\": dial tcp [::1]:50567: connectex: No connection could be made because the target machine actively refused it." action=66c8d5ba-9568-438b-9379-75f260fb3d8b version=2.18.2
time="2023-08-14T10:32:34+05:30" level=info msg="error pinging syncthing: failed to call syncthing [rest/system/ping]: Get \"http://localhost:50567/rest/system/ping\": dial tcp [::1]:50567: connectex: No connection could be made because the target machine actively refused it." action=66c8d5ba-9568-438b-9379-75f260fb3d8b version=2.18.2
time="2023-08-14T10:32:37+05:30" level=info msg="retrying syncthing call[rest/system/ping] local=true: failed to call syncthing [rest/system/ping]: Get \"http://localhost:50567/rest/system/ping\": dial tcp [::1]:50567: connectex: No connection could be made because the target machine actively refused it." action=66c8d5ba-9568-438b-9379-75f260fb3d8b version=2.18.2
time="2023-08-14T10:32:37+05:30" level=info msg="error pinging syncthing: failed to call syncthing [rest/system/ping]: Get \"http://localhost:50567/rest/system/ping\": dial tcp [::1]:50567: connectex: No connection could be made because the target machine actively refused it." action=66c8d5ba-9568-438b-9379-75f260fb3d8b version=2.18.2
time="2023-08-14T10:32:39+05:30" level=info msg="retrying syncthing call[rest/system/ping] local=true: failed to call syncthing [rest/system/ping]: Get \"http://localhost:50567/rest/system/ping\": dial tcp [::1]:50567: connectex: No connection could be made because the target machine actively refused it." action=66c8d5ba-9568-438b-9379-75f260fb3d8b version=2.18.2
time="2023-08-14T10:32:39+05:30" level=info msg="error pinging syncthing: failed to call syncthing [rest/system/ping]: Get \"http://localhost:50567/rest/system/ping\": dial tcp [::1]:50567: connectex: No connection could be made because the target machine actively refused it." action=66c8d5ba-9568-438b-9379-75f260fb3d8b version=2.18.2
time="2023-08-14T10:32:39+05:30" level=info msg="syncthing local=true is not ready yet" action=66c8d5ba-9568-438b-9379-75f260fb3d8b version=2.18.2
time="2023-08-14T10:32:42+05:30" level=info msg="retrying syncthing call[rest/system/ping] local=true: failed to call syncthing [rest/system/ping]: Get \"http://localhost:50567/rest/system/ping\": dial tcp [::1]:50567: connectex: No connection could be made because the target machine actively refused it." action=66c8d5ba-9568-438b-9379-75f260fb3d8b version=2.18.2
time="2023-08-14T10:32:42+05:30" level=info msg="error pinging syncthing: failed to call syncthing [rest/system/ping]: Get \"http://localhost:50567/rest/system/ping\": dial tcp [::1]:50567: connectex: No connection could be made because the target machine actively refused it." action=66c8d5ba-9568-438b-9379-75f260fb3d8b version=2.18.2
time="2023-08-14T10:32:45+05:30" level=info msg="retrying syncthing call[rest/system/ping] local=true: failed to call syncthing [rest/system/ping]: Get \"http://localhost:50567/rest/system/ping\": dial tcp [::1]:50567: connectex: No connection could be made because the target machine actively refused it." action=66c8d5ba-9568-438b-9379-75f260fb3d8b version=2.18.2
time="2023-08-14T10:32:45+05:30" level=info msg="error pinging syncthing: failed to call syncthing [rest/system/ping]: Get \"http://localhost:50567/rest/system/ping\": dial tcp [::1]:50567: connectex: No connection could be made because the target machine actively refused it." action=66c8d5ba-9568-438b-9379-75f260fb3d8b version=2.18.2
time="2023-08-14T10:32:47+05:30" level=info msg="retrying syncthing call[rest/system/ping] local=true: failed to call syncthing [rest/system/ping]: Get \"http://localhost:50567/rest/system/ping\": dial tcp [::1]:50567: connectex: No connection could be made because the target machine actively refused it." action=66c8d5ba-9568-438b-9379-75f260fb3d8b version=2.18.2
time="2023-08-14T10:32:47+05:30" level=info msg="error pinging syncthing: failed to call syncthing [rest/system/ping]: Get \"http://localhost:50567/rest/system/ping\": dial tcp [::1]:50567: connectex: No connection could be made because the target machine actively refused it." action=66c8d5ba-9568-438b-9379-75f260fb3d8b version=2.18.2
time="2023-08-14T10:32:47+05:30" level=info msg="starting shutdown sequence" action=66c8d5ba-9568-438b-9379-75f260fb3d8b version=2.18.2
time="2023-08-14T10:32:47+05:30" level=info msg="sent cancellation signal" action=66c8d5ba-9568-438b-9379-75f260fb3d8b version=2.18.2
time="2023-08-14T10:32:47+05:30" level=info msg="stopping syncthing" action=66c8d5ba-9568-438b-9379-75f260fb3d8b version=2.18.2
time="2023-08-14T10:32:47+05:30" level=info msg="ssh forward localhost:50566->0.0.0.0:8384 -> done" action=66c8d5ba-9568-438b-9379-75f260fb3d8b version=2.18.2
time="2023-08-14T10:32:47+05:30" level=info msg="failed to stop syncthing during shutdown: error getting syncthing process 16240: process does not exist" action=66c8d5ba-9568-438b-9379-75f260fb3d8b version=2.18.2
time="2023-08-14T10:32:47+05:30" level=info msg="stopping forwarders" action=66c8d5ba-9568-438b-9379-75f260fb3d8b version=2.18.2
time="2023-08-14T10:32:47+05:30" level=info msg="ssh forward localhost:5005->0.0.0.0:5005 -> done" action=66c8d5ba-9568-438b-9379-75f260fb3d8b version=2.18.2
time="2023-08-14T10:32:47+05:30" level=info msg="ssh forward localhost:50565->0.0.0.0:22000 -> done" action=66c8d5ba-9568-438b-9379-75f260fb3d8b version=2.18.2
time="2023-08-14T10:32:47+05:30" level=info msg="stopped k8s forwarder" action=66c8d5ba-9568-438b-9379-75f260fb3d8b version=2.18.2
time="2023-08-14T10:32:47+05:30" level=info msg="stopped SSH forward manager" action=66c8d5ba-9568-438b-9379-75f260fb3d8b version=2.18.2
time="2023-08-14T10:32:47+05:30" level=info msg="completed shutdown sequence" action=66c8d5ba-9568-438b-9379-75f260fb3d8b version=2.18.2
time="2023-08-14T10:32:47+05:30" level=info msg="activate failed with: syncthing local=true didn't respond after 1m0s" action=66c8d5ba-9568-438b-9379-75f260fb3d8b version=2.18.2
time="2023-08-14T10:32:47+05:30" level=info msg="exit signal received due to error: syncthing local=true didn't respond after 1m0s" action=66c8d5ba-9568-438b-9379-75f260fb3d8b version=2.18.2

```

---

<div class="post-metadata">

**Author:** ![prasanta](https://avatars.discourse-cdn.com/v4/letter/p/bbce88/32.png) [@prasanta](https://community.okteto.com/u/prasanta)\
**Post date:** [August 14, 2023, 11:22am UTC](https://community.okteto.com/t/syncing-fails-when-running-okteto-with-local-kubernetes-cluster/992/14 "2023-08-14T11:22:05Z")

</div>

Hi @adripedriza,  
I think syncthing.exe is not allowed to execute in my system due to policy applied on my system. Not sure if there is any alternative or workaround you can suggest.

Thanks,  
Prasanta

---

<div class="post-metadata">

**Author:** ![adripedriza](https://sea1.discourse-cdn.com/flex019/user_avatar/community.okteto.com/adripedriza/32/297_2.png) [@adripedriza](https://community.okteto.com/u/adripedriza)\
**Post date:** [August 14, 2023, 1:06pm UTC](https://community.okteto.com/t/syncing-fails-when-running-okteto-with-local-kubernetes-cluster/992/15 "2023-08-14T13:06:57Z")

</div>

Hello @prasanta,

Sorry to hear that. Unfortunately, [Syncthing is the service used to sync](https://www.okteto.com/docs/reference/file-synchronization/) your local files with the development container in the cluster. As of today, there is no alternative to use the `okteto up` command with a sync service other than Syncthing.

Best regards

---

<div class="post-metadata">

**Author:** ![prasanta](https://avatars.discourse-cdn.com/v4/letter/p/bbce88/32.png) [@prasanta](https://community.okteto.com/u/prasanta)\
**Post date:** [August 24, 2023, 1:58pm UTC](https://community.okteto.com/t/syncing-fails-when-running-okteto-with-local-kubernetes-cluster/992/16 "2023-08-24T13:58:52Z")

</div>

Hi @adripedriza,  
Finally I could execute syncthing using remote development feature of intellij with WSL. Now it is working. Thanks you.
