Giter Club home page Giter Club logo

docker-pyload's People

Contributors

aptalca avatar chbmb avatar j0nnymoe avatar nemchik avatar roxedus avatar technorabilia avatar thelamer avatar thespad avatar zetneteork avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

docker-pyload's Issues

[Errno 32] Broken pipe

linuxserver.io

If you are new to Docker or this application our issue tracker is ONLY used for reporting bugs or requesting features. Please use our discord server for general support.

pyload feels extremely low, but checking the container log I can see that broken pipe errors are contstantly logged


Expected Behavior

No error

Current Behavior

Docker keeps logging the following exception

pyload    | Traceback (most recent call last):
pyload    |   File "/usr/lib/python2.7/wsgiref/handlers.py", line 86, in run
pyload    |     self.finish_response()
pyload    |   File "/usr/lib/python2.7/wsgiref/handlers.py", line 128, in finish_response
pyload    |     self.write(data)
pyload    |   File "/usr/lib/python2.7/wsgiref/handlers.py", line 212, in write
pyload    |     self.send_headers()
pyload    |   File "/usr/lib/python2.7/wsgiref/handlers.py", line 270, in send_headers
pyload    |     self.send_preamble()
pyload    |   File "/usr/lib/python2.7/wsgiref/handlers.py", line 194, in send_preamble
pyload    |     'Date: %s\r\n' % format_date_time(time.time())
pyload    |   File "/usr/lib/python2.7/socket.py", line 328, in write
pyload    |     self.flush()
pyload    |   File "/usr/lib/python2.7/socket.py", line 307, in flush
pyload    |     self._sock.sendall(view[write_offset:write_offset+buffer_size])
pyload    | error: [Errno 32] Broken pipe

Steps to Reproduce

  • Create compose file docker-compose.yml:
  • Run docker-compose up
  • Watch the output

Environment

OS: Manjaro ARM
CPU architecture: arm64
How docker service was installed:
Installed from the Manjaro repository (pacman -Sy docker)

$ docker version
Client:
 Version:           19.03.8-ce
 API version:       1.40
 Go version:        go1.14
 Git commit:        afacb8b7f0
 Built:             Tue Mar 17 23:37:06 2020
 OS/Arch:           linux/arm64
 Experimental:      false

Server:
 Engine:
  Version:          19.03.8-ce
  API version:      1.40 (minimum version 1.12)
  Go version:       go1.14
  Git commit:       afacb8b7f0
  Built:            Tue Mar 17 23:36:36 2020
  OS/Arch:          linux/arm64
  Experimental:     false
 containerd:
  Version:          v1.3.3.m
  GitCommit:        d76c121f76a5fc8a462dc64594aea72fe18e1178.m
 runc:
  Version:          1.0.0-rc10
  GitCommit:        dc9208a3303feef5b3839f4323d9beb36df0a9dd
 docker-init:
  Version:          0.18.0
  GitCommit:        fec3683

Command used to create docker container (run/create/compose/screenshot)

version: "3.2"
services:
  pyload:
    image: linuxserver/pyload
    container_name: pyload
    hostname: pyload
    environment:
      - PUID=1000
      - PGID=1000
      - TZ=Europe/Paris
    volumes:
      - config:/config
      - ${DOWNLOADS}:/downloads
    ports:
      - ${HOSTIP}:8000:8000
      - ${HOSTIP}:7227:7227 #optional
    restart: unless-stopped
volumes:
    config:

Docker logs

