Giter Club home page Giter Club logo

Comments (33)

hadim avatar hadim commented on May 30, 2024 1

I have created a new user and modify the PGID and PUID according to the new user without any effect on my problem.

I keep getting the python: can't open file '/app/sickrage/SickBeard.py': [Errno 2] No such file or directory error due to a failed git cloning.

@CHBMB what do you mean by "tunable" parameters ? My docker-compose.yml file is a the same for months and it used to work well few weeks ago.

from docker-transmission.

hadim avatar hadim commented on May 30, 2024

What did you change between version 48 and 49 ?

from docker-transmission.

hadim avatar hadim commented on May 30, 2024

Hum for docker-sickrage it works with version 46 and version 40 for docker-couchpotato. They all coincide with an alpine 3.5 rebase commit.

from docker-transmission.

hadim avatar hadim commented on May 30, 2024

Here is the error I have with sickrage and couchpotato :

sickrage        | python: can't open file '/app/sickrage/SickBeard.py': [Errno 2] No such file or directory
couchpotato     | python: can't open file '/app/couchpotato/CouchPotato.py': [Errno 2] No such file or directory
couchpotato     | python: can't open file '/app/couchpotato/CouchPotato.py': [Errno 2] No such file or directory
sickrage        | python: can't open file '/app/sickrage/SickBeard.py': [Errno 2] No such file or directory
couchpotato     | python: can't open file '/app/couchpotato/CouchPotato.py': [Errno 2] No such file or directory
sickrage        | python: can't open file '/app/sickrage/SickBeard.py': [Errno 2] No such file or directory
sickrage        | python: can't open file '/app/sickrage/SickBeard.py': [Errno 2] No such file or directory
couchpotato     | python: can't open file '/app/couchpotato/CouchPotato.py': [Errno 2] No such file or directory

Seems like the git clone command failed...

from docker-transmission.

hadim avatar hadim commented on May 30, 2024

Here is the docker compose file I am using :

transmission:
  container_name: transmission
  image: linuxserver/transmission:48
  volumes:
    - /share/Multimedia/Configurations/Transmission:/config
    - /share/Download:/downloads
  environment:
    - PGID=0
    - PUID=0
    - TZ=EST
  ports:
    - "9091:9091"
    - "51413:51413"

couchpotato:
  container_name: couchpotato
  #image: linuxserver/couchpotato
  build: docker-couchpotato
  volumes:
    - /share/Multimedia/Configurations/CouchPotato:/config
    - /share/Download:/downloads
    - /share/Multimedia/Movies:/movies
  environment:
    - PGID=0
    - PUID=0
    - TZ=EST
  ports:
    - "5050:5050"
  links:
    - transmission

sickrage:
  container_name: sickrage
  #image: linuxserver/sickrage
  build: docker-sickrage
  volumes:
    - /share/Multimedia/Configurations/SickRage:/config
    - /share/Download:/downloads
    - /share/Multimedia/Series:/tv
  environment:
    - PGID=0
    - PUID=0
    - TZ=EST
  ports:
    - "7073:8081"
  links:
    - transmission

Can you reproduce this issue ?

from docker-transmission.

aptalca avatar aptalca commented on May 30, 2024

Did you try 50, which is the latest? I just used that to create a fresh container and it started right up

Oh wait, just noticed you're running as root. Not recommended. It's likely the issue. Change the PUID and PGID to anything but 0

from docker-transmission.

hadim avatar hadim commented on May 30, 2024

It doesn't work with version 50.

PUID and PGID even if it's a bad practice (I don't have the choice on the NAS I am running) are not in cause others containers work using the same trick.

from docker-transmission.

hadim avatar hadim commented on May 30, 2024

I just discovered that transmission works well when using the version 1 of docker-compose.yml.

So now the only remaining error are for sickrage and couchpotato :

sickrage        | python: can't open file '/app/sickrage/SickBeard.py': [Errno 2] No such file or directory
couchpotato     | python: can't open file '/app/couchpotato/CouchPotato.py': [Errno 2] No such file or directory
couchpotato     | python: can't open file '/app/couchpotato/CouchPotato.py': [Errno 2] No such file or directory
sickrage        | python: can't open file '/app/sickrage/SickBeard.py': [Errno 2] No such file or directory
couchpotato     | python: can't open file '/app/couchpotato/CouchPotato.py': [Errno 2] No such file or directory
sickrage        | python: can't open file '/app/sickrage/SickBeard.py': [Errno 2] No such file or directory
sickrage        | python: can't open file '/app/sickrage/SickBeard.py': [Errno 2] No such file or directory
couchpotato     | python: can't open file '/app/couchpotato/CouchPotato.py': [Errno 2] No such file or directory

from docker-transmission.

hadim avatar hadim commented on May 30, 2024

(Transmission works well using the version 1 of docker-compose.yml for version 48 and below)

from docker-transmission.

hadim avatar hadim commented on May 30, 2024

Here is the full sickrage log :

sickrage        | 2017-02-15T04:54:48.088820090Z [s6-init] making user provided files available at /var/run/s6/etc...exited 0.
sickrage        | 2017-02-15T04:54:48.688804579Z [s6-init] ensuring user provided files have correct perms...exited 0.
sickrage        | 2017-02-15T04:54:48.698719870Z [fix-attrs.d] applying ownership & permissions fixes...
sickrage        | 2017-02-15T04:54:48.712135297Z [fix-attrs.d] done.
sickrage        | 2017-02-15T04:54:48.712917829Z [cont-init.d] executing container initialization scripts...
sickrage        | 2017-02-15T04:54:48.718206062Z [cont-init.d] 10-adduser: executing... 
sickrage        | 2017-02-15T04:54:50.092467728Z 
sickrage        | 2017-02-15T04:54:50.092512548Z -------------------------------------
sickrage        | 2017-02-15T04:54:50.092531256Z           _     _ _
sickrage        | 2017-02-15T04:54:50.092546184Z          | |___| (_) ___
sickrage        | 2017-02-15T04:54:50.092560788Z          | / __| | |/ _ \ 
sickrage        | 2017-02-15T04:54:50.092575236Z          | \__ \ | | (_) |
sickrage        | 2017-02-15T04:54:50.092589672Z          |_|___/ |_|\___/
sickrage        | 2017-02-15T04:54:50.092604060Z                |_|
sickrage        | 2017-02-15T04:54:50.092618112Z 
sickrage        | 2017-02-15T04:54:50.092631684Z Brought to you by linuxserver.io
sickrage        | 2017-02-15T04:54:50.092645832Z We gratefully accept donations at:
sickrage        | 2017-02-15T04:54:50.092661408Z https://www.linuxserver.io/donations/
sickrage        | 2017-02-15T04:54:50.092675784Z -------------------------------------
sickrage        | 2017-02-15T04:54:50.092689728Z GID/UID
sickrage        | 2017-02-15T04:54:50.092703264Z -------------------------------------
sickrage        | 2017-02-15T04:54:50.092716980Z User uid:    0
sickrage        | 2017-02-15T04:54:50.092730852Z User gid:    0
sickrage        | 2017-02-15T04:54:50.092744580Z -------------------------------------
sickrage        | 2017-02-15T04:54:50.092758356Z 
sickrage        | 2017-02-15T04:54:50.095989885Z [cont-init.d] 10-adduser: exited 0.
sickrage        | 2017-02-15T04:54:50.097056157Z [cont-init.d] 30-install: executing... 
sickrage        | 2017-02-15T04:54:50.107121207Z Cloning into '/app/sickrage'...
sickrage        | 2017-02-15T04:54:50.166368462Z [cont-init.d] 30-install: exited 0.
sickrage        | 2017-02-15T04:54:50.167252430Z [cont-init.d] done.
sickrage        | 2017-02-15T04:54:50.168084414Z [services.d] starting services
sickrage        | 2017-02-15T04:54:50.175043984Z [services.d] done.
sickrage        | 2017-02-15T04:54:50.206871256Z python: can't open file '/app/sickrage/SickBeard.py': [Errno 2] No such file or directory
sickrage        | 2017-02-15T04:54:51.197213598Z python: can't open file '/app/sickrage/SickBeard.py': [Errno 2] No such file or directory
sickrage        | 2017-02-15T04:54:52.481602933Z python: can't open file '/app/sickrage/SickBeard.py': [Errno 2] No such file or directory
sickrage        | 2017-02-15T04:54:53.482524418Z python: can't open file '/app/sickrage/SickBeard.py': [Errno 2] No such file or directory
sickrage        | 2017-02-15T04:54:54.483455946Z python: can't open file '/app/sickrage/SickBeard.py': [Errno 2] No such file or directory
sickrage        | 2017-02-15T04:54:55.485954027Z python: can't open file '/app/sickrage/SickBeard.py': [Errno 2] No such file or directory
sickrage        | 2017-02-15T04:54:56.561755062Z python: can't open file '/app/sickrage/SickBeard.py': [Errno 2] No such file or directory
sickrage        | 2017-02-15T04:54:57.566177968Z python: can't open file '/app/sickrage/SickBeard.py': [Errno 2] No such file or directory
sickrage        | 2017-02-15T04:54:58.777635317Z python: can't open file '/app/sickrage/SickBeard.py': [Errno 2] No such file or directory
sickrage        | 2017-02-15T04:54:59.779141573Z python: can't open file '/app/sickrage/SickBeard.py': [Errno 2] No such file or directory

