Drobac Boris 3 Posted March 18, 2020 Share Posted March 18, 2020 Emby Server 4.3.1.0Emby smart tv app 1.0.76 I also had problems before with server crashing on poster loading when i open movie page..Now i noticed this when i open movie library, after that i must start emby server again. Server is on raspberry pihttps://streamable.com/b8o8l Log file is sent in private message to Luke Link to comment Share on other sites More sharing options...
Luke 37024 Posted March 18, 2020 Share Posted March 18, 2020 Hi, can you supply the previous log? The one you sent appears to be from after starting the server back up. thanks. Link to comment Share on other sites More sharing options...
Luke 37024 Posted March 19, 2020 Share Posted March 19, 2020 Hmm, thanks for the log files. There's nothing obvious unfortunately. We're about to release Emby Server 4.4. Can you please re-evaluate with that once available? Thanks. Link to comment Share on other sites More sharing options...
Drobac Boris 3 Posted March 22, 2020 Author Share Posted March 22, 2020 I updated server and now posters loading doesn't crash emby server. If i notice the problem again i will let you know. Thanks. Link to comment Share on other sites More sharing options...
Luke 37024 Posted March 22, 2020 Share Posted March 22, 2020 I updated server and now posters loading doesn't crash emby server. If i notice the problem again i will let you know. Thanks. Excellent, thanks for the feedback ! Link to comment Share on other sites More sharing options...
Drobac Boris 3 Posted March 28, 2020 Author Share Posted March 28, 2020 Hi @@Luke i got server crashing again when i enter movie page for the first time, i think problem is with ram memory, I'm on raspberry pi 3b (1024mb ram) and when i have 400-500 free memory everything load fine, if i have ~200 free memory emby can crash. I watched htop and how emby behave when i enter movie pages, and every time i enter emby will use some chunk of new ram memory, and release it after movie page (posters) is loaded. Please can you test it?And i checked option in library settings that posters should download after movie is imported. So what emby does when i enter movie page for the first time? Is it preloading posters on different resolution? Link to comment Share on other sites More sharing options...
Luke 37024 Posted March 28, 2020 Share Posted March 28, 2020 Hi @@Luke i got server crashing again when i enter movie page for the first time, i think problem is with ram memory, I'm on raspberry pi 3b (1024mb ram) and when i have 400-500 free memory everything load fine, if i have ~200 free memory emby can crash. I watched htop and how emby behave when i enter movie pages, and every time i enter emby will use some chunk of new ram memory, and release it after movie page (posters) is loaded. Please can you test it? And i checked option in library settings that posters should download after movie is imported. So what emby does when i enter movie page for the first time? Is it preloading posters on different resolution? Hi, have you updated to Emby Server 4.4? Link to comment Share on other sites More sharing options...
Drobac Boris 3 Posted March 28, 2020 Author Share Posted March 28, 2020 Yes Link to comment Share on other sites More sharing options...
Luke 37024 Posted March 28, 2020 Share Posted March 28, 2020 Can you please attach a server log from that? Thanks. Link to comment Share on other sites More sharing options...
Drobac Boris 3 Posted March 29, 2020 Author Share Posted March 29, 2020 I tried accumulating active ram to ~750mb and then i turned on debug logging and started the test with emby. But i freezed raspberry pi few times and i gave up.. Link to comment Share on other sites More sharing options...
Luke 37024 Posted March 29, 2020 Share Posted March 29, 2020 I tried accumulating active ram to ~750mb and then i turned on debug logging and started the test with emby. But i freezed raspberry pi few times and i gave up.. Can you please attach the emby server log? Thanks. Link to comment Share on other sites More sharing options...
Drobac Boris 3 Posted March 29, 2020 Author Share Posted March 29, 2020 I managed to crash emby server again with entering movie pages in emby app, i sent you a debug log.Also i recorded emby server process - https://streamable.com/xu4koMaybe it's not ram memory, i don't know. i entered 20-30 movie pages before it crashed, and memory spikes were similar.. Link to comment Share on other sites More sharing options...
Luke 37024 Posted March 31, 2020 Share Posted March 31, 2020 Are your movie posters really large? Link to comment Share on other sites More sharing options...
Drobac Boris 3 Posted March 31, 2020 Author Share Posted March 31, 2020 Sorry, i don't understand your question.? Movie posters came through emby. I don't have control how large they are. Do you think posters are the reason why emby crash? Link to comment Share on other sites More sharing options...
Luke 37024 Posted March 31, 2020 Share Posted March 31, 2020 Right now I'm not sure. What model RPI? are you using the right architecture package? Link to comment Share on other sites More sharing options...
Drobac Boris 3 Posted March 31, 2020 Author Share Posted March 31, 2020 RPI 3b i installed emby server through dietpi system. https://github.com/MichaIng/DietPi They have automated software installation. Link to comment Share on other sites More sharing options...
MichaIng 1 Posted April 1, 2020 Share Posted April 1, 2020 Hey guys, Micha from DietPi here. Some background about the setup of Emby on DietPi: It is disabled or ARMv6 RPi models (RPi1 and Zero), so the armhf packages are correct, pulling required dependencies from official Raspbian repo in case. The latest pre-compiled package from GitHub source is pulled, hence 4.4.0.40 at time of writing: https://api.github.com/repos/MediaBrowser/Emby.Releases/releases/latest The emby user is added to shared dietpi group to have access to default media directory, else no special setup done, so basically a default setup like one would do on default Raspbian. Since you observe the crash when having high RAM usage, and I also see in your video that used RAM is frequently jumping quite close to the total limit, I guess it is simply the OOM killer. Please paste the output of the following: journalctl -u emby-server And also check journalctl + demsg for other system and kernel messages that match the time the service crashes. Generally I would not run the system that way that regularly 80% and more of physical RAM are used. If there is some heavier cron job or systemd timer running concurrently, it will quickly run OOM. Even if it works, there is nearly nothing left for file system caching and similar, reducing performance in general. However to prevent OOM kills and generally verify that indeed memory limit is the reason, you can create a swap file: /DietPi/dietpi/func/dietpi-set_swapfile 1 This will create a 1 GiB swapfile on your system. "1" means it creates a swapfile with a size so that 2 GiB total memory are available, else you could use e.g. "512" for a 512 MiB swapfile or "0" to disable it again, or in case use dietpi-drive_manager to create it on a different drive, as this should no be on the SDcard. 1 Link to comment Share on other sites More sharing options...
Drobac Boris 3 Posted April 3, 2020 Author Share Posted April 3, 2020 Thank you @@MichaIng i created a swap file, and so far i didn't had any crashes. Link to comment Share on other sites More sharing options...
Luke 37024 Posted April 3, 2020 Share Posted April 3, 2020 @@MichaIng that was great, thanks for the info ! Link to comment Share on other sites More sharing options...
MichaIng 1 Posted April 3, 2020 Share Posted April 3, 2020 Great it helped. As said, if you can, try to reduce general memory usage, e.g. go through other services you might not require and disable/uninstall them. The swapfile should at best be only used during rare/unexpected high memory peaks, especially when it's located on the SDcard. Link to comment Share on other sites More sharing options...
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