ISPConfig3 - Cron - Failed to fetch

Brainfood

Member
ISPConfig3 - Cron - Updates Failed to fetch

cat /etc/apt/sources.list

Code:
###

deb http://ftp.de.debian.org/debian/ squeeze main
deb-src http://ftp.de.debian.org/debian/ squeeze main

deb http://ftp.de.debian.org/debian/ squeeze-updates main
deb-src http://ftp.de.debian.org/debian/ squeeze-updates main

deb http://ftp.de.debian.org/debian-security/ squeeze/updates main
deb-src http://ftp.de.debian.org/debian-security/ squeeze/updates main

deb http://ftp.de.debian.org/debian squeeze non-free

# EOF

manuelles ausführen von apt-get update

Code:
Hit http://ftp.de.debian.org squeeze Release.gpg
Ign http://ftp.de.debian.org/debian/ squeeze/main Translation-en
Ign http://ftp.de.debian.org/debian/ squeeze/main Translation-en_US
Ign http://ftp.de.debian.org/debian/ squeeze/non-free Translation-en
Ign http://ftp.de.debian.org/debian/ squeeze/non-free Translation-en_US
Hit http://ftp.de.debian.org squeeze-updates Release.gpg
Ign http://ftp.de.debian.org/debian/ squeeze-updates/main Translation-en
Ign http://ftp.de.debian.org/debian/ squeeze-updates/main Translation-en_US
Hit http://ftp.de.debian.org squeeze/updates Release.gpg
Ign http://ftp.de.debian.org/debian-security/ squeeze/updates/main Translation-en
Ign http://ftp.de.debian.org/debian-security/ squeeze/updates/main Translation-en_US
Hit http://ftp.de.debian.org squeeze Release
Hit http://ftp.de.debian.org squeeze-updates Release
Hit http://ftp.de.debian.org squeeze/updates Release
Hit http://ftp.de.debian.org squeeze/main Sources
Hit http://ftp.de.debian.org squeeze/main sparc Packages
Hit http://ftp.de.debian.org squeeze/non-free sparc Packages
Hit http://ftp.de.debian.org squeeze-updates/main Sources/DiffIndex
Hit http://ftp.de.debian.org squeeze-updates/main sparc Packages/DiffIndex
Hit http://ftp.de.debian.org squeeze/updates/main Sources
Hit http://ftp.de.debian.org squeeze/updates/main sparc Packages
Reading package lists... Done

Wenn Updates auf den Sparc64 Kisten under Debian6 eintrudeln leuchten die Infos BLAU im ISPConfig Interface, manuell läuft reibungslos apt-get update/upgrade

nur spamt mir der ISPConfig3 Cron täglich diesen Müll:

Code:
W: Failed to fetch http://ftp.de.debian.org/debian/dists/squeeze-updates/main/i18n/Translation-en.bz2 Unable to connect to ftp.de.debian.org:http:

W: Failed to fetch http://ftp.de.debian.org/debian/dists/squeeze-updates/main/i18n/Translation-en_US.bz2 Unable to connect to ftp.de.debian.org:http:

W: Failed to fetch http://ftp.de.debian.org/debian-security/dists/squeeze/updates/Release.gpg Unable to connect to ftp.de.debian.org:http:

W: Failed to fetch http://ftp.de.debian.org/debian-security/dists/squeeze/updates/main/i18n/Translation-en.bz2 Unable to connect to ftp.de.debian.org:http:

W: Failed to fetch http://ftp.de.debian.org/debian-security/dists/squeeze/updates/main/i18n/Translation-en_US.bz2 Unable to connect to ftp.de.debian.org:http:

W: Failed to fetch http://ftp.de.debian.org/debian/dists/squeeze/main/source/Sources.gz Unable to connect to ftp.de.debian.org:http:

W: Failed to fetch http://ftp.de.debian.org/debian/dists/squeeze/main/binary-sparc/Packages.gz Unable to connect to ftp.de.debian.org:http:

W: Failed to fetch http://ftp.de.debian.org/debian/dists/squeeze/non-free/binary-sparc/Packages.gz Unable to connect to ftp.de.debian.org:http:

W: Failed to fetch http://ftp.de.debian.org/debian/dists/squeeze-updates/main/source/Sources.gz Unable to connect to ftp.de.debian.org:http:

W: Failed to fetch http://ftp.de.debian.org/debian/dists/squeeze-updates/main/binary-sparc/Packages.gz Unable to connect to ftp.de.debian.org:http:

W: Failed to fetch http://ftp.de.debian.org/debian-security/dists/squeeze/updates/main/source/Sources.gz Unable to connect to ftp.de.debian.org:http:

W: Failed to fetch http://ftp.de.debian.org/debian-security/dists/squeeze/updates/main/binary-sparc/Packages.gz Unable to connect to ftp.de.debian.org:http:

E: Some index files failed to download, they have been ignored, or old ones used instead.
W: Failed to fetch http://ftp.de.debian.org/debian/dists/squeeze/Release.gpg Could not connect to ftp.de.debian.org:80 (141.76.2.4). - connect (60: Connection timed out)

W: Failed to fetch http://ftp.de.debian.org/debian/dists/squeeze/main/i18n/Translation-en.bz2 Unable to connect to ftp.de.debian.org:http:

W: Failed to fetch http://ftp.de.debian.org/debian/dists/squeeze/main/i18n/Translation-en_US.bz2 Unable to connect to ftp.de.debian.org:http:

W: Failed to fetch http://ftp.de.debian.org/debian/dists/squeeze/non-free/i18n/Translation-en.bz2 Unable to connect to ftp.de.debian.org:http:

W: Failed to fetch http://ftp.de.debian.org/debian/dists/squeeze/non-free/i18n/Translation-en_US.bz2 Unable to connect to ftp.de.debian.org:http:

W: Failed to fetch http://ftp.de.debian.org/debian/dists/squeeze-updates/Release.gpg Unable to connect to ftp.de.debian.org:http:

W: Failed to fetch http://ftp.de.debian.org/debian/dists/squeeze-updates/main/i18n/Translation-en.bz2 Unable to connect to ftp.de.debian.org:http:

W: Failed to fetch http://ftp.de.debian.org/debian/dists/squeeze-updates/main/i18n/Translation-en_US.bz2 Unable to connect to ftp.de.debian.org:http:

W: Failed to fetch http://ftp.de.debian.org/debian-security/dists/squeeze/updates/Release.gpg Unable to connect to ftp.de.debian.org:http:

W: Failed to fetch http://ftp.de.debian.org/debian-security/dists/squeeze/updates/main/i18n/Translation-en.bz2 Unable to connect to ftp.de.debian.org:http:

W: Failed to fetch http://ftp.de.debian.org/debian-security/dists/squeeze/updates/main/i18n/Translation-en_US.bz2 Unable to connect to ftp.de.debian.org:http:

W: Failed to fetch http://ftp.de.debian.org/debian/dists/squeeze/main/source/Sources.gz Unable to connect to ftp.de.debian.org:http:

W: Failed to fetch http://ftp.de.debian.org/debian/dists/squeeze/main/binary-sparc/Packages.gz Unable to connect to ftp.de.debian.org:http:

W: Failed to fetch http://ftp.de.debian.org/debian/dists/squeeze/non-free/binary-sparc/Packages.gz Unable to connect to ftp.de.debian.org:http:

W: Failed to fetch http://ftp.de.debian.org/debian/dists/squeeze-updates/main/source/Sources.gz Unable to connect to ftp.de.debian.org:http:

W: Failed to fetch http://ftp.de.debian.org/debian/dists/squeeze-updates/main/binary-sparc/Packages.gz Unable to connect to ftp.de.debian.org:http:

