owntone-server icon indicating copy to clipboard operation
owntone-server copied to clipboard

OwnTone getting stuck when trying to open a large library with Apple Music

Open aaronk6 opened this issue 4 months ago • 6 comments

Platform:

  • OwnTone 28.10 on Ubuntu 22.04 (4 CPU cores, 8 GB RAM)
  • macOS 15.0 / Apple Music 1.5.0.174

Steps to reproduce:

  • Have a large library (> 100k tracks).
  • Open Apple Music on macOS.
  • Select the OwnTone library in the sidebar.

It will take a while to load, but will eventually show the full library.

However, this is where it gets stuck:

  • Most album artworks don’t load.
  • Playback doesn’t work (sits at “Connecting…” forever).

At the same time on the server:

  • The OwnTone processes max out all 4 CPU cores.
  • The log output stopped.
  • The Web interface isn’t reachable anymore.
Screenshot 2024-09-29 at 21 18 53

Note that I added the following override to the OwnTone unit file:

[Service]
OOMScoreAdjust=-1000

Without this, the OwnTone process was killed when trying to open the OwnTone library in Apple Music:

owntone.service: A process of this unit has been killed by the OOM killer.

Is there anything I can tweak on my system? Or is this something that needs to be optimized in OwnTone?

Thanks!

aaronk6 avatar Sep 29 '24 19:09 aaronk6