Install UMS on headless debian server

For help and support with Universal Media Server
Forum rules
Please make sure you follow the Problem Reporting Guidelines before posting if you want a reply
feffer777
Posts: 7
Joined: Mon Dec 19, 2022 8:50 am

Re: Install UMS on headless debian server

Post by feffer777 »

OK working...I pointed SHARED.conf to a more limited folder with 2 movies saved as .avi and it showed up on the PS3 and also on a browser pointed to my server:9002. So it was stumbling on my old .mp4 vids. Just a few things to nail down. Should I just leave it running so it will be available when I start the PS3, or just restart it specifically for the relatively fewer times I use it. Any way to "fix" those .mp4's?
boss
Posts: 348
Joined: Thu Jun 30, 2016 1:07 pm

Re: Install UMS on headless debian server

Post by boss »

You don't need this part in "SHARED.conf":
{
"file": "/opt/ums-12.0.1",
"monitored": true,
"metadata": true,
"active": true,
"type": "Folder"
},

This is my SHARED.conf:
[
{
"file": "/home/media_mnt/Images",
"monitored": false,
"metadata": true,
"active": true,
"type": "Folder"
},
{
"file": "/home/media_mnt/Music",
"monitored": false,
"metadata": true,
"active": true,
"type": "Folder"
},
{
"file": "/home/media_mnt/Music Videos",
"monitored": false,
"metadata": true,
"active": true,
"type": "Folder"
},
{
"file": "/home/media_mnt/Karaoke Video",
"monitored": false,
"metadata": true,
"active": true,
"type": "Folder"
},
{
"file": "/home/media_mnt/Videos/Movies",
"monitored": false,
"metadata": true,
"active": true,
"type": "Folder"
},
{
"file": "/home/media_mnt/Videos/TV Series",
"monitored": false,
"metadata": true,
"active": true,
"type": "Folder"
}
]

Did your UMS logs read other media files before it got to ".mp4 files shot about 12 years ago"?
Or was this the first file UMS tried to read and shut down then?
Do you have Java on your server and if so, what version of Java?

Although it should be using the java which is included with UMS at: /opt/jre17.
according to the UMS script at: /opt/UMS/UMS.sh
Cheers
boss
Posts: 348
Joined: Thu Jun 30, 2016 1:07 pm

Re: Install UMS on headless debian server

Post by boss »

I posted the above before I saw your last post.
I have had problems with file names with non standard characters. UMS basically shut down when parsing the folder with the non standard characters in the file name.
EG: Beyoncé

To dig down further you would have to put UMS in TRACE mode and restart and then check the logs.
To put UMS in trace mode, edit /root/.config/UMS/UMS.conf.
Change this:
# Log Level
# ---------------------
# The root logging level, a root filter applied to all logging, which can be:
# ALL, TRACE, DEBUG, INFO, WARN, ERROR or OFF
# This property can also be set from the 'Logs' tab in the gui.
# Default: "DEBUG"
log_level =

To this (add TRACE to log_level =).
# Log Level
# ---------------------
# The root logging level, a root filter applied to all logging, which can be:
# ALL, TRACE, DEBUG, INFO, WARN, ERROR or OFF
# This property can also be set from the 'Logs' tab in the gui.
# Default: "DEBUG"
log_level = TRACE

Then restart UMS.

Then the log file will give a lot more information to what is happening.
**** Don't leave TRACE on afterwards for normal use.

This is my actual startup setup.
In /opt/ums/
I have a lot of versions of UMS.
Then I create a symbolic link to the version I wish to use.
EG:
lrwxrwxrwx 1 root root 11 Dec 15 12:12 ums -> ums-12.0.1/
drwxr-xr-x 8 root root 4096 Jan 31 2021 ums-10.0.1
drwxr-xr-x 8 root root 4096 Sep 19 2021 ums-10.12.0
drwxr-xr-x 8 root root 4096 Mar 14 2022 ums-10.17.1
drwxr-xr-x 7 root root 4096 Nov 2 14:14 ums-11.5.0
drwxr-xr-x 7 root root 4096 Dec 14 12:33 ums-11.6.0
drwxr-xr-x 7 root root 4096 Dec 14 12:49 ums-12.0.1
drwxr-xr-x 7 root root 4096 Oct 1 2020 ums-7.4.0
drwxr-xr-x 7 root root 4096 Nov 1 12:57 ums-9.0.0
drwxr-xr-x 7 root root 4096 Sep 16 2021 ums-9.0.1
drwxr-xr-x 7 root root 4096 Nov 2 2019 ums-9.1.0
drwxr-xr-x 8 root root 4096 Sep 16 2021 ums-9.8.2
drwxr-xr-x 8 root root 4096 Dec 23 2020 ums-9.8.3

My startup script (for /etc/init.d/) is attached
The script always starts: "/opt/ums/ums/UMS.sh"
That is why I use the symbolic link. To use a different version I just change the symbolic link to the version I want and do not have to modify the startup script in /etc/init.d/

PS: In the startup script, you may need to modify: PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
as I am still using 32-bit Gentoo Linux and you are using a 64-bit system.

Cheers
Attachments
ums.zip
(1.48 KiB) Downloaded 59 times
feffer777
Posts: 7
Joined: Mon Dec 19, 2022 8:50 am

Re: Install UMS on headless debian server

Post by feffer777 »

Thx for your extensive help! A few things to tweak, but I can see the way forward. Your startup script will be useful. I'm curious why you have so many versions?
boss
Posts: 348
Joined: Thu Jun 30, 2016 1:07 pm

Re: Install UMS on headless debian server

Post by boss »

I have used UMS for quite some time.
Sometimes I realise there is a slight problem (which I remember was not present sometime prior) and the developers ask if I can check previous versions to see which version the issue started.
They can then check for changes which were made at that time in order to try and sort out the issue,

Up until V10, I was using version 7.4 as that worked best for me. From V10 onwards, those versions have been better.

Cheers
User avatar
mik_s
Moderator
Posts: 1127
Joined: Wed Aug 23, 2017 11:03 pm
Location: UK

Re: Install UMS on headless debian server

Post by mik_s »

Thanks for the help @Boss. I'll keep this bookmarked and point other Linux users here if they have trouble installing UMS as I have no clue :lol:
Logs are important for us to help, Please follow This Link before asking for support. Just a forum cleaner, Will help if I can but no expert.
Post Reply