zika
January 4th, 2009, 04:07 PM
today I've checked (for some strange reason) how the preload was working its job. there are three files that You might be interested:
/etc/preload.conf
/var/lib/preload/preload.state
/var/log/preload.loga simple
cat /var/log/preload.log revealed that preload was just enter/exit-ing for some time due to an error that occurred in some of its writings to the file /var/lib/preload/preload.state. I've tried to edit that file but there were too many errors so I've just deleted it and now preload is gathering its information again and, (I hope) happily returning on duty.
excerpt from /var/log/preload.log at the point where (after not working) he got back on duty:
[Sun Jan 4 15:28:47 2009] Exiting
[Sun Jan 4 15:31:42 2009] loading conf from /etc/preload.conf
[Sun Jan 4 15:31:42 2009] loading state from /var/lib/preload/preload.state
[Sun Jan 4 15:31:42 2009] failed reading state from /var/lib/preload/preload.state: line 45749: invalid tag
[Sun Jan 4 15:31:42 2009] Exiting
[Sun Jan 4 15:33:25 2009] loading conf from /etc/preload.conf
[Sun Jan 4 15:33:25 2009] loading state from /var/lib/preload/preload.state
[Sun Jan 4 15:33:25 2009] failed reading state from /var/lib/preload/preload.state: line 45762: invalid syntax
[Sun Jan 4 15:33:25 2009] Exiting
[Sun Jan 4 15:34:44 2009] loading conf from /etc/preload.conf
[Sun Jan 4 15:34:44 2009] loading state from /var/lib/preload/preload.state
[Sun Jan 4 15:34:44 2009] cannot open /var/lib/preload/preload.state for reading, ignoring: No such file or directory
[Sun Jan 4 15:34:44 2009] 1812330kb available for preloading, using 0kb of it
[Sun Jan 4 15:35:05 2009] 1822100kb available for preloading, using 0kb of it
[Sun Jan 4 15:35:25 2009] 1961300kb available for preloading, using 0kb of it
[Sun Jan 4 15:35:46 2009] 1923330kb available for preloading, using 0kb of it
[Sun Jan 4 15:36:07 2009] 1923030kb available for preloading, using 0kb of it
[Sun Jan 4 15:36:27 2009] 1923030kb available for preloading, using 0kb of it
[Sun Jan 4 15:36:48 2009] 1891800kb available for preloading, using 0kb of it
[Sun Jan 4 15:37:08 2009] 1881300kb available for preloading, using 0kb of it
[Sun Jan 4 15:37:29 2009] 1890650kb available for preloading, using 0kb of it
[Sun Jan 4 15:37:49 2009] 1884350kb available for preloading, using 4264kb of it
then I rebooted and looked in that file again:
[Sun Jan 4 16:07:54 2009] readaheading 72 files
[Sun Jan 4 16:07:59 2009] 1702790kb available for preloading, using 69068kb of it
[Sun Jan 4 16:07:59 2009] readaheading 65 files
[Sun Jan 4 16:08:13 2009] exit requested
[Sun Jan 4 16:08:13 2009] saving state to /var/lib/preload/preload.state
[Sun Jan 4 16:08:13 2009] exit requested
[Sun Jan 4 16:08:13 2009] saving state to /var/lib/preload/preload.state
[Sun Jan 4 16:08:13 2009] failed to rename /var/lib/preload/preload.state.tmp to /var/lib/preload/preload.state
[Sun Jan 4 16:09:05 2009] loading conf from /etc/preload.conf
[Sun Jan 4 16:09:05 2009] loading state from /var/lib/preload/preload.state
[Sun Jan 4 16:09:05 2009] failed reading state from /var/lib/preload/preload.state: line 12675: invalid tag
[Sun Jan 4 16:09:05 2009] Exiting
[Sun Jan 4 16:11:51 2009] loading conf from /etc/preload.conf
[Sun Jan 4 16:11:51 2009] loading state from /var/lib/preload/preload.state
[Sun Jan 4 16:11:51 2009] failed reading state from /var/lib/preload/preload.state: line 12675: invalid tag
[Sun Jan 4 16:11:51 2009] Exiting
so, there is a problem with preload. I'll uninstall it for now (even though I'm not a uninstall gyu, I prefer to fix things) since I do not know how to help him. I've tried reinstall but it did not help. any hint would be welcomed but this is not a big issue ...
UPDATE: I've downloaded http://ppa.launchpad.net/uninea/ubuntu/pool/main/p/preload/preload_0.6.3-0~0uninea1_amd64.deb (http://ppa.launchpad.net/uninea/ubuntu/pool/main/p/preload/preload_0.6.3-0%7E0uninea1_amd64.deb) and installed it. will see.
/etc/preload.conf
/var/lib/preload/preload.state
/var/log/preload.loga simple
cat /var/log/preload.log revealed that preload was just enter/exit-ing for some time due to an error that occurred in some of its writings to the file /var/lib/preload/preload.state. I've tried to edit that file but there were too many errors so I've just deleted it and now preload is gathering its information again and, (I hope) happily returning on duty.
excerpt from /var/log/preload.log at the point where (after not working) he got back on duty:
[Sun Jan 4 15:28:47 2009] Exiting
[Sun Jan 4 15:31:42 2009] loading conf from /etc/preload.conf
[Sun Jan 4 15:31:42 2009] loading state from /var/lib/preload/preload.state
[Sun Jan 4 15:31:42 2009] failed reading state from /var/lib/preload/preload.state: line 45749: invalid tag
[Sun Jan 4 15:31:42 2009] Exiting
[Sun Jan 4 15:33:25 2009] loading conf from /etc/preload.conf
[Sun Jan 4 15:33:25 2009] loading state from /var/lib/preload/preload.state
[Sun Jan 4 15:33:25 2009] failed reading state from /var/lib/preload/preload.state: line 45762: invalid syntax
[Sun Jan 4 15:33:25 2009] Exiting
[Sun Jan 4 15:34:44 2009] loading conf from /etc/preload.conf
[Sun Jan 4 15:34:44 2009] loading state from /var/lib/preload/preload.state
[Sun Jan 4 15:34:44 2009] cannot open /var/lib/preload/preload.state for reading, ignoring: No such file or directory
[Sun Jan 4 15:34:44 2009] 1812330kb available for preloading, using 0kb of it
[Sun Jan 4 15:35:05 2009] 1822100kb available for preloading, using 0kb of it
[Sun Jan 4 15:35:25 2009] 1961300kb available for preloading, using 0kb of it
[Sun Jan 4 15:35:46 2009] 1923330kb available for preloading, using 0kb of it
[Sun Jan 4 15:36:07 2009] 1923030kb available for preloading, using 0kb of it
[Sun Jan 4 15:36:27 2009] 1923030kb available for preloading, using 0kb of it
[Sun Jan 4 15:36:48 2009] 1891800kb available for preloading, using 0kb of it
[Sun Jan 4 15:37:08 2009] 1881300kb available for preloading, using 0kb of it
[Sun Jan 4 15:37:29 2009] 1890650kb available for preloading, using 0kb of it
[Sun Jan 4 15:37:49 2009] 1884350kb available for preloading, using 4264kb of it
then I rebooted and looked in that file again:
[Sun Jan 4 16:07:54 2009] readaheading 72 files
[Sun Jan 4 16:07:59 2009] 1702790kb available for preloading, using 69068kb of it
[Sun Jan 4 16:07:59 2009] readaheading 65 files
[Sun Jan 4 16:08:13 2009] exit requested
[Sun Jan 4 16:08:13 2009] saving state to /var/lib/preload/preload.state
[Sun Jan 4 16:08:13 2009] exit requested
[Sun Jan 4 16:08:13 2009] saving state to /var/lib/preload/preload.state
[Sun Jan 4 16:08:13 2009] failed to rename /var/lib/preload/preload.state.tmp to /var/lib/preload/preload.state
[Sun Jan 4 16:09:05 2009] loading conf from /etc/preload.conf
[Sun Jan 4 16:09:05 2009] loading state from /var/lib/preload/preload.state
[Sun Jan 4 16:09:05 2009] failed reading state from /var/lib/preload/preload.state: line 12675: invalid tag
[Sun Jan 4 16:09:05 2009] Exiting
[Sun Jan 4 16:11:51 2009] loading conf from /etc/preload.conf
[Sun Jan 4 16:11:51 2009] loading state from /var/lib/preload/preload.state
[Sun Jan 4 16:11:51 2009] failed reading state from /var/lib/preload/preload.state: line 12675: invalid tag
[Sun Jan 4 16:11:51 2009] Exiting
so, there is a problem with preload. I'll uninstall it for now (even though I'm not a uninstall gyu, I prefer to fix things) since I do not know how to help him. I've tried reinstall but it did not help. any hint would be welcomed but this is not a big issue ...
UPDATE: I've downloaded http://ppa.launchpad.net/uninea/ubuntu/pool/main/p/preload/preload_0.6.3-0~0uninea1_amd64.deb (http://ppa.launchpad.net/uninea/ubuntu/pool/main/p/preload/preload_0.6.3-0%7E0uninea1_amd64.deb) and installed it. will see.