TrojanX icon indicating copy to clipboard operation
TrojanX copied to clipboard

Service will not connect

Open teel-writ-ros opened this issue 4 years ago • 6 comments

Describe the bug A clear and concise description of what the bug is.

Service will not connect

To Reproduce Steps to reproduce the behavior

Expected behavior Connect on server selection. Confirmed working remote server on CLI clients.

Screenshots

System and Shadowsocksx-NG version: (please complete the following information):

  • OS Version: 10.15.3
  • Version 0.2

Application log

Mar  2 00:49:12 MBP com.apple.xpc.launchd[1] (TrojanX.trojan[25808]): Service exited with abnormal code: 1
Mar  2 00:49:41 MBP com.apple.xpc.launchd[1] (TrojanX.trojan[25850]): Service exited with abnormal code: 1
Mar  2 00:50:49 MBP com.apple.xpc.launchd[1] (TrojanX.trojan[25888]): Service exited with abnormal code: 1
Mar  2 00:50:55 MBP com.apple.xpc.launchd[1] (TrojanX.trojan[25906]): Service exited with abnormal code: 1
Mar  2 00:50:57 MBP com.apple.xpc.launchd[1] (TrojanX.trojan): Service only ran for 1 seconds. Pushing respawn out by 9 seconds.
Mar  2 00:51:06 MBP com.apple.xpc.launchd[1] (TrojanX.trojan[25922]): Service exited with abnormal code: 1
Mar  2 00:51:22 MBP com.apple.xpc.launchd[1] (TrojanX.trojan[25958]): Service exited with abnormal code: 1
Mar  2 00:53:19 MBP com.apple.xpc.launchd[1] (TrojanX.trojan[25999]): Service exited with abnormal code: 1
Mar  2 00:53:24 MBP com.apple.xpc.launchd[1] (TrojanX.trojan[26015]): Service exited with abnormal code: 1
Mar  2 00:53:26 MBP com.apple.xpc.launchd[1] (TrojanX.trojan): Service only ran for 1 seconds. Pushing respawn out by 9 seconds.
Mar  2 00:53:35 MBP com.apple.xpc.launchd[1] (TrojanX.trojan[26031]): Service exited with abnormal code: 1
Mar  2 00:53:52 MBP com.apple.xpc.launchd[1] (TrojanX.trojan[26037]): Service exited with abnormal code: 1
Mar  2 00:54:17 MBP com.apple.xpc.launchd[1] (TrojanX.trojan[26069]): Service exited with abnormal code: 1
Mar  2 00:54:48 MBP com.apple.xpc.launchd[1] (TrojanX.trojan[26083]): Service exited with abnormal code: 1
Mar  2 00:55:08 MBP com.apple.xpc.launchd[1] (TrojanX.http[25789]): Service exited with abnormal code: 15
Mar  2 11:20:59 MacBook-Pro com.apple.xpc.launchd[1] (TrojanX.trojan[27332]): Service exited with abnormal code: 1
Mar  2 11:21:18 MacBook-Pro com.apple.xpc.launchd[1] (TrojanX.trojan[27348]): Service exited with abnormal code: 1
Mar  2 11:21:20 MacBook-Pro com.apple.xpc.launchd[1] (TrojanX.trojan): Service only ran for 1 seconds. Pushing respawn out by 9 seconds.
Mar  2 11:21:29 MacBook-Pro com.apple.xpc.launchd[1] (TrojanX.trojan[27376]): Service exited with abnormal code: 1
Mar  2 11:21:39 MacBook-Pro com.apple.xpc.launchd[1] (TrojanX.trojan): Service only ran for 9 seconds. Pushing respawn out by 1 seconds.
Mar  2 11:21:40 MacBook-Pro com.apple.xpc.launchd[1] (TrojanX.trojan[27385]): Service exited with abnormal code: 1
Mar  2 11:22:32 MacBook-Pro com.apple.xpc.launchd[1] (TrojanX.trojan[27391]): Service exited with abnormal code: 1
Mar  2 11:27:35 MacBook-Pro com.apple.xpc.launchd[1] (TrojanX.trojan[27434]): Service exited with abnormal code: 1

