After Cacti repo upgrade "ERROR: invalid color def format" Issue

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
User avatar
TFC
Cacti Pro User
Posts: 739
Joined: Wed Apr 09, 2003 2:17 am
Location: Izmir/Turkey

After Cacti repo upgrade "ERROR: invalid color def format" Issue

Post by TFC »

Hi I have uprade my ubuntu to 20.4 and respectively Cacti 1.2.10
When I change theme to modern or any other except classic I get this error:

RRDtool Command:
/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start='-86400' \
--end='-300' \
--pango-markup \
--title='YBP_Dudullu_SOL - Traffic - GigabitEthernet0/0/0 - HUAWEI, AR Series, GigabitEthe ' \
--vertical-label='bits per second' \
--slope-mode \
--base=1000 \
--height=120 \
--width=500 \
--tabwidth '30' \
--rigid \
--alt-autoscale \
COMMENT:"From 2020/12/03 13\:00\:41 To 2020/12/04 12\:55\:41\c" \
COMMENT:" \n" \
--color BACK#F3F3F3 \
--color CANVAS#FDFDFD \
--color SHADEA#CBCBCB \
--color SHADEB#999999 \
--color FONT#000000 \
--color AXiS#2C4D43 \
--color ARROW#2C4D43 \
--color FRAME#2C4D43 \
--font TiTLE:11:'Arial' \
--font AXiS:8:'Arial' \
--font LEGEND:8:'Courier' \
--font UNiT:8:'Arial' \
--slope-mode \
--watermark 'Yasar Bilgi®' \
DEF:a='/usr/share/cacti/site/rra/ybp_dudullu_sol_traffic_ast_in_1451.rrd':'traffic_ast_in':AVERAGE \
DEF:b='/usr/share/cacti/site/rra/ybp_dudullu_sol_traffic_ast_in_1451.rrd':'traffic_ast_out':AVERAGE \
CDEF:cdefa='a,8,*' \
CDEF:cdeff='b,-8,*' \
CDEF:cdefh='b,8,*' \
LINE1:cdefa#00CF00FF:'Inbound ' \
AREA:cdefa#00CF007F: \
GPRINT:cdefa:LAST:'Current\:%8.2lf %s' \
GPRINT:cdefa:AVERAGE:'Average\:%8.2lf %s' \
GPRINT:cdefa:MAX:'Maximum\:%8.2lf %s\n' \
LINE1:cdeff#002A97FF:'Outbound' \
AREA:cdeff#002A977F: \
GPRINT:cdefh:LAST:'Current\:%8.2lf %s' \
GPRINT:cdefh:AVERAGE:'Average\:%8.2lf %s' \
GPRINT:cdefh:MAX:'Maximum\:%8.2lf %s\n' \
COMMENT:'IP Address\: 172.27.201.202'
RRDtool Says:
ERROR: invalid color def format
Have you any idea?
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: After Cacti repo upgrade "ERROR: invalid color def format" Issue

Post by TheWitness »

It's complaining about this, but I can not see anything wrong with it. Is it all graphs?

--color BACK#F3F3F3 \
--color CANVAS#FDFDFD \
--color SHADEA#CBCBCB \
--color SHADEB#999999 \
--color FONT#000000 \
--color AXiS#2C4D43 \
--color ARROW#2C4D43 \
--color FRAME#2C4D43 \
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
User avatar
TFC
Cacti Pro User
Posts: 739
Joined: Wed Apr 09, 2003 2:17 am
Location: Izmir/Turkey

Re: After Cacti repo upgrade "ERROR: invalid color def format" Issue

Post by TFC »

All graphs are like that.
TheWitness wrote: Fri Dec 04, 2020 8:50 pm It's complaining about this, but I can not see anything wrong with it. Is it all graphs?

--color BACK#F3F3F3 \
--color CANVAS#FDFDFD \
--color SHADEA#CBCBCB \
--color SHADEB#999999 \
--color FONT#000000 \
--color AXiS#2C4D43 \
--color ARROW#2C4D43 \
--color FRAME#2C4D43 \
User avatar
TFC
Cacti Pro User
Posts: 739
Joined: Wed Apr 09, 2003 2:17 am
Location: Izmir/Turkey

Re: After Cacti repo upgrade "ERROR: invalid color def format" Issue

Post by TFC »

Strange but, I disabled auto language detection and restart browser. In chorme, problem still same. But in firefox, graphs are shown.
In chrome, I inspect the page and there is an error like that:
Refused to load the font 'data:application/font-woff;charset=utf-8;base64,d09GRgABAAAAAJEYABIAAAAA/6wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABGRlRNAACQ/AAAABwAAAAce1O1cUdERUYAAHvYAAAAHgAAAB4AKAFjR1BPUwAAfCQAABTVAAAuKPbAdItHU1VCAAB7+AAAACwAAAAwuP+4/k9TLzIAAAIQAAAAWQAAAGC/wWnyY21hcAAABagAAALJAAAD9iZkHmJjdnQgAAAO0AAAADMAAABG/1go3WZwZ20AAAh0AAAFywAAC+yjJChEZ2FzcAAAe9AAAAAIAAAACAAAABBnbHlmAAARwAAAY2kAAKloE0CxtGhlYWQAAAGUAAAANQAAADYPCdjhaGhlYQAAAcwAAAAhAAAAJBH2CLtobXR4AAACbAAAAzsAAAVwWi68bGxvY2EAAA8EAAACvAAAAryYicLCbWF4cAAAAfAAAAAgAAAAIANqA19uYW1...gDn2EcU5593PMKA10a6NJAl5nnjnH93DGunzvG9V5yQO8lD/acQtZgDXovuUHYXPMu3IP7ap/K0s8pLP2cwtLPKQzxFXytnlfK33iE9S8gw9lIjSBqI2EUPAUDdwn95IKBmSBEJghmM0Fm1AcZZeu52wY8OtToPs15Z2CQUcloDDESQ2rUlapfKshfKaAt7psjpjNX5AvBbFFEXS2rzmHksFJydBmvAjGR13BWmFOpzStY/RQyvzwvRjMr/oCM9TJryimsJddynTrx5+IF8SaveWITr/niLV7V4ie8/OLvxc/EArGN11KxXezmexHxjlhBbjrKt4+xenxTnOL112Tz34gfiU94vSU+JZe/LX4r/pOc91+8torPeP1U/DevfxB3ef2juMfrZ+I+2efnnhzPcPELT6GnkBVfkadIdHiKPVTMnhJ63OkZx6wZ80xnZvqVZ47nRXHifwCkEI2jAAAAAAAAAQAAAADVpCcIAAAAANJFHtgAAAAA02pvkA==' because it violates the following Content Security Policy directive: "default-src *". Note that 'font-src' was not explicitly set, so 'default-src' is used as a fallback.
There is no error in firefox
PS: I use linux Mint 20 And chrome version is: Version 87.0.4280.88 (Official Build) (64-bit)
TheWitness wrote: Fri Dec 04, 2020 8:50 pm It's complaining about this, but I can not see anything wrong with it. Is it all graphs?

--color BACK#F3F3F3 \
--color CANVAS#FDFDFD \
--color SHADEA#CBCBCB \
--color SHADEB#999999 \
--color FONT#000000 \
--color AXiS#2C4D43 \
--color ARROW#2C4D43 \
--color FRAME#2C4D43 \
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: After Cacti repo upgrade "ERROR: invalid color def format" Issue

Post by TheWitness »

The errors are JavaScript errors and CSP errors. They would not affect RRDtool output. So, you are mixing issues. I can not see off hand what the RRDtool syntax problem is frankly.
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: After Cacti repo upgrade "ERROR: invalid color def format" Issue

Post by TheWitness »

You may want to take this up on Tobi Oetikers GitHub page. Someone there likely will be able to see the issue right away. I quick review of the source code would also spot the location of that error and what it really means.
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
cigamit
Developer
Posts: 3369
Joined: Thu Apr 07, 2005 3:29 pm
Location: B/CS Texas
Contact:

Re: After Cacti repo upgrade "ERROR: invalid color def format" Issue

Post by cigamit »

Last time I saw this, it was an actual RRDTool bug and they needed to update (or downgrade).
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests