logicwar / logitechmediaserver

Docker Container for Logitech Media Server

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unable to access extra files

markbaaijens opened this issue · comments

I'm using the LMS docker-image in combination with the Material-skin. I'm not sure if my problem (described below) is due to using the docker-image or the skin, but this is a way to find out....

In the Material-skin, you can click on 'More' on an album. Then a menu is displayed with 'Show text- and PDF-files'. When clicked, the (extra) files in the album-folder are shown, in my case dr14.txt, so far so good.

But when that file is clicked (to show the contents), an error is shown:
http://172.17.0.2:9002/mai/localfile/88ade47bd6cdb7ce00bd57a6bb6d86da/dr14.txt is not accessible.

Note the address 172.17.0.2 which happens to be the main entry for (internal) docker-images. This address is only reachable on the host it self, so not from the outside, hence the error occurring. The following command returns nothing when executed on a local PC:
wget http://172.17.0.2:9002/mai/localfile/88ade47bd6cdb7ce00bd57a6bb6d86da/dr14.txt

My 'real' ip-ddress is 192.168.2.164. The following command returns a valid result:
wget http://192.168.2.164:9002/mai/localfile/88ade47bd6cdb7ce00bd57a6bb6d86da/dr14.txt

So maybe it is possible for xxx to look at the 'real' address? Then this problem is probably solved.

Note that the option 'Local pictures' works as expected, the (extra) picture in the album-folder is shown correctly.

I've already posted this issue to the maker of the Material-skin:
CDrummond/lms-material#814
But apparently, this is not something the skin to blame.