v2ray / v2ray-core

A platform for building proxies to bypass network restrictions.
https://www.v2ray.com/
MIT License
45.01k stars 8.95k forks source link

Failed to start App|Proxyman|Inbound: failed #627

Closed Explorare closed 6 years ago

Explorare commented 6 years ago

1) 你正在使用哪个版本的 V2Ray?(如果服务器和客户端使用了不同版本,请注明) Server: v2.4.1 Client: v2.41

2) 你的使用场景是什么?比如使用 Chrome 通过 Socks/VMess 代理观看 YouTube 视频。 Chrome 使用 SOCKS5 代理访问 Google

3) 你看到的不正常的现象是什么? 无法访问

4) 你期待看到的正确表现是怎样的? 正常访问

5) 配置文件 https://gist.github.com/Explorare/5bff2a19624591babb29d695a7d2632e

6) 请附上出错时软件输出的日志。在 Linux 中,日志通常在 /var/log/v2ray/error.log 文件中。

# service v2ray status -l
● v2ray.service - V2Ray Service
   Loaded: loaded (/lib/systemd/system/v2ray.service; enabled; vendor preset: en
   Active: active (running) since Thu 2017-10-19 17:42:35 CST; 14min ago
 Main PID: 1018 (v2ray)
    Tasks: 5
   Memory: 14.1M
      CPU: 249ms
   CGroup: /system.slice/v2ray.service
           └─1018 /usr/bin/v2ray/v2ray -config /etc/v2ray/config.json

Oct 19 17:42:35 Libra systemd[1]: Started V2Ray Service.
Oct 19 17:42:35 Libra v2ray[1018]: V2Ray v2.41 (One for all) 20171014
Oct 19 17:42:35 Libra v2ray[1018]: An unified platform for anti-censorship.
Oct 19 17:42:36 Libra v2ray[1018]: 2017/10/19 17:42:36 [Debug]App|Proxyman|Inbou
Oct 19 17:42:36 Libra v2ray[1018]: Failed to start App|Proxyman|Inbound: failed

防火墙配置:

# firewall-cmd --list-all
public (default)
  interfaces:
  sources:
  services: dhcpv6-client ssh
  ports:  80/tcp
  protocols:
  masquerade: no
  forward-ports:
  icmp-blocks:
  rich rules:

就算 log level 为 debug /var/log/v2ray/error.log 依然为空 该目录权限

# ls -al v2ray/
total 8
drw-r--r--  2 root root   4096 Oct 19 17:30 .
drwxrwxr-x 11 root syslog 4096 Oct 19 17:27 ..
-rw-------  1 root root      0 Oct 19 17:30 access.log
-rw-------  1 root root      0 Oct 19 17:30 error.log
Explorare commented 6 years ago

经测试是因为 80 端口被占用了,只记着排查防火墙和权限了,见笑了。

# /usr/bin/v2ray/v2ray -config /etc/v2ray/config.json
V2Ray v2.41 (One for all) 20171014
An unified platform for anti-censorship.
2017/10/19 18:34:38 [Debug]App|Proxyman|Inbound: creating tcp worker on 0.0.0.0:80
Failed to start App|Proxyman|Inbound: failed to listen TCP on 80 > Transport|Internet: failed to listen on address: 0.0.0.0:80 > listen tcp 0.0.0.0:80: bind: address already in use
aflyhorse commented 6 years ago

你这个service怎么内容都不全的…… 下次建议用 systemctl status v2ray -l