ljunkie / plexWatch

Notify and Log watched content on a Plex Media Server
430 stars 59 forks source link

Database error #118

Open rayk32 opened 8 years ago

rayk32 commented 8 years ago

Everything seems to be working correctly, but I'm getting this error when I run ./plexWatch.pl from the command line. I'm running Ubuntu.

DBD::SQLite::st execute failed: attempt to write a readonly database at ./plexWatch.pl line 1093. DBD::SQLite::st execute failed: attempt to write a readonly database at ./plexWatch.pl line 1094. Unable to execute query: DBI::db=HASH(0x2537210)->errstr

line 1093: $delete->execute; line 1094: $insert->execute($version,$json_s,$json_p,$ref_blob) or die("Unable to execute query: $dbh->errstr\n");

I'm guessing the database the errors are referring to is as follows. That database resides in the same directory as plexWatch.pl. /opt/plexWatch

-rw-r--r-- 1 www-data www-data 199680 Feb 2 07:36 plexWatch.db