[Support] Snoopy - Logitech Media Server, Emoncms, Ubuntu, FFmpeg


Recommended Posts

13 hours ago, ctrlbreak said:

Hey Snoopy. I notice that LMS 8.1.x is now out but the latest container image from your repository seems to be on 8.0.1. Is this something we can manually update or do you have to create a new image? Thanks.

Try to update container. You should see latest version 8.2.

Link to comment
  • 4 weeks later...

I'm hoping that someone can help figure this issue out.  I installed unRaid on a 2nd machine, and setup the LMS docker on it.  I have LMS running on my original machine, but was going to use this new one to offload dockers and items to create more space on the first yada, yada, and for other reasons.  Anyways, LMS docker has been running on my first machine without issues.  I've setup the new machine to match the old one in its configuration, LMS docker seems to start, but when I goto the WebUI, it is refusing to connect.  I've done all the usual browser cleanup, but the problem persists.  I've installed other dockers, like Plex and don't have any issues accessing them via their webUI...just LMS seems to be having an issue on this new machine.  I also noticed that the log file is reporting the following image repeatedly. Only the PID value increases.

 

I've uninstalled, and re-installed the docker plenty of times, but still having this issue.

 

Any idea what could be going on? Any help is greatly appreciated.

 

image.png

Link to comment
On 3/12/2021 at 9:48 AM, Marbles_00 said:

I'm hoping that someone can help figure this issue out.  I installed unRaid on a 2nd machine, and setup the LMS docker on it.  I have LMS running on my original machine, but was going to use this new one to offload dockers and items to create more space on the first yada, yada, and for other reasons.  Anyways, LMS docker has been running on my first machine without issues.  I've setup the new machine to match the old one in its configuration, LMS docker seems to start, but when I goto the WebUI, it is refusing to connect.  I've done all the usual browser cleanup, but the problem persists.  I've installed other dockers, like Plex and don't have any issues accessing them via their webUI...just LMS seems to be having an issue on this new machine.  I also noticed that the log file is reporting the following image repeatedly. Only the PID value increases.

 

I've uninstalled, and re-installed the docker plenty of times, but still having this issue.

 

Any idea what could be going on? Any help is greatly appreciated.

 

image.png

 

Is your docker network type set to Host?

Also, check your permissions. I like you had an older install that worked - check my previous post a page back.

Edited by doxdump
  • Like 1
Link to comment
  • 3 weeks later...
On 2/14/2021 at 9:31 AM, snoopy86 said:

External

Sent from my BLA-L29 using Tapatalk
 

I now have it kinda working, connecting to a mariadb instance but I'm not able to do an update, and much of the left hand side menu is missing. Here's a couple of screenshots.

 

image.thumb.png.07ae1b34167087514215c653504ceb3e.png

 

 

 

image.thumb.png.aa50da2b90cfc5d8e6778c9e082b2993.png

Link to comment
  • 4 months later...

Hello everyone, new to the forum but using Unraid sinse 2017.

 

I´m also having the same issue reported previously by @Marbles_00 

Here is screen from the log i have ...

image.png.4ec387b56cca9c06376d2a7cc5121a14.png

This is a infinite loop, and i see that the CPU is working on this process over and over...

 

I want to point out that the docker was working just fine before I just automate the update. I am not sure when it stopped working as i didnt use LMS lately, and sometime from the last time i used to date, I haven't been able to access the Web GUI. The log above is pretty much what I get whenever I try to turn the container on, even after a server reset.

 

I tried to force update LMS (Im on LogitechMediaServer latest -- brench), remove and reinstall LMS and no luck. I also tried to install the other LMS version (not the "latest" brench) and nothing :(. 

 

My network type is set to "host". Also the port 5353 (default) was conflicting with Plex so I changed it to 5354.

I tried to change the network type to Bridge, didnt work as well.

 

Doxdump replayed Marble_00 post asking to check the folder permission though i'm not sure how to do it, Im pretty good that following guides, though Im not a linux guy. 

 

Any idea how to sort this out?

 

All the best,

Link to comment
  • 2 months later...

Hey,

Im trying to set up your ffmpeg container to encode into AV1, is that even possible?

I understand the Watch and Output Folders, but the other paramenters are giving me trouble.

What parameters would i have to use? the same as stand alone ffmpeg? But how would i specify a 2 Pass encode? What is the Copy folder for?

Just a tiny bit more documentation would be highly appreciated :)

Link to comment

You need to use standard FFmpeg parameters. For this docker is only important that you separate them with ; so it can parse it in the background correctly.

 

Couple examples:

  1. -map 0;-vcodec libx264;-crf 17;-preset medium;-scodec copy;-acodec copy
  2. -map 0;-vcodec copy;-scodec copy;-acodec ac3;-b:a 640k
  3. -map 0:v;-map 0:a:1;-map 0:s:3;-c:v copy;-bsf:a dca_core;-c:a copy;-c:s copy

 

