Ubuntu 22.04 new install not listening on 32400

Server Version#: Not getting that far
Player Version#: Not getting that far
<If providing server logs please do NOT turn on verbose logging, only debug logging should be enabled>

Fresh install on new Ubuntu 22.04 install, PMS is running and listening on IPv6 addresses:

tcp6 0 0 :::32400 :::* LISTEN

but it’s not listening on IPv4 addresses. Nmap portscan confirms that on localhost and LAN subnet. I don’t do IPv6 because my ISP doesn’t, so IPv4 has to work.

This isn’t a user configuration thing: it doesn’t get that far. I presume there’s a config file in the debian package that can correct this but I don’t know where it is.

PMS listens on the IPv4 and IPv6 simultaneously on port 32400.

When you turn off IPv6 in your preferences and on the host,

[chuck@glockner ~.2000]$ netstat -an | grep 32400
tcp        0      0 0.0.0.0:32400           0.0.0.0:*               LISTEN   

No, it doesn’t listen on both. I showed you the netstat output. I explained that nmap doesn’t see 32400 open from localhost or other systems on the server’s internal subnet. ← that means IPv4 port 32400 has no listen(3C) socket.

Ed: That output in the op was from:

netstat -an | grep 32400

I’ll wager this doesn’t get regression tested very often. It may have been this way for many builds.

Super easy to test: start an Ubuntu 22.04 VM, add the Plex PPA, install PMS, point a browser at it, be surprised.

I don’t know how to configure Plex w/o the web interface, and I don’t recall seeing a web configuration option to turn off IPv6. Is that really a thing, or are you poking fun? I’m fine w/ torquing settings w/ vim if there’s some documentation on safe/unsafe values somewhere.

Thanks for replying at any rate though.

Plex DocsServer SettingsNetwork

Settings → Network + Show Advanced.
Not visible unless you select Show Advanced. Then, it is the first option listed.

Also available via editing preferences.xml.
See Advanced, Hidden Server Settings.

[chuck@glockner ~.2000]$ cat /etc/os-release 
PRETTY_NAME="Ubuntu 22.04.4 LTS"
NAME="Ubuntu"
VERSION_ID="22.04"
VERSION="22.04.4 LTS (Jammy Jellyfish)"
VERSION_CODENAME=jammy
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=jammy
[chuck@glockner ~.2001]$
  1. Confirmation the server is listening on 32400 (and 32401 – internal)
  2. netstat showing the LISTEN state
  3. Ubuntu 22.04.4 LTS
  4. My network stack showing both IPv4 and IPv6 capability even though I only configure for IPv4.
[chuck@glockner ~.2001]$ ifconfig
br0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.0.20  netmask 255.255.255.0  broadcast 192.168.0.255
        inet6 fe80::6ca3:93ff:feab:d957  prefixlen 64  scopeid 0x20<link>
        inet6 --redacted--  prefixlen 64  scopeid 0x0<global>
        ether --redacted--  txqueuelen 1000  (Ethernet)
        RX packets 782730473  bytes 107123713902 (107.1 GB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 455647182  bytes 9405199465245 (9.4 TB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

If Plex didn’t have IPv4 loopback functioning:

  1. It wouldn’t have passed Unit test, Alpha Test, or QA test
  2. If by some total fluke it did get out, folks would be screaming already.

That’s great & what I expect, but did you recently (<= days) do a clean install from the PPA and get that behavior. I don’t think this affects existing PMS instances.

I’ve been a Plex fan a loooong time. Your server’s behavior is exactly what I expected. I even did a remove w/ purge, then reinstall. Still no IPv4 listen. I was very surprised.

Ima go edit preferences.xml now. Break EVERYthing. :upside_down_face:

Stand by.

I can burn it down and start from scratch in a few minutes.

Let’s see what happens.

Fresh installation of 1.40.2 on Ubuntu 22.04.4 LTS (Glockner host)

[chuck@glockner ~.2002]$ dpkg -l | grep plexm
ii plexmediaserver 1.40.2.8395-c67dce28e amd64 Plex organizes all of your personal media so you can easily access and enjoy it.
[chuck@glockner ~.2003]$

Top of the first log:

Jun 01, 2024 20:29:22.441 [140500859226768] DEBUG - HttpServer: Listening on IPv6 as well as IPv4.
Jun 01, 2024 20:29:22.442 [140500859226768] DEBUG - HttpServer: Listening on port 32400.
Jun 01, 2024 20:29:22.442 [140500859226768] DEBUG - HttpServer: Listening on port 32401

You can see the dual-stack socket.

[chuck@glockner ~.2003]$ netstat -an | grep 32400
tcp        0      0 192.168.0.20:48516      192.168.0.191:32400     ESTABLISHED
tcp        0      0 192.168.0.20:39928      192.168.0.60:32400      ESTABLISHED
tcp        0      0 192.168.0.20:32980      192.168.0.70:32400      ESTABLISHED
tcp        0      0 192.168.0.20:46650      192.168.0.50:32400      ESTABLISHED
tcp        0      0 192.168.0.20:45004      192.168.0.17:32400      ESTABLISHED
tcp6       0      0 :::32400                :::*                    LISTEN     
tcp6       0      0 192.168.0.20:32400      192.168.0.20:60252      TIME_WAIT  
tcp6       0      0 192.168.0.20:32400      192.168.0.50:56918      ESTABLISHED
tcp6       0      0 192.168.0.20:32400      192.168.0.13:45342      ESTABLISHED
tcp6       0      0 192.168.0.20:32400      192.168.0.70:38704      ESTABLISHED
tcp6       0      0 192.168.0.20:32400      192.168.0.191:34310     ESTABLISHED
tcp6       0      0 192.168.0.20:32400      192.168.0.60:41638      ESTABLISHED
tcp6       0      0 192.168.0.20:32400      192.168.0.13:34548      TIME_WAIT  
tcp6       0      0 192.168.0.20:32400      192.168.0.20:60248      TIME_WAIT  
tcp6       0      0 192.168.0.20:32400      192.168.0.17:58262      ESTABLISHED
[chuck@glockner ~.2004]$ 

Now we need to figure out what’s going sideways with your installation.

Is this what’s throwing you?

tcp6 0 0 :::32400 :::* LISTEN

Ubuntu will list IPv6/IPv4 as tcp6

I fixed it by adding

EnableIPv6=“0”

to Preferences.xml and restarting PMS.

You have a v6 address. I don’t. Maybe mine was stumbling because I don’t have a v6 address configured, and v6 is enabled by default in PMS? Doesn’t sound impossible, explains the behavior before / after my Prefs change.

eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.0.1 netmask 255.255.254.0 broadcast 192.168.1.255
ether 84:47:09:36:9a:b3 txqueuelen 1000 (Ethernet)
RX packets 1889607 bytes 1985590156 (1.9 GB)
RX errors 0 dropped 119 overruns 0 frame 0
TX packets 2086762 bytes 2550375818 (2.5 GB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
device memory 0x5e500000-5e5fffff

I need to research/test this more.

None of my test NAS boxes have IPv6 enabled at all.
(I only got IPv6 from the ISP late last year)

If PMS can’t start when there’s no IPv6 addr – That’s a serious bug

May I have your server logs ZIP file please ?

You can PM them to me

@Giblet535

I took one of my NAS boxes, (IPv4-only) and did a “burn down & restart” test

I can’t repro what you had happen so I’m anxious to see your logs.

One thing I see, the NAS has IPv6 loopback. I can’t turn that off

Sorry, did the sleep thing. Everyone’s still asleep here & doggo wakes everyone if anyone does anything. I’ll grab the log later this morning. This is interesting.

Full disclosure: this distro is Zentyal 8.0’s iso. They don’t use network manager which may explain the absence of a v6 address.

A bug, yeah, but limited distros affected. So yay? Simple test will fix it:

if v6addr is null && EnableV6:
EnableV6 = 0

No problem. I do the same thing from time to time :rofl:

FYI–
I see you’re been using Mint and not Ubuntu. Mint is not supported because it’s too unstable and predictable as a server distro (derived from Ubuntu). We don’t know what they’ve done but commands I ran on Mint did not return the same results as when typed on Ubuntu or Debian.

Mint seems to be OK for desktop use but definitely not as Plex server. I can’t tell you how many times, while trying to solve a problem, I was told we were using Ubuntu until I challenged and then told “Mint, It’s a derivative of Ubuntu”.

Derived – yes. Function the same – no.
If you want the GUI, great – No problem as a workstation.
As a server, you get the weird crap like what we just fought through.

As for this Distro which I’ve never heard of?

Regret to inform –

  • Get Ubuntu Server and be done with it . Mint or Zentyal won’t be supported.
  • You can always install the GUI. sudo apt install gnome
    – There are several different desktop managers & styles if you don’t like the Ubuntu gnome. I use the original ‘gnome on Xorg’ layout.

Yeah, but Mint was only a stopgap while the folks in Shenzhen were building this new system.

Now it’s on a Zentyal distro based on Ubuntu 22.04.4. My Plex server has to earn its keep, so it has to serve a few hundred other purposes. I totally understand it isn’t supported. That would be impossible unless you hired a few thousand people to answer dopey questions like mine. But wait: this gets better.

As for THIS issue, let’s just say that my wife didn’t know what I was working on, and she wanted to watch a movie, couldn’t get Plex to work, checked the router and saw the port forward to that Mint machine was gone, so she added a NAT rule to point to the Mint system – which was powered off.

So yeah, this new box could listen all it wanted to but requests on port 32400 were forwarding to a system that was powered off. There’s no obvious indication that this is happening, by the way. My wife happened to mention that she changed a NAT entry, or I’d still be scratching my head on this.

Talk about first world problems…

It’s still a derivative of the supported distro.

Until such time as it’s vetted, it will not be supported.
Given this is a new OS Distro, I suspect it’s going to take time to stabilize before it can even be tested.

Understand, Mint has been around a lot longer and it couldn’t pass the test.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.