{"id":1097,"date":"2022-02-01T09:49:02","date_gmt":"2022-02-01T17:49:02","guid":{"rendered":"https:\/\/blog.portnumber53.com\/?p=1097"},"modified":"2022-02-01T09:49:26","modified_gmt":"2022-02-01T17:49:26","slug":"oci-instance-stuck-in-starting-stopping-rebooting-what-to-do","status":"publish","type":"post","link":"https:\/\/blog.portnumber53.com\/index.php\/2022\/02\/01\/oci-instance-stuck-in-starting-stopping-rebooting-what-to-do\/","title":{"rendered":"OCI Instance stuck in &#8220;starting&#8221;, &#8220;stopping&#8221;, &#8220;rebooting&#8221;, what to do?"},"content":{"rendered":"\n<p>What to do when your Oracle Cloud Infrastructure instance gets instance<\/p>\n\n\n\n<p>Recently right after doing a regular <code>apt-get dist-upgrade<\/code> my OCI instance got stuck for a few hours in the &#8220;reboot&#8221; state.<\/p>\n\n\n\n<p>Using the web GUI to restart didn&#8217;t work, and the result was the same through the command line.<\/p>\n\n\n\n<p>After a few hours, the machine did change to &#8220;starting&#8221; but it also got stuck there till the next morning. Web GUI and command line tool did not help again.<\/p>\n\n\n\n<p>So I started searching&#8230; I even created an account on Oracle Communities (which is horribly organize, really hard to get to what you need; plus when I clicked on the right resource (I think), it told me I don&#8217;t have permission to access it&#8230;. wth?, it&#8217;s supposed to be community support)<\/p>\n\n\n\n<p>Anyways&#8230; after trying to add a payment method to my account, and being blocked by their anti-fraud system telling me &#8220;We&#8217;re unable to process your transaction. If you continue to encounter the error, you may contact&nbsp;<a rel=\"noreferrer noopener\" class=\"\" href=\"https:\/\/store-oracle.custhelp.com\/\" target=\"_blank\">Oracle Customer Service.<\/a>.&#8221;; I tried chatting with Customer Service, which just told me they couldn&#8217;t do anything&#8230;.<\/p>\n\n\n\n<p>So I decided to see what else I could do.<\/p>\n\n\n\n<p>Being on the free tier, and using all my 4 Ampere instances, I decided to terminate the stuck one *without* terminating the boot volume, and provision another one, without a boot volume&#8230;.<\/p>\n\n\n\n<p>Of course that doesn&#8217;t seem to be a use case Oracle thought of, so I had to provision a new instance with its own boot volume, which automatically terminates the new instance as it puts me over the free tier limit.<\/p>\n\n\n\n<p>So my solution was to attach the boot volume from the now terminated instance (ex-stuck) to a running one, run their &#8220;iscsi&#8221; commands to let Linux know about the volume (Thanks God they don&#8217;t differenciate between attaching a boot volume and a regular volume); mount the volume, and then rsync to my laptop.<\/p>\n\n\n\n<p>Next step is to simply terminate the boot volume, that I now have copied all the files I wanted from; Create a new instance and restore the data back to it.<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>Hope this helps someone \ud83d\ude42<\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>What to do when your Oracle Cloud Infrastructure instance gets instance Recently right after doing a regular apt-get dist-upgrade my OCI instance got stuck for a few hours in the &#8220;reboot&#8221; state. Using the web GUI to restart didn&#8217;t work, and the result was the same through the command line&#8230;. <a class=\"continue-reading-link\" href=\"https:\/\/blog.portnumber53.com\/index.php\/2022\/02\/01\/oci-instance-stuck-in-starting-stopping-rebooting-what-to-do\/\"> Continue reading <span class=\"meta-nav\">&rarr; <\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11],"tags":[385,383,384],"class_list":["post-1097","post","type-post","status-publish","format-standard","hentry","category-hosting","tag-instance-stuck","tag-oci","tag-oracle-cloud"],"_links":{"self":[{"href":"https:\/\/blog.portnumber53.com\/index.php\/wp-json\/wp\/v2\/posts\/1097","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.portnumber53.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.portnumber53.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.portnumber53.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.portnumber53.com\/index.php\/wp-json\/wp\/v2\/comments?post=1097"}],"version-history":[{"count":3,"href":"https:\/\/blog.portnumber53.com\/index.php\/wp-json\/wp\/v2\/posts\/1097\/revisions"}],"predecessor-version":[{"id":1102,"href":"https:\/\/blog.portnumber53.com\/index.php\/wp-json\/wp\/v2\/posts\/1097\/revisions\/1102"}],"wp:attachment":[{"href":"https:\/\/blog.portnumber53.com\/index.php\/wp-json\/wp\/v2\/media?parent=1097"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.portnumber53.com\/index.php\/wp-json\/wp\/v2\/categories?post=1097"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.portnumber53.com\/index.php\/wp-json\/wp\/v2\/tags?post=1097"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}