Skip to content
This repository was archived by the owner on Jun 4, 2021. It is now read-only.
This repository was archived by the owner on Jun 4, 2021. It is now read-only.

Localhost deployment fails on Aliyun #889

@nickolasclarke

Description

@nickolasclarke

Expected behavior:

edit: going to put all the issues I found with deploying to aliyun in here:

  1. streisand_ipv4_address should be set to the external IP
  2. ss config.json should be owned by root:nogroup instead of root:root
  3. unattended-upgrades service starts automatically.
  4. openVPN firewall service starts automatically.
  5. ss-server starts automatically.

Actual Behavior:

  1. streisand_ipv4_address gets set to instance's internal IP when deploying with localhost playbook on aliyun, which causes most services to break.
  2. SS config.json is owned by root:root
  3. unattended-upgrades service does not start
  4. openVPN firewall service does not start
  5. using the external ip in config.json does not bind properly and ss-server fails to start.

Solutions:

  1. allow user to spec the external IP in a prompt, otherwise continue to do our best effort to get the IP.
  2. change ownership to root:nogroup
  3. ?
  4. ?
  5. use '0.0.0.0' as the server address in the config.json.

Additional Details:

Log output from Ansible or other relevant services (link to Gist for longer output):

  1. SS config:
 systemd[1]: Started Shadowsocks-libev Default Server Service.
-- Subject: Unit shadowsocks-libev.service has finished start-up
-- Defined-By: systemd
-- Unit shadowsocks-libev.service has finished starting up.
--
-- The start-up result is done.
ss-server[16718]:  2017-08-19 11:29:44 ERROR: Invalid config path.
systemd[1]: shadowsocks-libev.service: Main process exited, code=exited, status=255/n/a
systemd[1]: shadowsocks-libev.service: Unit entered failed state.
systemd[1]: shadowsocks-libev.service: Failed with result 'exit-code'.
Target Cloud Provider: Aliyun
Operating System of target host: Ubuntu 16.04

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions