Unable to Use Firefox to Play Anything

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
Kym
Posts: 7
Joined: Wed Feb 05, 2025 9:33 am

Unable to Use Firefox to Play Anything

Post by Kym »

UMS version 14.9.0 - whenever I try to use Firefox to play anything, I get the following error:

Error
Your browse data was not received from the server.

Looking at the log files from Firefox, this is the error:

Code: Select all

ERROR {Time Stamp} Exception in PlayerApiServlet: JsonNull
ERROR {Date & Time Stamp} [webgui-server-56] Exception in PlayerApiServlet: JsonNull
I have done a bit of web searching, but to no avail. Anyone have any ideas as to what might be the issue or perhaps where to start looking?

Thanks, Kym.
Kym
Posts: 7
Joined: Wed Feb 05, 2025 9:33 am

Unable to Use Firefox to Play Anything

Post by Kym »

Attached is the requested files.
ums_dbg_2025-02-04-16-08.zip
(1.24 MiB) Downloaded 313 times
boss
Posts: 400
Joined: Thu Jun 30, 2016 1:07 pm

Re: Unable to Use Firefox to Play Anything

Post by boss »

It looks like you are using an old version of UMS.conf
For example, the newer versions of UMS.conf do not have:

Code: Select all

# ---< Shared folders >-------------------------------------------------------

# Shared folders
# --------------
# A comma-separated list of absolute path names.
# If empty, the default media folders on your computer will be chosen. That is:
# On macOS:
#   - /user/Movies
#   - /user/Music
#   - /user/Pictures
# On Windows:
#   - /user/Music
#   - /user/Pictures
#   - /user/Videos
# On Linux:
#   - /user
# Default: ""
folders =/media/Video,/media/Music/Kym,/media/Music/Cindy,/media/Music/Harrison,/media/Music/Hunter,/media/Pictures/Kym

# Monitor played status of files
# ------------------------------
# List of folders to be monitored for changes. Folders that aren't monitored
# won't register new media with the New Media folder.
# Default: ""
folders_monitored =/media/Video,/media/Music/Kym,/media/Music/Cindy,/media/Music/Harrison,/media/Music/Hunter,/media/Pictures/Kymstill 
It may not solve your issue, but you should still copy UMS.conf included in 14.9 to your user folder and configure it.
Kym
Posts: 7
Joined: Wed Feb 05, 2025 9:33 am

Re: Unable to Use Firefox to Play Anything

Post by Kym »

Thanks for the feedback.

I updated as suggested, however, did not change the error.

I may have to use wireshark to see what is being sent to and from UMS, to see if that provides a clue.
boss
Posts: 400
Joined: Thu Jun 30, 2016 1:07 pm

Re: Unable to Use Firefox to Play Anything

Post by boss »

It looks like you are running UMS on a Ubuntu system?
Is the client running Firefox also on a Linux system or a Windows system?

If UMS is running on an Ubuntu system and that Ubuntu system has it's own Java, you could tell UMS to use the Ubuntu Java rather than the included Java.
I always configure UMS to use my system Java (Gentoo Linux) rather than the Java included with UMS.

It may or may not make any difference but I have suggested that to a couple of people and it resolved the issues they were having.

If you want to try that (provided your Ubuntu has its own java installed):
Edit the "UMS.sh" in the UMS program folder.
Change:

Code: Select all

# Use our JVM if it exists
if [ -f jre17/bin/java ]; then
    JAVA="jre17/bin/java"
fi
To

Code: Select all

# Use our JVM if it exists
#if [ -f jre17/bin/java ]; then
#    JAVA="jre17/bin/java"
#fi
Kym
Posts: 7
Joined: Wed Feb 05, 2025 9:33 am

Re: Unable to Use Firefox to Play Anything

Post by Kym »

Thanks for the suggestion.

I made the changes as described, again, no luck.

Any other ideas?
Kym
Posts: 7
Joined: Wed Feb 05, 2025 9:33 am

Re: Unable to Use Firefox to Play Anything

Post by Kym »

I tried to do a bit more investigation, using Wireshark I got these messages (note the timestamps are different, but quite sure this is the event of concern):

Code: Select all

17583	11.664753	192.168.0.101	192.168.0.3	HTTP/JSON	623	POST /v1/api/player/browse HTTP/1.1 , JSON (application/json)
17588	11.667772	192.168.0.3	192.168.0.101	HTTP/JSON	394	HTTP/1.1 500 Server Error , JSON (application/json)
It appears that the client is asking to 'browse', however, the response is an error.
(I have placed the detailed breakdown of packet 17588 as an attachment)

Looking at the UMS logs, I get this:

Code: Select all

ERROR 2025-02-06 13:45:04.352 [webplayer-server-65] Exception in PlayerApiServlet: JsonNull
Any of this help?
UMS Firefox Browse Issue.txt
(3.75 KiB) Downloaded 289 times
boss
Posts: 400
Joined: Thu Jun 30, 2016 1:07 pm

Re: Unable to Use Firefox to Play Anything

Post by boss »

UMS is running on your Ubuntu server IP:192.168.0.3
The client you are using Firefox on is IP:192.168.0.101

Is the above correct?
If so, what operating system is the client with IP:192.168.0.101?
Have you tried to access UMS with any other clients (TV.s etc)?
Kym
Posts: 7
Joined: Wed Feb 05, 2025 9:33 am

Re: Unable to Use Firefox to Play Anything

Post by Kym »

Yes, those are the correct addresses and functions.

Client Firefox IP:192.168.0.101 is running on Win 10.

I have just tried both an X-Box 360 and PS-3, I can see the UMS (spelling mistake and all), but they both indicate no videos or music (sounds similar to the Firefox issue).

I changed the UMS.conf file back to original (no modifications by me), again, can see the server, but not the files.

Does this imply the UMS is configured incorrectly or installed incorrectly?
boss
Posts: 400
Joined: Thu Jun 30, 2016 1:07 pm

Re: Unable to Use Firefox to Play Anything

Post by boss »

I had a look at the log file you previously posted and UMS is seeing all your media files.

One thing you could try.
Sometimes the database gets corrupted. You can delete the database and UMS will rebuild it.
1. Stop UMS
2. Delete the folder: /home/kym/.config/UMS/database
3. Restart UMS

See if that resolves your issue.
Cheers
Post Reply