Additional context Add any other context about the problem here.

teel-writ-ros avatar Mar 02 '20 03:03 teel-writ-ros

Try to delete launch agents of trojan?

  1. stop and quit trojanx

  2. delete launch files of trojan

Last login: Mon Mar  2 11:53:13 on ttys002
➜  ~ cd ~/Library/LaunchAgents
➜  LaunchAgents ls
TrojanX.http.plist                        com.qiuyuzhou.shadowsocksX-NG.http.plist
TrojanX.trojan.plist                      com.qiuyuzhou.shadowsocksX-NG.local.plist
com.google.keystone.agent.plist           com.tencent.Lemon.trash.plist
com.google.keystone.xpcservice.plist      com.valvesoftware.steamclean.plist
➜  LaunchAgents rm TrojanX.http.plist TrojanX.trojan.plist
➜  LaunchAgents ls
com.google.keystone.agent.plist           com.qiuyuzhou.shadowsocksX-NG.local.plist
com.google.keystone.xpcservice.plist      com.tencent.Lemon.trash.plist
com.qiuyuzhou.shadowsocksX-NG.http.plist  com.valvesoftware.steamclean.plist
➜  LaunchAgents
  1. re-run trojan and try

JimLee1996 avatar Mar 02 '20 03:03 JimLee1996

repeated the steps above but still not working

trojan.log

Welcome to trojan 1.14.1
[2020-03-02 14:03:27] [FATAL] fatal: bind: Address already in use
[2020-03-02 14:03:27] [FATAL] exiting. . . 
Welcome to trojan 1.14.1
[2020-03-02 14:04:15] [FATAL] fatal: bind: Address already in use
[2020-03-02 14:04:15] [FATAL] exiting. . . 
Welcome to trojan 1.14.1
[2020-03-02 14:04:25] [FATAL] fatal: bind: Address already in use
[2020-03-02 14:04:25] [FATAL] exiting. . . 
Welcome to trojan 1.14.1
[2020-03-02 14:05:39] [FATAL] fatal: bind: Address already in use
[2020-03-02 14:05:39] [FATAL] exiting. . . 
Welcome to trojan 1.14.1
[2020-03-02 14:05:44] [FATAL] fatal: bind: Address already in use
[2020-03-02 14:05:44] [FATAL] exiting. . . 
Welcome to trojan 1.14.1
[2020-03-02 14:05:55] [FATAL] fatal: bind: Address already in use
[2020-03-02 14:05:55] [FATAL] exiting. . . 

teel-writ-ros avatar Mar 02 '20 06:03 teel-writ-ros

找到trojan的pid,把trojan的二进制进程kill掉。或者重启之后就好了

JimLee1996 avatar Mar 02 '20 06:03 JimLee1996

rebooted, still no luck. log console output