pyload    | Traceback (most recent call last):
pyload    |   File "/usr/lib/python2.7/wsgiref/handlers.py", line 86, in run
pyload    |     self.finish_response()
pyload    |   File "/usr/lib/python2.7/wsgiref/handlers.py", line 128, in finish_response
pyload    |     self.write(data)
pyload    |   File "/usr/lib/python2.7/wsgiref/handlers.py", line 212, in write
pyload    |     self.send_headers()
pyload    |   File "/usr/lib/python2.7/wsgiref/handlers.py", line 270, in send_headers
pyload    |     self.send_preamble()
pyload    |   File "/usr/lib/python2.7/wsgiref/handlers.py", line 197, in send_preamble
pyload    |     self._write('Server: %s\r\n' % self.server_software)
pyload    |   File "/usr/lib/python2.7/socket.py", line 328, in write
pyload    |     self.flush()
pyload    |   File "/usr/lib/python2.7/socket.py", line 307, in flush
pyload    |     self._sock.sendall(view[write_offset:write_offset+buffer_size])
pyload    | error: [Errno 32] Broken pipe
pyload    | Traceback (most recent call last):
pyload    |   File "/usr/lib/python2.7/SocketServer.py", line 293, in _handle_request_noblock
pyload    |     self.process_request(request, client_address)
pyload    |   File "/usr/lib/python2.7/SocketServer.py", line 321, in process_request
pyload    |     self.finish_request(request, client_address)
pyload    |   File "/usr/lib/python2.7/SocketServer.py", line 334, in finish_request
pyload    |     self.RequestHandlerClass(request, client_address, self)
pyload    |   File "/usr/lib/python2.7/SocketServer.py", line 657, in __init__
pyload    |     self.finish()
pyload    |   File "/usr/lib/python2.7/SocketServer.py", line 716, in finish
pyload    |     self.wfile.close()
pyload    |   File "/usr/lib/python2.7/socket.py", line 283, in close
pyload    |     self.flush()
pyload    |   File "/usr/lib/python2.7/socket.py", line 307, in flush
pyload    |     self._sock.sendall(view[write_offset:write_offset+buffer_size])
pyload    | error: [Errno 32] Broken pipe

Create a "master" branch build

pyload "stable" or 0.4.9 is about 9 years old. There's been plenty of improvements to master since then. Could you create a "master" build/tag? That way we can use the latest pyload. (of course latest/default could still be stable/0.4.9)

Default login doesn't work

Using the default parameter indicated in the README file (user: admin, password:password) don't work. Reading in the pyload wiki I discovered that upon a first start, the user database isn't initalized and one has first to execute the following:

docker exec -it [container_name, e.g. pyload] python /app/pyload/pyLoadCore.py -s

Permission denied

linuxserver.io

If you are new to Docker or this application our issue tracker is ONLY used for reporting bugs or requesting features. Please use our discord server for general support.

Dear Sir,

Permission denied when the plugin updatemanager is running

Expected Behavior

the script update manager will update/delete old hoster & account without issues

Current Behavior

the script update manager is blocking on delete account & hoster GettwentyFourOrg.py
the only way is to rm the two files with docker exec -ti pyload bash, but the issues come back when the container will be updated.

Environment

**OS: Debian10
CPU architecture: x86_64

Command used to create docker container (run/create/compose/screenshot)

docker compose
Capture d’écran 2020-03-21 à 20 36 48

Docker logs

Capture d’écran 2020-03-21 à 20 39 00

Migrate Image to Python 3

linuxserver.io


Sorry in advance for any faux pas with this post, it's my first bug for LSIO!

Expected Behavior

Should the Docker image use the more recent Pyload version (Pyload-NG) built atop Python 3 (from branch "master") rather than the legacy version on Python 2 which is now EOL and deprecated per project documentation (from branch "stable").

Current Behavior

The image is still built on Python 2 (see below)
image

Steps to Reproduce

NA

Environment

OS: Ubuntu 18.04.5
CPU architecture: arm64 (Raspberry Pi Model 4B)
Image digest: d6e4f904fda3a97045d98c520630dfcc66d24407de7d62b08a48d6e1bdcd9a82
How docker service was installed: Distro repo

Command used to create docker container (run/create/compose/screenshot)

version: "2.1"  
services:  
  pyload:  
    image: linuxserver/pyload  
    container_name: pyload  
    environment:  
      - PUID=1001  
      - PGID=1001  
      - TZ="America/New York"  
    volumes:  
      - ./config:/config  
      - /home/ubuntu/Downloads:/downloads  
    ports:  
      - 4444:8000  
    labels:  
      - "diun.enable=true"  
      - "diun.watch_repo=true"  
    restart: unless-stopped

Docker logs

NA

Requesting a tag for development version

linuxserver.io


Desired Behavior

Able to use pyload with latest commit.
I realized a development version with latest changes is needed after having this issue, pyload/pyload#3957.
Also there are fixes for filehostings which I believe only get updated into build for every new releases?

