ansible-shadowsocks-libev
ansible-shadowsocks-libev copied to clipboard
Two fatal error on Linode servers with CentOS 7
firewall
TASK [sparanoid.shadowsocks-libev : add shadowsocks-libev service for firewalld (7)]
FAILED! => {"changed": false, "msg": "ERROR: Exception caught: org.fedoraproject.FirewallD1.Exception: INVALID_SERVICE: 'shadowsocks-libev' not among existing services Permanent operation, Services are defined by port/tcp relationship and named as they are in /etc/services (on most systems)"}
fix
firewall-cmd --permanent --zone=public --add-rich-rule='
rule family="ipv4"
port protocol="tcp" port="<port>" accept'
firewall-cmd --reload
libsodium
fatal: [lftpproxy]: FAILED! => {"changed": true, "msg": "Error: Package: shadowsocks-libev-3.2.0-2.el7.x86_64 (librehat-shadowsocks)\n Requires: libsodium >= 1.0.4\nError: Package: shadowsocks-libev-3.2.0-2.el7.x86_64 (librehat-shadowsocks)\n Requires: mbedtls\n", "rc": 1, "results": ["Resolving Dependencies\n--> Running transaction check\n---> Package shadowsocks-libev.x86_64 0:3.2.0-2.el7 will be installed\n--> Processing Dependency: libsodium >= 1.0.4 for package: shadowsocks-libev-3.2.0-2.el7.x86_64\n--> Processing Dependency: mbedtls for package: shadowsocks-libev-3.2.0-2.el7.x86_64\n--> Processing Dependency: c-ares for package: shadowsocks-libev-3.2.0-2.el7.x86_64\n--> Processing Dependency: libev for package: shadowsocks-libev-3.2.0-2.el7.x86_64\n--> Running transaction check\n---> Package c-ares.x86_64 0:1.10.0-3.el7 will be installed\n---> Package libev.x86_64 0:4.15-7.el7 will be installed\n---> Package shadowsocks-libev.x86_64 0:3.2.0-2.el7 will be installed\n--> Processing Dependency: libsodium >= 1.0.4 for package: shadowsocks-libev-3.2.0-2.el7.x86_64\n--> Processing Dependency: mbedtls for package: shadowsocks-libev-3.2.0-2.el7.x86_64\n--> Finished Dependency Resolution\n You could try using --skip-broken to work around the problem\n You could try running: rpm -Va --nofiles --nodigest\n"]}
fix
yum install epel-release -y
yum install libsodium -y
firewalld issue is weird. You can just run this playbook twice and this issue will be resolved.
Running twice would suppress this error however firewall is not properly set, I suppose it just got ignored. On Tue, Feb 19, 2019 at 7:02 PM Tunghsiao Liu [email protected] wrote:
firewalld issue is weird. You can just run this playbook twice and this issue will resolve.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/sparanoid/ansible-shadowsocks-libev/issues/1#issuecomment-465086618, or mute the thread https://github.com/notifications/unsubscribe-auth/AE7TEFp7GZafoFOU2jScsXrNhoXSY4d6ks5vO9nFgaJpZM4a_Mid .