Mailman login page icons and 404 error

alwaysannoyed

Member
Dec 31, 2018
8
1
3
Edinburgh
cPanel Access Level
Root Administrator
If I receive an email request to approve a list email the login page (eg [removed]"]Testlist Moderator Authentication[/URL]) does not display the icons eg src="[removed]", and once logged in they still do not display.

If however I access Mailman through cPanel (eg [removed]) then the icons display.

Because of this we have hundreds of 404 pages not found for the icons, which eats into bandwidth.

Is there any way of curing this?
 
Last edited by a moderator:

cPanelLauren

Product Owner
Staff member
Nov 14, 2017
13,296
1,261
313
Houston
Hi @alwaysannoyed

Really the 404 shouldn' be occurring, to begin with, I can confirm I don't have this issue:

icons.png

Can you tell me what the output of the following is?

Code:
ls -lah /usr/local/cpanel/3rdparty/mailman/icons
 

alwaysannoyed

Member
Dec 31, 2018
8
1
3
Edinburgh
cPanel Access Level
Root Administrator
drwxrwsr-x 2 mailman mailman 4.0K Nov 20 02:46 ./
drwxrwsr-x 22 mailman mailman 4.0K Oct 10 19:00 ../
-rw-r--r-- 1 mailman mailman 3.0K Oct 10 19:00 gnu-head-tiny.jpg
-rw-r--r-- 1 mailman mailman 2.1K Oct 10 19:00 mailman.jpg
-rw-r--r-- 1 mailman mailman 6.7K Oct 10 19:00 mailman-large.jpg
-rw-r--r-- 1 mailman mailman 5.5K Oct 10 19:00 mm-icon.ico
-rw-r--r-- 1 mailman mailman 84K Oct 10 19:00 mm-icon-large.ico
-rw-r--r-- 1 mailman mailman 666 Oct 10 19:00 mm-icon.png
-rw-r--r-- 1 mailman mailman 5.8K Oct 10 19:00 PythonPowered.png

From Awstats (number is error hits):
/img-sys/PythonPowered.png 204 http://[removed]/members/add
/img-sys/gnu-head-tiny.jpg 202 http://[removed]/members/add
/img-sys/mailman.jpg 200 http://[removed]/members/add

I imagine it's our club's membership secretary adding members. She and I both use Macs, if that makes a difference. All the browsers I have on desktop and laptop are missing the icons when accessing Mailman from outwith cPanel.
 
Last edited by a moderator:

cPanelLauren

Product Owner
Staff member
Nov 14, 2017
13,296
1,261
313
Houston
Hi @alwaysannoyed

You might try reinstalling mailman, the permissions in that directory look right but my assumption is something in a higher directory is incorrect if the icons aren't being displayed. You can do this by running the following:

Code:
rpm -e --nodeps cpanel-mailman
/scripts/check_cpanel_rpms --fix
 

cPanelLauren

Product Owner
Staff member
Nov 14, 2017
13,296
1,261
313
Houston
Hi @alwaysannoyed

Yes, it will, it will not remove your lists or list data. If you want to be extra careful make a backup of the accounts with mailing lists first.


Thanks!
 

alwaysannoyed

Member
Dec 31, 2018
8
1
3
Edinburgh
cPanel Access Level
Root Administrator
Hmm. Didn't work! But at least the lists are intact. Think I'll just live with the problem as it's not serious and my capabilities with terminal are very limited. Attached txt file has the results.

Code:
[~]# rpm -e --nodeps cpanel-mailman
error: can't create transaction lock on /var/lib/rpm/.rpm.lock (Permission denied)
[~]# /scripts/check_cpanel_rpms --fix
[2019-02-28 08:52:17 +0000] warn [check_cpanel_rpms] overwrite exception: Cpanel::Exception::IO::FileCreateError/(XID xn83cs) The system failed to create the file “/etc/.tmp.6377c.cpupdate.conf” with permissions “0644” (as EUID: 1000, EGID: 1003 1003) because of the following error: Permission denied
 at /usr/local/cpanel/Cpanel/FileUtils/Write.pm line 164.
    Cpanel::FileUtils::Write::_write_to_tmpfile("/etc/cpupdate.conf", "CPANEL=release\x{a}RPMUP=daily\x{a}SARULESUP=daily\x{a}STAGING_DIR=/usr/l"..., 420, CODE(0x186f4c0)) called at /usr/local/cpanel/Cpanel/FileUtils/Write.pm line 103
    Cpanel::FileUtils::Write::overwrite("/etc/cpupdate.conf", "CPANEL=release\x{a}RPMUP=daily\x{a}SARULESUP=daily\x{a}STAGING_DIR=/usr/l"..., 420) called at /usr/local/cpanel/Cpanel/FileUtils/Write.pm line 111
    eval {...} called at /usr/local/cpanel/Cpanel/FileUtils/Write.pm line 110
    Cpanel::FileUtils::Write::overwrite_no_exceptions("/etc/cpupdate.conf", "CPANEL=release\x{a}RPMUP=daily\x{a}SARULESUP=daily\x{a}STAGING_DIR=/usr/l"..., 420) called at /usr/local/cpanel/Cpanel/Config/FlushConfig.pm line 125
    Cpanel::Config::FlushConfig::flushConfig("/etc/cpupdate.conf", HASH(0x1c22938), "=", undef, HASH(0x1c1e560)) called at /usr/local/cpanel/Cpanel/Update/Config.pm line 186
    Cpanel::Update::Config::save(HASH(0x1c22938)) called at /usr/local/cpanel/Cpanel/Update/Config.pm line 57
    Cpanel::Update::Config::load() called at /usr/local/cpanel/Cpanel/RPM/Versions/Directory.pm line 317
    Cpanel::RPM::Versions::Directory::load_cpupdate_conf(Cpanel::RPM::Versions::Directory=HASH(0x1c1c8b8)) called at /usr/local/cpanel/Cpanel/RPM/Versions/Directory.pm line 39
    Cpanel::RPM::Versions::Directory::new("Cpanel::RPM::Versions::Directory", HASH(0xf33328)) called at /usr/local/cpanel/Cpanel/RPM/Versions/File.pm line 184
    Cpanel::RPM::Versions::File::init("Cpanel::RPM::Versions::File", HASH(0xf4b410)) called at /usr/local/cpanel/Cpanel/RPM/Versions/File.pm line 85
    Cpanel::RPM::Versions::File::new("Cpanel::RPM::Versions::File", HASH(0xf4b410)) called at /scripts/check_cpanel_rpms line 71
    scripts::check_cpanel_rpms::script("scripts::check_cpanel_rpms", "--fix") called at /scripts/check_cpanel_rpms line 23
 at /usr/local/cpanel/Cpanel/FileUtils/Write.pm line 110.
    Cpanel::FileUtils::Write::overwrite_no_exceptions("/etc/cpupdate.conf", "CPANEL=release\x{a}RPMUP=daily\x{a}SARULESUP=daily\x{a}STAGING_DIR=/usr/l"..., 420) called at /usr/local/cpanel/Cpanel/Config/FlushConfig.pm line 125
    Cpanel::Config::FlushConfig::flushConfig("/etc/cpupdate.conf", HASH(0x1c22938), "=", undef, HASH(0x1c1e560)) called at /usr/local/cpanel/Cpanel/Update/Config.pm line 186
    Cpanel::Update::Config::save(HASH(0x1c22938)) called at /usr/local/cpanel/Cpanel/Update/Config.pm line 57
    Cpanel::Update::Config::load() called at /usr/local/cpanel/Cpanel/RPM/Versions/Directory.pm line 317
    Cpanel::RPM::Versions::Directory::load_cpupdate_conf(Cpanel::RPM::Versions::Directory=HASH(0x1c1c8b8)) called at /usr/local/cpanel/Cpanel/RPM/Versions/Directory.pm line 39
    Cpanel::RPM::Versions::Directory::new("Cpanel::RPM::Versions::Directory", HASH(0xf33328)) called at /usr/local/cpanel/Cpanel/RPM/Versions/File.pm line 184
    Cpanel::RPM::Versions::File::init("Cpanel::RPM::Versions::File", HASH(0xf4b410)) called at /usr/local/cpanel/Cpanel/RPM/Versions/File.pm line 85
    Cpanel::RPM::Versions::File::new("Cpanel::RPM::Versions::File", HASH(0xf4b410)) called at /scripts/check_cpanel_rpms line 71
    scripts::check_cpanel_rpms::script("scripts::check_cpanel_rpms", "--fix") called at /scripts/check_cpanel_rpms line 23
warn [check_cpanel_rpms] overwrite exception: Cpanel::Exception::IO::FileCreateError/(XID xn83cs) The system failed to create the file “/etc/.tmp.6377c.cpupdate.conf” with permissions “0644” (as EUID: 1000, EGID: 1003 1003) because of the following error: Permission denied
 at /usr/local/cpanel/Cpanel/FileUtils/Write.pm line 164.
    Cpanel::FileUtils::Write::_write_to_tmpfile("/etc/cpupdate.conf", "CPANEL=release\x{a}RPMUP=daily\x{a}SARULESUP=daily\x{a}STAGING_DIR=/usr/l"..., 420, CODE(0x186f4c0)) called at /usr/local/cpanel/Cpanel/FileUtils/Write.pm line 103
    Cpanel::FileUtils::Write::overwrite("/etc/cpupdate.conf", "CPANEL=release\x{a}RPMUP=daily\x{a}SARULESUP=daily\x{a}STAGING_DIR=/usr/l"..., 420) called at /usr/local/cpanel/Cpanel/FileUtils/Write.pm line 111
    eval {...} called at /usr/local/cpanel/Cpanel/FileUtils/Write.pm line 110
    Cpanel::FileUtils::Write::overwrite_no_exceptions("/etc/cpupdate.conf", "CPANEL=release\x{a}RPMUP=daily\x{a}SARULESUP=daily\x{a}STAGING_DIR=/usr/l"..., 420) called at /usr/local/cpanel/Cpanel/Config/FlushConfig.pm line 125
    Cpanel::Config::FlushConfig::flushConfig("/etc/cpupdate.conf", HASH(0x1c22938), "=", undef, HASH(0x1c1e560)) called at /usr/local/cpanel/Cpanel/Update/Config.pm line 186
    Cpanel::Update::Config::save(HASH(0x1c22938)) called at /usr/local/cpanel/Cpanel/Update/Config.pm line 57
    Cpanel::Update::Config::load() called at /usr/local/cpanel/Cpanel/RPM/Versions/Directory.pm line 317
    Cpanel::RPM::Versions::Directory::load_cpupdate_conf(Cpanel::RPM::Versions::Directory=HASH(0x1c1c8b8)) called at /usr/local/cpanel/Cpanel/RPM/Versions/Directory.pm line 39
    Cpanel::RPM::Versions::Directory::new("Cpanel::RPM::Versions::Directory", HASH(0xf33328)) called at /usr/local/cpanel/Cpanel/RPM/Versions/File.pm line 184
    Cpanel::RPM::Versions::File::init("Cpanel::RPM::Versions::File", HASH(0xf4b410)) called at /usr/local/cpanel/Cpanel/RPM/Versions/File.pm line 85
    Cpanel::RPM::Versions::File::new("Cpanel::RPM::Versions::File", HASH(0xf4b410)) called at /scripts/check_cpanel_rpms line 71
    scripts::check_cpanel_rpms::script("scripts::check_cpanel_rpms", "--fix") called at /scripts/check_cpanel_rpms line 23

The “/usr/bin/rpm -q --nodigest --nosignature --queryformat [%{NAME},%{VERSION},%{RELEASE}\n] -f /etc/mail/spamassassin/sa-update-keys/sa-update-pubkey.txt (Permission denied)” command (process 29057) reported error number 1 when it ended. at /usr/local/cpanel/Cpanel/RPM/Versions/File.pm line 1651.
[2019-02-28 08:52:55 +0000]   
[2019-02-28 08:52:55 +0000]   Problems were detected with cPanel-provided files which are RPM controlled.
[2019-02-28 08:52:55 +0000]   If you did not make these changes intentionally, you can correct them by running:
[2019-02-28 08:52:55 +0000]   
[2019-02-28 08:52:55 +0000]   > /usr/local/cpanel/scripts/check_cpanel_rpms --fix
[2019-02-28 08:52:55 +0000]   
[2019-02-28 08:52:55 +0000]   The following files were found to be altered from their original RPM:
[2019-02-28 08:52:55 +0000]   cpanel-mailman,2.1.27,2.cp1170
[2019-02-28 08:52:55 +0000]   cpanel-perl-528-Mail-SpamAssassin,3.004002,14.cp1178
[2019-02-28 08:52:55 +0000]   cpanel-perl-528-munin,2.0.30,2.cp1178
[2019-02-28 08:52:55 +0000]   cpanel-php72-DB,1.7.14,4.cp1176
[2019-02-28 08:52:55 +0000]   cpanel-php72-XML-RPC,1.5.5,4.cp1176
[2019-02-28 08:52:55 +0000]   cpanel-wrap,72.5,1.cp1172
[2019-02-28 08:52:55 +0000]   
[2019-02-28 08:52:55 +0000]   Removing 6 broken rpms: cpanel-mailman-2.1.27-2.cp1170.x86_64, cpanel-perl-528-Mail-SpamAssassin-3.004002-14.cp1178.x86_64, cpanel-perl-528-munin-2.0.30-2.cp1178.x86_64, cpanel-php72-DB-1.7.14-4.cp1176.noarch, cpanel-php72-XML-RPC-1.5.5-4.cp1176.noarch, cpanel-wrap-72.5-1.cp1172.x86_64
[2019-02-28 08:52:55 +0000]   error: can't create transaction lock on /var/lib/rpm/.rpm.lock (Permission denied)
[2019-02-28 08:52:55 +0000] warn [check_cpanel_rpms] mkdir /usr/local/cpanel/tmp/rpm_downloads failed: Permission denied at /usr/local/cpanel/Cpanel/SafeDir/MK.pm line 124.
    Cpanel::SafeDir::MK::safemkdir("/usr/local/cpanel/tmp/rpm_downloads", 0700, 2) called at /usr/local/cpanel/Cpanel/RPM/Versions/File.pm line 782
    Cpanel::RPM::Versions::File::download_all(Cpanel::RPM::Versions::File=HASH(0x10b3af0)) called at /usr/local/cpanel/Cpanel/RPM/Versions/File.pm line 901
    Cpanel::RPM::Versions::File::stage(Cpanel::RPM::Versions::File=HASH(0x10b3af0)) called at /usr/local/cpanel/Cpanel/RPM/Versions/File.pm line 1574
    Cpanel::RPM::Versions::File::reinstall_rpms(Cpanel::RPM::Versions::File=HASH(0x10b3af0), "cpanel-mailman,2.1.27,2.cp1170", "cpanel-perl-528-Mail-SpamAssassin,3.004002,14.cp1178", "cpanel-perl-528-munin,2.0.30,2.cp1178", "cpanel-php72-DB,1.7.14,4.cp1176", "cpanel-php72-XML-RPC,1.5.5,4.cp1176", "cpanel-wrap,72.5,1.cp1172") called at /scripts/check_cpanel_rpms line 158
    scripts::check_cpanel_rpms::script("scripts::check_cpanel_rpms", "--fix") called at /scripts/check_cpanel_rpms line 23
warn [check_cpanel_rpms] mkdir /usr/local/cpanel/tmp/rpm_downloads failed: Permission denied
[2019-02-28 08:52:55 +0000]   No new RPMS needed for install
[2019-02-28 08:52:55 +0000]   Disabling service monitoring.
touch: cannot touch ‘/var/run/chkservd.suspend’: Permission denied
[2019-02-28 08:52:55 +0000] warn [check_cpanel_rpms] Failed to create /var/run/chkservd.suspend: No such file or directory at /usr/local/cpanel/Cpanel/FileUtils/TouchFile.pm line 48.
    Cpanel::FileUtils::TouchFile::_log("warn", "Failed to create /var/run/chkservd.suspend: No such file or d"...) called at /usr/local/cpanel/Cpanel/FileUtils/TouchFile.pm line 110
    Cpanel::FileUtils::TouchFile::touchfile("/var/run/chkservd.suspend") called at /usr/local/cpanel/Cpanel/RPM/Versions/File.pm line 1088
    Cpanel::RPM::Versions::File::disable_monitoring(Cpanel::RPM::Versions::File=HASH(0x10b3af0)) called at /usr/local/cpanel/Cpanel/RPM/Versions/File.pm line 1192
    Cpanel::RPM::Versions::File::commit_changes(Cpanel::RPM::Versions::File=HASH(0x10b3af0)) called at /usr/local/cpanel/Cpanel/RPM/Versions/File.pm line 1575
    Cpanel::RPM::Versions::File::reinstall_rpms(Cpanel::RPM::Versions::File=HASH(0x10b3af0), "cpanel-mailman,2.1.27,2.cp1170", "cpanel-perl-528-Mail-SpamAssassin,3.004002,14.cp1178", "cpanel-perl-528-munin,2.0.30,2.cp1178", "cpanel-php72-DB,1.7.14,4.cp1176", "cpanel-php72-XML-RPC,1.5.5,4.cp1176", "cpanel-wrap,72.5,1.cp1172") called at /scripts/check_cpanel_rpms line 158
    scripts::check_cpanel_rpms::script("scripts::check_cpanel_rpms", "--fix") called at /scripts/check_cpanel_rpms line 23
warn [check_cpanel_rpms] Failed to create /var/run/chkservd.suspend: No such file or directory
[2019-02-28 08:53:02 +0000]   No RPMS need to be uninstalled
[2019-02-28 08:53:02 +0000]   Restoring service monitoring.
[email protected] [~]#
 
Last edited by a moderator:

cPanelLauren

Product Owner
Staff member
Nov 14, 2017
13,296
1,261
313
Houston
Hi @alwaysannoyed


This is indicating there is a bigger issue:

Code:
error: can't create transaction lock on /var/lib/rpm/.rpm.lock (Permission denied)
It's not able to get a lock on the RPM database or

Create files in /etc/ :

Code:
[2019-02-28 08:52:17 +0000] warn [check_cpanel_rpms] overwrite exception: Cpanel::Exception::IO::FileCreateError/(XID xn83cs) The system failed to create the file “/etc/.tmp.6377c.cpupdate.conf” with permissions “0644” (as EUID: 1000, EGID: 1003 1003) because of the following error: Permission denied
That's concerning on its own. Is the disk by chance full?
 

alwaysannoyed

Member
Dec 31, 2018
8
1
3
Edinburgh
cPanel Access Level
Root Administrator
Far from it! And everything else seems to work ok. The mailing lists work fine.
Filesystem Size Used Avail Use% Mounted on

/dev/simfs 30G 15G 14G 52% /

devtmpfs 512M 0 512M 0% /dev

tmpfs 512M 0 512M 0% /dev/shm

tmpfs 512M 428K 512M 1% /run

tmpfs 512M 0 512M 0% /sys/fs/cgroup
 

alwaysannoyed

Member
Dec 31, 2018
8
1
3
Edinburgh
cPanel Access Level
Root Administrator
From running rpm -e --nodeps cpanel-mailman /scripts/check_cpanel_rpms --fix ? Yes the same.

I've also been trying to delete some unwanted log files and can't because of permissions (which shouldn't be happening). I've raised a ticket with the provider.

But after rebuilding the RPM database the icons are back!
 
Last edited:

cPanelLauren

Product Owner
Staff member
Nov 14, 2017
13,296
1,261
313
Houston
Hi @alwaysannoyed

Yea, the permissions thing is definitely an issue, hopefully, your provider can help you sort it out. I'm glad rebuilding the RPM database helped bring the Icons back! Sounds like that resolved the issue?


Thanks!