nickolasclarke / juke Goto Github PK
View Code? Open in Web Editor NEWA Node.js script to reprovision a Streisand Instance on Digital Ocean to a new IP for GFW circumvention
License: MIT License
A Node.js script to reprovision a Streisand Instance on Digital Ocean to a new IP for GFW circumvention
License: MIT License
To delete...
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'.
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 :
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
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.
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.