pla

Member
Oct 26, 2012
14
0
1
cPanel Access Level
Root Administrator
Not sure if this is the right place as the forum description says it's for 11.34. Anyway...

Since the upgrade to 11.36 cpbackup has been failing. Upon inspection, it has the old shebang path, not the new one (like other scripts in the same directory). Fixed it by hand (that horrendous bit of shell at the start) and ran the script, which worked.

Next day, the backup failed. The old shebang path (/usr/bin/perl) was back. Fixed it by hand and ran the script, which worked.

Next day, guess what? That's right.

Fixed it by hand again. Ran upcp (which was the obvious suspect) and it remained OK.

The setup was previously handled by somebody else who left the company before I joined. It's possible something he did is responsible for this, but I can't find it.

What I'm hoping is that you neglected to fix cpbackup at source, meaning that upcp kept putting the old version in place, and that you've now fixed the problem. That would mean I can stop looking. Or, it's still broken at source and something other than upcp is replacing cpbackup every night but now I've told you of the problem you'll fix it at source.

Keeping my fingers crossed...

--
Paul
 

pla

Member
Oct 26, 2012
14
0
1
cPanel Access Level
Root Administrator
To answer my own question, since nobody else wants to...

The problem seems to have gone away on the next backup after I posted this, so it looks like it was cpbackup not having been updated and the cp script fairy replacing it overnight until somebody at cp fixed cpbackup.

It would have been nice if somebody at cp had confirmed this because otherwise I'm left with a tiny worry that maybe it's really something my predecessor left behind on the system occasionally misbehaving.

--
Paul
 

cPanelNick

Administrator
Staff member
Mar 9, 2015
3,488
35
158
cPanel Access Level
DataCenter Provider
Paul,

It would be best if you could open a ticket using the link in my signature so we could look at the server. This isn't something I have seen happening elsewhere.
 

pla

Member
Oct 26, 2012
14
0
1
cPanel Access Level
Root Administrator
As I said, the problem was there the first two or three days after the upgrade then mysteriously went away. Not much point opening a ticket for something that's no longer reproducible.

--
Paul
 

cPanelKenneth

cPanel Development
Staff member
Apr 7, 2006
4,607
76
308
cPanel Access Level
Root Administrator
We last modified scripts/cpbackup on Nov 29, 2012. Those changes were for the shebang changes. It's quite possible your predecessor had something in place that temporarily prevented the script from being updated. That's pure speculation however.