Update works but no logs - Desktop Widget reports 'never updated' - Printable Version +- Linux Lite Forums (https://www.freecinema2022.gq/forums) +-- Forum: Software - Support (https://www.freecinema2022.gq/forums/forumdisplay.php?fid=5) +--- Forum: Other (https://www.freecinema2022.gq/forums/forumdisplay.php?fid=20) +--- Thread: Update works but no logs - Desktop Widget reports 'never updated' (/showthread.php?tid=4979) Pages:
1
2
|
Update works but no logs - Desktop Widget reports 'never updated' - Peejay - 02-13-2018 For a while I've noticed that the Desktop Widget on a Core2Duo laptop of mine (now running 64bit 3.8 ) has been showing 'never updated' for the update status even though I've performed several updates, including the upgrade to 3.8 (but the problem precedes that). I saw that the updates script for the widget looks for update dates in the history.log in /var/log/apt/ so had a look at that. I found that no log existed for updates after 24 November 2017 and that the last entry for that date showed an Update Start Date but not an Update End Date. No later update has been logged here, but is in LLUpdates.log So I then did another update to see what happened. It went through the usual prompts without any problem but once it started the package downloads it just disappeared from view altogether - no window, no status icon - but apt processes were clearly active in the Task Manager. When update was completed the LLUpdates.log appeared and seemed to be all in order. However, history.log remained unchanged and the Desktop Widget still reports 'never updated'. I'd be grateful for any pointers on how to fix this, which looks to be more of an apt issue rather than anything to do with the widget. Thank you Re: Update works but no logs - Desktop Widget reports 'never updated' - trinidad - 02-13-2018 Reboot after updates finish whether a kernel changes or not. I'll switch systems and post the right ~/.*rc file for you so you can check it. TC Re: Update works but no logs - Desktop Widget reports 'never updated' - trinidad - 02-13-2018 Here you go: ~/username/.conky/widget # Linux Lite Conky Widget # Licence - GPLv2 Sharing is Caring # Jerry Bezencon - Linux Lite 2016 # Gap between borders of screen and text # Same thing as passing -x at command line gap_x 25 gap_y 65 # Use Xft? use_xft yes # Xft font when Xft is enabled #xftfont Bitstream Vera Sans Monoize=8 xftfont Terminusize=10 # Text alpha when using Xft xftalpha 0.8 # Update interval in seconds update_interval 1.0 # This is the number of times Conky will update before quitting. # Set to zero to run forever. total_run_times 0 # Create own window instead of using desktop (required in nautilus) own_window yes #own_window_colour grey own_window_transparent yes own_window_argb_visual yes own_window_argb_value 255 own_window_type normal own_window_class conky-semi own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager # Use a background image background yes # Use double buffering (reduces flicker, may not work for everyone) double_buffer yes # Minimum size of text area minimum_size 300 200 # Maximum width of widget maximum_width 250 # Draw shades? draw_shades yes # Draw outlines? draw_outline no # Draw borders around text draw_borders no draw_graph_borders yes # Stippled borders? #stippled_borders 8 # border margins #border_margin 4 # border width #border_width 1 # Default colors and also border colors default_color white color2 9fee62 # System is up to date color3 ff4343 # Red - Final reminder to install Updates color4 eaE11c # Yellow - Reminder to install Updates default_shade_color black default_outline_color white # Text alignment, other possible values are commented alignment bottom_right # Subtract file system buffers from used memory? no_buffers yes # Set to yes if you want all text to be in uppercase uppercase no # Number of cpu samples to average # set to 1 to disable averaging cpu_avg_samples 2 # Number of net samples to average # Set to 1 to disable averaging #net_avg_samples 2 # Force UTF8? note that UTF8 support required XFT override_utf8_locale yes # Width and thickness of ${hr 2} bar separator default_bar_size 150 5 # Lua rounded corners requirements lua_load ~/.conky/draw_bg.lua lua_draw_hook_pre draw_bg imlib_cache_size 0 # Distance of text from edge of widget border_outer_margin 10 TEXT ${image ~/.conky/logo.png -p 0,90} ###INFO### ${alignc}${font AvantGardeLTMedium:boldize=15}${color Tan1}${exec cat /etc/llver}${font} ${color} ${alignc}${color}${time %A, }${time %e %B %Y} ${color} ${color slate grey}${hr 2} ###SYSTEM### ${alignc}${font AvantGardeLTMedium:boldize=10}${color Tan1}System Information${font} ${color} ${color}CPU Usage: ${alignr}$cpu% ${color}Memory Total: ${color}${alignr}${memmax} ${color}Memory Used: ${color}${alignr}${mem} ${color}Logged in as: ${alignr}${color}$USER ${color} ${color slate grey}${hr 2} ###UPDATES### ${alignc}${font AvantGardeLTMedium:boldize=10}${color Tan1}Updates Status${font} ${color} ${alignc}${execpi 300 ~/.conky/updates} If you've done any modifications to this and know your way around conky be advised that there are subtle syntax differences between Debian and LL in this file. You cannot necessarily paste .conkyrcs from other distros. TC Re: Update works but no logs - Desktop Widget reports 'never updated' - Peejay - 02-13-2018 Thank you, Trinidad. I can confirm that the file is as the original. I haven't amended it at all and it has not been corrupted in any way. I see that at the end of the widget file it makes a call to ~/.conky/updates and in turn that checks on the hisory.log in /var/log/apt/ The last entry in my history.log is for 24 November 2017, with no end date entry. But Updates are happening and always produce a LLUpdates.log. After 24 November 2017 I have LLUpdates.log files for 24/12/2017 26/12/2017 04/01/2018 09/01/2018 22/01/2018 06/02/2018 12/02/2018 In this sequence is the upgrade to 3.8, but it doesn't show in the history.log for apt. The only other thing I've noticed is that when it's happening the update process disappears totally from the desktop. There is no Gui, no terminal output, no icon in the status bar, but apt processes do show up in Task Manager and I can tell updates are happening from the disk activity. I should say that the disk is a SSD but this was a new installation on to it, not cloned from the old disk. Thank you for your help so far, much appreciated. I hope this extra information helps give the context better but of course if you need something different I'll be happy to generate/supply it for you. Re: Update works but no logs - Desktop Widget reports 'never updated' - firenice03 - 02-14-2018 May want to try.. Menu > System > Lite Tweaks Click the checkbox next to Package Repair.. Then run - enter password if prompted.. Rerun updates.. If I recall I had a similar awhile back and I believe this corrected... Re: Update works but no logs - Desktop Widget reports 'never updated' - Peejay - 02-16-2018 Thank you for that suggestion, firenice03, I'd forgotten that tweak was available. Unfortunately it's not made any difference to the history.log or to the Desktop Widget. I also cleaned out the older kernel files recommended for autoremove and the package cache, to no effect. It's irritating and a bit worrying rather than an operational problem but I would like to resolve it if possible. So I have two further queries: 1. could it be related to the fact that the update process now becomes invisible apart from the disk activity light once it's downloaded the package updates and until it produces the llupdates.log for inspection - or is this an intended change in behaviour? 2. would it be worth deleting the history.log or is this likely to cause further problems? Thanks very much for the help already given and I'm hoping for further inspiration! Kind regards Re: Update works but no logs - Desktop Widget reports 'never updated' - firenice03 - 02-16-2018 Looks like back in January you had update issues with owncloud.. Did that get resolved? Wonder if something may be keeping updates from completing.. Try in terminal Code: sudo apt-get update && sudo apt-get upgrade Any errors? If none, try logging out then back in.. Does widget update? Re: Update works but no logs - Desktop Widget reports 'never updated' - Peejay - 02-17-2018 Thank you firenice03. I ran the terminal command you gave and it went through the whole routine with no errors but when I logged back in the widget display was still the same. I also did a cold reboot but with the same result. The history.log was unchanged, still showing the last entry as 24 November 2017, and an incomplete one. I have copied the last entry just to show you what I mean. It just looks as though it has never completed properly and that log-writing for apt has been prevented ever since. The actual update process continues to work fine, though, as your latest test demonstrates. You are correct that I had a problem with an owncloud client but Jerry's suggestion seemed to deal with that completely. Whether this problem is a relic of the original installation I can't be clear, but perhaps it could be. I'll see what else I can find out about the owncloud client problems but meantime here is the history.log portion for 2017-11-24 Quote:Start-Date: 2017-11-24 13:04:23 Re: Update works but no logs - Desktop Widget reports 'never updated' - Valtam - 02-17-2018 What is the output of each of these commands: Code: ls -la ~/.conky Code: ls -la /var/log/apt Code: ls -la /var/log Re: Update works but no logs - Desktop Widget reports 'never updated' - Peejay - 02-18-2018 Thank you, Jerry. Here are the 3 outputs you requested: Code: philip@silver-laptop:~$ ls -la ~/.conky Hope this helps, and thank you for your attention. |