Giter Site home page Giter Site logo

Comments (5)

jcviquez avatar jcviquez commented on July 28, 2024

I'm having a really similar problem. Reinstalled after recreating my docker VM and only arch-delugevpn is having problems after the migration.
Data folder mapped to smb mount on my VM with fstab. I tested the permissions several times both on the VM and from the container console and I can create, delete and move files normally. I did noticed that when I check with ls -l on the console I get a similar error about Resource temporarily unavailable and then the folders and files get listed normally.

Every time I bring the container online, it starts re-checking multiple torrents marked with errors and I can download and move downloads for a while, but after a few mins I no longer can download or move things.

I use Deluge as Thin Client and noticed I cannot see the remaining free space on the status bar next to the HDD icon as usual, which I guess relates to the error on the log about get_free_space

Docker host VM OS: Ubuntu 22.04.4 LTS (GNU/Linux 5.15.0-102-generic x86_64)
Docker engine version: 25.0.5
Docker environment managed with Portainer-CE 2.19.4
SMB Host: TrueNAS-SCALE-23.10.2

Redacted docker-compose:

services:
  arch-delugevpn:
    image: binhex/arch-delugevpn
    container_name: arch-delugevpn
    privileged: true
    devices:
      - /dev/net/tun
    ports:
      - 8112:8112
      - 58846:58846
    volumes:
      - /smb/arch-delugevpn/data:/data
      - /smb/arch-delugevpn/config:/config
      - /etc/localtime:/etc/localtime:ro
    environment:
      ...
      - UMASK=000
      - PUID=1000
      - PGID=1002
    sysctls:
      - net.ipv4.conf.all.src_valid_mark=1

Console example:

ls -l
ls: torrent-backups: Resource temporarily unavailable
ls: watch: Resource temporarily unavailable
ls: completed: Resource temporarily unavailable
ls: downloading: Resource temporarily unavailable
total 0
drwxr-xr-x 2 nobody users 0 Apr 18 18:28 completed
drwxr-xr-x 2 nobody users 0 Apr 18 17:11 downloading
drwxr-xr-x 2 nobody users 0 Apr 18 17:10 torrent-backups
drwxr-xr-x 2 nobody users 0 Apr 18 17:46 watch

deluged.log:

21:12:30 [ERROR   ][deluge.core.torrent           :1622] Restart deluge to clear this torrent error
21:12:30 [INFO    ][deluge.core.rpcserver         :1622] Deluge client disconnected: Connection to the other side was lost in a non-clean fashion: Connection lost.
21:12:30 [INFO    ][deluge.core.rpcserver         :1622] Deluge Client connection made from: 127.0.0.1:35920
21:12:32 [WARNING ][deluge.core.rpcserver         :1622] An exception occurred while sending RPC_ERROR to client. Wrapping it and resending. Error to send(causing exception goes next):
Traceback (most recent call last):
  File "/usr/lib/python3.11/site-packages/deluge/core/rpcserver.py", line 334, in dispatch
    ret = self.factory.methods[method](*args, **kwargs)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/deluge/core/core.py", line 1244, in get_free_space
    return deluge.common.free_space(path)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/deluge/common.py", line 905, in free_space
    disk_data = os.statvfs(path.encode('utf8'))
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
BlockingIOError: [Errno 11] Resource temporarily unavailable: b'/data/torrent/downloading'

from arch-delugevpn.

RobCod avatar RobCod commented on July 28, 2024

I'm having a really similar problem. Reinstalled after recreating my docker VM and only arch-delugevpn is having problems after the migration. Data folder mapped to smb mount on my VM with fstab. I tested the permissions several times both on the VM and from the container console and I can create, delete and move files normally. I did noticed that when I check with ls -l on the console I get a similar error about Resource temporarily unavailable and then the folders and files get listed

Yeah we have the exact same problem then, i also have the error where it used to give me my remaining space on the webui. I also changed the PID, and GID to the root user to make absolute sure im not having perm issues.

I can create, move and delete files as both my ubuntu user and the root user. Its just the docker container thats having issues for some reason.

Perhaps a update between September 2023 and now broke stuff?

If the torrent is small, it will download with no issues and sonarr/radarr will move it to the correct folder with no issues. The problem is when the files are bigger it will error out so much that it just downloads a corrupt mess which is unusable if you manually resume it everytime it errors.

from arch-delugevpn.

jcviquez avatar jcviquez commented on July 28, 2024

I also tried using a previous version of arch-delugevpn using the tag [2.1.1-4-05] pushed 5 months ago instead of latest, but I had the same problem. Unfortunatelly I'm not sure what version of the image I was using before.

from arch-delugevpn.

jcviquez avatar jcviquez commented on July 28, 2024

Hi @RobCod, I was looking for similar problems recently reported with other software and found someone using Immich with a similar setup (TrueNAS, Ubuntu VM, Docker, SMB Mount) with resource temporarily available errors and the problem seems to be related to the current linux kernel (Linux 5.15.0-102-generic) on the host VM Ubuntu machine.

References:
immich-app/immich#8487
home-assistant/operating-system#3041
https://forum.manjaro.org/t/samba-share-ls-directory-resource-temporarily-unavailable/155083/7

As a temporary workaround the suggestion for Ubuntu 22.04.4 LTS is to either downgrade to Linux 5.15.0-101-generic which I did try and indeed solve my problems with arch-delugevpn or upgrade to 6.5.

Not sure why only this container showed problems, or if the others had some that went unnoticeable for my use cases.

from arch-delugevpn.

RobCod avatar RobCod commented on July 28, 2024

As a temporary workaround the suggestion for Ubuntu 22.04.4 LTS is to either downgrade to Linux 5.15.0-101-generic which I did try and indeed solve my problems with arch-delugevpn or upgrade to 6.5.

Exactly the issue, danke

from arch-delugevpn.

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.