ERROR - Error parsing allowedNetworks ' ': Invalid argument

Hi all,

I am getting this constant error in my Plex Media Server.1.log, it just happens over and over and my Preferences.xml contains the following allowedNetworks=“192.168.1.0/255.255.255.0”

Dec 24, 2017 16:40:28.318 [0x7f108e3ff700] ERROR - Error parsing allowedNetworks ’ ': Invalid argument
Dec 24, 2017 16:40:28.329 [0x7f108f1e8700] ERROR - Error parsing allowedNetworks ’ ': Invalid argument
Dec 24, 2017 16:40:28.378 [0x7f10927ff700] ERROR - Error parsing allowedNetworks ’ ': Invalid argument
Dec 24, 2017 16:40:29.749 [0x7f108d3fd700] INFO - AutoUpdate: no updates available
Dec 24, 2017 16:40:31.112 [0x7f10927ff700] INFO - AutoUpdate: no updates available
Dec 24, 2017 16:40:32.311 [0x7f10927ff700] ERROR - Error parsing allowedNetworks ’ ': Invalid argument
Dec 24, 2017 16:40:32.314 [0x7f108d3fd700] ERROR - Error parsing allowedNetworks ’ ': Invalid argument
Dec 24, 2017 18:10:24.270 [0x7f108f1e8700] ERROR - Error parsing allowedNetworks ’ ': Invalid argument
Dec 24, 2017 18:10:24.276 [0x7f108e3ff700] ERROR - Error parsing allowedNetworks ’ ': Invalid argument
Dec 24, 2017 18:10:24.315 [0x7f108f1e8700] ERROR - Error parsing allowedNetworks ’ ': Invalid argument
Dec 24, 2017 18:10:25.663 [0x7f108e3ff700] INFO - AutoUpdate: no updates available
Dec 24, 2017 18:10:27.156 [0x7f108f1e8700] INFO - AutoUpdate: no updates available
Dec 24, 2017 18:10:28.261 [0x7f108d3fd700] ERROR - Error parsing allowedNetworks ’ ': Invalid argument
Dec 24, 2017 18:10:28.264 [0x7f1082bfe700] ERROR - Error parsing allowedNetworks ’ ': Invalid argument
Dec 24, 2017 18:14:41.693 [0x7f10927ff700] INFO - AutoUpdate: no updates available
Dec 24, 2017 18:14:52.204 [0x7f108dbfe700] INFO - AutoUpdate: no updates available
Dec 24, 2017 18:15:09.730 [0x7f10883fd700] INFO - AutoUpdate: no updates available

If I try and change the allowedNetworks to anything else like an actual wrong syntax address eg 192.168.1.x, I get the following

Dec 24, 2017 18:27:16.297 [0x7f90c4bfe700] ERROR - Error parsing allowedNetworks ‘192.168.1.x’: Invalid argument
Dec 24, 2017 18:27:16.302 [0x7f90c53ff700] ERROR - Error parsing allowedNetworks ‘192.168.1.x’: Invalid argument
Dec 24, 2017 18:27:16.303 [0x7f90c53ff700] ERROR - Error parsing allowedNetworks ‘192.168.1.x’: Invalid argument
Dec 24, 2017 18:27:16.305 [0x7f90c53ff700] ERROR - Error parsing allowedNetworks ‘192.168.1.x’: Invalid argument
Dec 24, 2017 18:27:16.305 [0x7f90c4bfe700] ERROR - Error parsing allowedNetworks ‘192.168.1.x’: Invalid argument
Dec 24, 2017 18:27:16.306 [0x7f90c53ff700] ERROR - Error parsing allowedNetworks ‘192.168.1.x’: Invalid argument
Dec 24, 2017 18:27:16.323 [0x7f90b4bfc700] ERROR - Error parsing allowedNetworks ’ ': Invalid argument
Dec 24, 2017 18:27:16.325 [0x7f90b63ff700] ERROR - Error parsing allowedNetworks ’ ': Invalid argument
Dec 24, 2017 18:27:16.327 [0x7f90b3bfa700] ERROR - Error parsing allowedNetworks ’ ': Invalid argument
Dec 24, 2017 18:27:16.327 [0x7f90b53fd700] ERROR - Error parsing allowedNetworks ’ ': Invalid argument
Dec 24, 2017 18:27:16.338 [0x7f90c4bfe700] ERROR - Error parsing allowedNetworks ‘192.168.1.x’: Invalid argument
Dec 24, 2017 18:27:16.339 [0x7f90b4bfc700] ERROR - Error parsing allowedNetworks ’ ': Invalid argument
Dec 24, 2017 18:27:16.341 [0x7f90c53ff700] ERROR - Error parsing allowedNetworks ‘192.168.1.x’: Invalid argument
Dec 24, 2017 18:27:16.342 [0x7f90b43fb700] ERROR - Error parsing allowedNetworks ’ ': Invalid argument