W: Failed to fetch http://ftp.de.debian.org/debian-security/dists/squeeze/updates/main/source/Sources.gz Unable to connect to ftp.de.debian.org:http:

W: Failed to fetch http://ftp.de.debian.org/debian-security/dists/squeeze/updates/main/binary-sparc/Packages.gz Unable to connect to ftp.de.debian.org:http:

E: Some index files failed to download, they have been ignored, or old ones used instead.
W: Failed to fetch http://ftp.de.debian.org/debian/dists/squeeze/Release.gpg Could not connect to ftp.de.debian.org:80 (141.76.2.4). - connect (60: Connection timed out)

W: Failed to fetch http://ftp.de.debian.org/debian/dists/squeeze/main/i18n/Translation-en.bz2 Unable to connect to ftp.de.debian.org:http:

W: Failed to fetch http://ftp.de.debian.org/debian/dists/squeeze/main/i18n/Translation-en_US.bz2 Unable to connect to ftp.de.debian.org:http:

W: Failed to fetch http://ftp.de.debian.org/debian/dists/squeeze/non-free/i18n/Translation-en.bz2 Unable to connect to ftp.de.debian.org:http:

W: Failed to fetch http://ftp.de.debian.org/debian/dists/squeeze/non-free/i18n/Translation-en_US.bz2 Unable to connect to ftp.de.debian.org:http:

W: Failed to fetch http://ftp.de.debian.org/debian/dists/squeeze-updates/Release.gpg Unable to connect to ftp.de.debian.org:http:

W: Failed to fetch http://ftp.de.debian.org/debian/dists/squeeze-updates/main/i18n/Translation-en.bz2 Unable to connect to ftp.de.debian.org:http:

W: Failed to fetch http://ftp.de.debian.org/debian/dists/squeeze-updates/main/i18n/Translation-en_US.bz2 Unable to connect to ftp.de.debian.org:http:

W: Failed to fetch http://ftp.de.debian.org/debian-security/dists/squeeze/updates/Release.gpg Unable to connect to ftp.de.debian.org:http:

W: Failed to fetch http://ftp.de.debian.org/debian-security/dists/squeeze/updates/main/i18n/Translation-en.bz2 Unable to connect to ftp.de.debian.org:http:

W: Failed to fetch http://ftp.de.debian.org/debian-security/dists/squeeze/updates/main/i18n/Translation-en_US.bz2 Unable to connect to ftp.de.debian.org:http:

W: Failed to fetch http://ftp.de.debian.org/debian/dists/squeeze/main/source/Sources.gz Unable to connect to ftp.de.debian.org:http:

W: Failed to fetch http://ftp.de.debian.org/debian/dists/squeeze/main/binary-sparc/Packages.gz Unable to connect to ftp.de.debian.org:http:

W: Failed to fetch http://ftp.de.debian.org/debian/dists/squeeze/non-free/binary-sparc/Packages.gz Unable to connect to ftp.de.debian.org:http:

W: Failed to fetch http://ftp.de.debian.org/debian/dists/squeeze-updates/main/source/Sources.gz Unable to connect to ftp.de.debian.org:http:

W: Failed to fetch http://ftp.de.debian.org/debian/dists/squeeze-updates/main/binary-sparc/Packages.gz Unable to connect to ftp.de.debian.org:http:

W: Failed to fetch http://ftp.de.debian.org/debian-security/dists/squeeze/updates/main/source/Sources.gz Unable to connect to ftp.de.debian.org:http:

W: Failed to fetch http://ftp.de.debian.org/debian-security/dists/squeeze/updates/main/binary-sparc/Packages.gz Unable to connect to ftp.de.debian.org:http:

E: Some index files failed to download, they have been ignored, or old ones used instead.

warum eigentlich?
 
Zuletzt bearbeitet:

Till

Administrator
ISPConfig ruft folgende Befehle auf:

