Gfjardim's Logitech Media Server Docker


Recommended Posts

I changed location of my music files from disc 4 to disk 5 to get ll my harddrives formatted as xfs

Can you show me how to change the music file location without removing the docker and reinstalling

Currently it shows it as  /music-/mnt/disk4/music/ and it needs to be /music-/mnt/disk5/music/

Link to comment

I changed location of my music files from disc 4 to disk 5 to get ll my harddrives formatted as xfs

Can you show me how to change the music file location without removing the docker and reinstalling

Currently it shows it as  /music-/mnt/disk4/music/ and it needs to be /music-/mnt/disk5/music/

Just edit the docker and change that volume mapping. The docker doesn't know anything about /mnt/disk4/music or /mnt/disk5/music. All it knows is /music and you aren't changing that.
Link to comment

What version of unRAID are you using? All recent versions have docker configuration built-in to the GUI.

g

 

I am using v6.01. I cannot find the GUI to make changes anywhere. I only find the GUI for adding new Docker images. Where am I looking incorrectly or going wrong ?

I only want to change the location to /music >> /mnt/user/music.

Link to comment

change it from

 

/music >> /mnt/disk4/music

 

to

 

/music >> /mnt/user/music

 

and never have to worry about it again.

 

Please explain where and how.

 

in the unRAID webGUI, click on the docker tab. Click on the icon for the LMS docker and then edit. You should be able to figure it out from there.

Link to comment

change it from

 

/music >> /mnt/disk4/music

 

to

 

/music >> /mnt/user/music

 

and never have to worry about it again.

 

Please explain where and how.

 

in the unRAID webGUI, click on the docker tab. Click on the icon for the LMS docker and then edit. You should be able to figure it out from there.

 

Thanks for all the guidance. I found a second problem when I attempted your instructions. I had no icon and the only steps available were Stop,Logs and Remove. Not what was expected. I was going to reinstall the Docker and found the Gfjardim's Docker Repository was missing. So I reinserted Gfjardim's Docker Repository and reinstalled the docker. I did find that the docker required mnt/disk5/music not mnt/music. Now all is running as expected.

Link to comment

change it from

 

/music >> /mnt/disk4/music

 

to

 

/music >> /mnt/user/music

 

and never have to worry about it again.

 

Please explain where and how.

 

in the unRAID webGUI, click on the docker tab. Click on the icon for the LMS docker and then edit. You should be able to figure it out from there.

 

Thanks for all the guidance. I found a second problem when I attempted your instructions. I had no icon and the only steps available were Stop,Logs and Remove. Not what was expected. I was going to reinstall the Docker and found the Gfjardim's Docker Repository was missing. So I reinserted Gfjardim's Docker Repository and reinstalled the docker. I did find that the docker required mnt/disk5/music not mnt/music. Now all is running as expected.

/mnt/music would not work, of course, since that doesn't exist. The suggestion was to use /mnt/user/music.

 

The top level folders of cache and array disks are user shares. User shares are at /mnt/user. So, /mnt/disk4/music and /mnt/disk5/music can both be accessed at /mnt/user/music.

Link to comment
  • 2 months later...
  • 1 year later...

I've had this (Grjardim's LMS docker) working for a while.  Suddenly, I couldn't get it to work, which I think was because a Kaspsersky update killed my access to the HTTP address and port 9000.  I ended up uninstalling the LMS docker and reinstalling.  I finally uninstalled Kaspsersky and can access the LMS docker.  However, I can't get it to work.  I have been uninstalled and reinstalled multiple times.  I've used the cache for the config and used the user share (which is the way the LMS docker comes configured).  What I get are a bunch of errors.  Here's the log file:

 

---------

 

*** Running /etc/rc.local...

*** Booting runit daemon...

*** Runit started as PID 8

dirsFor: Didn't find a match request: [scprefs]

dirsFor: Didn't find a match request: [videos]

dirsFor: Didn't find a match request: [pictures]

[17-01-08 10:56:09.6015] main::init (394) Starting Logitech Media Server (v7.9.0, 1431440256, Mon May 18 04:05:49 UTC 2015) perl 5.018002