Current Behavior

NG version lags a few months behind and missing a lot of fixes.

Alternatives Considered

N/A

An Error occured ...

linuxserver.io


Downloads:
**An Error occured, please enable debug mode to get more details.

Traceback (most recent call last):
File "/app/pyload/module/lib/bottle.py", line 868, in _handle
return route.call(**args)
File "/app/pyload/module/lib/bottle.py", line 1748, in wrapper
rv = callback(*a, **ka)
File "/app/pyload/module/web/utils.py", line 112, in _view
return func(*args, kwargs)
File "/app/pyload/module/web/pyload_app.py", line 302, in downloads
files = listdir(save_join(root, item))
OSError: [Errno 13] Permission denied: '/downloads/.Trash-0'

Expected Behavior

Current Behavior

Steps to Reproduce

Environment

OS:
CPU architecture: x86_64/arm32/arm64
How docker service was installed:

Command used to create docker container (run/create/compose/screenshot)

Docker logs

plugin settings reset upon reboot for TORRENT plugin

Settings for my TORRENT plugin are reset to NONE upon a restart, changing the setting presents a confirmation in logs of the setting changing and the plugin.conf file changes to reflect this, however this does not cause torrent files to be properly handled and a restart of pyload causes the setting to be reset to NONE

Delete archive after extraction & Don't extract the following files (folders?)

First of all: thank you for your much appreciated work!

The automated deletion of packaged archives after extraction apparently does not currently work with this Docker.
funktion: “Delete archive after extraction:” (ExtractArchive --> Send2Trash lib not found)

It is also currently not possible to exclude certain folders contained in archives when extracting, for example "sample-folder". This works well for files, by the way.
funktion: "Don't extract the following files:"

UnRar would have to be replaced by p7zip p7zip-full p7zip-rar.

Would it be possible to include these important functions in one of the next updates?

Project_logo url in readme-vars.yml is incorrect and logo cannot be found

linuxserver.io


Expected Behavior

Project_logo url in readme-vars.yml should result in valid logo.

Current Behavior

Project_logo url in readme-vars.yml is incorrect and logo cannot be found.

Steps to Reproduce

Open the project_logo url in the browser.

Environment

All.

Command used to create docker container (run/create/compose/screenshot)

Does not apply.

Getting an error after last update on 5/3/2021

linuxserver.io


Expected Behavior

Application should not crash

Current Behavior

The container is crashing every night. I'm not sure what time as there is no time stamp in the log but I find it has crashed every morning

Steps to Reproduce

Environment

OS:
CPU architecture: arm64
How docker service was installed:

Command used to create docker container (run/create/compose/screenshot)

Created with portainer about 4 months ago

Docker logs

Pyload debug log
Error:

OSError(5, 'I/O error')

Traceback:

Traceback (most recent call last):
File "/app/pyload/module/lib/bottle.py", line 960, in wsgi
out = self._cast(self._handle(environ))
File "/app/pyload/module/lib/bottle.py", line 913, in _cast
out = self.error_handler.get(out.status_code, self.default_error_handler)(out)
File "/app/pyload/module/web/pyload_app.py", line 168, in error500
error.traceback.replace("\n", "
") if error.traceback else "No Traceback"])
File "/app/pyload/module/web/pyload_app.py", line 72, in base
return render_to_response('base.html', {'messages': messages}, [pre_processor])
File "/app/pyload/module/web/utils.py", line 26, in render_to_response
args.update(p())
File "/app/pyload/module/web/pyload_app.py", line 45, in pre_processor
user = parse_userdata(s)
File "/app/pyload/module/web/utils.py", line 94, in parse_userdata
return {"name": session.get("name", "Anonymous"),
File "/app/pyload/module/lib/beaker/session.py", line 554, in getattr
return getattr(self._session(), attr)
File "/app/pyload/module/lib/beaker/session.py", line 550, in _session
**params)
File "/app/pyload/module/lib/beaker/session.py", line 119, in init
self.invalidate()
File "/app/pyload/module/lib/beaker/session.py", line 205, in invalidate
self.load()
File "/app/pyload/module/lib/beaker/session.py", line 211, in load
**self.namespace_args)
File "/app/pyload/module/lib/beaker/container.py", line 523, in init
util.verify_directory(self.file_dir)
File "/app/pyload/module/lib/beaker/util.py", line 43, in verify_directory
os.makedirs(dir)
File "/usr/lib/python2.7/os.py", line 150, in makedirs
makedirs(head, mode)
File "/usr/lib/python2.7/os.py", line 157, in makedirs
mkdir(name, mode)
OSError: [Errno 5] I/O error: './tmp'

