Plummer
Plummer

Reputation: 6688

Node.js - traceroute equivalent

I have a situation where, for the last 4 months, I've been running deployments via Codeship to MediaTemple Wordpress Managed Hosting for 10 different sites.

Then, out of no where, I started receiving this error for all deployments:

ssh_exchange_identification: read: Connection reset by peer

In troublehsooting, I hit a brick wall from MediaTemple as they want to run a traceroute from Codeship to hit the MediaTemple hosting server before they'll look into anything else. Only problem is, traceroute is not installed on Codeship. Neither is MTR.

My deployment is extremely basic. Runs with GIT over SSH.

git config --global user.name "username"
git config --global user.email [email protected]
git remote add production [email protected]:reponame.git
git push production master

I'm looking for any way to run a traceroute equivalent via node or Javascript. I've been a few npm wrappers for traceroute, but if native traceroute is a dependency, that doesn't do me any good.

Upvotes: 0

Views: 3201

Answers (1)

rsp
rsp

Reputation: 111394

There is a Node script called sloppy traceroute clone by Liam Griffiths. I haven't used it myself but it is supposed to do what traceroute does but all in JavaScript.

It needs raw-socket and dns modules from npm.

Keep in mind that it may still not work on Codeship due to permissions and network configuration.

Upvotes: 2

Related Questions