Fatal error uploading filter/alias backups

Panikos

Member
Dec 21, 2005
5
0
151
In backups on cpanel 10.9.0-RELEASE 118 if I try to upload a filter or alias I get this error every time and the filter/alias is unchanged.

a fatal error or timeout occurred while processing this directive

I can download a new copy it's just the upload that won't work.

I've done this before ok, but not for ages so I'm not sure how long this problem has existed.

I'm on shared hosting and don't have root access (except for anything I can do via cron) but if anyone has any ideas I can pass them on to my host.
 

chirpy

Well-Known Member
Verifed Vendor
Jun 15, 2002
13,453
31
473
Go on, have a guess
Your host would need to check in the cPanel error log in /usr/local/cpanel/logs/error_log when the action is performed to see what cPanel is complaining about.
 

Panikos

Member
Dec 21, 2005
5
0
151
My host checked the cpanel error log and found this

gzip: (internal death) Sat Mar 24 07:11:56 2007 [22149] error: /etc/vfilters/hard-facts.net.gz-key open failed: Permission denied at cpanel.pl line 2062
Carp::croak('/etc/vfilters/hard-facts.net.gz-key open failed: Permission deni...') called at /usr/local/cpanel/Cpanel/Fileman.pm line 340
Cpanel::Fileman::restoreaf('file-I:\filter-hard-facts.net.gz', '/home/rmyusername/tmp/cpanel.TMP.43Ias12iDsAi67bi', 'dir', '/home/rmyusername', 'file-I:\filter-hard-facts.net.gz-key', 'file1') called at cpanel.pl line 2062
main::dofileman('restoreaf()') called at cpanel.pl line 674
main::exectag('<cpanel Fileman="restoreaf()">') called at cpanel.pl line 3493
main::dotag(undef) called at cpanel.pl line 3407
main::parsehtml('GLOB(0x97f5890)') called at cpanel.pl line 352
Also I just realied that home/rmyusername/tmp/ contained a cpanel.TMP.43Ias12iDsAi67bi (with different endings) for each attempt I had made.

Any help would be appreciated. I have no idea what's going on there.
 

Arvand

Well-Known Member
Jul 26, 2003
128
1
168
This is the issue across all of our servers. I'll put in a bug fix request.
 

Panikos

Member
Dec 21, 2005
5
0
151
On further testing it seems that restore (on cpanel backups) is working despite the error. However the view you see of the filters etc from cpanel is not updated (because of the error) so it looks unchanged and you think it failed to upload.

For example:

In cpanel filters add 10 rules.
In Cpanel backups save a filter backup.
In cpanel filters delete 1 rule so there are 9 visible.
In Cpanel backups restore the original filter backup which gives the fatal error

In cpanel filters there are still only 9 visible rules where you'd hope to see 10 again, but the 10th one is actually operating even though it can't be seen. Proving that the restore did work.

As I understand it there are two filter files. The true one that the server operates on and cpanels own (.filter) in the users home directory which it keeps in a more readable/editable format.

After you upload a filter file and it replaces the servers true filter file it's supposed to also convert that and overwrite Cpanels own .filter file so that you can view them from there. That would seem to be the point where the error occurs and not on the upload at all.

Any thoughts or suggestions would be appreciated.