Git Product home page Git Product logo

Comments (10)

mreid-tt avatar mreid-tt commented on August 16, 2024 1

hey @flerbert12983, the logs would really help with this as it may be an upstream issue. To get the install and the service logs you can do the following:

  1. In the DSM interface open Control Panel
  2. Navigate to Terminal & SNMP, check "Enable SSH service" and click Apply
  3. SSH to your NAS and login as an administrator account
    • On a Windows machine you can download a utility like PuTTY
    • On a Mac you can open Terminal and type ssh -l [admin] [NAS-IP] substituting your information
  4. Once connected with your password you can enter the following commands:
  5. To get install log: cat /var/log/packages/transmission.log
  6. To get service log: cat /var/packages/transmission/var/transmission.log
  7. Copy the output from the command into a text file to share here (or upload to Pastebin)
  8. Exit from the NAS and then disable the SSH service in the DSM interface

from spksrc.

mreid-tt avatar mreid-tt commented on August 16, 2024 1

@flerbert12983, additionally, based on a similarly reported issue upstream (transmission/transmission#5385), perhaps you can also gather the following output while you are connected via SSH to your NAS:

  1. To get current resource limits: ulimit -a
  2. To get number of file descriptors linked to the /dev/urandom device: sudo ls -l /proc/$(ps -u sc-transmission -o pid=)/fd | grep /dev/urandom | wc -l

Once you have this output you can also attach to this ticket.

from spksrc.

mreid-tt avatar mreid-tt commented on August 16, 2024 1

@flerbert12983, appreciate you supplying the details. I've done a bit of cleanup to break the install log up into collapsable sections for readability.

from spksrc.

flerbert12983 avatar flerbert12983 commented on August 16, 2024 1

@mreid-tt
Running this: sudo cat /var/packages/transmission/var/settings.json | grep script-torrent-.*.-enabled
I get:

    "script-torrent-added-enabled": false,
    "script-torrent-done-enabled": false,
    "script-torrent-done-seeding-enabled": false,

As for the service log, there is a lot of personal information in there, too much to clean up and post. I'll give what I feel comfortable with:

Mon Jan 29 11:11:46 PST 2024
Starting transmission command /volume1/@appstore/transmission/bin/transmission-daemon --config-dir /volume1/@appdata/transmission --pid-file /volume1/@appdata/transmission/transmission.pid --logfile /volume1/@appdata/transmission/transmission.log
[2024-01-29 11:13:34.225] inf session.cc:646 Transmission version 4.0.5 (a6fe2a64aa) starting (session.cc:646)
[2024-01-29 11:13:34.225] inf session.cc:405 Listening to incoming peer connections on [0.0.0.0]:51413 (session.cc:405)
[2024-01-29 11:13:34.225] inf session.cc:405 Listening to incoming peer connections on [::]:51413 (session.cc:405)
[2024-01-29 11:13:34.225] inf tr-udp.cc:168 Bound UDP IPv4 address [0.0.0.0]:51413 (tr-udp.cc:168)
[2024-01-29 11:13:34.225] inf tr-udp.cc:202 Bound UDP IPv6 address [::]:51413 (tr-udp.cc:202)
[2024-01-29 11:13:34.225] inf rpc-server.cc:763 Added '127.0.0.1' to host whitelist (rpc-server.cc:763)
[2024-01-29 11:13:34.225] inf rpc-server.cc:763 Added '::1' to host whitelist (rpc-server.cc:763)
[2024-01-29 11:13:34.225] inf rpc-server.cc:907 Serving RPC and Web requests on 0.0.0.0:9091/transmission/ (rpc-server.cc:907)
[2024-01-29 11:13:34.225] inf rpc-server.cc:713 Listening for RPC and Web requests on '0.0.0.0:9091' (rpc-server.cc:713)
[2024-01-29 11:13:34.225] inf rpc-server.cc:917 Password required (rpc-server.cc:917)
[2024-01-29 11:13:34.225] inf rpc-server.cc:923 Serving RPC and Web requests from '/var/packages/transmission/target/share/transmission/public_html' (rpc-server.cc:923)
[2024-01-29 11:13:34.225] inf daemon.cc:715 Loading settings from '/volume1/@appdata/transmission' (daemon.cc:715)
[2024-01-29 11:13:34.225] inf daemon.cc:735 Saved pidfile '/volume1/@appdata/transmission/transmission.pid' (daemon.cc:735)
[2024-01-29 11:13:34.225] inf daemon.cc:751 Requiring authentication (daemon.cc:751)
[2024-01-29 11:13:34.225] inf daemon.cc:772 Watching '/volume1/xxx/watch-transmission' for new torrent files (daemon.cc:772)
[2024-01-29 11:13:34.225] WRN torrent-metainfo.cc:444 unexpected: path '[][info][x_cross_seed_label]', str 'xxx' (torrent-metainfo.cc:444)
[2024-01-29 11:13:34.225] WRN torrent-metainfo.cc:444 unexpected: path '[][info][attr]', str 'x' (torrent-metainfo.cc:444)
[2024-01-29 11:13:34.225] WRN torrent-metainfo.cc:444 unexpected: path '[][creation date]', str '' (torrent-metainfo.cc:444)
[2024-01-29 11:13:34.225] WRN torrent-metainfo.cc:271 unexpected: path '[][codepage]', int '866' (torrent-metainfo.cc:271)
[2024-01-29 11:13:34.225] WRN torrent-metainfo.cc:444 unexpected: path '[][creation date]', str '' (torrent-metainfo.cc:444)
[2024-01-29 11:13:34.225] WRN torrent-metainfo.cc:444 unexpected: path '[][info][create for]', str 'atracker.net' (torrent-metainfo.cc:444)
[2024-01-29 11:13:34.225] WRN torrent-metainfo.cc:444 unexpected: path '[][info][create fror ]', str 'atracker.net' (torrent-metainfo.cc:444)
[2024-01-29 11:13:34.225] WRN torrent-metainfo.cc:444 unexpected: path '[][creation date]', str '' (torrent-metainfo.cc:444)
[2024-01-29 11:13:34.225] WRN torrent-metainfo.cc:444 unexpected: path '[][info][attr]', str 'x' (torrent-metainfo.cc:444)
[2024-01-29 11:13:34.225] WRN torrent-metainfo.cc:444 unexpected: path '[][info][attr]', str 'x' (torrent-metainfo.cc:444)
[2024-01-29 11:13:34.225] WRN torrent-metainfo.cc:444 unexpected: path '[][info][attr]', str 'x' (torrent-metainfo.cc:444)
[2024-01-29 11:13:34.225] WRN torrent-metainfo.cc:444 unexpected: path '[][info][souce]', str 'xxx' (torrent-metainfo.cc:444)
[2024-01-29 11:13:34.225] WRN torrent-metainfo.cc:444 unexpected: path '[][creation date]', str '' (torrent-metainfo.cc:444)
[2024-01-29 11:13:34.225] WRN torrent-metainfo.cc:444 unexpected: path '[][info][attr]', str 'x' (torrent-metainfo.cc:444)
[2024-01-29 11:13:34.225] WRN torrent-metainfo.cc:444 unexpected: path '[][info][attr]', str 'x' (torrent-metainfo.cc:444)
[2024-01-29 11:13:34.225] WRN torrent-metainfo.cc:444 unexpected: path '[][info][attr]', str 'x' (torrent-metainfo.cc:444)
[2024-01-29 11:13:34.225] inf session.cc:1408 Loaded 4049 torrents (session.cc:1408)

This error came repeatedly:

[2024-01-30 05:57:56.714] WRN aspecifictorrent [aspecificIPaddress]:51462 [libTorrent (Rakshasa) 0.13.8]: got unrequested piece 14858:2457600->16384 (peer-msgs.cc:1409)

Then hours later came this error:

[2024-01-31 19:58:58.225] ERR open-files.cc:187 Couldn't open '/path/file': Too many open files (24) (open-files.cc:187)
/index.html': Too many open files (24) (utils.cc:129)

Eventually came errors like this:

[2024-01-31 20:05:58.612] ERR aspecifictorrent Too many messages like this! I won't log this message anymore this session. (inout.cc:156)

And couldn't save messages

[2024-01-31 21:47:47.225] ERR variant.cc:1102 Couldn't save '/volume1/@appdata/transmission/resume/alphanumbericstuff.resume': Too many open files (24) (variant.cc:1102)

And eventually the The web interface not loading when I tried it, though it will load on later tries:

[2024-02-01 13:27:39.224] ERR utils.cc:129 Couldn't read '/var/packages/transmission/target/share/transmission/public_html/transmission-app.css': Too many open files (24) (utils.cc:129)

Nothing here is jumping out at me as a root cause. It's just the error coming up for no clear reason after the app runs for a bit.

I tried to mark this up in a more readable fashion than before. Sorry, my first github bug report.

from spksrc.

flerbert12983 avatar flerbert12983 commented on August 16, 2024 1

Thanks. I downgraded to 4.0.2 I'll see how it goes.

from spksrc.

flerbert12983 avatar flerbert12983 commented on August 16, 2024

Thanks, Michael!

I have added the install log. I will update the service log once I start getting the errors again. They're not in the current long since I rebooted yesterday.

:~$ ulimit -a
core file size          (blocks, -c) unlimited
data seg size           (kbytes, -d) unlimited
scheduling priority             (-e) 0
file size               (blocks, -f) unlimited
pending signals                 (-i) 127950
max locked memory       (kbytes, -l) 64
max memory size         (kbytes, -m) unlimited
open files                      (-n) 1024
pipe size            (512 bytes, -p) 8
POSIX message queues     (bytes, -q) 819200
real-time priority              (-r) 0
stack size              (kbytes, -s) 8192
cpu time               (seconds, -t) unlimited
max user processes              (-u) 127950
virtual memory          (kbytes, -v) unlimited
file locks                      (-x) unlimited

Number of file descriptors linked to the /dev/urandom device: 917

It does look like some kind of upstream Transmission issue, since something or the same happens on the Mac.

from spksrc.

mreid-tt avatar mreid-tt commented on August 16, 2024

@flerbert12983, I've asked about this issue in the upstream ticket and it was suggested to check for a particular torrent scripts setting. While it does not seem to be the root cause of the issue, if you have the time, I'd like you to capture the output of this command:

sudo cat /var/packages/transmission/var/settings.json | grep script-torrent-.*.-enabled

from spksrc.

mreid-tt avatar mreid-tt commented on August 16, 2024

@flerbert12983, I appreciate your ongoing contributions to this matter. Your follow-up has been invaluable. While we haven't identified a definitive solution yet, I will persist in addressing this issue on the upstream ticket.

Depending on your availability of free time, conducting an experiment to pinpoint when this issue originated could be beneficial. One approach is to downgrade to the earliest available version of Transmission v4. This can be achieved through two methods:

  1. Manual Downgrade: Follow the instructions to downgrade the package without uninstalling (Advanced).
  2. Manual Install: Obtain Transmission v4.0.2 for your platform (v1000) from this source and install it manually as an update.

Alternatively, if you prefer a more cautious approach, you may opt for using a VirtualDSM. Here are the high-level steps:

  1. Download VirtualDSM: Access VirtualDSM from the Synology Download Center.
  2. Set Up VirtualDSM: Create a new VirtualDSM instance and install Transmission v4.0.2 manually (as above).
  3. Migrate Configuration: Transfer your configuration and torrents from the production server to the VirtualDSM environment.

By pursuing either option, you can hopefully determine whether the issue persists with Transmission v4.0.2 and assess the state of the logs and file descriptors for confirmation.

from spksrc.

flerbert12983 avatar flerbert12983 commented on August 16, 2024

4.0.2 has been steady so far. No "too many open files" errors.

from spksrc.

mreid-tt avatar mreid-tt commented on August 16, 2024

Good to hear, what is the output of the file descriptors command from earlier? Also, in the service log besides the actual error (which shouldn't be there), you mentioned a warning which seemed to precede it, does this feature in your log at all?

from spksrc.

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.