emacs-china / elpa

Emacs China ELPA 镜像
https://elpamirror.emacs-china.org/
154 stars 15 forks source link

Rsync 服务无法使用 #49

Closed xuchunyang closed 6 years ago

xuchunyang commented 6 years ago

https://status.emacs-china.org/778801282 提示 Rsync 服务从今天凌晨起无法连接,我登入服务器确认了 Rsync daemon 正常运行

root@AY1309092152572985dfZ:~#  pgrep rsync | xargs ps -f -p
UID        PID  PPID  C STIME TTY          TIME CMD
root     19463     1  0 11:38 ?        00:00:00 /usr/bin/rsync --no-detach --daemon --config /etc/rsyncd.conf
root@AY1309092152572985dfZ:~# rsync --list-only rsync://localhost/elpa/
drwxr-xr-x          4,096 2018/03/20 23:26:42 .
drwxrwxr-x          4,096 2016/11/25 11:43:48 SC
drwxr-xr-x        114,688 2018/07/21 08:51:30 emacswiki
drwxrwxr-x         36,864 2018/07/21 08:07:01 gnu
drwxrwxr-x         61,440 2018/07/21 08:07:35 marmalade
drwxr-xr-x        184,320 2018/07/15 08:45:06 melpa-stable
drwxr-xr-x        458,752 2018/07/21 08:19:36 melpa
drwxrwxr-x          4,096 2018/07/21 08:06:52 org
drwxrwxr-x          4,096 2018/04/04 16:06:35 sunrise-commander
drwxrwxr-x         12,288 2018/07/21 08:07:20 user42
root@AY1309092152572985dfZ:~#

但是从外网却依旧无法访问,下面两个命令均卡住

~ $ rsync -av --list-only rsync://elpa.emacs-china.org/elpa/
~ $ nc -zv elpa.emacs-china.org 873

不知为何。暂时先等到明天,或许是阿里云的问题。

xuchunyang commented 6 years ago

@zilongshanren 我们这台服务器的 873 端口好像被封锁了,阿里云是不是有什么端口白名单机制?你能不能帮忙看看?

xuchunyang commented 6 years ago

/ping @zilongshanren

lujun9972 commented 6 years ago

netstat能看到监听873吗?

xuchunyang commented 6 years ago

@lujun9972 能

~ $ ssh root@elpa.emacs-china.org  'netstat -plnt'
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
tcp        0      0 0.0.0.0:443             0.0.0.0:*               LISTEN      12503/nginx -g daem
tcp        0      0 0.0.0.0:8123            0.0.0.0:*               LISTEN      1667/polipo
tcp        0      0 0.0.0.0:445             0.0.0.0:*               LISTEN      750/smbd
tcp        0      0 0.0.0.0:873             0.0.0.0:*               LISTEN      19463/rsync
tcp        0      0 127.0.0.1:3306          0.0.0.0:*               LISTEN      1093/mysqld
tcp        0      0 0.0.0.0:9418            0.0.0.0:*               LISTEN      1621/git-daemon
tcp        0      0 127.0.0.1:6379          0.0.0.0:*               LISTEN      1813/redis-server 1
tcp        0      0 0.0.0.0:139             0.0.0.0:*               LISTEN      750/smbd
tcp        0      0 0.0.0.0:80              0.0.0.0:*               LISTEN      12503/nginx -g daem
tcp        0      0 0.0.0.0:21              0.0.0.0:*               LISTEN      772/vsftpd
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      978/sshd
tcp        0      0 127.0.0.1:25            0.0.0.0:*               LISTEN      1773/master
tcp6       0      0 :::443                  :::*                    LISTEN      12503/nginx -g daem
tcp6       0      0 :::445                  :::*                    LISTEN      750/smbd
tcp6       0      0 :::873                  :::*                    LISTEN      19463/rsync
tcp6       0      0 :::9418                 :::*                    LISTEN      1621/git-daemon
tcp6       0      0 :::139                  :::*                    LISTEN      750/smbd
tcp6       0      0 :::22                   :::*                    LISTEN      978/sshd
~ $
xuchunyang commented 6 years ago

@zilongshanren 能不能请你看看是不是阿里云封锁了 873 端口?

huiyiqun commented 6 years ago

TUNA 这边遇到了相同的问题,最后一次同步成功的时间是 2018-7-21。

请问这个 issue 有什么进展吗?是否可以和阿里云交涉一下,或者 7 月 21 日云服务器的防火墙配置是否有改动?

xuchunyang commented 6 years ago

请问这个 issue 有什么进展吗?

是否可以和阿里云交涉一下

ping @zilongshanren

或者 7 月 21 日云服务器的防火墙配置是否有改动?

MaskRay commented 6 years ago

話說你們有沒有在用 https://github.com/tuna/rsync/blob/master/README-huai.md

xuchunyang commented 6 years ago

zilongshanren commented 6 years ago

@xuchunyang 目前服务已经修复

huiyiqun commented 6 years ago

TUNA 确认服务恢复