MrBuggie 1 Posted July 24, 2022 Posted July 24, 2022 Hello, I have Emby installed on a Raspberry Pi 3B+ since last weekend. The Pi is running NextCloudPi and I used DockSTARTer to install Emby in a docker. I’ve just realised that the Emby server is crashing and rebooting constantly, even when idle. Thanks to buffering, playback seems to only get stopped about once an hour, and as I haven’t had time to watch much TV I just hadn’t noticed. All media is on a USB drive, (BTRFS) and I have disabled real time monitoring for all libraries for now, but no change. Emby reboots every few minutes and I have no idea why. I have attached a pic of the list of log files that’s growing huge, and an example of each of the two log files. They’re from a point when the server was idle (I’m the only one with access). Any ideas what’s going on? hardware_detection-63794212228.txt embyserver-63794212204.txt
Luke 42078 Posted July 24, 2022 Posted July 24, 2022 HI ,the only thing I can think of is try disabling the network port mapper if you don't need that function. Please note that after doing this you'll have to manfully configure port forwarding in your router in order for remote access to work. Please let us know if this helps. Thanks.
MrBuggie 1 Posted July 25, 2022 Author Posted July 25, 2022 Thanks for answering. It’s the "Enable automatic port mapping" in the Network options in the admin panel, isn’t it? I couldn’t see it as I’d deactivated external access (though not sure when, it might have been after posting...). Anyway, just unchecked it to be sure. I did however find this old thread about changing the size of mono’s nursery. I thought it might be worth trying just to make sure given as (what I now see is) the PortMapper errors contain similar mentions of Mono, MediaBrowser and similar commands (albeit possibly different enough that it may be apples and oranges). But as it was my only lead, I thought I could always test and revert if no change. However it requires editing /etc/emby-server.conf. Given that it’s in a docker, the file doesn’t exist in the host filesystem, and I can’t figure out for the life of me how to find it... If you could point me in the right direction I would be very grateful. I’m finding dockers more confusing than anything, and I’m used to working with VMs. On the plus side, though I was still having lots of crashes, I went through my media and added ID tags to all the series it wasn’t finding and left it to (very slowly) grab all the metadata. Since finishing it seems to be crashing a lot less (coincidence maybe?). In fact I just realised that the time displayed for the log in the admin panel is the last entry, not the creation date. So the one dated this evening isn’t actually showing last boot time. The latest log actually started at exactly midnight, so daily logs? Which would mean it hasn’t crashed since I deleted the Anisearch and Anilist plugins (keeping just the Anime plugin) about 24 hours ago. So now I’m actually wondering if the crashes have stopped. I’ll update in a day or two.
Luke 42078 Posted July 25, 2022 Posted July 25, 2022 Quote I’ll update in a day or two. Great keep us posted. Thanks !
MrBuggie 1 Posted July 29, 2022 Author Posted July 29, 2022 So I went a couple of days with no reboots, and then last night had the time to reorganise my files a little. I have one big library that I split into two, and added my music library. It’s taking forever to scan everything (logs show it’s still creating thumbnails for the files in the one I split as metadata download is turned off). And my music library it’s only added half. And loading is incredibly slow. I’ve had about 5 reboots in less than 24 hours. But I’m hoping it’ll be stable again when it’s finished. I still haven’t decided if I’m going to stick with Emby (the main deciding factor will be the stability) and my Android TV trial runs out on August 1st.
Luke 42078 Posted July 30, 2022 Posted July 30, 2022 On 7/29/2022 at 11:23 AM, MrBuggie said: So I went a couple of days with no reboots, and then last night had the time to reorganise my files a little. I have one big library that I split into two, and added my music library. It’s taking forever to scan everything (logs show it’s still creating thumbnails for the files in the one I split as metadata download is turned off). And my music library it’s only added half. And loading is incredibly slow. I’ve had about 5 reboots in less than 24 hours. But I’m hoping it’ll be stable again when it’s finished. I still haven’t decided if I’m going to stick with Emby (the main deciding factor will be the stability) and my Android TV trial runs out on August 1st. HI, can you please attach the emby server log files from this time period? Thanks.
MrBuggie 1 Posted July 31, 2022 Author Posted July 31, 2022 Here are the last 5 log files that appear just before a hardware detection log file (which I assume is generated on reboot). I have turned the folder monitoring option back on as it doesn’t seem to make a difference. And the list of log files in case that makes it easier for you to figure out the order. Thanks so much for taking a look. The NextCloudPi system is reporting a nearly 7 day uptime (I tried moving it last weekend to make sure it had nothing to do with an old power socket). embyserver-63794750464.txt embyserver-63794796916.txt embyserver-63794833231.txt embyserver-63794746823.txt embyserver-63794744974.txt
Luke 42078 Posted August 3, 2022 Posted August 3, 2022 hi @MrBuggie are you still running into this? Have you updated to Emby Server 4.7.6?
MrBuggie 1 Posted August 3, 2022 Author Posted August 3, 2022 (edited) It updated automatically. Seems to have happened yesterday morning. In roughly 36 hours since, I’ve had 2 reboots, which is still a hell of a lot better than 10 days ago when it was rebooting every few minutes (and I had about 3500 log files). Edited August 3, 2022 by MrBuggie
MrBuggie 1 Posted August 3, 2022 Author Posted August 3, 2022 Just checked the log files just before the reboots. The first one is attached. The second one it updated a plugin and needed to restart, so restarted while it was idle. So only one crash apparently. I was so focused on the log files that it didn’t occur to me to ask. Should I turn on debug logging? embyserver-63795092630.txt
MrBuggie 1 Posted August 3, 2022 Author Posted August 3, 2022 Okay, so this is the timeline. As you can see there’s nothing in the log file for over 1h30 before the crash, as the server was idle.
Luke 42078 Posted August 11, 2022 Posted August 11, 2022 hi @MrBuggie are you still having an issue with this?
MrBuggie 1 Posted August 26, 2022 Author Posted August 26, 2022 Hi, sorry for not answering sooner. So it seems to have stopped rebooting. The last oddity was it rebooting at exactly 3 AM every other day, even if I was watching something. Not sure what was going on there, but it seems to have stopped that. I just wish the USB/network wasn’t so slow on the RPi 3B+. Streaming 4K is okay, but 8K pauses to buffer, and transferring files to the server over the local network can take forever. Given the RPi 4 shortage, I may consider investing in a NAS. On a side note, I’ve been using Plex on my PC for the past couple of years, until I finally got around to setting up my Pi. Was going to put Plex on it but I kept reading that Plex would struggle and Emby was much better on limited hardware. I’m glad I gave it a go and have purchased the app. Thanks to everyone who puts time into it. 1
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now