Permission denied

Hi ,

i've a permission denied with the plugin update manager :
Capture d’écran 2020-03-21 à 13 36 05
i can delete the account & hoster with docker exec -ti pyload bash

but i'll redo this action every time you update the image ;-)

is it possible to take a look?

thanks a lot have a nice day

Memory leak

Expected Behavior

Container should hover at a certain appropriate memory usage level and not keep increasing its memory usage until device RAM is full.

Current Behavior

Container starts leaking memory immediately after startup. After 14 minutes uptime, memory usage was up at 8 GB already. Process list inside container reveals a python process with about 60 MB RAM and a three s6-* processes with negligible memory usage, so the issue is not rooted in the guest software.

Steps to Reproduce

  1. Start container in mentioned environment
  2. Watch container memory usage grow nonstop.

Environment

Synology NAS, model DS1819+
CPU: Intel Atom C3538
RAM: 32 GB
Docker package v18.09.0-0506 (latest available version), contains Docker daemon v18.09.6

Command used to create docker container (run/create/compose/screenshot)

Environment: PUID/PGID/TZ properly set
Port passthroughs: 8000->8000, 7227->7227, 9666->9666 (you might want to add the latter as a default exposed port, it's for Click'n'Load functionality)
Volume mounts: /config and /downloads properly mapped to shares on the NAS

Docker logs

A lot of duplicated log output from pyload (it already writes its log into a file within the mounted config directory)

How to fix

What appears to work for me is modifying the startup script in /etc/services.d/pyload/run. I have redirected STDOUT and STDERR to the null device (assumed Docker perhaps collects any output from there and stores it in memory instead of writing it to a file). Now my container's RAM usage hovers between 900 MB and 1.75 GB but does not grow further.

change port

Hi . I have install this docker on my Odroid C2 with libreelec 9 and i would like to know if it possible to change port "8000" please? If yes how can i do that?

I have try to change it in web interface but it doesn't work
I have try to change it when i create docker :

docker create
--name=pyload
-e PUID=0
-e PGID=0
-e TZ=Europe/London
-p 7000:7000
-v /storage/downloads/pyload:/config
-v /var/media/Mediateque:/downloads
--restart unless-stopped
linuxserver/pyload

and it doesn't work too.

Can you help me please?

Thanks in advance

User/password not as expected

linuxserver.io


Expected Behavior

Expected login user and password to be admin and password on a newly launched instance of pyload.

Current Behavior

Fails to authenticate

Steps to Reproduce

  1. Run together with nginx-proxy and the docker-compose file below.
  2. Navigate to set DOMAIN, Pyload UI will be there
  3. Try authenticating with admin and password

Environment

OS: Raspbian
CPU architecture: ARMv7
How docker service was installed:

Nginx-proxy + docker-compose below

Command used to create docker container (run/create/compose/screenshot)

docker-compose file below.

Docker logs

pyload    | [s6-init] making user provided files available at /var/run/s6/etc...exited 0.
pyload    | [s6-init] ensuring user provided files have correct perms...exited 0.
pyload    | [fix-attrs.d] applying ownership & permissions fixes...
pyload    | [fix-attrs.d] done.
pyload    | [cont-init.d] executing container initialization scripts...
pyload    | [cont-init.d] 01-envfile: executing... 
pyload    | [cont-init.d] 01-envfile: exited 0.
pyload    | [cont-init.d] 10-adduser: executing... 
pyload    | 
pyload    | -------------------------------------
pyload    |           _         ()
pyload    |          | |  ___   _    __
pyload    |          | | / __| | |  /  \ 
pyload    |          | | \__ \ | | | () |
pyload    |          |_| |___/ |_|  \__/
pyload    | 
pyload    | 
pyload    | Brought to you by linuxserver.io
pyload    | -------------------------------------
pyload    | 
pyload    | To support LSIO projects visit:
pyload    | https://www.linuxserver.io/donate/
pyload    | -------------------------------------
pyload    | GID/UID
pyload    | -------------------------------------
pyload    | 
pyload    | User uid:    1000
pyload    | User gid:    1000
pyload    | -------------------------------------
pyload    | 
pyload    | [cont-init.d] 10-adduser: exited 0.
pyload    | [cont-init.d] 30-config: executing... 
pyload    | [cont-init.d] Setting permissions this may take some time
pyload    | [cont-init.d] 30-config: exited 0.
pyload    | [cont-init.d] 90-custom-folders: executing... 
pyload    | [cont-init.d] 90-custom-folders: exited 0.
pyload    | [cont-init.d] 99-custom-files: executing... 
pyload    | [custom-init] no custom files found exiting...
pyload    | [cont-init.d] 99-custom-files: exited 0.
pyload    | [cont-init.d] done.
pyload    | [services.d] starting services
pyload    | [services.d] done.
pyload    | 25.07.2021 13:12:12 INFO      Starting pyLoad 0.4.20
pyload    | 25.07.2021 13:12:12 INFO      Using home directory: /config
pyload    | 25.07.2021 13:12:13 INFO      Activated plugins: ClickNLoad, EventMapper, ExternalScripts, TORRENT, UnSkipOnFail, UpdateManager, UserAgentSwitcher
pyload    | 25.07.2021 13:12:13 INFO      Deactivate plugins: AntiCaptcha, AntiStandby, AntiVirus, AppriseNotify, BypassCaptcha, Captcha9Kw, Checksum, CloudFlareDdos, DeathByCaptcha, DeleteFinished, DiscordNotifier, DownloadScheduler, ExpertDecoders, ExtractArchive, HotFolder, IRC, ImageTyperz, JustPremium, LinkFilter, LinkdecrypterComHook, LogMarker, MergeFiles, MultiHome, PushBullet, PushOver, RestartFailed, SkipRev, TransmissionRPC, WindowsPhoneNotify, XFileSharing, XMPP
pyload    | 25.07.2021 13:12:13 INFO      Downloadtime: True
pyload    | 25.07.2021 13:12:13 INFO      Starting ThriftBackend: 0.0.0.0:7227
pyload    | 25.07.2021 13:12:14 INFO      Starting builtin webserver: :::8000
pyload    | 25.07.2021 13:12:14 INFO      Free space: 16.72 GiB
pyload    | 25.07.2021 13:12:14 INFO      Activating Accounts...
pyload    | 25.07.2021 13:12:14 INFO      Activating Plugins...
pyload    | 25.07.2021 13:12:14 WARNING   ADDON TORRENT: torrents / magnets are not associated with any plugin
pyload    | 25.07.2021 13:12:14 INFO      pyLoad is up and running
pyload    | 25.07.2021 13:12:15 INFO      ADDON UpdateManager: pyLoad is up to date!
pyload    | 25.07.2021 13:12:15 INFO      ADDON UpdateManager: Removed blacklisted plugin: ACCOUNTS GetTwentyFourOrg
pyload    | 25.07.2021 13:12:15 INFO      ADDON UpdateManager: Removed blacklisted plugin: HOSTER GetTwentyFourOrg
pyload    | 25.07.2021 13:12:15 INFO      ADDON UpdateManager: All plugins are up to date!
pyload    | 25.07.2021 13:12:20 INFO      ADDON ClickNLoad: Proxy listening on 0.0.0.0:9666

internal file removal failed

Current Behavior

Getting the following warnings in the latest linuxserver docker image from docker hub:

784 04.04.2020 11:00:58 WARNING ADDON UpdateManager: Error removing /app/pyload/module/plugins/hoster/GetTwentyFourOrg.py | [Errno 13] Permission denied: '/app/pyload/module/plugins/hoster/GetTwentyFourOrg.py'
783 04.04.2020 11:00:58 WARNING ADDON UpdateManager: Error removing /app/pyload/module/plugins/accounts/GetTwentyFourOrg.py | [Errno 13] Permission denied: '/app/pyload/module/plugins/accounts/GetTwentyFourOrg.py'

Steps to Reproduce

  1. appears in the logs on startup

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.