linuxserver / docker-muximux

GNU General Public License v3.0
21 stars 8 forks source link

failed (13: Permission denied) while reading upstream #6

Closed inakiabt closed 7 years ago

inakiabt commented 7 years ago

linuxserver.io

Hey there! First of all thanks for all these images, you saved me a lot of time setting up my media center.

Today I tried to add Muximux to my media center with:

docker create \
  --name=muximux \
  -v $HOME/.config/muximux:/config \
  -e PGID=1000 -e PUID=1000  \
  -e TZ=America/Buenos_Aires -p 80:80 \
  linuxserver/muximux
docker start muximux

I checked if the container was started correctly looking at the logs with docker logs muximux:

[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] 10-adduser: executing...

-------------------------------------
          _     _ _
         | |___| (_) ___
         | / __| | |/ _ \
         | \__ \ | | (_) |
         |_|___/ |_|\___/
               |_|

Brought to you by linuxserver.io
We gratefully accept donations at:
https://www.linuxserver.io/donations/
-------------------------------------
GID/UID
-------------------------------------
User uid:    1000
User gid:    1000
-------------------------------------

[cont-init.d] 10-adduser: exited 0.
[cont-init.d] 20-config: executing...
[cont-init.d] 20-config: exited 0.
[cont-init.d] 30-keygen: executing...
using keys found in /config/keys
[cont-init.d] 30-keygen: exited 0.
[cont-init.d] 40-install: executing...
[cont-init.d] 40-install: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.

It seemed OK. Then, when opened http://localhost/, I saw PLEX website completely loaded, but the "Muximux is loading..." overlay never disappear. Looking into Chrome DevTools I get:

(index):5274 GET http://localhost/combineify.php?type=javascript&files=js/jquery-2.2.4.min.js,js/…,js/jquery.ui.touch-punch.min.js,js/yrss.min.js,js/jquery.webticker.min.js

net::ERR_CONTENT_LENGTH_MISMATCH

Looking further into nginx logs (cat $HOME/.config/muximux/log/nginx/error.log) I see:

2017/03/08 15:27:14 [crit] 271#271: *35 open() "/var/lib/nginx/tmp/fastcgi/8/00/0000000008" failed (13: Permission denied) while reading upstream, client: 25.141.239.11, server: _, request: "GET /combineify.php?type=javascript&files=js/jquery-2.2.4.min.js,js/jquery-ui.min.js,js/jquery.form.min.js,js/bootstrap.min.js,js/iconset-muximux.js,js/bootstrap-iconpicker.min.js,js/main.js,js/functions.js,js/spectrum.min.js,js/modernizr-custom-3.3.1.min.js,js/jquery.ui.touch-punch.min.js,js/yrss.min.js,js/jquery.we

I found that could be a permissions issue.

Edit: Add /var/lib/nginx folders permissions

root@2a462034ead1:/$ ls -la /var/lib/nginx
total 16
drwxr-x--- 6 abc  users 4096 Mar  8 15:18 .
drwxr-xr-x 8 root root  4096 Mar  8 15:18 ..
drwxr-sr-x 2 abc  users 4096 Mar  8 15:18 html
lrwxrwxrwx 1 abc  users   14 Mar  3 20:48 logs -> /var/log/nginx
lrwxrwxrwx 1 abc  users   22 Mar  3 20:48 modules -> /usr/lib/nginx/modules
lrwxrwxrwx 1 abc  users   10 Mar  3 20:48 run -> /run/nginx
drwx------ 7 abc  users 4096 Mar  8 15:18 tmp

Thanks, team linuxserver.io

j0nnymoe commented 7 years ago

Hey, could you try using the full location for the /config mount instead of $HOME? also, what host are you running this on? Thanks

inakiabt commented 7 years ago

I tried with full location, same issue.

It's a Kodibuntu (Ubuntu):

$ uname -a
Linux kodi-zotac 3.13.0-88-generic #135-Ubuntu SMP Wed Jun 8 21:10:42 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
sparklyballs commented 7 years ago

are you on a military base or something ?

inakiabt commented 7 years ago

Nope

sparklyballs commented 7 years ago

25.141.239.11

resolves to the Ministry of Defence

inakiabt commented 7 years ago

Oh, I'm using Hamachi (LogmeIn), I think that's the virtual IP.

sparklyballs commented 7 years ago

try it direct, that might be what's up.

inakiabt commented 7 years ago

Seems to be that! I tried access locally and it worked, but accessing externally it failed. What can I do?

sparklyballs commented 7 years ago

i think the best course of action is to ask the muximux devs the docker works as expected, i don't know if the implications of your setup are compatible with the app or not and they would be best placed to advise.

i'm closing this one.