Any ideas?

  1. you have leading and trailing spaces as indicated by the quoted text showing ' '
  2. there are no letters in an IPv4 network address

Write it as:

192.168.1.0/24      (preferred)

or

192.168.1.0/255.255.255.0
2 Likes

Hi,
Thanks for your help, here is the entry in my Preferences.xml

allowedNetworks=“192.168.1.0/24”

Here is my log;

Dec 25, 2017 13:28:52.757 [0x7f59cdffe700] INFO - Plex Media Server v1.10.1.4602-f54242b6b - ubuntu PC x86_64 - build: linux-ubuntu-x86_64 ubuntu - GMT 11:00
Dec 25, 2017 13:28:52.757 [0x7f59cdffe700] INFO - Linux version: 3.16.0-4-amd64 (#1 SMP Debian 3.16.43-2+deb8u5 (2017-09-19)), language: en-AU
Dec 25, 2017 13:28:52.757 [0x7f59cdffe700] INFO - Processor Intel® Core™ i5-4250U CPU @ 1.30GHz
Dec 25, 2017 13:28:52.757 [0x7f59cdffe700] INFO - /usr/lib/plexmediaserver/Plex Media Server
Dec 25, 2017 13:28:53.248 [0x7f59ca7fd700] INFO - Successfully retrieved OCSP response
Dec 25, 2017 13:28:54.726 [0x7f59bbbfd700] ERROR - Error parsing allowedNetworks ’ ': Invalid argument
Dec 25, 2017 13:28:54.726 [0x7f59babfb700] ERROR - Error parsing allowedNetworks ’ ': Invalid argument
Dec 25, 2017 13:28:54.759 [0x7f59bb3fc700] ERROR - Error parsing allowedNetworks ’ ': Invalid argument
Dec 25, 2017 13:28:54.802 [0x7f59bbbfd700] ERROR - Error parsing allowedNetworks ’ ': Invalid argument
Dec 25, 2017 13:28:56.128 [0x7f59bc3fe700] ERROR - Error parsing allowedNetworks ’ ': Invalid argument
Dec 25, 2017 13:28:56.512 [0x7f59c27fe700] INFO - LibraryUpdateManager path watching is disabled
Dec 25, 2017 13:28:57.419 [0x7f59c07fd700] WARN - Sync: sync list 13143331 belonging to user 1 (Harold_Boom) has died of old age, ignoring
Dec 25, 2017 13:28:57.420 [0x7f59c07fd700] INFO - Sync: downloaded 0 sync list(s) with 0 sync items(s): 0 new, 0 updated, 0 deleted
Dec 25, 2017 13:28:57.444 [0x7f59bbbfd700] ERROR - Error parsing allowedNetworks ’ ': Invalid argument
Dec 25, 2017 13:28:59.142 [0x7f59bbbfd700] ERROR - Error parsing allowedNetworks ’ ': Invalid argument
Dec 25, 2017 13:28:59.143 [0x7f59bb3fc700] ERROR - Error parsing allowedNetworks ’ ': Invalid argument
Dec 25, 2017 13:29:00.512 [0x7f59bb3fc700] INFO - AutoUpdate: no updates available

Not sure what to do, the entry is perfect I believe.

Ah found the issue, this entry was in my Preferences.xml:

LanNetworksBandwidth=" "

I removed this and the error is gone

1 Like

so it was a combination of errors. Good find on your part. Glad it’s resolved

Can you help me understand why the 192.168.1.0/24 format is preferred. Is it for performance reasons or something else?

The reason it complained before is because the letter x isn’t a digit or valid punctuation.

The allowed are:

192.168.0.0/255.255.255.0

-or-

192.168.0.0/24

You may specify the netmask by the width in bits (/24) or by typing it out in conventional octet notation for IPv4

A valid network specification always ends in .0

I think the question was, "Why is the /24 format preferred over the /255.255.255.0 format?

Curious myself :thinking:

Sorry,

There is no preference other than industry conventions.

In IPv6, with the vastly larger address space, it’s much easier to type the bit width (/24) than to type the hex notation ffff:ff00. The hex notation makes it tougher. Decimal is easier for most.

When we speak of the net, we are already thinking a “/10”, “/16”, or “/24” in our heads and have ‘chopped off’ the bits mentally. This notation makes it obvious.

If I wrote 192.168.0.0/10, you would immediately know:
a. I’m targetting 192.168.x.x
b. I’ve violated the Private network rule because 192.168.x.x is a “/16” (65536 hosts) network.

Error checking is a lot easier.

1 Like

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