{"id":270,"date":"2016-08-31T12:06:15","date_gmt":"2016-08-31T17:06:15","guid":{"rendered":"http:\/\/morsepower.net\/?p=270"},"modified":"2016-08-31T12:06:15","modified_gmt":"2016-08-31T17:06:15","slug":"connection-refused","status":"publish","type":"post","link":"https:\/\/morsepower.net\/?p=270","title":{"rendered":"Connection Refused"},"content":{"rendered":"<pre># ssh morsepower.net -p \u00c2\u00a0&lt;redacted&gt;\r\n\r\nConnection refused<\/pre>\n<p>Hmm.<\/p>\n<p>Ok, don\u00e2\u20ac\u2122t panic. \u00c2\u00a0The server has been turned off and on several times, maybe I just got caught in a bad state. \u00c2\u00a0Obviously I can\u00e2\u20ac\u2122t shut it down from the network, so I\u00e2\u20ac\u2122ve got no choice but to pound the Reset button. \u00c2\u00a0Should be fine. \u00c2\u00a0Obviously the thing is idle.<\/p>\n<pre># ssh morsepower.net -p \u00c2\u00a0&lt;redacted&gt;\r\n\r\nConnection failed: No route to host<\/pre>\n<p><b>Hmm.<\/b><\/p>\n<p>Ok, don\u00e2\u20ac\u2122t panic. \u00c2\u00a0Must be the router. \u00c2\u00a0Port forwarding probably got screwy. \u00c2\u00a0Let\u00e2\u20ac\u2122s just check 192.168.1.1 and\u00e2\u20ac\u00a6nope, it\u00e2\u20ac\u2122s not the router. \u00c2\u00a0OK, this headless server concept only works if the server can actually be access on the damned network. \u00c2\u00a0Time to get over myself and plug a physical freaking monitor and keyboard into the thing. \u00c2\u00a0Fancy electronics sitting on a decrepit old wooden workbench. \u00c2\u00a0I like the juxtaposition there. \u00c2\u00a0Anyhow let\u00e2\u20ac\u2122s take a look-see.<\/p>\n<p>&#8230;<\/p>\n<p>Nothing? \u00c2\u00a0No video output?<\/p>\n<p><b><i>HMM<\/i><\/b>.<\/p>\n<p>Don\u00e2\u20ac\u2122t panic. \u00c2\u00a0Pound the Reset again. \u00c2\u00a0I need to see what is going on when it boots u-<b>why is it rebooting into the BIOS setup screen?! \u00c2\u00a0<\/b>What\u00e2\u20ac\u2122s the hard disk boot priority set to?<\/p>\n<pre>SATA 1: -\r\n\r\nSATA 2: -\r\n\r\nSATA 3: -\r\n\r\nSATA 4: -<\/pre>\n<p>SHIT ASS FUCK.<\/p>\n<p>Ok, <i>don\u00e2\u20ac\u2122t panic<\/i>. \u00c2\u00a0There are multiple possible points of failure. \u00c2\u00a0I might not have lost everything. \u00c2\u00a0Let\u00e2\u20ac\u2122s pop the hard drive out, shove it into an enclosure, hook it up to my PC and see what Linux can tell me.<\/p>\n<pre>#ls \/dev\/sde*\r\n\r\n\/dev\/sde\r\n\r\n#fdisk -l \/dev\/sde\r\n\r\nNo partitions found\r\n\r\n#testdisk \/dev\/sde\r\n\r\nCannot access \/dev\/sde<\/pre>\n<p><b>OK ACTUALLY DO PANIC<\/b>.<\/p>\n<p>You know when they tell you not to just turn off a computer without gracefully shutting it down? \u00c2\u00a0Yeah, they aren\u00e2\u20ac\u2122t joking. \u00c2\u00a0Of course, out of pure frustration I\u00e2\u20ac\u2122ve done this several times to this stupid server because of its propensity to refuse to shut down like a normal computer. \u00c2\u00a0But it always came back swinging. \u00c2\u00a0Not this time, though. \u00c2\u00a0Now it\u00e2\u20ac\u2122s dead. \u00c2\u00a0It\u00e2\u20ac\u2122s really dead. \u00c2\u00a0This was a solid state drive, so I don\u00e2\u20ac\u2122t know if there\u00e2\u20ac\u2122s any coming back from this.<\/p>\n<p>Now I\u00e2\u20ac\u2122m faced with the same choice I had when this happened a few short months ago. \u00c2\u00a0Do I rebuild my blog from scratch, <i>again?<\/i> \u00c2\u00a0Or do I just swallow my pride and get a wordpress.com account and let them do it. \u00c2\u00a0\u00c2\u00a0Now repeat that question across all the potential use cases for this device. \u00c2\u00a0Blog, game server, backup file host, IoT base station, calendar server. \u00c2\u00a0Do it myself, or let somebody do it for me? \u00c2\u00a0It would be so much easier, wouldn\u00e2\u20ac\u2122t it? \u00c2\u00a0Just buy my way out of the problem, with my money or access to my data.<\/p>\n<p>No. \u00c2\u00a0Fuck that. \u00c2\u00a0I\u00e2\u20ac\u2122m an engineer. \u00c2\u00a0I make thing. \u00c2\u00a0I solve problems. \u00c2\u00a0I don\u00e2\u20ac\u2122t pay people to do it for me. \u00c2\u00a0I\u00e2\u20ac\u2122ll learn from this. \u00c2\u00a0I\u00e2\u20ac\u2122ll get better.<\/p>\n<p>Hell, the replacement hard drive is on Prime. \u00c2\u00a0I won\u00e2\u20ac\u2122t even have to wait very long.<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p># ssh morsepower.net -p \u00c2\u00a0&lt;redacted&gt; Connection refused Hmm. Ok, don\u00e2\u20ac\u2122t panic. \u00c2\u00a0The server has been turned off and on several times, maybe I just got caught in a bad state. \u00c2\u00a0Obviously I can\u00e2\u20ac\u2122t shut it down from the network, so I\u00e2\u20ac\u2122ve got no choice but to pound the Reset button. \u00c2\u00a0Should be fine. \u00c2\u00a0Obviously the [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-270","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/morsepower.net\/index.php?rest_route=\/wp\/v2\/posts\/270","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/morsepower.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/morsepower.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/morsepower.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/morsepower.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=270"}],"version-history":[{"count":1,"href":"https:\/\/morsepower.net\/index.php?rest_route=\/wp\/v2\/posts\/270\/revisions"}],"predecessor-version":[{"id":271,"href":"https:\/\/morsepower.net\/index.php?rest_route=\/wp\/v2\/posts\/270\/revisions\/271"}],"wp:attachment":[{"href":"https:\/\/morsepower.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=270"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/morsepower.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=270"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/morsepower.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=270"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}