Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Warning to vixie-cron users...
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 9657
Location: almost Mile High in the USA

PostPosted: Wed Dec 06, 2017 9:01 pm    Post subject: Warning to vixie-cron users... Reply with quote

Today I tried emerge --update @world after about almost 3 weeks.

It came out CLEAN, no updates. That can't be right, have the Gentoo dev team been slacking?

No! I then noticed I had not gotten an emerge --sync for over two weeks, despite having a cron job to do this every other day.

I recently pulled an update and something got updated, might be glibc or pam along with gcc. Anyway, vixie-cron had been running fine in the background or at least I thought it was as the process was still running. Turns out that it was trying to run but coughing up errors when it couldn't dynamically link modules to pam.

A simple restart of vixie-cron was sufficient to restore operation.

Just a word of warning to anyone depending on cron syncs... restart your daemons and ensure they're still running after any update, and sometimes rebooting is not a bad idea (no wonder M$ wants a reboot!)
_________________
Intel Core i7 2700K/Radeon R7 250/24GB DDR3/256GB SSD
What am I supposed watching?
Back to top
View user's profile Send private message
Ant P.
Watchman
Watchman


Joined: 18 Apr 2009
Posts: 6920

PostPosted: Thu Dec 07, 2017 5:54 am    Post subject: Reply with quote

Ah, thanks for the reminder why I run all my systems USE=-pam ;)
Back to top
View user's profile Send private message
joanandk
Apprentice
Apprentice


Joined: 12 Feb 2017
Posts: 169

PostPosted: Thu Dec 07, 2017 6:41 am    Post subject: Re: Warning to vixie-cron users... Reply with quote

eccerr0r wrote:
No! I then noticed I had not gotten an emerge --sync for over two weeks, despite having a cron job to do this every other day.
...
A simple restart of vixie-cron was sufficient to restore operation.


I have seen that too, but in my case there was an entry in the syslog. I have seen that such issues are very seldom and there are ways to check (for example, for each sync done by cron, I get an E-Mail).
Did you change your profile prior to updating cron? If so, this was the cause for the failure.

eccerr0r wrote:
and sometimes rebooting is not a bad idea (no wonder M$ wants a reboot!)


On MS Windows you reboot even for no reason ;-) I think MS would even like to reboot after you have saved your Word document (just to sure that the cache has been committed) :lol:

BR
Back to top
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 9657
Location: almost Mile High in the USA

PostPosted: Thu Dec 07, 2017 7:03 am    Post subject: Reply with quote

For me it was an unexpected failure, I didn't change the profile - normally it wouldn't fail like this. The link error was in syslog but was quite cryptic...
_________________
Intel Core i7 2700K/Radeon R7 250/24GB DDR3/256GB SSD
What am I supposed watching?
Back to top
View user's profile Send private message
cboldt
Veteran
Veteran


Joined: 24 Aug 2005
Posts: 1046

PostPosted: Thu Dec 07, 2017 10:35 am    Post subject: Reply with quote

FWIW, I run "lib_users" after doing updates, and restart services to get that report cleaned up. Not sure it would have caught the mismatch you describe, but I think it would have.

I try to reboot rarely, just out of principle, no practical reason, but did reboot after profile change and emerge -e @world, just to make sure it would (reboot).
Back to top
View user's profile Send private message
krinn
Watchman
Watchman


Joined: 02 May 2003
Posts: 7470

PostPosted: Thu Dec 07, 2017 3:50 pm    Post subject: Reply with quote

Just to prove my memory is gold, here's Naib code that would had saved you...
Thanks goes to Naib so (but i'm not against a little pic of you praising my memory!)
Back to top
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 9657
Location: almost Mile High in the USA

PostPosted: Thu Dec 07, 2017 5:55 pm    Post subject: Reply with quote

Actually I don't think it would help in this case, because it's a link on demand - the problem library isn't actually loaded in memory until needed, and at that point the failure is detected.

Granted that searching for programs that require restarts that way is helpful (it may have hinted that vixie-cron may have other programs that other libraries indeed does need a restart), most programs don't need immediate restarts because these libraries are saved in memory even if you delete the binaries -- which is why people get the false impression a restart isn't necessary after updates.
_________________
Intel Core i7 2700K/Radeon R7 250/24GB DDR3/256GB SSD
What am I supposed watching?
Back to top
View user's profile Send private message
Zucca
Moderator
Moderator


Joined: 14 Jun 2007
Posts: 3313
Location: Rasi, Finland

PostPosted: Thu Dec 07, 2017 6:51 pm    Post subject: Reply with quote

I use metalog to send alerts if it sees something fishy. Simplest thing could probably be to just to run beep (PC-speaker), but to reach further a mail should be sent for example.
_________________
..: Zucca :..
Gentoo IRC channels reside on Libera.Chat.
--
Quote:
I am NaN! I am a man!
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 21522

PostPosted: Fri Dec 08, 2017 2:22 am    Post subject: Reply with quote

I hit this failure recently on a system that had received a sys-libs/glibc update, but no recent PAM updates. Therefore, I think it was the libc upgrade which provoked the problem, so anything that flagged programs running an old libc (which unfortunately is almost all of them) probably would have reported the need for intervention just on the basis that a deleted libc was in use, independent of whether that broke PAM.
Back to top
View user's profile Send private message
Anon-E-moose
Watchman
Watchman


Joined: 23 May 2008
Posts: 6095
Location: Dallas area

PostPosted: Fri Dec 08, 2017 10:29 am    Post subject: Reply with quote

I always bounce the box after a libc update.
_________________
PRIME x570-pro, 3700x, 6.1 zen kernel
gcc 13, profile 17.0 (custom bare multilib), openrc, wayland
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum