Value greater than 1024 not allowed

harsxv

Cadet
Joined
Jan 6, 2022
Messages
2
Hi team,

Have you ever facing this issue?
truenas_error_database_hostname.png


From console browser log:
Error:
Object { error: 35, type: "VALIDATION", reason: "[EINVAL] global_configuration_update.hosts: Value greater than 1024 not allowed\n", trace: {…}, extra: (1) […] }
main.6c2f06193f9f0425f90c.js:1:1968124

Is it related to this Jira issue?
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,700
The way I read that (poorly worded error message) is "you can't have more than 1024 characters here".

I count 27 name entries there... if they are all around 37 characters (including spaces and the line feed character that "separates" them), then you're over 1024 characters.

As I assume it just writes the values into hosts (which is certainly not limited to 1KB), I don't see why such a limitation is needed unless it's a factor of either the middleware or GUI layers being designed with that maximum in the (poorly) chosen element used for it.

Is it related to this Jira issue?
Looks like the same error being reported (maybe the same root cause), but that was fixed back in FreeNAS 11 and I think was for a different element in the GUI (seems to refer to the "from address" field, so probably in email settings or something like that).

Raise it in Jira if it's important for you.
 
Last edited:
Top