0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

swapファイルが起動して誠にテンパりました

Last updated at Posted at 2021-08-23

はじめに

swapファイルが起動して誠にテンパりました(おばか)ので、メモ。

最終更新日

2021年8月23日

環境の情報

OS
ubuntu 20.04

経緯

ファイルを編集していたところ、誤って何かキーボードを押してしまったようで、変な状態で終了したかと思われます。

実際に

swapファイルが起動したようです。
しかし、終わることが出来ません。

E325: ATTENTION
Found a swap file by the name "/etc/php/7.4/mods-available/.xdebug.ini.swp"
          owned by: root   dated: Fri Aug 13 07:34:36 2021
         file name: /etc/php/7.4/cli/conf.d/20-xdebug.ini
          modified: YES
         user name: root   host name: ubuntu2004.localdomain
        process ID: 1466 (STILL RUNNING)
While opening file "20-xdebug.ini"
             dated: Fri Aug 13 07:48:17 2021
      NEWER than swap file!

(1) Another program may be editing the same file.  If this is the case,
    be careful not to end up with two different instances of the same
    file when making changes.  Quit, or continue with caution.
(2) An edit session for this file crashed.
    If this is the case, use ":recover" or "vim -r 20-xdebug.ini"
    to recover the changes (see ":help recovery").
    If you did this already, delete the swap file "/etc/php/7.4/mods-available/.xdebug.ini.swp"
    to avoid this message.

Swap file "/etc/php/7.4/mods-available/.xdebug.ini.swp" already exists!
[O]pen Read-Only, (E)dit anyway, (R)ecover, (Q)uit, (A)bort: 

[O]pen Read-Only, →終わらない
(E)dit anyway, →終わらない
(R)ecover,→終わらない
(Q)uit,→終わらない
(A)bort: →終わらない

何を押しても、永遠に出てきてしまう状態になりました(´・ω・`)
ls -laで見ても見当たらず。(何故?!)

ど゛う゛し゛て゛な゛ん゛だ゛よ゛お゛お゛ぉ゛お゛!゛!゛!゛
ん゛あ゛あ゛あ゛あ゛あ゛ぁ゛ぁ゛あ゛あ゛!゛!゛!゛!゛


落ち着いて再起動してみました。

vagrant@ubuntu2004:/etc/php/7.4/mods-available$ ls -la
total 104
drwxr-xr-x 2 root root  4096 Aug 13 07:54 .
drwxr-xr-x 5 root root  4096 Aug 13 02:55 ..
-rw-r--r-- 1 root root   279 Aug 13 07:54 xdebug.ini
-rw-r--r-- 1 root root 12288 Aug 13 07:59 .xdebug.ini.swp

しれっと出てきました。(なんだお前は)

Swap file "/etc/php/7.4/mods-available/.xdebug.ini.swp" already exists!
"20-xdebug.ini" 10L, 278C
Using swap file "/etc/php/7.4/mods-available/.xdebug.ini.swp"
Original file "/etc/php/7.4/cli/conf.d/20-xdebug.ini"
E308: Warning: Original file may have been changed
E309: Unable to read block 1 from /etc/php/7.4/mods-available/.xdebug.ini.swp


rmでさよならしました。ばいばい!元気でね!

参考さま

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?