[17-01-08 10:56:09.7229] YAML::XS::DumpFile (31) Warning: Can't open '/config/cache/plugin-data.yaml' for output:

Permission denied at /usr/share/squeezeboxserver/CPAN/YAML/XS.pm line 31.

[17-01-08 10:56:09.7234] Slim::Utils::Prefs::Namespace::savenow (338) Error: can't save /config/prefs/plugin/state.prefs: No such file or directory at /usr/share/perl5/Slim/Utils/Prefs/Namespace.pm line 327.

[17-01-08 10:56:09.7237] Slim::Utils::Prefs::Namespace::savenow (338) Error: can't save /config/prefs/server.prefs: Permission denied at /usr/share/perl5/Slim/Utils/Prefs/Namespace.pm line 327.

dirsFor: Didn't find a match request: [scprefs]

dirsFor: Didn't find a match request: [videos]

dirsFor: Didn't find a match request: [pictures]

[17-01-08 10:56:10.5961] main::init (394) Starting Logitech Media Server (v7.9.0, 1431440256, Mon May 18 04:05:49 UTC 2015) perl 5.018002

[17-01-08 10:56:11.6173] Slim::Schema::init (163) Warning: Creating new database - empty, outdated or invalid database found

[17-01-08 10:56:11.8645] Slim::Utils::SQLiteHelper::postConnect (373) Optimizing DB because of missing or empty sqlite_stat1 table

[17-01-08 10:56:11.8956] Slim::Schema::forceCommit (2149) Warning: Trying to commit transactions before DB is initialized!

[17-01-08 10:56:12.5949] main::checkDataSource (1129) Warning: Schema updated or no media found in the database, initiating scan.

[17-01-08 10:56:12.5959] Slim::Utils::Prefs::Namespace::savenow (338) Error: can't save /config/prefs/plugin/cli.prefs: Permission denied at /usr/share/perl5/Slim/Utils/Prefs/Namespace.pm line 327.

[17-01-08 10:56:12.5962] Slim::Utils::Prefs::Namespace::savenow (338) Error: can't save /config/prefs/plugin/extensions.prefs: Permission denied at /usr/share/perl5/Slim/Utils/Prefs/Namespace.pm line 327.

[17-01-08 10:56:12.5965] Slim::Utils::Prefs::Namespace::savenow (338) Error: can't save /config/prefs/plugin/audioscrobbler.prefs: Permission denied at /usr/share/perl5/Slim/Utils/Prefs/Namespace.pm line 327.

[17-01-08 10:56:12.5978] Slim::Utils::Prefs::Namespace::savenow (338) Error: can't save /config/prefs/plugin/extendedbrowsemodes.prefs: Permission denied at /usr/share/perl5/Slim/Utils/Prefs/Namespace.pm line 327.

[17-01-08 10:56:12.5982] Slim::Utils::Prefs::Namespace::savenow (338) Error: can't save /config/prefs/plugin/rescan.prefs: Permission denied at /usr/share/perl5/Slim/Utils/Prefs/Namespace.pm line 327.

[17-01-08 10:56:12.5984] Slim::Utils::Prefs::Namespace::savenow (338) Error: can't save /config/prefs/plugin/datetime.prefs: Permission denied at /usr/share/perl5/Slim/Utils/Prefs/Namespace.pm line 327.

[17-01-08 10:56:12.5986] Slim::Utils::Prefs::Namespace::savenow (338) Error: can't save /config/prefs/plugin/infobrowser.prefs: Permission denied at /usr/share/perl5/Slim/Utils/Prefs/Namespace.pm line 327.

[17-01-08 10:56:12.5988] Slim::Utils::Prefs::Namespace::savenow (338) Error: can't save /config/prefs/plugin/state.prefs: Permission denied at /usr/share/perl5/Slim/Utils/Prefs/Namespace.pm line 327.

[17-01-08 10:56:12.5991] Slim::Utils::Prefs::Namespace::savenow (338) Error: can't save /config/prefs/plugin/randomplay.prefs: Permission denied at /usr/share/perl5/Slim/Utils/Prefs/Namespace.pm line 327.

