brndnmtthws / conky

Light-weight system monitor for X, Wayland (sort of), and other things, too
https://conky.cc
GNU General Public License v3.0
7.28k stars 620 forks source link

Conky not loading anymore #992

Closed m34nbunny closed 4 years ago

m34nbunny commented 4 years ago

Issue

After doing a system upgrade on Arch Linux I am at version 1.11.5 and started receiving the following error.

~ (master) > conky -c .config/conky/conky.conf 
conky: Syntax error (.config/conky/conky.conf:1: syntax error near 'yes') while reading config file. 
conky: Assuming it's in old syntax and attempting conversion.
conky: [string "..."]:159: attempt to call a nil value (global 'loadstring')

Information

 ~ (master) > lsb_release -a
LSB Version:    1.4
Distributor ID: Arch
Description:    Arch Linux
Release:        rolling
Codename:       n/a
~ (master) > conky --version                                                                                       
conky 1.11.5_pre compiled Tue 30 Jun 2020 05:45:40 AM UTC for Linux 5.6.8-arch1-1 x86_64
use_xft yes
xftfont Roboto:size=8
xftalpha 0.1
update_interval 1
total_run_times 0
background yes
own_window yes
own_window_transparent no
own_window_colour 640e22
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
own_window_type none
double_buffer yes
minimum_size 300 1075
maximum_width 300
alignment top_left
no_buffers no
apcupsd host
gap_y 50
gap_x 24

TEXT
${color DarkSlateGray}${hr 10}
${color gray}
Date               ${alignr}${time %a,}${time %e %B %G}
Time               ${alignr}${time %r}

${color DarkSlateGray}${hr 10}
${color gray}
Build $alignr${kernel}
Uptime $alignr${uptime}
SSID $alignr ${execi 360 nmcli -t -f active,ssid dev wifi | egrep yes | cut -d ':' -f2}
VPN $alignr ${execi 120 nmcli --terse connection | grep -e "vpn:wlp2s0" | awk -F ':' '{print $1}'}
Vir $alignr ${addr virbr0}
ETH $alignr ${addr enp5s0}
PUB $alignr ${execi 360 wget http://ipecho.net/plain -qO -}

${color DarkSlateGray}${hr 10}
${color gray}
Battery $alignr${battery_short}
${battery_bar}
Disk Free / Total: ${alignr} ${fs_free /} / ${fs_size /}
${fs_bar}

${color DarkSlateGray}${hr 10}
${color gray}
Cpu ${alignr}${cpu}%
${top name 1}${alignr}${top cpu 1}%
${top name 2}${alignr}${top cpu 2}%
${top name 3}${alignr}${top cpu 3}%
${top name 4}${alignr}${top cpu 4}%
${top name 5}${alignr}${top cpu 5}%

${color DarkSlateGray}${hr 10}
${color gray}
Memory ${alignr}${memperc}%
${top_mem name 1}${alignr}${top mem 1}%
${top_mem name 2}${alignr}${top mem 2}%
${top_mem name 3}${alignr}${top mem 3}%
${top_mem name 4}${alignr}${top mem 4}%
${top_mem name 5}${alignr}${top mem 5}%

$hr

${color1}Port(s)${alignr}#Connections
${color}Inbound: ${tcp_portmon 1 32767 count}  Outbound: ${tcp_portmon 32768 61000 count}${alignr}ALL: ${tcp_portmon 1 65535 count}
${color1}Inbound Connection ${alignr} Local Service/Port${color}
${tcp_portmon 1 32767 rhost 0} ${alignr} ${tcp_portmon 1 32767 lservice 0}
${tcp_portmon 1 32767 rhost 1} ${alignr} ${tcp_portmon 1 32767 lservice 1}
${tcp_portmon 1 32767 rhost 2} ${alignr} ${tcp_portmon 1 32767 lservice 2}
${tcp_portmon 1 32767 rhost 3} ${alignr} ${tcp_portmon 1 32767 lservice 3}
${tcp_portmon 1 32767 rhost 4} ${alignr} ${tcp_portmon 1 32767 lservice 4}
${color1}Outbound Connection ${alignr} Proto${color}
${tcp_portmon 32768 61000 rhost 0} ${alignr} ${tcp_portmon 32768 61000 rservice 0}
${tcp_portmon 32768 61000 rhost 1} ${alignr} ${tcp_portmon 32768 61000 rservice 1}
${tcp_portmon 32768 61000 rhost 2} ${alignr} ${tcp_portmon 32768 61000 rservice 2}
${tcp_portmon 32768 61000 rhost 3} ${alignr} ${tcp_portmon 32768 61000 rservice 3}
${tcp_portmon 32768 61000 rhost 4} ${alignr} ${tcp_portmon 32768 61000 rservice 4}
plikhari commented 4 years ago

Same as #991 - simply recompile conky and it will work - LUA has been updated to version LUA 5.4 - so you will need to recompile conky.

Kindly mark this as solved once done.

telmotrooper commented 4 years ago

I'm aware this is out of your control, but shouldn't the package maintainer for the package conky in the Arch repositories recompile the project? Most users use the binary package, they don't build from source.

plikhari commented 4 years ago

Well, usually the package maintainer does have a life and may not be at a position to update a package to the desired version - in which case - just ignore the lua 5.4 package in pacman.conf and as soon as the conky package is updated - you will know.

cheers

m34nbunny commented 4 years ago

I followed the installations located here - https://github.com/brndnmtthws/conky/wiki/Installation

Receiving the same error, I fully removed the previous installation. What am I missing here?

m34nbunny commented 4 years ago

I guess the old syntax isn't supported anymore. After reinstalling the AUR package, with the new config syntax, it is working again.