システムに大きな問題が発生しました。どういうわけか、sqlite システム全体がロックされます。単一のデータベースについて話しているのではなく、システム内のすべてのデータベースについて話しているのです。
ladb08@newcastle:~$ touch new.sqlite3
ladb08@newcastle:~$ sqlite3 new.sqlite3
SQLite version 3.7.3
Enter ".help" for instructions
Enter SQL statements terminated with a ";"
sqlite> .tables
Error: database is locked
sqlite>
同じ問題のため、firefox でさえ正しく開くことができません。なぜこれが起こったのか分かりませんでした。このサーバーは debian サーバーであり、私のチームが Rails でサイトを開発するために使用しています。外部の git リポジトリにあるものを一元化して、誰もが自分のユーザーと自分のコピーを使用して作業できるようにします。
別のテスト:
ladb08@newcastle:~/agendador/db$ lsof test.sqlite3
ladb08@newcastle:~/agendador/db$ fuser test.sqlite3
ladb08@newcastle:~/agendador/db$ strace -e fcntl sqlite3 test.sqlite3 .tables
fcntl(3, F_GETFD) = 0
fcntl(3, F_SETFD, FD_CLOEXEC) = 0
fcntl(4, F_GETFD) = 0x1 (flags FD_CLOEXEC)
fcntl(3, F_SETLK, {type=F_RDLCK, whence=SEEK_SET, start=1073741824, len=1}) = -1 ENOLCK (No locks available)
Error: database is locked
誰もデータベースを使用していません。そして、新しいものを空にする場合も同じことが起こります。
================================================== =========================
より詳しい情報:
root@newcastle:~# cd /home/ladb08/agendador/db/
root@newcastle:/home/ladb08/agendador/db# sqlite3 test.sqlite3
SQLite version 3.7.3
Enter ".help" for instructions
Enter SQL statements terminated with a ";"
sqlite> .tables
Error: database is locked
sqlite> .exit
問題は、いつものように。
root@newcastle:~# cd /root
root@newcastle:~# cp /home/ladb08/agendador/db/test.sqlite3 ./
root@newcastle:~# sqlite3 test.sqlite3
SQLite version 3.7.3
Enter ".help" for instructions
Enter SQL statements terminated with a ";"
sqlite> .tables
agendamentos prefeituras tipo_atendimentos
bloqueios profissionais tipo_situacoes
cidadaos schema_migrations tmibges
escalas tcbos tufibges
orgaos tconselhos
orgaos_tipo_atendimentos tipo_acoes
nfs パーティションの外では、同じファイルで問題ありません。
root@newcastle:~# mount
(...)
rootfs on / type rootfs (rw)
urquell.home2:/home2/home-newcastle on /home type nfs (rw,v3,addr=10.17.116.3)
fusectl on /sys/fs/fuse/connections type fusectl (rw)