Giter Club home page Giter Club logo

juke's People

Contributors

nickolasclarke avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

juke's Issues

getShadowsocks() doesnt handle connection timeouts properly

ssh failed to connect, getShadowsocks() didnt treat that as a failure and uploaded an empty config and moved on. Since the old server was destroyed, you have to manually create a new server from the snapshot to get the config back, or spin a new instance of streisand.

Attempting to connect to server streisand-1-30-14.16. . .
Attempt: 3
STDOUT: 06:17:25 up 0 min,  0 users,  load average: 0.59, 0.13, 0.04
updating Shadowsocks. . .

{ Error: connect EAGAIN 138.68.26.25:22 - Local (0.0.0.0:53779)
    at Object.exports._errnoException (util.js:1022:11)
    at exports._exceptionWithHostPort (util.js:1045:20)
    at connect (net.js:881:16)
    at net.js:970:9
    at _combinedTickCallback (internal/process/next_tick.js:67:7)
    at process._tickCallback (internal/process/next_tick.js:98:9)
  code: 'EAGAIN',
  errno: 'EAGAIN',
  syscall: 'connect',
  address: '138.68.26.25',
  port: 22,
  level: 'client-socket' }

config.json transferred succesfully
restarting shadowsocks-libev
STDOUT: โ— shadowsocks-libev.service - Shadowsocks-libev Default Server Service
   Loaded: loaded (/lib/systemd/system/shadowsocks-libev.service; enabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since Mon 2017-01-30 06:18:08 UTC; 6ms ago
  Process: 4921 ExecStart=/usr/bin/ss-server -a $USER -c $CONFFILE $DAEMON_ARGS (code=exited, status=255)
 Main PID: 4921 (code=exited, status=255)

Jan 30 06:18:08 streisand-1-30-14 systemd[1]: Started Shadowsocks-libev Default Server Service.
Jan 30 06:18:08 streisand-1-30-14 ss-server[4921]:  2017-01-30 06:18:08 ERROR: Invalid config file
Jan 30 06:18:08 streisand-1-30-14 systemd[1]: shadowsocks-libev.service: Main process exited, code=exited, status=255/n/a
Jan 30 06:18:08 streisand-1-30-14 systemd[1]: shadowsocks-libev.service: Unit entered failed state.
Jan 30 06:18:08 streisand-1-30-14 systemd[1]: shadowsocks-libev.service: Failed with result 'exit-code'.

Activate HTTPS.

The https:// and tor:// gateways are also unavailble upon redeployment, which contains the client configuration details, mirrors, etc.

Hi,

To reconnect the https:// protocol we need to :

  1. nano /etc/default/sslh and modify the last line with our new ip_v4_address
  2. nano /etc/monit/monitrc and edit the sslh part with our new ip_v4_address
  3. restart service sslh

Then you can get back to your https address. I think we can automate those steps maybe.

Meanwhile, i'm trying to adapt this project to Vultr API if you don't mind @nickolasclarke

juke does not destroy old server

I forgot to add in the destroyServer() function from the old version. This means that old servers are not destroyed automatically once the new one is deployed successfully. Add in this functionality and may it optional.

StartNewServer uses hardcoded DC and SSH key id

I've inadvertently left some hardcoded variables that should be extracted from the sessionInfo object instead.

namely:

  let newServerDetails = {
    name: `streisand-${time.getMonth() + 1}-${time.getDate()
      }-${time.getHours()}.${time.getMinutes()}`,
    region: 'sfo2',
    // "region": oldServer.oldserver.region.slug,
    size: '512mb', 
    image,
    ssh_keys: [1278744],
  };

region should use the commented version, ssh_keys needs to lookup the key based off of what is provided in sessionInfo, and size should probabaly also pull from oldServer as well, in case someone has resized their droplet.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.