apt-get update

und danach:

apt-get -s -qq dist-upgrade

und eine Liste der Pakete zu erhalten die zum Update zur Verfügung stehen.
 

Brainfood

Member
per console geht es ohne probleme, warum spamt er nur die cron.log so voll?

ab und an tauchen auch diese zeilen auf:

Code:
find: "./dev": Keine Berechtigung
find: "./lib": Keine Berechtigung
find: "./etc": Keine Berechtigung
find: "./var": Keine Berechtigung
find: "./home": Keine Berechtigung
find: "./bin": Keine Berechtigung
find: "./usr": Keine Berechtigung
 

Brainfood

Member
in der "crontab -e" steht:

Code:
* * * * * /usr/local/ispconfig/server/server.sh > /dev/null 2>> /var/log/ispconfig/cron.log
30 00 * * * /usr/local/ispconfig/server/cron_daily.sh > /dev/null 2>> /var/log/ispconfig/cron.log

"cron_daily.sh"

Code:
#!/bin/sh

PATH=/sbin:/usr/sbin:/bin:/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/X11R6/bin

/usr/bin/php -q /usr/local/ispconfig/server/cron_daily.php

führt man "/usr/bin/php -q /usr/local/ispconfig/server/cron_daily.php" manuell aus, kommen diese find fehler



"server.sh"

Code:
#!/bin/sh

PATH=/sbin:/usr/sbin:/bin:/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/X11R6/bin

. /etc/profile

cd /usr/local/ispconfig/server
/usr/bin/php -q /usr/local/ispconfig/server/server.php

bei "/usr/bin/php -q /usr/local/ispconfig/server/server.php"

kommt nur ein "finished."
 

Brainfood

Member
ok ich hab mal bisschen im /usr/local/ispconfig gegrept

vi /usr/local/ispconfig/server/lib/classes/monitor_tools.inc.php

Code:
 public function monitorSystemUpdate() {
                global $conf;

                /* the id of the server as int */
                $server_id = intval($conf['server_id']);

                /** The type of the data */
                $type = 'system_update';

                /* This monitoring is only available on Debian or Ubuntu */
                if (file_exists('/etc/debian_version')) {

                        /*
                         * first update the "apt database"
                         */
                        shell_exec('apt-get update');

                        /*
                         * Then test the upgrade.
                         * if there is any output, then there is a needed update
                         */
                        $aptData = shell_exec('apt-get -s -qq dist-upgrade');
                        if ($aptData == '') {
                                /* There is nothing to update! */
                                $state = 'ok';
                        } else {
                                /*
                                 * There is something to update! this is in most cases not critical, so we can
                                 * do a system-update once a month or so...
                                 */
                                $state = 'info';
                        }

                        /*
                         * Fetch the output
                         */
                        $data['output'] = shell_exec('apt-get -s -q dist-upgrade');
                } elseif (file_exists('/etc/gentoo-release')) {

                        /*
                         * first update the portage tree
                         */

kurzer Ausdruck

Code:
monitor_tools.inc.php:			shell_exec('apt-get update');
monitor_tools.inc.php:			$aptData = shell_exec('apt-get -s -qq dist-upgrade');
monitor_tools.inc.php:			$data['output'] = shell_exec('apt-get -s -q dist-upgrade');
 

Brainfood

Member
Der Spam nervt, ich hab jetzt im monitor_tools.inc.php jeweils ein:

Code:
> /dev/null
in den shell_execs drangehangen, jetzt ist endlich Ruhe.

Code:
monitor_tools.inc.php:            shell_exec('apt-get update > /dev/null');
monitor_tools.inc.php:            $aptData = shell_exec('apt-get -s -qq dist-upgrade > /dev/null');
monitor_tools.inc.php:            $data['output'] = shell_exec('apt-get -s -q dist-upgrade > /dev/null');
 
Zuletzt bearbeitet:

Werbung

Top