Copy folder was used to copy original file to it at the end of transcoding. Currently it is not being used.

  • Thanks 1
Link to comment

2 Pass encoding happens in 2 steps, the ffmpeg command looks something like this:

 

ffmpeg -i input.mp4 -c:v libaom-av1 -b:v 2M -pass 1 -an -f null /dev/null && \
ffmpeg -i input.mp4 -c:v libaom-av1 -b:v 2M -pass 2 -c:a libopus output.mkv

You can't pass both the "pass 1" and "pass 2" flag in the same command as far as i know, since the second pass needs the log file created by the first pass to work.

Link to comment
  • 1 month later...
On 12/27/2020 at 12:49 AM, doxdump said:

looks like a new install is not setting the proper permissions:
 

root:root rwxrwxr-x /LogitechMediaServer-8.0/cache
root:root rwxrwxr-x /LogitechMediaServer-8.0/logs
root:root rwxrwxr-x /LogitechMediaServer-8.0/prefs

I have a working LMS on another unRAID. the same directories are set as:

users:nobody rwxr-xr-x /LogitechMediaServer-8.0/cache
users:nobody rwxr-xr-x /LogitechMediaServer-8.0/logs
users:nobody rwxr-xr-x /LogitechMediaServer-8.0/prefs

 

Once I set these on the new install, everything worked!

 

@xtrips@doxdump@flaxfoot@Marbles_00@Kavian

Despite running LMS for a long time, suddenly it wouldn't run anymore and saw the same errors in the log as several others posted.

 

2021-12-15 11:43:43,172 INFO success: squeezeboxserver entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2021-12-15 11:43:45,020 INFO exited: squeezeboxserver (exit status 0; expected)
2021-12-15 11:43:46,032 INFO spawned: 'squeezeboxserver' with pid 331

 

I don't know if an update of the image triggered it, or me updating from 6.9.2 to 6.10.0-rc2.

Everyday I use LMS for my music so I went to this thread in search of a solution. It was there, but not really clear (for me), so here is what I did after a fresh install of the docker image through CA.

 

After the install, stop the container from running and change the permissions of the three directories (cache, logs, and prefs).

You can do this with WinSCP. Right-click the directory and change it accordingly:

Make it so that it says 0755. And don't forget to also tick Set group, owner, and permissions recursively.

 

drwxr-xr-x 1 nobody users  4096 Dec 15 21:26 cache/
drwxr-xr-x 1 nobody users    62 Dec 15 20:41 logs/
drwxr-xr-x 1 nobody users   139 Dec 16 14:38 prefs/
-rw-rw-r-- 1 root   root  34599 Dec 15 21:26 supervisord.log
-rw-rw-r-- 1 root   root      3 Dec 15 21:26 supervisord.pid

 

Now start the container and LMS should be good to go (give it some time on older hardware). By the way it should be run in HOST mode (change it under Network Type:).

 

Hope this helps to get people up and running again. I just love LMS, thanks @snoopy86 for keeping the image up to date!

  • Like 1
Link to comment
  • 4 weeks later...
4 minutes ago, Lavoslav said:

Hi,

question for EMONCMS docker:

my Redis requires authentification. (bitnami docker with Container Variable: ALLOW_EMPTY_PASSWORD
 set to NO). How do I modify emoncms container variables to make it work?

Not possible at the moment. I can only suggest that you use Redis docker from user jj9987. This is the one i'm using and it works ok with emoncms.

Link to comment
  • 4 months later...

Hi there, need some help with the emoncms. I have it running well and inputs are received but when trying to feed them I get this error:

ERROR: Feed could not be created, could not write data file fopen(/var/opt/emoncms/phptimeseries/feed_15.MYD): failed to open stream: Permission denied 

 

Im not sure what permissions are missing or how to grant them. Can you please help?

Link to comment
  • 4 weeks later...

@snoopy86

Just updated to the latest version and LMS stopped working for me as well.

Before the update it was running without issues for ages.

 

I can start the container and it keeps running but I can't access the UI

 

Here are the logs:
 

