Unfortunately this was bad design decision in Airtime 2.0, when the network goes down, we don't differentiate between files being offline temporarily, and files being deleted (both cases are treated as deleted and this affects your playlists). This issue is now handled gracefull in Airtime 2.1.
Looks like the same error about every second in the log file
[Tue May 01 00:54:28 2012] [error] [client 127.0.0.1] PHP Fatal error: Call to a member function getId() on a non-object in /usr/share/airtime/application/controllers/ApiController.php on line 663
Also these
[Tue May 01 06:59:19 2012] [error] [client 127.0.0.1] PHP Warning: Invalid argument supplied for foreach() in /usr/share/airtime/application/controllers/LibraryController.php on line 157, referer: http://localhost/Playlist [Tue May 01 06:59:36 2012] [error] [client 127.0.0.1] PHP Notice: Undefined variable: totalDisplayRows in /usr/share/airtime/application/models/Datatables.php on line 99, referer: http://localhost/Playlist [Tue May 01 06:59:36 2012] [error] [client 127.0.0.1] PHP Notice: Undefined variable: totalRows in /usr/share/airtime/application/models/Datatables.php on line 100, referer: http://localhost/Playlist [Tue May 01 06:59:36 2012] [error] [client 127.0.0.1] PHP Notice: Undefined variable: results in /usr/share/airtime/application/models/Datatables.php on line 102, referer: http://localhost/Playlist [Tue May 01 06:59:36 2012] [error] [client 127.0.0.1] PHP Warning: Invalid argument supplied for foreach() in /usr/share/airtime/application/models/StoredFile.php on line 662, referer: http://localhost/Playlist [Tue May 01 06:59:36 2012] [error] [client 127.0.0.1] PHP Warning: Invalid argument supplied for foreach() in /usr/share/airtime/application/controllers/LibraryController.php on line 157, referer: http://localhost/Playlist [Tue May 01 06:59:52 2012] [error] [client 127.0.0.1] PHP Notice: Undefined variable: results in /usr/share/airtime/application/models/Datatables.php on line 102, referer: http://localhost/Playlist [Tue May 01 06:59:52 2012] [error] [client 127.0.0.1] PHP Warning: Invalid argument supplied for foreach() in /usr/share/airtime/application/models/StoredFile.php on line 662, referer: http://localhost/Playlist [Tue May 01 06:59:52 2012] [error] [client 127.0.0.1] PHP Warning: Invalid argument supplied for foreach() in /usr/share/airtime/application/controllers/LibraryController.php on line 157, referer: http://localhost/Playlist [Tue May 01 07:00:05 2012] [error] [client 127.0.0.1] PHP Notice: Undefined variable: results in /usr/share/airtime/application/models/Datatables.php on line 102, referer: http://localhost/Playlist [Tue May 01 07:00:05 2012] [error] [client 127.0.0.1] PHP Warning: Invalid argument supplied for foreach() in /usr/share/airtime/application/models/StoredFile.php on line 662, referer: http://localhost/Playlist [Tue May 01 07:00:05 2012] [error] [client 127.0.0.1] PHP Warning: Invalid argument supplied for foreach() in /usr/share/airtime/application/controllers/LibraryController.php on line 157, referer: http://localhost/Playlist [Tue May 01 07:00:29 2012] [error] [client 127.0.0.1] PHP Notice: Undefined variable: totalDisplayRows in /usr/share/airtime/application/models/Datatables.php on line 99, referer: http://localhost/Playlist [Tue May 01 07:00:29 2012] [error] [client 127.0.0.1] PHP Notice: Undefined variable: totalRows in /usr/share/airtime/application/models/Datatables.php on line 100, referer: http://localhost/Playlist [Tue May 01 07:00:29 2012] [error] [client 127.0.0.1] PHP Notice: Undefined variable: results in /usr/share/airtime/application/models/Datatables.php on line 102, referer: http://localhost/Playlist [Tue May 01 07:00:29 2012] [error] [client 127.0.0.1] PHP Warning: Invalid argument supplied for foreach() in /usr/share/airtime/application/models/StoredFile.php on line 662, referer: http://localhost/Playlist [Tue May 01 07:00:29 2012] [error] [client 127.0.0.1] PHP Warning: Invalid argument supplied for foreach() in /usr/share/airtime/application/controllers/LibraryController.php on line 157, referer: http://localhost/Playlist [Tue May 01 07:01:57 2012] [notice] caught SIGTERM, shutting down [Tue May 01 07:03:48 2012] [notice] Apache/2.2.17 (Ubuntu) PHP/5.3.5-1ubuntu7.7 with Suhosin-Patch configured -- resuming normal operations
I did a reboot of the computer, mounted the NAS and did a restart of the media manager and now the files are there
@Bob, we will have an RC this week, and that will be the last time you need to reinstall the database. Usually you want the database changes to be finished much earlier, however these changes are unrelated to the core functionality of Airtime and instead are for storing data of users who opt-in to sending statistics about how they use Airtime :)