Lørdag 9. januar 2010, skrev Morten Werner Forsbring:
Nils Olav Fossum nils.fossum@midtre-gauldal.kommune.no writes:
Also, /etc/nav/cricket-config/switches/Defaults looks incomplete/corrupt:
graph cpu1min units = % color = dark-green draw-as = AREA y-axis = "Percent CPU utilization" legend
The file ends after the tab where the "=" sign should be.
I tried to fix it with some copy/paste, but I really dont know what should be there. What generates this file and where do the settings come from?
AFAIK I know it is not generated, but is following the package. You could try to 'aptitude reinstall nav' and see if the file is looking more sane.
Something is touching that file as the timestamp this morning was from around 05.00 today. 'aptitude reinstall nav' did not change the file
However, I have these in my apt cache: -rw-r--r-- 1 root root 1778976 19 nov. 07:10 nav_2+3.5.4-1lenny1_all.deb -rw-r--r-- 1 root root 1778736 26 okt. 06:27 nav_2+3.5.4-1lenny1~test5_all.deb
(the apt cache has never been cleared since installation)
The 'Defaults'-files in these are identical and looks more complete to me. I copied one of them, and now 'sudo -u navcron /usr/share/cricket/collect-subtrees normal' runs without errors. This also fixes the left-behind 'lock'-file '/tmp/navcron-subtree-normal'. There must be a crash somewhere, and cleanup is not executed properly.
I have no clue where the corruption of '/etc/nav/cricket-config/switches/Defaults' come from, I think I remember this from previous attempts at NAV installations...
You could also take a look at a copy [1] from one of my installations with the 2+3.5.4-1lenny1 version of the package.
- Werner
[1] http://folk.uio.no/werner/cricket-config_switches_Defaults
I see this file is not the same as those in the Debs, I better take a look at Cricket documentation. :-)
Thank you, Werner! This got me going again.