2022-06-26 21:37:13,653 CRIT Set uid to user 0
2022-06-26 21:37:13,656 INFO supervisord started with pid 15
2022-06-26 21:37:14,658 INFO spawned: 'dbus' with pid 18
2022-06-26 21:37:14,659 INFO spawned: 'avahi-daemon' with pid 19
2022-06-26 21:37:14,661 INFO spawned: 'squeezeboxserver' with pid 20
2022-06-26 21:37:14,669 INFO exited: avahi-daemon (exit status 255; not expected)
2022-06-26 21:37:15,670 INFO success: dbus entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2022-06-26 21:37:15,671 INFO spawned: 'avahi-daemon' with pid 23
2022-06-26 21:37:15,671 INFO success: squeezeboxserver entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2022-06-26 21:37:15,675 INFO exited: avahi-daemon (exit status 255; not expected)
2022-06-26 21:37:17,711 INFO spawned: 'avahi-daemon' with pid 55
2022-06-26 21:37:17,716 INFO exited: avahi-daemon (exit status 255; not expected)
2022-06-26 21:37:21,526 INFO spawned: 'avahi-daemon' with pid 56
2022-06-26 21:37:21,531 INFO exited: avahi-daemon (exit status 255; not expected)
2022-06-26 21:37:21,625 INFO gave up: avahi-daemon entered FATAL state, too many start retries too quickly
2022-06-26 21:37:36,679 INFO exited: squeezeboxserver (exit status 0; expected)
2022-06-26 21:37:37,681 INFO spawned: 'squeezeboxserver' with pid 57
2022-06-26 21:37:38,682 INFO success: squeezeboxserver entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2022-06-26 21:38:00,124 INFO exited: squeezeboxserver (exit status 0; expected)
2022-06-26 21:38:01,126 INFO spawned: 'squeezeboxserver' with pid 91
2022-06-26 21:38:02,127 INFO success: squeezeboxserver entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2022-06-26 21:38:23,165 INFO exited: squeezeboxserver (exit status 0; expected)
2022-06-26 21:38:24,167 INFO spawned: 'squeezeboxserver' with pid 125
2022-06-26 21:38:25,168 INFO success: squeezeboxserver entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2022-06-26 21:38:41,932 INFO exited: squeezeboxserver (exit status 0; expected)
2022-06-26 21:38:42,934 INFO spawned: 'squeezeboxserver' with pid 159
2022-06-26 21:38:43,935 INFO success: squeezeboxserver entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2022-06-26 21:38:55,681 INFO exited: squeezeboxserver (exit status 0; expected)
2022-06-26 21:38:56,683 INFO spawned: 'squeezeboxserver' with pid 188
2022-06-26 21:38:57,684 INFO success: squeezeboxserver entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)

 

that just keeps going for ever.

Link to comment
On 6/25/2022 at 3:50 AM, Boogie2005 said:

Hello, I will now ask again: What could be the reason that the LMS Docker is not accessible? I can see the IP and the port in Unraid. But the browser reports: Not reachable.

 

lmsdocker.jpg

did you check the logs of your container? Is something strange going on (like with mine)

Link to comment
On 12/16/2021 at 9:07 AM, tjukkie said:

 

@xtrips@doxdump@flaxfoot@Marbles_00@Kavian

Despite running LMS for a long time, suddenly it wouldn't run anymore and saw the same errors in the log as several others posted.

 

2021-12-15 11:43:43,172 INFO success: squeezeboxserver entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2021-12-15 11:43:45,020 INFO exited: squeezeboxserver (exit status 0; expected)
2021-12-15 11:43:46,032 INFO spawned: 'squeezeboxserver' with pid 331

 

I don't know if an update of the image triggered it, or me updating from 6.9.2 to 6.10.0-rc2.

Everyday I use LMS for my music so I went to this thread in search of a solution. It was there, but not really clear (for me), so here is what I did after a fresh install of the docker image through CA.

 

After the install, stop the container from running and change the permissions of the three directories (cache, logs, and prefs).

You can do this with WinSCP. Right-click the directory and change it accordingly:

Make it so that it says 0755. And don't forget to also tick Set group, owner, and permissions recursively.

 

drwxr-xr-x 1 nobody users  4096 Dec 15 21:26 cache/
drwxr-xr-x 1 nobody users    62 Dec 15 20:41 logs/
drwxr-xr-x 1 nobody users   139 Dec 16 14:38 prefs/
-rw-rw-r-- 1 root   root  34599 Dec 15 21:26 supervisord.log
-rw-rw-r-- 1 root   root      3 Dec 15 21:26 supervisord.pid

 

Now start the container and LMS should be good to go (give it some time on older hardware). By the way it should be run in HOST mode (change it under Network Type:).

 

Hope this helps to get people up and running again. I just love LMS, thanks @snoopy86 for keeping the image up to date!


Thanks for posting this.  I just hit this after upgrading from 6.9.2 to 6.10.3 which likely confirms it's an issue with the upgrade to 6.10.x.  Following these steps fixed it for me.  I hit similar file permission issues in one other docker after upgrading to 6.10.3.

@Boogie2005 @sillywalks I suggest you try this out since it just worked for me.

Edited by ambidex2
Link to comment
  • 1 month later...
On 5/28/2022 at 8:59 AM, sevenmp said:

Hi there, need some help with the emoncms. I have it running well and inputs are received but when trying to feed them I get this error:

ERROR: Feed could not be created, could not write data file fopen(/var/opt/emoncms/phptimeseries/feed_15.MYD): failed to open stream: Permission denied 

 

Im not sure what permissions are missing or how to grant them. Can you please help?

Is anyone able to help me out sorting this one? For the life of me I cant seem to give the right permissions to the docker? I think this one runs on root so why am I getting permission denied? 

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.