Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to access extra files #3

Open
markbaaijens opened this issue Feb 4, 2024 · 0 comments
Open

Unable to access extra files #3

markbaaijens opened this issue Feb 4, 2024 · 0 comments

Comments

@markbaaijens
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant