Thanks @mherger
I already tried to delete that db and it seems the problem is
elsewhere.
I have 80% of my memory card empty on that pi, the media files are on a
NAS and not on the server itself.

here is a trail of operations I perform - after stop to ensure the
process doesn't run, I tail the log, check the file, delete it, check
memory, launch the server, and tail the log again; it fails. the file
then exist again and is 4k like we saw in my previous post.


Code:
--------------------
    pi@Raspserver:~ $ tail /var/log/squeezeboxserver/server.log
  [22-10-21 13:00:35.2307] Slim::Schema::forceCommit (2143) Warning: Trying to 
commit transactions before DB is initialized!
  2022-10-21 13:00:36 Logitech Media Server died. Restarting.
  [22-10-21 13:00:45.6611] main::init (387) Starting Logitech Media Server 
(v7.9.2, 1578996832, Tue Jan 14 12:16:57 CET 2020) perl 5.028001 - 
arm-linux-gnueabihf-thread-multi-64int
  [22-10-21 13:00:47.2177] Slim::Schema::Storage::throw_exception (99) Error: 
DBI Exception: DBD::SQLite::db do failed: database disk image is malformed
  Trying to rebuild /var/lib/squeezeboxserver/cache/library.db from scratch.
  [22-10-21 13:00:47.2423] Carp::Clan::__ANON__ (214) Warning: 
DBIx::Class::Storage::DBI::__ANON__(): DBI Exception: DBD::SQLite::db do 
failed: attempt to do on inactive database handle at 
/usr/share/squeezeboxserver/lib/DBIx/Migration.pm line 113
  [22-10-21 13:00:47.2450] Slim::Schema::forceCommit (2143) Warning: Trying to 
commit transactions before DB is initialized!
  2022-10-21 13:00:47 Logitech Media Server died. Restarting.
  2022-10-21 13:00:54 squeezeboxserver_safe stopped.
  pi@Raspserver:~ $ ls /var/lib/squeezeboxserver/cache/library.db
  /var/lib/squeezeboxserver/cache/library.db
  pi@Raspserver:~ $ sudo rm /var/lib/squeezeboxserver/cache/library.db
  pi@Raspserver:~ $ ls /var/lib/squeezeboxserver/cache/library.db
  ls: cannot access '/var/lib/squeezeboxserver/cache/library.db': No such file 
or directory
  pi@Raspserver:~ $ sudo df -H
  Filesystem                Size  Used Avail Use% Mounted on
  /dev/root                  15G  2.8G   12G  19% /
  devtmpfs                  450M     0  450M   0% /dev
  ...
  pi@Raspserver:~ $ tail /var/log/squeezeboxserver/server.log
  [22-10-21 13:00:47.2450] Slim::Schema::forceCommit (2143) Warning: Trying to 
commit transactions before DB is initialized!
  2022-10-21 13:00:47 Logitech Media Server died. Restarting.
  2022-10-21 13:00:54 squeezeboxserver_safe stopped.
  2022-10-21 13:05:29 squeezeboxserver_safe started.
  [22-10-21 13:05:38.7736] main::init (387) Starting Logitech Media Server 
(v7.9.2, 1578996832, Tue Jan 14 12:16:57 CET 2020) perl 5.028001 - 
arm-linux-gnueabihf-thread-multi-64int
  [22-10-21 13:05:40.2683] Slim::Schema::Storage::throw_exception (99) Error: 
DBI Exception: DBD::SQLite::db do failed: database disk image is malformed
  Trying to rebuild /var/lib/squeezeboxserver/cache/library.db from scratch.
  [22-10-21 13:05:40.2923] Carp::Clan::__ANON__ (214) Warning: 
DBIx::Class::Storage::DBI::__ANON__(): DBI Exception: DBD::SQLite::db do 
failed: attempt to do on inactive database handle at 
/usr/share/squeezeboxserver/lib/DBIx/Migration.pm line 113
  [22-10-21 13:05:40.2950] Slim::Schema::forceCommit (2143) Warning: Trying to 
commit transactions before DB is initialized!
  2022-10-21 13:05:41 Logitech Media Server died. Restarting.
  
--------------------


is there any other reason that would cause this file to get corrupted?
it seems it is created corrupted, or is corrupted instantly, which
doesn't make much sense to me.


------------------------------------------------------------------------
Marsupial's Profile: http://forums.slimdevices.com/member.php?userid=59182
View this thread: http://forums.slimdevices.com/showthread.php?t=116946

_______________________________________________
Squeezecenter mailing list
Squeezecenter@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/squeezecenter

Reply via email to