from docker-transmission.

hadim avatar hadim commented on May 30, 2024

I think 30-install: exited 0. didn't catch the error because when running the git clone command from inside the container, it returns code 128 (instant quit).

from docker-transmission.

sparklyballs avatar sparklyballs commented on May 30, 2024

this is a docker-compose configuration problem.

from docker-transmission.

CHBMB avatar CHBMB commented on May 30, 2024

I've also seen some problems with containers (last being couchpotato a couple of days ago) being run as root.

from docker-transmission.

j0nnymoe avatar j0nnymoe commented on May 30, 2024

Also, out of interest, what NAS system are you running?

from docker-transmission.

hadim avatar hadim commented on May 30, 2024

QNAP with Docker Station.

from docker-transmission.

CHBMB avatar CHBMB commented on May 30, 2024

Well, as much as I disagree with running as root, just tried a fresh pull of the container from the hub running as root on Unraid and it worked.

[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: 0
User gid: 0
-------------------------------------

[cont-init.d] 10-adduser: exited 0.
[cont-init.d] 20-config: executing...
[cont-init.d] 20-config: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.
[2017-02-15 12:04:30.850] Transmission 2.92 (14714) started (session.c:738)
[2017-02-15 12:04:30.890] RPC Server Adding address to whitelist: 127.0.0.1 (rpc-server.c:903)
[2017-02-15 12:04:30.890] RPC Server Serving RPC and Web requests on port 127.0.0.1:9091/transmission/ (rpc-server.c:1110)
[2017-02-15 12:04:30.890] DHT Generating new id (tr-dht.c:311)
[2017-02-15 12:04:30.890] Using settings from "/config" (daemon.c:528)
[2017-02-15 12:04:30.890] Saved "/config/settings.json" (variant.c:1266)
[2017-02-15 12:04:30.890] Watching "/watch" for new .torrent files (daemon.c:573)
[2017-02-15 12:04:30.890] Port Forwarding (NAT-PMP) initnatpmp succeeded (0) (natpmp.c:70)
[2017-02-15 12:04:30.890] Port Forwarding (NAT-PMP) sendpublicaddressrequest succeeded (2) (natpmp.c:70)
[2017-02-15 12:04:37.851] Port Forwarding State changed from "Not forwarded" to "Starting" (port-forwarding.c:92)
[2017-02-15 12:04:38.851] Port Forwarding State changed from "Starting" to "???" (port-forwarding.c:92)
[2017-02-15 12:04:43.851] Searching for web interface file "/root/.local/share/transmission/web/index.html" (platform.c:430)
[2017-02-15 12:04:43.851] Searching for web interface file "/usr/share/transmission/web/index.html" (platform.c:430)```

from docker-transmission.

CHBMB avatar CHBMB commented on May 30, 2024

I've seen git clone fails before as well, notably on Unraid when someone changes some of the "tunable" parameters from default.

from docker-transmission.

j0nnymoe avatar j0nnymoe commented on May 30, 2024

if its the roor user issue thats causing your problems on the qnap, you can easily create an additional user from within the WebUI and providing you give it access to the shares said container needs, you shouldn't have a problem.

from docker-transmission.

sparklyballs avatar sparklyballs commented on May 30, 2024

what is your location ?

do you have a firewall that is unwittingly blocking git

to have that error is either not having exec bit allowed on a mounted volume, not applicable in the case of sickrage, or local issues (dns , etc) reaching git.

from docker-transmission.

hadim avatar hadim commented on May 30, 2024

From inside the sickrage container I can't do git clone :

[~] # docker-compose exec sickrage bash
root@fd43e38d68ff:/$ cd /app
root@fd43e38d68ff:/app$ git clone https://github.com/SickRage/SickRage.git
Cloning into 'SickRage'...
root@fd43e38d68ff:/app$ ls
root@fd43e38d68ff:/app$ 

From the same machine on another container (ubuntu), I can clone :

[~] # docker run --rm -ti ubuntu bash
root@26f8f2e166f3:/# apt-get install git
# [...]
root@26f8f2e166f3:/# git clone https://github.com/SickRage/SickRage.git
Cloning into 'SickRage'...
remote: Counting objects: 67732, done.
remote: Compressing objects: 100% (39/39), done.
remote: Total 67732 (delta 11), reused 0 (delta 0), pack-reused 67692
Receiving objects: 100% (67732/67732), 69.13 MiB | 1.29 MiB/s, done.
Resolving deltas: 100% (43536/43536), done.
Checking connectivity... done.
root@26f8f2e166f3:/# ls
SickRage  bin  boot  dev  etc  home  lib  lib64  media  mnt  opt  proc  root  run  sbin  srv  sys  tmp  usr  var
root@26f8f2e166f3:/# 

Now with the base image lsiobase/alpine.python:3.5, I can't clone :

[~] # docker run --rm -ti lsiobase/alpine.python:3.5 bash
[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... 
usermod: no changes

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

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

[cont-init.d] 10-adduser: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.
root@5d1951983749:/$ git clone https://github.com/SickRage/SickRage.git
Cloning into 'SickRage'...
root@5d1951983749:/$ ls
app  bin  config  defaults  dev  etc  home  init  lib  libexec	media  mnt  proc  root	run  sbin  srv	sys  tmp  usr  var
root@5d1951983749:/$ 

I have also tested the git clone with different version/tag of the lsiobase/alpine.python image (https://hub.docker.com/r/lsiobase/alpine.python/tags/) :

  • version 29 : git clone works
  • version 30 to 35 : git clone doesn't work

from docker-transmission.

hadim avatar hadim commented on May 30, 2024

Now if I run docker run --rm -ti lsiobase/alpine.python git clone https://github.com/SickRage/SickRage.git on my machine (not the NAS), it's working.

So to summarize, something in between the lsiobase/alpine.python:29 and lsiobase/alpine.python:30 is preventing me to git clone on my NAS and not on my 'regular' machine.

from docker-transmission.

hadim avatar hadim commented on May 30, 2024

docker run --rm -ti lsiobase/alpine.python:29 git version returns 2.8.3

docker run --rm -ti lsiobase/alpine.python:30 git version returns 2.11.0

from docker-transmission.

hadim avatar hadim commented on May 30, 2024

Hum the connection to github seems to be the issue.

docker run --rm -ti lsiobase/alpine.python:29 curl -L -v https://github.com/SickRage/SickRage.git works fine and return and html page.

docker run --rm -ti lsiobase/alpine.python:30 curl -L -v https://github.com/SickRage/SickRage.git returns :

*   Trying 192.30.253.112...
* TCP_NODELAY set
* Connected to github.com (192.30.253.112) port 443 (#0)
curl exited 265

from docker-transmission.

sparklyballs avatar sparklyballs commented on May 30, 2024

works fine here...

https://www.youtube.com/watch?v=_LwZL_hphUQ

from docker-transmission.

hadim avatar hadim commented on May 30, 2024

The only obvious difference between my regular machine and my NAS is the docker version. My machine is running 1.13.1 while my NAS is running 1.11.2.

What docker version are you running ?

from docker-transmission.

hadim avatar hadim commented on May 30, 2024

I don't think it's related to the docker version because I have downgraded the docker engine on my machine to the NAS version and everything works fine.

from docker-transmission.

hadim avatar hadim commented on May 30, 2024

Since I don't know if it's related to QNAP or the linuxserver.io images, I have opened a post on QNAP forum about it : https://forum.qnap.com/viewtopic.php?f=354&t=130216

from docker-transmission.

hadim avatar hadim commented on May 30, 2024

I am not a huge fan of this trick but I had to downgrade docker-sickrage and docker-couchpotato to lsiobase/alpine.python:29 to make it work...

Thank you for your help.

from docker-transmission.

austinheap avatar austinheap commented on May 30, 2024

Just as a data point: I'm having this same issue on a QNAP only with Dockerfiles from linuxserver (sonarr, sab, etc). DNS resolution fails for any apps in the container, but if you check /etc/resolv.conf and run host google.com from the container it works fine. This same issue occurs for me in the latest version of lsiobase/xenial.

Was your only option to downgrade @hadim?

from docker-transmission.

hadim avatar hadim commented on May 30, 2024

yes that was my only option after hours of investigation.... Please let me know if you find a fix.

from docker-transmission.

austinheap avatar austinheap commented on May 30, 2024

After a little research it seems to be DNS issues specific to Ubuntu 16.04 (Xenial) and Alpine 3.5 on the version of Docker that QNAP ships with QTS 4.3.1.

  • Works with 14.04: docker run -it --rm ubuntu:14.04 bash -c 'cat /etc/resolv.conf && apt update'
  • Fails with 16.04: docker run -it --rm ubuntu:16.04 bash -c 'cat /etc/resolv.conf && apt update' (DNS resolution issue)
  • Works with busybox: docker run -it --rm busybox sh -c 'cat /etc/resolv.conf && ping -c 1 google.com'

@sparklyballs do you happen to know if it's safe for me to build images of these Dockerfiles with Ubuntu 14 instead of 16 or am I asking for a worm hole of problems?

@hadim My environment is the same as yours:

Client:
 Version:      1.11.2
 API version:  1.23
 Go version:   go1.5.4
 Git commit:   3a84010
 Built:        Fri Oct  7 18:21:25 2016
 OS/Arch:      linux/amd64

Server:
 Version:      1.11.2
 API version:  1.23
 Go version:   go1.5.4
 Git commit:   3a84010
 Built:        Fri Oct  7 18:21:25 2016
 OS/Arch:      linux/amd64```

from docker-transmission.

hadim avatar hadim commented on May 30, 2024

What about Alpine 3.5 ? Some image using has issue too.

from docker-transmission.

austinheap avatar austinheap commented on May 30, 2024

Both alpine:3.5 and lsiobase/alpine.python:3.5 work for me, but the way it manifests itself is the same.

from docker-transmission.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.