Registered Member
|
I just reinstalled kubuntu 12.10 on my new SSD. In order to reduce wear (probably unnecessary), I used symlinks to change the location of /var/log (and others) to my secondary HDD (I'm not sure if this is related to the problem).
if I look at /var/log/syslog, I see entries every few seconds much like the following:
I googled, but could only really find five-year-old references to a bug that's supposedly fixed. Is there a way to fix this issue? Thanks in advance. EDIT I've also just noticed that anacron is failing to load on startup. I tried to run anacron manually.
Perhaps this is related, as /var/spool is also symlinked to my spindle HDD. FWIW when I was setting it up, I moved the current directory to the HDD (using `mv`), then created the symlink to there. I didn't touch permissions at all.
Last edited by sparhawk on Thu Dec 20, 2012 12:43 pm, edited 1 time in total.
|
Manager
|
I think your issue is apparmor, cups and *buntu related, try google'ing apparmor cups ubuntu OR kubuntu
a possible solution might be to uninstall and then reinstall apparmor, cups (also related packages) and anacron - think you might have confused apparmor with the linking for anacron if reinstalling does not work create the spool dir, permissions should be rwxr-xr-x root root |
Registered Member
|
Thanks for the reply. I purged all three, restarted, reinstalled all, then restarted again.
I'm still getting the cups/apparmor messages, but my startup screen is now very strange. I checked /var/log/boot.log, and I've now got all these empty "starting" messages (see below), and no sign of anacron at all.
|
Manager
|
my /var/log/cups shows lp lp as owner and group, not root root, possible the printer daemon (user=lp) needs ownership - try changing owner and group to lp
what do you mean no signs of anacron? there should be a folder called /var/spool/anacron (re: you first post) |
Registered Member
|
but I still get similar error messages. Perhaps even more than before in syslog.
As for anacron, I meant that there was nothing on the boot screen (i.e. /var/log/boot.log that I quoted above) that mentioned anacron. Normally I get "Starting anac(h)ronistic cron [ OK ]", and my original complaint was that it said "Starting anac(h)ronistic cron [ failed ]". Now I see no entry for anacron at all. Re-reading the error from my OP when I tried to manually start anacron, perhaps I just need to create the directory /var/spool/anacron
However, there are two issues here. Firstly, how will I know it's working if the boot screen isn't logging anacron properly now? Secondly, I feel that there's probably a larger problem here with permissions, presumably when I moved and symlinked the folders. I've caught two errors now, but I wonder if there are more errors lurking. I just did a `ls -l` in /var , and noticed several entries were blocked in green. Does this mean that something is wrong there? I've attached a screenshot. Oddly enough, the only symlinks I created were /var/cache /var/log /var/tmp , but other items are green. |
Manager
|
cups - you have one less error message (the unable to change ownership), now you have a permission error in a file in that folder I'd suggest removing the files in that folder and letting them be recreated hopefully with the correct permissions. that file should be: rw-r--r-- 1 root lp
the green blocking - interesting question and not easily found Google'ing so no real idea but seems amongst other things it indicates sticky bit is on |
Registered Member
|
I'm not sure if I follow you here. I see that same error message in both logs? Are you referring to "Unable to change ownership of "/var/log/cups" - Permission denied"? In any case, as I'll state below, it might not be worth us pursuing this angle.
I actually forgot to mention the real reason why I performed the `ls` on /var was to compare permissions there. For example, it seems that anacron cannot create a directory in /var/spool , which seems odd. What should the permissions be for that folder? I also find it odd that moving the directories and symlinking them borked numerous things. I would've thought the permissions would have been maintained. If I can't manage some global-type fix, then I might just reinstate the directories and stop symlinking. Also, I might just have to reinstall kubuntu if I can't get the boot screen behaving, but this is the last option, since I've just spent about 8 hours fixing up my system after the last install!!! Thanks again for all your help. |
Manager
|
anacron permissions should be rwxr-xr-x root root - the error message is "can't chdir", not "can't create" so you need to create the folder
|
Registered Member
|
I'm not really sure what is going on here. The anacron permissions are and were all set correctly. The /var/log/cups permissions were changed to be consistent with a clean install, but that didn't exactly work either. As I mentioned, I'm more concerned that there are other problems caused by the symlinks and fstabs that I've set up here. Hence, I tried deleting the symlinks to the /var/ subdirectories, and moving them back.
I also stopped putting /var/spool (and /tmp) on a RAM disk, by commenting out lines in /etc/fstab
Doing this fixed the cups/apparmor issue (i.e. syslog is no longer reporting issues every couple of seconds) and also fixed the anacron issue, which is now starting up fine.
I guess I'll just deal with the possible excess writes to the SSD, since linux didn't seem to like all this symlinking and RAM-disking. The only possible issue now is the strangeness in my boot screen. I still have several empty "starting" lines as per my comment above. Do you see anything like this in your /var/log/boot.log ? |
Administrator
|
Instead of symlinks, you may want to try bind mounts instead, which should work fine.
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
Registered Member
|
Thank you very much! That works great! (I think.) I have some issues that I'll mention at the end, but I'll just say how I set up the bind mount, in case it's useful to anyone. First, move the directories and create the bind mounts immediately, in case it's necessary during reboot.
After reboot, my syslog isn't complaining any more, but I'm getting yet another iteration on the boot screen.
It seems like anacron is stopping now for some reason. And I'm still getting the empty "Starting" messages too... I'm not sure if any of this is related to the mount bind, or just a general screwiness of my system. |
Manager
|
do you have have any anacron tasks defined? if it doesn't find any it exists according to anacron.sourceforge.net
|
Registered Member
|
Nice find, but that's really strange on my system. AFAIK, by default anacron has jobs set up to replace cron. i.e.
I did have an additional job previously, that must've been wiped when I did the purge/install. I added that back, and now anacron starts up fine (without stopping). I'm not sure why that's considered a job and the others are not, but it's all working fine now, thanks... (I'm still getting the empty "Starting" messages, but I won't worry about that until I notice something failing. I guess I'll just do another clean install when 13.04 comes out.) Thank you both for all your help! |
Manager
|
pre this did you have empty startup messages? since I don't use Kubuntu don't know if it's normal or not
|
Registered Member
|
Honestly, I can't remember for sure. I've certainly never noticed blank entries before, but I've not specifically looked for them. AFAIK there is no way of looking at old logs ( /var/log/boot.log )? I presume that once you reboot the old log is wiped?
|
Registered users: bancha, Bing [Bot], Evergrowing, Google [Bot], lockheed, mesutakcan, Sogou [Bot]