[17-01-08 10:56:12.5993] Slim::Utils::Prefs::Namespace::savenow (338) Error: can't save /config/prefs/plugin/rssnews.prefs: Permission denied at /usr/share/perl5/Slim/Utils/Prefs/Namespace.pm line 327.

[17-01-08 10:56:12.5995] Slim::Utils::Prefs::Namespace::savenow (338) Error: can't save /config/prefs/plugin/jiveextras.prefs: Permission denied at /usr/share/perl5/Slim/Utils/Prefs/Namespace.pm line 327.

[17-01-08 10:56:13.0733] main::main (204) Starting Logitech Media Server scanner (v7.9.0, 1431440256, Mon May 18 04:05:49 UTC 2015) perl 5.018002

[17-01-08 10:56:13.3358] Slim::Schema::forceCommit (2149) Warning: Trying to commit transactions before DB is initialized!

[17-01-08 10:56:13.8824] Slim::Music::Import::runImporter (511) Starting Slim::Media::MediaFolderScan scan

[17-01-08 10:56:13.8826] Slim::Music::Import::endImporter (643) Completed Slim::Media::MediaFolderScan Scan in 0 seconds.

[17-01-08 10:56:13.9013] Slim::Music::Import::runImporter (511) Starting Slim::Plugin::FullTextSearch::Plugin scan

[17-01-08 10:56:13.9029] Slim::Plugin::FullTextSearch::Plugin::_rebuildIndex (408) Starting fulltext index build

[17-01-08 10:56:13.9034] Slim::Plugin::FullTextSearch::Plugin::_rebuildIndex (412) Initialize fulltext table

[17-01-08 10:56:13.9058] Slim::Plugin::FullTextSearch::Plugin::_rebuildIndex (418) Create fulltext index for tracks

[17-01-08 10:56:14.0126] Slim::Plugin::FullTextSearch::Plugin::_rebuildIndex (428) Create fulltext index for albums

[17-01-08 10:56:14.0465] Slim::Plugin::FullTextSearch::Plugin::_rebuildIndex (437) Create fulltext index for contributors

[17-01-08 10:56:14.0793] Slim::Plugin::FullTextSearch::Plugin::_rebuildIndex (447) Create fulltext index for playlists

[17-01-08 10:56:14.1056] Slim::Schema::Storage::throw_exception (122) Error: DBI Exception: DBD::SQLite::db prepare_cached failed: near " ": syntax error [for Statement "SELECT me.id, me.urlmd5, me.url, me.content_type, me.title, me.titlesort, me.titlesearch, me.album, me.primary_artist, me.tracknum, me.timestamp, me.added_time, me.updated_time, me.filesize, me.disc, me.remote, me.audio, me.audio_size, me.audio_offset, me.year, me.secs, me.cover, me.cover_cached, me.vbr_scale, me.bitrate, me.samplerate, me.samplesize, me.channels, me.block_alignment, me.endian, me.bpm, me.tagversion, me.drm, me.musicmagic_mixable, me.dlna_profile, me.musicbrainz_id, me.lossless, me.lyrics, me.replay_gain, me.replay_peak, me.extid, me.virtual, me.coverid FROM tracks me WHERE ( id IN (SELECT tracks.id FROM tracks WHERE tracks.content_type IN ('ssp') ) ) ORDER BY titlesort COLLATE "]

[17-01-08 10:56:14.1065] Slim::Schema::Storage::throw_exception (122) Backtrace:

 

frame 0: Slim::Utils::Log::logBacktrace (/usr/share/perl5/Slim/Schema/Storage.pm line 122)

frame 1: Slim::Schema::Storage::throw_exception (/usr/share/squeezeboxserver/CPAN/DBIx/Class/Storage/DBI.pm line 1006)

frame 2: DBIx::Class::Storage::DBI::__ANON__ (/usr/share/squeezeboxserver/CPAN/DBIx/Class/Storage/DBI.pm line 2058)

frame 3: DBIx::Class::Storage::DBI::_dbh_sth (/usr/share/squeezeboxserver/CPAN/DBIx/Class/Storage/DBI.pm line 573)

frame 4: DBIx::Class::Storage::DBI::dbh_do (/usr/share/squeezeboxserver/CPAN/DBIx/Class/Storage/DBI.pm line 2071)

frame 5: DBIx::Class::Storage::DBI::sth (/usr/share/squeezeboxserver/CPAN/DBIx/Class/Storage/DBI.pm line 1264)

frame 6: DBIx::Class::Storage::DBI::_dbh_execute (/usr/share/squeezeboxserver/CPAN/DBIx/Class/Storage/DBI.pm line 573)

frame 7: DBIx::Class::Storage::DBI::dbh_do (/usr/share/squeezeboxserver/CPAN/DBIx/Class/Storage/DBI.pm line 1297)

frame 8: DBIx::Class::Storage::DBI::_execute (/usr/share/squeezeboxserver/CPAN/DBIx/Class/Storage/DBI.pm line 1532)

frame 9: DBIx::Class::Storage::DBI::_select (/usr/share/squeezeboxserver/CPAN/DBIx/Class/Storage/DBI/Cursor.pm line 129)

frame 10: DBIx::Class::Storage::DBI::Cursor::_dbh_all (/usr/share/squeezeboxserver/CPAN/DBIx/Class/Storage/DBI.pm line 583)

frame 11: (eval) (/usr/share/squeezeboxserver/CPAN/DBIx/Class/Storage/DBI.pm line 581)

frame 12: DBIx::Class::Storage::DBI::dbh_do (/usr/share/squeezeboxserver/CPAN/DBIx/Class/Storage/DBI/Cursor.pm line 140)

frame 13: DBIx::Class::Storage::DBI::Cursor::all (/usr/share/squeezeboxserver/lib/DBIx/Class/ResultSet.pm line 1435)

frame 14: DBIx::Class::ResultSet::all (/usr/share/perl5/Slim/Plugin/FullTextSearch/Plugin.pm line 458)

frame 15: Slim::Plugin::FullTextSearch::Plugin::_rebuildIndex (/usr/share/perl5/Slim/Plugin/FullTextSearch/Plugin.pm line 146)

frame 16: Slim::Plugin::FullTextSearch::Plugin::startScan (/usr/share/perl5/Slim/Music/Import.pm line 513)

frame 17: Slim::Music::Import::runImporter (/usr/share/perl5/Slim/Music/Import.pm line 411)

frame 18: Slim::Music::Import::runScanPostProcessing (/usr/sbin/squeezeboxserver-scanner line 343)

frame 19: (eval) (/usr/sbin/squeezeboxserver-scanner line 343)

frame 20: main::main (/usr/sbin/squeezeboxserver-scanner line 505)

 

[17-01-08 10:56:14.1075] Slim::Schema::Storage::throw_exception (122) Error: Carp::Clan::__ANON__(): DBI Exception: DBD::SQLite::db prepare_cached failed: near " ": syntax error [for Statement "SELECT me.id, me.urlmd5, me.url, me.content_type, me.title, me.titlesort, me.titlesearch, me.album, me.primary_artist, me.tracknum, me.timestamp, me.added_time, me.updated_time, me.filesize, me.disc, me.remote, me.audio, me.audio_size, me.audio_offset, me.year, me.secs, me.cover, me.cover_cached, me.vbr_scale, me.bitrate, me.samplerate, me.samplesize, me.channels, me.block_alignment, me.endian, me.bpm, me.tagversion, me.drm, me.musicmagic_mixable, me.dlna_profile, me.musicbrainz_id, me.lossless, me.lyrics, me.replay_gain, me.replay_peak, me.extid, me.virtual, me.coverid FROM tracks me WHERE ( id IN (SELECT tracks.id FROM tracks WHERE tracks.content_type IN ('ssp') ) ) ORDER BY titlesort COLLATE "] at /usr/share/perl5/Slim/Schema/Storage.pm line 126

[17-01-08 10:56:14.1080] Slim::Schema::Storage::throw_exception (122) Backtrace:

 

frame 0: Slim::Utils::Log::logBacktrace (/usr/share/perl5/Slim/Schema/Storage.pm line 122)

frame 1: Slim::Schema::Storage::throw_exception (/usr/share/squeezeboxserver/CPAN/DBIx/Class/Storage/DBI.pm line 598)

frame 2: DBIx::Class::Storage::DBI::dbh_do (/usr/share/squeezeboxserver/CPAN/DBIx/Class/Storage/DBI/Cursor.pm line 140)

frame 3: DBIx::Class::Storage::DBI::Cursor::all (/usr/share/squeezeboxserver/lib/DBIx/Class/ResultSet.pm line 1435)

frame 4: DBIx::Class::ResultSet::all (/usr/share/perl5/Slim/Plugin/FullTextSearch/Plugin.pm line 458)

frame 5: Slim::Plugin::FullTextSearch::Plugin::_rebuildIndex (/usr/share/perl5/Slim/Plugin/FullTextSearch/Plugin.pm line 146)

frame 6: Slim::Plugin::FullTextSearch::Plugin::startScan (/usr/share/perl5/Slim/Music/Import.pm line 513)

frame 7: Slim::Music::Import::runImporter (/usr/share/perl5/Slim/Music/Import.pm line 411)

frame 8: Slim::Music::Import::runScanPostProcessing (/usr/sbin/squeezeboxserver-scanner line 343)

frame 9: (eval) (/usr/sbin/squeezeboxserver-scanner line 343)

frame 10: main::main (/usr/sbin/squeezeboxserver-scanner line 505)

 

[17-01-08 10:56:14.1087] main::main (347) Error: Failed when running scan post-process: [Carp::Clan::__ANON__(): Carp::Clan::__ANON__(): DBI Exception: DBD::SQLite::db prepare_cached failed: near " ": syntax error [for Statement "SELECT me.id, me.urlmd5, me.url, me.content_type, me.title, me.titlesort, me.titlesearch, me.album, me.primary_artist, me.tracknum, me.timestamp, me.added_time, me.updated_time, me.filesize, me.disc, me.remote, me.audio, me.audio_size, me.audio_offset, me.year, me.secs, me.cover, me.cover_cached, me.vbr_scale, me.bitrate, me.samplerate, me.samplesize, me.channels, me.block_alignment, me.endian, me.bpm, me.tagversion, me.drm, me.musicmagic_mixable, me.dlna_profile, me.musicbrainz_id, me.lossless, me.lyrics, me.replay_gain, me.replay_peak, me.extid, me.virtual, me.coverid FROM tracks me WHERE ( id IN (SELECT tracks.id FROM tracks WHERE tracks.content_type IN ('ssp') ) ) ORDER BY titlesort COLLATE "] at /usr/share/perl5/Slim/Schema/Storage.pm line 126

]

[17-01-08 10:56:14.1091] main::main (348) Error: Not updating lastRescanTime!

 

--------

 

I get these same errors each time.  What are these errors and how can I correct them?

 

Thank you. 

 

 

Link to comment

I've had this (Grjardim's LMS docker) working for a while.  Suddenly, I couldn't get it to work, which I think was because a Kaspsersky update killed my access to the HTTP address and port 9000.  I ended up uninstalling the LMS docker and reinstalling.  I finally uninstalled Kaspsersky and can access the LMS docker.  However, I can't get it to work.  I have been uninstalled and reinstalled multiple times.  I've used the cache for the config and used the user share (which is the way the LMS docker comes configured).  What I get are a bunch of errors.  Here's the log file:

 

---------

--------

 

I get these same errors each time.  What are these errors and how can I correct them?

 

Thank you.

If you had it working before you should have been able to just select the template (my-whatever) from the dropdown and it would have reinstalled with exactly the same settings you had before. Or if you had Community Applications installed you could have reinstalled from Previous Apps.

 

Post your docker run command

Link to comment

Thank you.  I had no idea I could do any of that and do not know what a template is.  I did not explicitly create a template (though maybe Unraid does/did).  I previously deleted everything in the LogitechMediaServer folder, since reinstalling the app did no good. 

 

Here's the info:

 

Pulling image: gfjardim/logitechmediaserver:latest

 

IMAGE ID [latest]: Pulling from gfjardim/logitechmediaserver.

