Jump to content

Third embyserver instance while scanning library


Recommended Posts

Posted

Usually, Emby starts two "embyserver" instances on MacOS.

From time to time, while scanning a library, a third embyserver instance starts.

When this happens, scanning seems to lost track, and the library ends unfinished (see the two tracks to the right)

 

Untitled 2.png

Untitled 6.png

embyserver.txt

  • 2 weeks later...
Posted

Hi, are you sure it had completed by then? I don't see any mention of those two files in this log, so are you sure that it's the right one?

  • 1 month later...
Posted

Yes. It's the right one.

That's what happens. Suddenly a new instance of embyserver starts, and the library scan stops. This new instance apparently does not write to the log.

Posted

Also, it's completely random. Sometimes doesn't happens, and other days happens all the time.

Posted

Are you experiencing any specific problem?

Posted

Yes. A third instance of embyserver is spawned at random times while scanning music library and then the scanning process goes to a limbo and leaves orphaned tracks. Nothing is written to the log.

The workaround so far is to kill the "embyserver" instances, restart the server and launch a new scan. Sometimes I need to do this process three or four times per scan.

Sometimes, the scan performs flawlessly.

Screenshot and log were attached when I started the post.

Posted

Hi, what do you mean by limbo?

Posted

I mean, when the third instance is launched, you can't tell if the scanning process ended, aborted or went to an infinite loop.

The log file doesn't get updated and there are orphaned songs left.

I once left it overnight to see if something changes, but there was no change.

  • 2 weeks later...
Posted

HI, are you still having an issue with this?

jmariani
Posted

Hi. Every time I scan the library.

jmariani
Posted
1 hour ago, Luke said:

HI, are you still having an issue with this?

Just now.

Untitled.png

embyserver.txt

  • 2 months later...
Posted

Hi, have you updated to Emby Server 4.8.11? Has that helped?

jmariani
Posted

Upgraded to 4.8.11 a couple of days ago. Still happens.

Posted
4 minutes ago, jmariani said:

Upgraded to 4.8.11 a couple of days ago. Still happens.

What exactly are you seeing in Emby?

jmariani
Posted

Embyserver is running, and I can see two (2) "EmbyServer" running in Activity Monitor

Then, I start a Library scan.

Emby, after a long while, starts processing files with ffprobe.

Sometimes (most of the times) stops processing. This spawns a new "EmbyServer" process and then I can see three (3) "EmbyServer" processes in Activity Monitor. 

I then kill the three processes, find in the log the offending file, start EmbyServer again and go to "Songs" tab. Find the track, and do a "Refresh metadata". Emby, after a long while, processes the file and after another long while, starts processing pending files. Sometimes this finishes ok, sometimes it stops in another file.

Attached log and image. It just happened.

And again.image.png.dabd12583b362c4b9346cf79dc189193.png

embyserver.txt

Posted

But what problem in Emby are you having?

@sa2000have you seen this before?

jmariani
Posted (edited)

Problem in Emby? Isn't what I described a problem to you?

My problem is I'm paying for an app which fails.

Edited by jmariani
sa2000
Posted
5 hours ago, Luke said:

have you seen this before

I see a couple of PIDs on my MacBook Pro - and when viewed in ActivityMonitor hierarchically one shows as being the parent 

image.png

 

7 hours ago, jmariani said:

Sometimes (most of the times) stops processing. This spawns a new "EmbyServer" process and then I can see three (3) "EmbyServer" processes in Activity Monitor

The % CPU is high. I wonder if MacOS is restarting the process after attempting to kill it

image.png

You could look for any crash reports / diagnostics / logs created by MacOS - Open /Applications/Utilties in Finder and open the Console.app and see if there is anything relating to Emby Server in Crash Reports, Diagnostics or system log.

Also would like to know how these processes show in Activity Monitor when View All Processes Hierarchically is selected

And with processes going back many hours, would be useful to look at the contents of the whole logs folder. 

 

Posted
13 hours ago, jmariani said:

Problem in Emby? Isn't what I described a problem to you?

My problem is I'm paying for an app which fails.

I'm just asking you to tell us what you're seeing in Emby without looking at activity monitor.

jmariani
Posted (edited)

I am able to play songs, see album, song, artists etc. lists.

Library scan is disabled (I mean, does not work). Logging doesn't work either.

And I can see the unprocessed songs like the image attached.

image.thumb.png.1222d6fe0fc5c38adb01841d5af3aa2f.png

Edited by jmariani
Posted

hi, what makes you think logging doesn't work?

jmariani
Posted

Because file "embyserver.txt" doesn't get updated.

Neminem
Posted

That would suggest permissions issues 🤷‍♂️

Posted
1 hour ago, jmariani said:

Because file "embyserver.txt" doesn't get updated.

what were you expecting to see in it?

jmariani
Posted

Log stuff, like scan library progression or playing progression, like it usually does before the "three instances situation" happens

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...