Hello, I’ve encountered a problem recently. For some reason, the pioreactor.sqlite
file can no longer be written to.
I checked the ownership and permissions of the file, and they are as follows:
-rw-rw-r-- 1 pioreactor www-data 233267200 Aug 29 02:37 pioreactor.sqlite
I also checked the permissions of the folder where this file is stored, storage
, and found them to be:
drwxrws--- 12 pioreactor www-data 4096 Dec 1 13:47 storage
I found that the read_only
attribute of pioreactor.sqlite
is 0.
I checked the ownership of lighttpd
, and the result is:
www-data 4474 0.0 0.5 3988 2816 ? Ss Nov30 0:01 /usr/sbin/lighttpd -D -f /etc/lighttpd/lighttpd.conf
pioreac+ 5283 0.0 0.3 7532 1792 pts/0 S+ 14:11 0:00 grep --color=auto lighttpd
The ownership of flask
is as follows:
pioreac+ 5281 0.0 0.3 7532 1792 pts/0 S+ 14:11 0:00 grep --color=auto flask
From what I can tell, all the permissions seem normal.
- However, when I try to operate the reactor through the UI, none of the records can be saved, and occasionally I get the error message: “attempt to write a readonly database.”
- When I run commands via
sqlite3
, I can only insert data if I executesudo sqlite3 pioreactor.sqlite
. Otherwise, I receive the “attempt to write a readonly database” error.
I’m not sure how to resolve this issue. Could you help me?