IMAGE ID [a3ed95caeb02]: Pulling fs layer. Downloading 100% of 32 B. Verifying Checksum. Download complete. Extracting. Pull complete.

IMAGE ID [a4656c904b12]: Pulling fs layer. Downloading 100% of 63 MB. Verifying Checksum. Download complete. Extracting. Pull complete.

IMAGE ID [707a1369b69a]: Pulling fs layer. Downloading 100% of 70 KB. Verifying Checksum. Download complete. Extracting. Pull complete.

IMAGE ID [2dcca790c489]: Pulling fs layer. Downloading 100% of 680 B. Verifying Checksum. Download complete. Extracting. Pull complete.

IMAGE ID [ae857e8dd13c]: Pulling fs layer. Downloading 100% of 11 KB. Download complete. Extracting. Pull complete.

IMAGE ID [4ff59ec257d7]: Pulling fs layer. Downloading 100% of 30 MB. Verifying Checksum. Download complete. Extracting. Pull complete.

IMAGE ID [960eb824097e]: Pulling fs layer. Downloading 100% of 980 B. Verifying Checksum. Download complete. Extracting. Pull complete.

IMAGE ID [d2a87d894029]: Pulling fs layer. Downloading 100% of 131 MB. Verifying Checksum. Download complete. Extracting. Pull complete.

Status: Downloaded newer image for gfjardim/logitechmediaserver:latest

 

TOTAL DATA PULLED: 224 MB

 

Command:

root@localhost:# /usr/local/emhttp/plugins/dynamix.docker.manager/scripts/docker run -d --name="LogitechMediaServer" --net="bridge" -e TZ="America/New_York" -e HOST_OS="unRAID" -p 3483:3483/tcp -p 3483:3483/udp -p 9000:9000/tcp -p 9090:9090/tcp -v "/mnt/user/Family/Music/":"/music":rw -v "/mnt/user/appdata/LogitechMediaServer/":"/config":rw gfjardim/logitechmediaserver

 

67fa47b49363fa5973e5b9f6d72c0f591efa8bbdf1ba1740aede16a1f5fbf214

 

The command finished successfully!

Link to comment

Also, it appears most of the errors are gone in the log.  However, when I open the WebUI and skip the first screen (wanting me to log into Squeezebox.com), I get a screen asking me to navigate to where my music is stored.  I don't recognize any of those locations (bin, boot, config, dev, etc, home, lib...).  There is a "music" folder, so if I select that, I get another screen, asking me where my playlists are.  However, I can't select that, since the user shares aren't there (or if they are there, they're buried in a folder structure I don't understand).

Link to comment

The user shares aren't there because when you added the template (Add Container) you didn't explicitly add any shares other than you Music share

 

Could you put that in English?  That is, for someone not familiar with Linux?  (Because based on what's above, I have no idea whatsoever what I'm doing wrong.)  Thank you.

Link to comment

root@localhost:# /usr/local/emhttp/plugins/dynamix.docker.manager/scripts/docker run -d --name="LogitechMediaServer" --net="bridge" -e TZ="America/New_York" -e HOST_OS="unRAID" -p 3483:3483/tcp -p 3483:3483/udp -p 9000:9000/tcp -p 9090:9090/tcp -v "/mnt/user/Family/Music/":"/music":rw -v "/mnt/user/appdata/LogitechMediaServer/":"/config":rw gfjardim/logitechmediaserver

According to your docker run, the only thing you have mapped besides /mnt/user/appdata/LogitechMediaServer/ to /config is /mnt/user/Family/Music/ to /music

 

So, the only thing the docker can see is the files in /mnt/user/Family/Music/ and it will see them in /music

Link to comment
  • 2 months later...
  • 2 months later...

Find a newer docker plugin repositories here: https://rawgit.com/Squidly271/AppsThread/master/forumpost0.html.

 

This is a more up2date list of recommended docker repositories for unRaid. I now use the dlandon plugin and at the time of writing it has LMS 7.9.1

 

PS: I don't know if this git list is the most recent list of recommended plugins, I found the reference in a 2015 post about plugins. It does however seem to contain many goodies.

 

Best Alex

  • Upvote 1
Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.