Permission denied when trying to start server.
mkono87 opened this issue · comments
Start Logitech Media Server... [22-04-20 16:04:23.5502] main::init (390) Starting Logitech Media Server (v8.2.0, 1627922070, Tue Aug 3 11:37:35 CEST 2021) perl 5.028001 - x86_64-linux-gnu-thread-multi [22-04-20 16:04:23.5525] Slim::Utils::PluginManager::init (74) Failed to load plugin downloader: Can't locate Slim/Utils/PluginDownloader.pm: /config/lms/cache/InstalledPlugins/Slim/Utils/PluginDownloader.pm: Permission denied at /usr/share/perl5/Slim/Utils/PluginManager.pm line 69. [22-04-20 16:04:23.5599] File::Next::__ANON__ (217) Warning: /usr/share/squeezeboxserver/Plugins: Permission denied at /usr/share/squeezeboxserver/CPAN/File/Next.pm line 217. [22-04-20 16:04:23.5602] Slim::Utils::Prefs::Namespace::savenow (337) Error: can't save /config/lms/prefs/server.prefs: Permission denied at /usr/share/perl5/Slim/Utils/Prefs/Namespace.pm line 326.
I restored my HA after migrating it from proxmox to Unraid. For some reason this addon fails to start.
I had the same Problem:
As you requested here is the output with denied permission after the restored backup:
config-lms-denied-permissions-after-backup-restore.txt
And here is an output after deleting the /config/lms/ directory and reinstalling the LMS:
config-lms-after-new-installation.txt
@mhenlo thankyou most useful.
So I would say that the restore is not restoring the permissions of the original files (they have changed user ownership) on the restored system from the original restore.
I will have a think, to see if we can work round this though deleting /config/lms/addon/fixed_owner may be enough
I have the same problem. After restore from backup, addon can't started with permission denied errors.
If I delete /config/lms/addon/fixed_owner I got errors:
Slim::Networking::IO::Select::__ANON__ (130) Error: Select task failed calling Slim::Networking::Async::HTTP::_http_read_body: DBD::SQLite::st execute failed: attempt to write a readonly database at /usr/share/perl5/Slim/Utils/DbCache.pm line 77.
[22-11-25 19:34:21.0846] Slim::Networking::IO::Select::__ANON__ (130) Error: Select task failed calling Slim::Networking::Async::HTTP::_http_read_body: DBD::SQLite::st execute failed: attempt to write a readonly database at /usr/share/perl5/Slim/Utils/DbCache.pm line 77.
And many more errors about " write a readonly database".