default	15:44:39.548707+0800	TrojanX	Connection 1: is being canceled
default	15:44:39.548846+0800	TrojanX	[C1 866DA168-A6C3-41F9-AA6D-D5CF1B60423E Hostname#52b51e08:443 tcp, url hash: 3bb00ee0, tls] cancel
default	15:44:39.549031+0800	TrojanX	[C1 866DA168-A6C3-41F9-AA6D-D5CF1B60423E Hostname#52b51e08:443 tcp, url hash: 3bb00ee0, tls] cancelled
	[C1.2.1 0CECF068-1E8D-4B39-995C-9EA7B47E7A0F 10.10.15.9:49604<->IPv4#67e46e08:443]
	Connected Path: satisfied (Path is satisfied), interface: en0, ipv4, dns
	Duration: 19.558s, DNS @1.492s took 0.008s, TCP @1.501s took 0.127s, TLS took 2.620s
	bytes in/out: 84589/1021, packets in/out: 60/4, rtt: 0.125s, retransmitted packets: 1, out-of-order packets: 31
default	15:44:39.549072+0800	TrojanX	0.000s [C1 B5DBFB13-70D8-4F9D-B4B6-E70A0BF7027D Hostname#52b51e08:443 proxy path=satisfied (Path is satisfied), interface: en0, ipv4, dns] path:start
default	15:44:39.549102+0800	TrojanX	0.000s [C1 B5DBFB13-70D8-4F9D-B4B6-E70A0BF7027D Hostname#52b51e08:443 proxy path=satisfied (Path is satisfied), interface: en0, ipv4, dns] path:satisfied
default	15:44:39.549129+0800	TrojanX	0.000s [C1 B5DBFB13-70D8-4F9D-B4B6-E70A0BF7027D Hostname#52b51e08:443 proxy path=satisfied (Path is satisfied), interface: en0, ipv4, dns] proxy:start_process
default	15:44:39.549156+0800	TrojanX	0.000s [C1 B5DBFB13-70D8-4F9D-B4B6-E70A0BF7027D Hostname#52b51e08:443 proxy path=satisfied (Path is satisfied), interface: en0, ipv4, dns] proxy:finish_process
default	15:44:39.549182+0800	TrojanX	0.000s [C1 B5DBFB13-70D8-4F9D-B4B6-E70A0BF7027D Hostname#52b51e08:443 proxy path=satisfied (Path is satisfied), interface: en0, ipv4, dns] proxy:start_resolve
default	15:44:39.549207+0800	TrojanX	0.001s [C1 B5DBFB13-70D8-4F9D-B4B6-E70A0BF7027D Hostname#52b51e08:443 proxy path=satisfied (Path is satisfied), interface: en0, ipv4, dns] proxy:finish_resolve
default	15:44:39.549268+0800	TrojanX	0.001s [C1.1 00000000-0000-0000-0000-000000000000 127.0.0.1:49602<->127.0.0.1:1080 socket-flow path=(null)] path:start
default	15:44:39.549309+0800	TrojanX	0.001s [C1.1 00000000-0000-0000-0000-000000000000 127.0.0.1:49602<->127.0.0.1:1080 socket-flow path=(null)] path:satisfied
default	15:44:39.549417+0800	TrojanX	0.002s [C1.1 00000000-0000-0000-0000-000000000000 127.0.0.1:49602<->127.0.0.1:1080 socket-flow path=(null)] flow:start_connect
default	15:44:39.549545+0800	TrojanX	0.002s [C1.1 00000000-0000-0000-0000-000000000000 127.0.0.1:49602<->127.0.0.1:1080 socket-flow path=(null)] flow:finish_transport
default	15:44:39.549596+0800	TrojanX	0.205s [C1 B5DBFB13-70D8-4F9D-B4B6-E70A0BF7027D Hostname#52b51e08:443 proxy path=satisfied (Path is satisfied), interface: en0, ipv4, dns] path:satisfied_change
default	15:44:39.549664+0800	TrojanX	0.205s [C1.1 00000000-0000-0000-0000-000000000000 127.0.0.1:49602<->127.0.0.1:1080 socket-flow path=(null)] path:satisfied_change
default	15:44:39.549773+0800	TrojanX	1.492s [C1.1 00000000-0000-0000-0000-000000000000 127.0.0.1:49602<->127.0.0.1:1080 socket-flow path=(null)] flow:failed_connect
default	15:44:39.549828+0800	TrojanX	1.492s [C1.2 BD6F3055-9E24-4868-B830-D776D1C33BFE Hostname#52b51e08:443 resolver path=satisfied (Path is satisfied), interface: en0, ipv4, dns] path:start
default	15:44:39.549859+0800	TrojanX	1.492s [C1.2 BD6F3055-9E24-4868-B830-D776D1C33BFE Hostname#52b51e08:443 resolver path=satisfied (Path is satisfied), interface: en0, ipv4, dns] path:satisfied
default	15:44:39.549885+0800	TrojanX	1.492s [C1.2 BD6F3055-9E24-4868-B830-D776D1C33BFE Hostname#52b51e08:443 resolver path=satisfied (Path is satisfied), interface: en0, ipv4, dns] resolver:start_dns
default	15:44:39.549952+0800	TrojanX	1.500s [C1.2 BD6F3055-9E24-4868-B830-D776D1C33BFE Hostname#52b51e08:443 resolver path=satisfied (Path is satisfied), interface: en0, ipv4, dns] resolver:receive_dns
default	15:44:39.549993+0800	TrojanX	1.500s [C1.2.1 0CECF068-1E8D-4B39-995C-9EA7B47E7A0F 10.10.15.9:49604<->IPv4#67e46e08:443 socket-flow path=satisfied (Path is satisfied), interface: en0, ipv4, dns] path:start
default	15:44:39.550021+0800	TrojanX	1.500s [C1.2.1 0CECF068-1E8D-4B39-995C-9EA7B47E7A0F 10.10.15.9:49604<->IPv4#67e46e08:443 socket-flow path=satisfied (Path is satisfied), interface: en0, ipv4, dns] path:satisfied
default	15:44:39.550062+0800	TrojanX	1.501s [C1.2.1 0CECF068-1E8D-4B39-995C-9EA7B47E7A0F 10.10.15.9:49604<->IPv4#67e46e08:443 socket-flow path=satisfied (Path is satisfied), interface: en0, ipv4, dns] flow:start_connect
default	15:44:39.550231+0800	TrojanX	1.628s [C1.2.1 0CECF068-1E8D-4B39-995C-9EA7B47E7A0F 10.10.15.9:49604<->IPv4#67e46e08:443 socket-flow path=satisfied (Path is satisfied), interface: en0, ipv4, dns] flow:finish_transport
default	15:44:39.550277+0800	TrojanX	1.628s [C1.2 BD6F3055-9E24-4868-B830-D776D1C33BFE Hostname#52b51e08:443 resolver path=satisfied (Path is satisfied), interface: en0, ipv4, dns] flow:finish_transport
default	15:44:39.550348+0800	TrojanX	4.248s [C1.2.1 0CECF068-1E8D-4B39-995C-9EA7B47E7A0F 10.10.15.9:49604<->IPv4#67e46e08:443 socket-flow path=satisfied (Path is satisfied), interface: en0, ipv4, dns] flow:finish_connect
default	15:44:39.550380+0800	TrojanX	4.248s [C1.2 BD6F3055-9E24-4868-B830-D776D1C33BFE Hostname#52b51e08:443 resolver path=satisfied (Path is satisfied), interface: en0, ipv4, dns] flow:finish_connect
default	15:44:39.550438+0800	TrojanX	4.248s [C1 B5DBFB13-70D8-4F9D-B4B6-E70A0BF7027D Hostname#52b51e08:443 proxy path=satisfied (Path is satisfied), interface: en0, ipv4, dns] flow:finish_connect
default	15:44:39.550471+0800	TrojanX	4.248s [C1.2.1 0CECF068-1E8D-4B39-995C-9EA7B47E7A0F 10.10.15.9:49604<->IPv4#67e46e08:443 socket-flow path=satisfied (Path is satisfied), interface: en0, ipv4, dns] flow:changed_viability
default	15:44:39.550543+0800	TrojanX	4.248s [C1.2 BD6F3055-9E24-4868-B830-D776D1C33BFE Hostname#52b51e08:443 resolver path=satisfied (Path is satisfied), interface: en0, ipv4, dns] flow:changed_viability
default	15:44:39.550571+0800	TrojanX	4.248s [C1 B5DBFB13-70D8-4F9D-B4B6-E70A0BF7027D Hostname#52b51e08:443 proxy path=satisfied (Path is satisfied), interface: en0, ipv4, dns] flow:changed_viability
default	15:44:39.550623+0800	TrojanX	6.310s [C1.2.1 0CECF068-1E8D-4B39-995C-9EA7B47E7A0F 10.10.15.9:49604<->IPv4#67e46e08:443 socket-flow path=satisfied (Path is satisfied), interface: en0, ipv4, dns] path:satisfied_change
default	15:44:39.550668+0800	TrojanX	6.310s [C1.2 BD6F3055-9E24-4868-B830-D776D1C33BFE Hostname#52b51e08:443 resolver path=satisfied (Path is satisfied), interface: en0, ipv4, dns] path:satisfied_change
default	15:44:39.550745+0800	TrojanX	6.310s [C1 B5DBFB13-70D8-4F9D-B4B6-E70A0BF7027D Hostname#52b51e08:443 proxy path=satisfied (Path is satisfied), interface: en0, ipv4, dns] path:satisfied_change
default	15:44:39.550792+0800	TrojanX	6.310s [C1 B5DBFB13-70D8-4F9D-B4B6-E70A0BF7027D Hostname#52b51e08:443 proxy path=satisfied (Path is satisfied), interface: en0, ipv4, dns] path:satisfied_change
default	15:44:39.550828+0800	TrojanX	6.311s [C1.2 BD6F3055-9E24-4868-B830-D776D1C33BFE Hostname#52b51e08:443 resolver path=satisfied (Path is satisfied), interface: en0, ipv4, dns] path:satisfied_change
default	15:44:39.550873+0800	TrojanX	6.311s [C1 B5DBFB13-70D8-4F9D-B4B6-E70A0BF7027D Hostname#52b51e08:443 proxy path=satisfied (Path is satisfied), interface: en0, ipv4, dns] path:satisfied_change
default	15:44:39.550910+0800	TrojanX	12.378s [C1.2.1 0CECF068-1E8D-4B39-995C-9EA7B47E7A0F 10.10.15.9:49604<->IPv4#67e46e08:443 socket-flow path=satisfied (Path is satisfied), interface: en0, ipv4, dns] path:satisfied_change
default	15:44:39.550944+0800	TrojanX	12.378s [C1.2 BD6F3055-9E24-4868-B830-D776D1C33BFE Hostname#52b51e08:443 resolver path=satisfied (Path is satisfied), interface: en0, ipv4, dns] path:satisfied_change
default	15:44:39.551021+0800	TrojanX	12.378s [C1 B5DBFB13-70D8-4F9D-B4B6-E70A0BF7027D Hostname#52b51e08:443 proxy path=satisfied (Path is satisfied), interface: en0, ipv4, dns] path:satisfied_change
default	15:44:39.551063+0800	TrojanX	12.378s [C1 B5DBFB13-70D8-4F9D-B4B6-E70A0BF7027D Hostname#52b51e08:443 proxy path=satisfied (Path is satisfied), interface: en0, ipv4, dns] path:satisfied_change
default	15:44:39.551096+0800	TrojanX	12.378s [C1.2 BD6F3055-9E24-4868-B830-D776D1C33BFE Hostname#52b51e08:443 resolver path=satisfied (Path is satisfied), interface: en0, ipv4, dns] path:satisfied_change
default	15:44:39.551125+0800	TrojanX	12.378s [C1 B5DBFB13-70D8-4F9D-B4B6-E70A0BF7027D Hostname#52b51e08:443 proxy path=satisfied (Path is satisfied), interface: en0, ipv4, dns] path:satisfied_change
default	15:44:39.551157+0800	TrojanX	18.344s [C1.2.1 0CECF068-1E8D-4B39-995C-9EA7B47E7A0F 10.10.15.9:49604<->IPv4#67e46e08:443 socket-flow path=satisfied (Path is satisfied), interface: en0, ipv4, dns] path:satisfied_change
default	15:44:39.551224+0800	TrojanX	18.344s [C1.2 BD6F3055-9E24-4868-B830-D776D1C33BFE Hostname#52b51e08:443 resolver path=satisfied (Path is satisfied), interface: en0, ipv4, dns] path:satisfied_change
default	15:44:39.551260+0800	TrojanX	18.344s [C1 B5DBFB13-70D8-4F9D-B4B6-E70A0BF7027D Hostname#52b51e08:443 proxy path=satisfied (Path is satisfied), interface: en0, ipv4, dns] path:satisfied_change
default	15:44:39.551325+0800	TrojanX	18.349s [C1 B5DBFB13-70D8-4F9D-B4B6-E70A0BF7027D Hostname#52b51e08:443 proxy path=satisfied (Path is satisfied), interface: en0, ipv4, dns] path:satisfied_change
default	15:44:39.551362+0800	TrojanX	18.355s [C1.2 BD6F3055-9E24-4868-B830-D776D1C33BFE Hostname#52b51e08:443 resolver path=satisfied (Path is satisfied), interface: en0, ipv4, dns] path:satisfied_change
default	15:44:39.551387+0800	TrojanX	18.356s [C1 B5DBFB13-70D8-4F9D-B4B6-E70A0BF7027D Hostname#52b51e08:443 proxy path=satisfied (Path is satisfied), interface: en0, ipv4, dns] path:satisfied_change
default	15:44:39.551404+0800	TrojanX	19.558s [C1] path:cancel
default	15:44:39.551817+0800	TrojanX	boringssl_context_message_handler(2257) [C1.2.1:2][0x7fc077e96c80] Writing SSL3_RT_ALERT 2 bytes
default	15:44:39.551841+0800	TrojanX	boringssl_context_handle_warning_alert(1892) [C1.2.1:2][0x7fc077e96c80] write alert, level: warning, description: close notify
default	15:44:39.551858+0800	TrojanX	boringssl_session_disconnect(539) [C1.2.1:2][0x7fc077e96c80] SSL_shutdown 0
default	15:44:39.551877+0800	TrojanX	nw_flow_disconnected [C1.2.1 IPv4#67e46e08:443 cancelled socket-flow ((null))] Output protocol disconnected
default	15:44:39.552289+0800	TrojanX	nw_connection_report_state_with_handler_on_nw_queue [C1] reporting state cancelled
default	15:44:39.552438+0800	TrojanX	Task <2D71291A-C117-4925-91F0-771179E1BA3C>.<1> response ended
default	15:44:39.552474+0800	TrojanX	Task <2D71291A-C117-4925-91F0-771179E1BA3C>.<1> done using Connection 1
default	15:44:39.552541+0800	TrojanX	nw_protocol_boringssl_remove_input_handler(1012) [C1.2.1:2][0x7fc077e96c80] nw_protocol_boringssl_remove_input_handler forced true
default	15:44:39.552604+0800	TrojanX	Task <2D71291A-C117-4925-91F0-771179E1BA3C>.<1> summary for task success {transaction_duration_ms=19565, response_status=200, connection=1, protocol="http/1.1", domain_lookup_duration_ms=8, connect_duration_ms=2747, secure_connection_duration_ms=2620, request_start_ms=4252, request_duration_ms=0, response_start_ms=4439, response_duration_ms=15125, request_bytes=289, response_bytes=79997, cache_hit=0}
default	15:44:39.552612+0800	TrojanX	nw_protocol_boringssl_remove_input_handler(1030) [C1.2.1:2][0x7fc077e96c80] Transferring nw_protocol_boringssl_t handle back into ARC for autorelease
default	15:44:39.552949+0800	TrojanX	Task <2D71291A-C117-4925-91F0-771179E1BA3C>.<1> finished successfully
default	15:44:39.680118+0800	NotificationCenter	Queuing action present for app TrojanX.
default	15:44:39.797815+0800	NotificationCenter	Queuing action delivered for app TrojanX.
default	15:44:40.175856+0800	symptomsd	defusing ticker tickerFatal having seen progress by flow for TrojanX, rxbytes 87029 duration 18.683 seconds started at time: Mon Mar  2 15:44:21 2020
default	15:44:44.520622+0800	TrojanX	LSExceptions shared instance invalidated for timeout.
default	15:47:34.134455+0800	TrojanX	generateSSLocalLauchAgentPlist - File has not been changed.
default	15:47:34.135394+0800	TrojanX	writeSSLocalConfFile - File has not been changed.
default	15:47:34.200033+0800	TrojanX	Stop Trojan succeeded.
default	15:47:34.267550+0800	TrojanX	Start privoxy succeeded.
default	15:47:34.268248+0800	TrojanX	run shadowsocks helper: /Library/Application Support/TrojanX/proxy_conf_helper
default	15:47:34.301280+0800	authd	Succeeded authorizing right 'system.services.systemconfiguration.network' by client '/System/Library/Frameworks/SystemConfiguration.framework/Versions/A/Helpers/SCHelper' [1009] for authorization created by '/Library/Application Support/TrojanX/proxy_conf_helper' [1008] (3,0) (engine 75)
default	15:47:34.306694+0800	authd	Succeeded authorizing right 'system.services.systemconfiguration.network' by client '/System/Library/Frameworks/SystemConfiguration.framework/Versions/A/Helpers/SCHelper' [1009] for authorization created by '/Library/Application Support/TrojanX/proxy_conf_helper' [1008] (3,0) (engine 76)
default	15:47:34.313055+0800	authd	Succeeded authorizing right 'system.services.systemconfiguration.network' by client '/System/Library/Frameworks/SystemConfiguration.framework/Versions/A/Helpers/SCHelper' [1009] for authorization created by '/Library/Application Support/TrojanX/proxy_conf_helper' [1008] (3,0) (engine 77)
default	15:47:34.318190+0800	authd	Succeeded authorizing right 'system.services.systemconfiguration.network' by client '/System/Library/Frameworks/SystemConfiguration.framework/Versions/A/Helpers/SCHelper' [1009] for authorization created by '/Library/Application Support/TrojanX/proxy_conf_helper' [1008] (3,0) (engine 78)
default	15:47:34.319730+0800	TrojanX	pac proxy set to off
default	15:47:38.069705+0800	TrojanX	generateSSLocalLauchAgentPlist - File has not been changed.
default	15:47:38.070544+0800	TrojanX	writeSSLocalConfFile - File has not been changed.
default	15:47:38.135143+0800	TrojanX	Start Trojan succeeded.
default	15:47:38.203387+0800	TrojanX	Start privoxy succeeded.
default	15:47:38.204514+0800	TrojanX	run shadowsocks helper: /Library/Application Support/TrojanX/proxy_conf_helper
default	15:47:38.226864+0800	authd	Succeeded authorizing right 'system.services.systemconfiguration.network' by client '/System/Library/Frameworks/SystemConfiguration.framework/Versions/A/Helpers/SCHelper' [1009] for authorization created by '/Library/Application Support/TrojanX/proxy_conf_helper' [1019] (3,0) (engine 80)
default	15:47:38.232095+0800	authd	Succeeded authorizing right 'system.services.systemconfiguration.network' by client '/System/Library/Frameworks/SystemConfiguration.framework/Versions/A/Helpers/SCHelper' [1009] for authorization created by '/Library/Application Support/TrojanX/proxy_conf_helper' [1019] (3,0) (engine 81)
default	15:47:38.238063+0800	authd	Succeeded authorizing right 'system.services.systemconfiguration.network' by client '/System/Library/Frameworks/SystemConfiguration.framework/Versions/A/Helpers/SCHelper' [1009] for authorization created by '/Library/Application Support/TrojanX/proxy_conf_helper' [1019] (3,0) (engine 82)
default	15:47:38.242935+0800	authd	Succeeded authorizing right 'system.services.systemconfiguration.network' by client '/System/Library/Frameworks/SystemConfiguration.framework/Versions/A/Helpers/SCHelper' [1009] for authorization created by '/Library/Application Support/TrojanX/proxy_conf_helper' [1019] (3,0) (engine 83)
default	15:47:38.244401+0800	TrojanX	pac proxy set to auto
error	15:47:41.021157+0800	TrojanX	Received XPC error Connection interrupted for message type 3 kCFNetworkAgentXPCMessageTypePACQuery
error	15:47:41.021224+0800	TrojanX	Received XPC error Connection invalid for message type 3 kCFNetworkAgentXPCMessageTypePACQuery
default	15:48:43.473587+0800	TrojanX	generateSSLocalLauchAgentPlist - File has not been changed.
default	15:48:43.475256+0800	TrojanX	writeSSLocalConfFile - File has been changed.
default	15:48:43.539014+0800	TrojanX	Stop Trojan succeeded.
default	15:48:43.604228+0800	TrojanX	Start privoxy succeeded.
default	15:48:43.605140+0800	TrojanX	generateSSLocalLauchAgentPlist - File has not been changed.
default	15:48:43.605755+0800	TrojanX	writeSSLocalConfFile - File has not been changed.
default	15:48:43.669044+0800	TrojanX	Start Trojan succeeded.
default	15:48:43.734836+0800	TrojanX	Start privoxy succeeded.
default	15:48:43.735393+0800	TrojanX	run shadowsocks helper: /Library/Application Support/TrojanX/proxy_conf_helper
default	15:48:43.758991+0800	authd	Succeeded authorizing right 'system.services.systemconfiguration.network' by client '/System/Library/Frameworks/SystemConfiguration.framework/Versions/A/Helpers/SCHelper' [1054] for authorization created by '/Library/Application Support/TrojanX/proxy_conf_helper' [1053] (3,0) (engine 87)
default	15:48:43.762897+0800	authd	Succeeded authorizing right 'system.services.systemconfiguration.network' by client '/System/Library/Frameworks/SystemConfiguration.framework/Versions/A/Helpers/SCHelper' [1054] for authorization created by '/Library/Application Support/TrojanX/proxy_conf_helper' [1053] (3,0) (engine 88)
default	15:48:43.768204+0800	authd	Succeeded authorizing right 'system.services.systemconfiguration.network' by client '/System/Library/Frameworks/SystemConfiguration.framework/Versions/A/Helpers/SCHelper' [1054] for authorization created by '/Library/Application Support/TrojanX/proxy_conf_helper' [1053] (3,0) (engine 89)
default	15:48:43.771882+0800	authd	Succeeded authorizing right 'system.services.systemconfiguration.network' by client '/System/Library/Frameworks/SystemConfiguration.framework/Versions/A/Helpers/SCHelper' [1054] for authorization created by '/Library/Application Support/TrojanX/proxy_conf_helper' [1053] (3,0) (engine 90)
default	15:48:43.773150+0800	TrojanX	pac proxy set to auto
default	15:48:45.778497+0800	TrojanX	Start Trojan succeeded.
default	15:49:27.190291+0800	Spotlight	Requested application <private> has policy 0, associated category:DH1005 associated sites:(null) equivalent bundle identifiers:TrojanX

thanks for your help @JimLee1996

teel-writ-ros avatar Mar 02 '20 07:03 teel-writ-ros

Maybe the config is to blame. I've hard-coded some parameters in the config.

Please check these lines and paste the corresponding config of your server.

JimLee1996 avatar Mar 02 '20 11:03 JimLee1996

I think it has problem with https://github.com/JimLee1996/TrojanX/blob/a1985a0de5502e8f5ed4f623cd9b9d61d7c9e8e7/TrojanX/LaunchAgentUtils.swift#L117, check https://github.com/trojan-gfw/trojan/issues/68#issuecomment-466253565 , https://github.com/trojan-gfw/trojan/issues/29. The SSL cert problem refused the handshake.

teel-writ-ros avatar Mar 02 '20 12:03 teel-writ-ros