# Obfs4 error: "general SOCKS server failure"

**URL:** https://forum.torproject.org/t/obfs4-error-general-socks-server-failure/12165
**Category:** Core Tor
**Created:** [April 2, 2024, 6:55am UTC](https://forum.torproject.org/t/obfs4-error-general-socks-server-failure/12165 "2024-04-02T06:55:05Z")
**Posts on this page:** 18
**Page:** 1

<div class="post-metadata">

### Author: ![birdofprey](https://forum.torproject.org/user_avatar/forum.torproject.org/birdofprey/32/950_2.png) [@birdofprey](https://forum.torproject.org/u/birdofprey)
#### Post date: [April 2, 2024, 6:55am UTC](https://forum.torproject.org/t/obfs4-error-general-socks-server-failure/12165/1 "2024-04-02T06:55:05Z")

</div>

Tor: 0.4.8.10-dev-20240401T153401Z-1~d13.trixie+1  
tor mode: obfs4  
error:

```auto
2024-04-02 06:24:38.024 [NOTICE] DisableNetwork is set. Tor will not make or accept non-control network connections. Shutting down all existing connections.
2024-04-02 06:24:38.052 [NOTICE] Opening Socks listener on 127.0.0.1:9150
2024-04-02 06:24:38.052 [NOTICE] Opened Socks listener connection (ready) on 127.0.0.1:9150
2024-04-02 06:24:40.014 [NOTICE] Bootstrapped 1% (conn_pt): Connecting to pluggable transport
2024-04-02 06:24:40.016 [NOTICE] Bootstrapped 2% (conn_done_pt): Connected to pluggable transport
2024-04-02 06:24:43.080 [WARN] Proxy Client: unable to connect OR connection (handshaking (proxy)) with ID=<none> RSA_ID=EC9EB3CA101B068172ACC3BB06B691F6C2EF5AB2 ("general SOCKS server failure")
2024-04-02 

```

---

<div class="post-metadata">

### Author: ![birdofprey](https://forum.torproject.org/user_avatar/forum.torproject.org/birdofprey/32/950_2.png) [@birdofprey](https://forum.torproject.org/u/birdofprey)
#### Post date: [April 4, 2024, 3:06am UTC](https://forum.torproject.org/t/obfs4-error-general-socks-server-failure/12165/2 "2024-04-04T03:06:35Z")

</div>

```auto
4 04 09:37:13 localhost.localdomain Tor[135420]: Problem bootstrapping. Stuck at 5% (conn): Connecting to a relay. (Connection timed out; TIMEOUT; >
4 04 09:37:13 localhost.localdomain Tor[135420]: 1477 connections have failed:
4 04 09:37:13 localhost.localdomain Tor[135420]: 1477 connections died in state connect()ing with SSL state (No SSL object)
4 04 09:39:11 localhost.localdomain Tor[135420]: Problem bootstrapping. Stuck at 5% (conn): Connecting to a relay. (Connection timed out; TIMEOUT; >
4 04 09:39:11 localhost.localdomain Tor[135420]: 1478 connections have failed:
4 04 09:39:11 localhost.localdomain Tor[135420]: 1478 connections died in state connect()ing with SSL state (No SSL object)
4 04 09:46:50 localhost.localdomain Tor[135420]: Problem bootstrapping. Stuck at 5% (conn): Connecting to a relay. (Connection timed out; TIMEOUT; >
4 04 09:46:50 localhost.localdomain Tor[135420]: 1479 connections have failed:
4 04 09:46:50 localhost.localdomain Tor[135420]: 1479 connections died in state connect()ing with SSL state (No SSL object)

```

Difficult to fly through firewalls

---

<div class="post-metadata">

### Author: ![MustBeMe](https://forum.torproject.org/user_avatar/forum.torproject.org/mustbeme/32/5073_2.png) [@MustBeMe](https://forum.torproject.org/u/MustBeMe)
#### Post date: [May 19, 2024, 8:18am UTC](https://forum.torproject.org/t/obfs4-error-general-socks-server-failure/12165/3 "2024-05-19T08:18:08Z")

</div>

You shouldn’t use bridges from any list you found on Google. Only use the bridges in [BridgesDB](https://bridges.torproject.org/), or use the Moat feature in Tor Browser.

To use Moat, click on the hamburger menu, go to Settings \> Connection \> Request a Bridge.

If you can not use Moat or BridgesDB, I can PM you bridges.

---

<div class="post-metadata">

### Author: ![gus](https://forum.torproject.org/user_avatar/forum.torproject.org/gus/32/16_2.png) [@gus](https://forum.torproject.org/u/gus)
#### Post date: [May 19, 2024, 9:43am UTC](https://forum.torproject.org/t/obfs4-error-general-socks-server-failure/12165/4 "2024-05-19T09:43:39Z")

</div>

If you’re connecting from mainland China, you should use webtunnel ([https://bridges.torproject.org/options/](https://bridges.torproject.org/options/) \> select Webtunnel ) or a private obfs4 bridge from Tor frontdesk.

Bridges distributed by some BridgeDB’s distributors are enumerated and blocked by the GFW.

> **[GitHub - torproject/tor4zh](https://github.com/torproject/tor4zh/)**
>
> Contribute to torproject/tor4zh development by creating an account on GitHub.

---

<div class="post-metadata">

### Author: ![MustBeMe](https://forum.torproject.org/user_avatar/forum.torproject.org/mustbeme/32/5073_2.png) [@MustBeMe](https://forum.torproject.org/u/MustBeMe)
#### Post date: [May 21, 2024, 11:35am UTC](https://forum.torproject.org/t/obfs4-error-general-socks-server-failure/12165/5 "2024-05-21T11:35:31Z")

</div>

@birdofprey Do you still need help?

---

<div class="post-metadata">

### Author: ![birdofprey](https://forum.torproject.org/user_avatar/forum.torproject.org/birdofprey/32/950_2.png) [@birdofprey](https://forum.torproject.org/u/birdofprey)
#### Post date: [May 22, 2024, 8:16am UTC](https://forum.torproject.org/t/obfs4-error-general-socks-server-failure/12165/6 "2024-05-22T08:16:33Z")

</div>

don’t flay gfw…

---

<div class="post-metadata">

### Author: ![MustBeMe](https://forum.torproject.org/user_avatar/forum.torproject.org/mustbeme/32/5073_2.png) [@MustBeMe](https://forum.torproject.org/u/MustBeMe)
#### Post date: [May 23, 2024, 8:55am UTC](https://forum.torproject.org/t/obfs4-error-general-socks-server-failure/12165/7 "2024-05-23T08:55:53Z")

</div>

Have you tried my suggestion/gus’ suggestion?

---

<div class="post-metadata">

### Author: ![birdofprey](https://forum.torproject.org/user_avatar/forum.torproject.org/birdofprey/32/950_2.png) [@birdofprey](https://forum.torproject.org/u/birdofprey)
#### Post date: [May 24, 2024, 11:27am UTC](https://forum.torproject.org/t/obfs4-error-general-socks-server-failure/12165/8 "2024-05-24T11:27:28Z")

</div>

yes i’m tried …and not connected…

---

<div class="post-metadata">

### Author: ![MustBeMe](https://forum.torproject.org/user_avatar/forum.torproject.org/mustbeme/32/5073_2.png) [@MustBeMe](https://forum.torproject.org/u/MustBeMe)
#### Post date: [May 25, 2024, 8:14pm UTC](https://forum.torproject.org/t/obfs4-error-general-socks-server-failure/12165/9 "2024-05-25T20:14:58Z")

</div>

I think China knows how to block webtunnel bridges now. Did you try getting bridges from Moat or BridgesDB? Did you update Tor?

Do you have internet while connecting to Tor? Did you specify bridges in torrc?

@gus Do you think that China figured out how to detect and block webtunnel bridges?

---

<div class="post-metadata">

### Author: ![birdofprey](https://forum.torproject.org/user_avatar/forum.torproject.org/birdofprey/32/950_2.png) [@birdofprey](https://forum.torproject.org/u/birdofprey)
#### Post date: [May 28, 2024, 1:19pm UTC](https://forum.torproject.org/t/obfs4-error-general-socks-server-failure/12165/10 "2024-05-28T13:19:37Z")

</div>

i’m use proxy internet:  
 ![截图 2024-05-28 20-38-20](https://forum.torproject.org/uploads/default/original/2X/e/e10f2e83274bece6cf6d748be35ddf10daca0a06.png)

connected ok

 ![截图 2024-05-28 20-36-41](https://forum.torproject.org/uploads/default/original/2X/5/5b2c8cbd785a730289146ecff24121c67ab39bbe.png)  
 ![截图 2024-05-28 20-36-11](https://forum.torproject.org/uploads/default/original/2X/1/18620a64242c40fa7a43407fb0744312f937e118.png)

i don’t use proxy:

 ![截图 2024-05-28 20-40-00](https://forum.torproject.org/uploads/default/original/2X/9/9646a91ef039064ce6c05502a2b3f421307a1743.png)

---

<div class="post-metadata">

### Author: ![birdofprey](https://forum.torproject.org/user_avatar/forum.torproject.org/birdofprey/32/950_2.png) [@birdofprey](https://forum.torproject.org/u/birdofprey)
#### Post date: [May 28, 2024, 1:20pm UTC](https://forum.torproject.org/t/obfs4-error-general-socks-server-failure/12165/11 "2024-05-28T13:20:00Z")

</div>

i don’t know. but i’m not connected tor net with tor@default.service

---

<div class="post-metadata">

### Author: ![birdofprey](https://forum.torproject.org/user_avatar/forum.torproject.org/birdofprey/32/950_2.png) [@birdofprey](https://forum.torproject.org/u/birdofprey)
#### Post date: [May 29, 2024, 8:00am UTC](https://forum.torproject.org/t/obfs4-error-general-socks-server-failure/12165/12 "2024-05-29T08:00:18Z")

</div>

os:  
Debian Gnu/Linux 13  
kernel:  
linux-image-6.7.12-amd64 6.7.12-1 amd64 Linux 6.7 for 64-bit PCs (signed)  
cli tor:  
0.4.9.0-alpha-dev-20240528T020417Z-1~d13.trixie+1  
error:  
09:29:53 [ERR] Bug: /usr/bin/tor(\_start+0x21) [0x56312a5fdf71] (on Tor 0.4.9.0-alpha-dev )  
│ 09:29:53 [ERR] Bug: /lib/x86\_64-linux-gnu/libc.so.6(_libc\_start\_main+0x85) [0x7f95f5145d45] (on Tor 0.4.9.0-alpha-dev )  
│ 09:29:53 [ERR] Bug: /lib/x86\_64-linux-gnu/libc.so.6(+0x27c8a) [0x7f95f5145c8a] (on Tor 0.4.9.0-alpha-dev )  
│ 09:29:53 [ERR] Bug: /usr/bin/tor(main+0x1d) [0x56312a5fdf1d] (on Tor 0.4.9.0-alpha-dev )  
│ 09:29:53 [ERR] Bug: /usr/bin/tor(tor\_main+0x5d) [0x56312a5fe38d] (on Tor 0.4.9.0-alpha-dev )  
│ 09:29:53 [ERR] Bug: /usr/bin/tor(tor\_run\_main+0x1e5) [0x56312a601ff5] (on Tor 0.4.9.0-alpha-dev )  
│ 09:29:53 [ERR] Bug: /usr/bin/tor(do\_main\_loop+0xf5) [0x56312a6067b5] (on Tor 0.4.9.0-alpha-dev )  
│ 09:29:53 [ERR] Bug: /lib/x86\_64-linux-gnu/libevent-2.1.so.7(event\_base\_loop+0x49f) [0x7f95f5b9804f] (on Tor 0.4.9.0-alpha-dev )  
│ 09:29:53 [ERR] Bug: /lib/x86\_64-linux-gnu/libevent-2.1.so.7(+0x21822) [0x7f95f5b97822] (on Tor 0.4.9.0-alpha-dev )  
│ 09:29:53 [ERR] Bug: /usr/bin/tor(notify\_pending\_waitpid\_callbacks+0xf7) [0x56312a699fb7] (on Tor 0.4.9.0-alpha-dev )  
│ 09:29:53 [ERR] Bug: /usr/bin/tor(process\_notify\_event\_exit+0x4d) [0x56312a6985cd] (on Tor 0.4.9.0-alpha-dev )  
│ 09:29:53 [ERR] Bug: /usr/bin/tor(+0xca48b) [0x56312a65f48b] (on Tor 0.4.9.0-alpha-dev )  
│ 09:29:53 [ERR] Bug: /usr/bin/tor(+0xc88d2) [0x56312a65d8d2] (on Tor 0.4.9.0-alpha-dev )  
│ 09:29:53 [ERR] Bug: /usr/bin/tortor\_assertion\_failed+0x14b) [0x56312a68c79bd] (on Tor 0.4.9.0-alpha-dev )  
│ 09:29:53 [ERR] Bug: /usr/bin/tor(log\_backtrace\_impl+0x5b) [0x56312a68156b] (on Tor 0.4.9.0-alpha-dev )  
│ 09:29:53 [ERR] Bug: Tor 0.4.9.0-alpha-dev: Assertion mp-\>conf\_state == PT\_PROTO\_COMPLETED failed in proxy\_prepare\_for\_restart at …/src/feature/client/transports.c:519: . Stack trace: (on Tor  
│ 0.4.9.0-alpha-dev )  
│ 09:29:53 [ERR] tor\_assertion\_failed_(): Bug: …/src/feature/client/transports.c:519: proxy\_prepare\_for\_restart: Assertion mp-\>conf\_state == PT\_PROTO\_COMPLETED failed; aborting. (on Tor 0.4.9.0-alpha-dev )  
│ 09:29:53 [WARN] Managed proxy “/usr/bin/lyerbird” process terminated with status code 256  
│ 09:29:53 [WARN] Managed proxy “N/A” process terminated with status code 256 [1 duplicate hidden]  
─┘ 09:29:53 [WARN] 18 connections died in state connect()ing with SSL state (No SSL object)

---

<div class="post-metadata">

### Author: ![trinity-1686a](https://forum.torproject.org/user_avatar/forum.torproject.org/trinity-1686a/32/1679_2.png) [@trinity-1686a](https://forum.torproject.org/u/trinity-1686a)
#### Post date: [May 29, 2024, 8:05am UTC](https://forum.torproject.org/t/obfs4-error-general-socks-server-failure/12165/13 "2024-05-29T08:05:42Z")

</div>

that stack trace looks like the one from [tor#40895](https://gitlab.torproject.org/tpo/core/tor/-/issues/40895). This happens if the pluggable transport crashes in some cases. While tor shouldn’t crash when a PT crash, the underlying issue is that the PT crashes.  
Does your apparmor profile allows for executing `/usr/bin/lyerbird`? Last i checked the defaultprovile only allows `/usr/bin/obfs4proxy`.

---

<div class="post-metadata">

### Author: ![birdofprey](https://forum.torproject.org/user_avatar/forum.torproject.org/birdofprey/32/950_2.png) [@birdofprey](https://forum.torproject.org/u/birdofprey)
#### Post date: [May 29, 2024, 12:00pm UTC](https://forum.torproject.org/t/obfs4-error-general-socks-server-failure/12165/14 "2024-05-29T12:00:13Z")

</div>

##### ClientTransportPlugin obfs4 exec /usr/bin/obfs4proxy

#### ClientTransportPlugin meek\_lite,obfs2,obfs3,obfs4,scramblesuit,webtunnel exec /usr/bin/obfs4proxy

# ClientTransportPlugin webtunnel exec /usr/bin/webtunnel-client

ClientTransportPlugin meek\_lite,obfs4,webtunnel exec /usr/bin/lyerbird

---

<div class="post-metadata">

### Author: ![birdofprey](https://forum.torproject.org/user_avatar/forum.torproject.org/birdofprey/32/950_2.png) [@birdofprey](https://forum.torproject.org/u/birdofprey)
#### Post date: [June 2, 2024, 8:59am UTC](https://forum.torproject.org/t/obfs4-error-general-socks-server-failure/12165/15 "2024-06-02T08:59:48Z")

</div>

os: Debian Gnu/Linux 13  
kernel: Linux localhost 6.7.12-amd64 #1 SMP PREEMPT\_DYNAMIC Debian 6.7.12-1 (2024-04-24) x86\_64 GNU/Linux  
tor: 0.4.9.0-alpha-dev-20240601T020417Z-1~d13.trixie+1  
error:  
Events (TOR/NYX NOTICE-ERR):  
│ 21:33:39 [WARN] Managed proxy “/usr/bin/lyrebird” process terminated with status code 65280 [177 duplicates hidden]  
│ 221:33:39 [WARN] Managed proxy ‘/usr/bin/lyrebird’ was spawned successfully, but it didn’t launch any pluggable transport  
│ 2 listeners! [177 duplicates hidden]  
─┘ 21:33:39 [WARN] Server managed proxy encountered a method error. (webtunnel unimplemented) [177 duplicates hidden]

 ![截图 2024-06-01 21-21-44](https://forum.torproject.org/uploads/default/original/2X/1/194888a8d556a08228a8ee4a715ec2c0e46aefb0.png)  
I don’t have an internet IP address

---

<div class="post-metadata">

### Author: ![MustBeMe](https://forum.torproject.org/user_avatar/forum.torproject.org/mustbeme/32/5073_2.png) [@MustBeMe](https://forum.torproject.org/u/MustBeMe)
#### Post date: [June 9, 2024, 12:43pm UTC](https://forum.torproject.org/t/obfs4-error-general-socks-server-failure/12165/16 "2024-06-09T12:43:30Z")

</div>

**Removed webtunnel and fixed “lyrebird” typo and other mistakes, complete config:**

```auto
ClientTransportPlugin meek_lite,obfs2,obfs3,obfs4,scramblesuit exec /usr/bin/obfs4proxy
ClientTransportPlugin webtunnel exec /usr/bin/webtunnel-client
ClientTransportPlugin meek_lite,webtunnel exec /usr/bin/lyrebird

```

> [@birdofprey](#):
>
> `ClientTransportPlugin meek_lite,obfs2,obfs3,obfs4,scramblesuit,webtunnel exec /usr/bin/obfs4proxy`

> [@birdofprey](#):
>
> `ClientTransportPlugin webtunnel exec /usr/bin/webtunnel-client`

Remove the webtunnel in the first line (`ClientTransportPlugin meek_lite,....`) as you have already set where the webtunnel client is in the next line, and obfs4proxy **does not** support webtunnel.

I won’t explain more (because I’m too lazy to type more lol), just copy/paste the fixed config to /etc/torrc and you should _maybe_ be good

---

<div class="post-metadata">

### Author: ![birdofprey](https://forum.torproject.org/user_avatar/forum.torproject.org/birdofprey/32/950_2.png) [@birdofprey](https://forum.torproject.org/u/birdofprey)
#### Post date: [June 11, 2024, 9:56am UTC](https://forum.torproject.org/t/obfs4-error-general-socks-server-failure/12165/17 "2024-06-11T09:56:01Z")

</div>

11 15:38:22 localhost Tor[102810]: Server managed proxy encountered a method error. (webtunnel unimplemented)  
11 15:38:22 localhost Tor[102810]: Managed proxy ‘/usr/bin/lyrebird’ was spawned successfully, but it didn’t launch any pluggable transport listeners!  
11 15:38:22 localhost Tor[102810]: Managed proxy ‘/usr/bin/lyrebird’ did not configure the specified outgoing proxy and will be terminated.  
11 15:38:22 localhost Tor[102810]: Managed proxy ‘/usr/bin/obfs4proxy’ did not configure the specified outgoing proxy and will be terminated.  
11 15:38:22 localhost Tor[102810]: Managed proxy “N/A” process terminated with status code 256  
11 15:38:22 localhost Tor[102810]: Managed proxy “N/A” process terminated with status code 256  
11 15:38:22 localhost Tor[102810]: Managed proxy “N/A” process terminated with status code 256  
11 15:38:22 localhost Tor[102810]: Managed proxy “N/A” process terminated with status code 65280  
11 15:38:22 localhost Tor[102810]: Managed proxy “N/A” process terminated with status code 0  
How can TLS traffic pass through the firewall safely and effectively? Is this a problem? ? ? Otherwise it cannot be connected

---

<div class="post-metadata">

### Author: ![birdofprey](https://forum.torproject.org/user_avatar/forum.torproject.org/birdofprey/32/950_2.png) [@birdofprey](https://forum.torproject.org/u/birdofprey)
#### Post date: [June 11, 2024, 9:56am UTC](https://forum.torproject.org/t/obfs4-error-general-socks-server-failure/12165/18 "2024-06-11T09:56:11Z")

</div>

CGroup: /system.slice/system-tor.slice/tor@default.service  
├─100849 /usr/bin/tor --defaults-torrc /usr/share/tor/tor-service-defaults-torrc -f /etc/tor/torrc --RunAsDaemon 0  
├─100850 /usr/bin/webtunnel-client  
├─100851 /usr/bin/lyrebird  
├─100852 /usr/bin/snowflake-client  
├─100853 /usr/bin/snowflake-client -url [https://snowflake-broker.torproject.net.global.prod.fastly.net/](https://snowflake-broker.torproject.net.global.prod.fastly.net/) -front cdn.s\>  
└─100854 /usr/bin/obfs4proxy

6月 11 15:18:26 localhost Tor[100849]: Could not add transport webtunnel. Skipping.  
6月 11 15:18:26 localhost Tor[100849]: You tried to add transport ‘snowflake’ at ‘127.0.0.1:17456’ but the same transport already\>  
6月 11 15:18:26 localhost Tor[100849]: Could not add transport snowflake. Skipping.  
6月 11 15:18:26 localhost Tor[100849]: Server managed proxy encountered a method error. (webtunnel no such transport is supported)  
6月 11 15:18:26 localhost Tor[100849]: Registered server transport ‘obfs4’ at ‘[::]:12998’  
6月 11 15:18:27 localhost Tor[100849]: Opening Socks listener on /run/tor/socks  
6月 11 15:18:27 localhost Tor[100849]: Opened Socks listener connection (ready) on /run/tor/socks  
6月 11 15:18:27 localhost Tor[100849]: Opening Control listener on /run/tor/control  
6月 11 15:18:27 localhost Tor[100849]: Opened Control listener connection (ready) on /run/tor/control
