SQLite 磁盘 I/O 错误 (3850)

fra*_*ras 5 sqlite errors

我似乎无法弄清楚是什么导致了 I/O 错误:

$sqlite3 db.sqlite < data.sql 
(3850) disk I/O error
Error: near line 2: disk I/O error
(3850) disk I/O error
Error: near line 3: disk I/O error
(3850) disk I/O error
Error: near line 5: disk I/O error
(3850) disk I/O error
Error: near line 8: disk I/O error
(3850) disk I/O error
Error: near line 9: disk I/O error
Run Code Online (Sandbox Code Playgroud)

参见下面data.sql的内容

$ less data.sql
.log stderr 
PRAGMA synchronous = OFF;
PRAGMA journal_mode = MEMORY;
BEGIN TRANSACTION;
CREATE TABLE "temp_user_C560B60C-B690-FF4A-8D35-C9A6D4EE2A6B_purchases" (
  "product_id" varchar(36) NOT NULL
);
INSERT INTO "temp_user_C560B60C-B690-FF4A-8D35-C9A6D4EE2A6B_purchases" VALUES ('C6E07AA2-5B01-11E4-9116-00166E0083A1');
INSERT INTO "temp_user_C560B60C-B690-FF4A-8D35-C9A6D4EE2A6B_purchases" VALUES ('C6E07AA2-5B01-11E4-9116-00166E0083AA');
END TRANSACTION;
Run Code Online (Sandbox Code Playgroud)

我已经看到这个问题:disk I/O error in SQLite 但在我插入.log stderrdata.sql 文件顶部并且我没有使用 Virtualbox 后,我的问题生成了不同的错误代码 - 我不确定主机是否正在使用另一个虚拟化的形式。

fra*_*ras 4

所以我们的系统管理员只是告诉我: "we use VMWare virtualization, and the system is fully optimized as a VM (virtio, etc.).You are trying to do the read and the write to an NFS mounted disk (my home directory)" 我尝试了该命令/tmp并且它在那里工作。