Accidentally deleted /var/cpanel/updatelogs/last , now what?
Hi, server works very well, but I noticed that WHM 124.0.23 recently rolled out to STABLE. I would like to update to it, but I accidentally deleted /var/cpanel/updatelogs/last last week while cleaning up old logs to save some space, so now the updater just hangs with this in the watch window:
Unable to find log file: /var/cpanel/updatelogs/last
I waited for 10 minutes and it does absolutely nothing else and does not consume any CPU.
What can I do now?
Can I touch some empty files to make it go?
And after that, I believe I need to delete a file somewhere in the root partition to make it believe that there is no other update process going on, if so, which one?
Thanks
-
Hey hey! "last" is always a symlink to the most recent update file on the system. Did you only delete the "last" symlink and not any actual files or directories?
If so, you can just recreate the last symlink using the most recent update file in there:
ln -s /var/cpanel/updatelogs/update.your-latest-file-name-here.log last
and that should get things going.
You shouldn't need to kill any cached files for this particular, but let me know if it complains about something else after that work.
0 -
Hi! But uhhhhhhhh OK, but how can I define what "your-latest-file-name-here" actually is?
Numbers in that directory don't follow modification dates, apparently, so I don't know what to go with.
0 -
Whichever one in there has the most recent date should be linked to "last" so that'll work.
0 -
Yep, it seems to work. I only had to refresh the upcp2 page and it's not going. I'll report back in 5 minutes but it seems good so far. Thanks!
0 -
Glad to hear it!
0
Please sign in to leave a comment.
Comments
5 comments