Koozali.org: home of the SME Server

Gelöst - Problem mit der httpd.conf

Toppi

Gelöst - Problem mit der httpd.conf
« on: April 16, 2007, 02:06:06 PM »
Hallo zusammen,

habe folgendes Problem:

Beim Versuch folgendes auf der Console auszuführen:

Code: [Select]
expand-template /etc/httpd/conf/httpd.conf

erhalte ich folgende Fehlermeldung:

Code: [Select]
WARNING in /etc/e-smith/templates-custom//etc/httpd/conf/httpd.conf/VirtualHosts                                                                             /50ProxyPass: *WARNING* esmith::config(/home/e-smith/domains) called with old da                                                                             tabase path. The following package needs to be updated:  at /usr/lib/perl5/site_                                                                             perl/esmith/config.pm line 374


In der config.pm steht an dieser Stelle folgendes:

Code: [Select]
cluck "*WARNING* esmith::config($filename) called with old " .
              "database path. The following package needs to be updated: ";


Auf der Console wird jede Menge Quellcode angezeigt aber das Script wird nicht ausgeführt.

Vielleicht kann mir ja jemand helfen.

Gruß, Ralf

Offline FraunhoferIFF

  • *
  • 932
  • +0/-0
  • Widerstand ist Zwecklos !
    • http://www.magic-figo.de
Gelöst - Problem mit der httpd.conf
« Reply #1 on: April 16, 2007, 02:31:51 PM »
mach erstmal

signal-event post-upgrade

zur noch auch

signal-event reboot


, Sieht so aus als ob Du Domänen geändert hattest oder?


Marcel

Toppi

Gelöst - Problem mit der httpd.conf
« Reply #2 on: April 16, 2007, 03:07:28 PM »
Quote from: "FraunhoferIFF"
mach erstmal

signal-event post-upgrade

zur noch auch

signal-event reboot


, Sieht so aus als ob Du Domänen geändert hattest oder?


Marcel


Das habe ich schon mehrfach ausbrobiert und gebracht hat es leider nichts.

Und die Domänen habe ich eigentlich auch nicht geändert, jedenfalls nicht wissentlich.

Toppi

Gelöst - Problem mit der httpd.conf
« Reply #3 on: April 16, 2007, 03:38:39 PM »
Habe nochmal ein paar Zeilen eines Scripts nach seiner Ausführung.

Vielleicht kann man ja anhanddessen noch was sehen:

Code: [Select]
(0x941ead4)', 'PACKAGE', 'esmith::__TEMPLATE__::1', 'BROKEN', 'CODE(0x95a9e9c)', 'UNTAINT', 1, ...) called at /usr/lib/perl5/vendor_perl/5.8.5/Text/Template.pm line 382
        Text::Template::fill_in_file('/etc/e-smith/templates//etc/httpd/conf/httpd.conf/80VirtualHosts', 'HASH', 'ARRAY(0x941ead4)', 'PACKAGE', 'esmith::__TEMPLATE__::1', 'BROKEN', 'CODE(0x95a9e9c)', 'UNTAINT', 1, ...) called at /usr/lib/perl5/site_perl/esmith/templates.pm line 528
        esmith::templates::processTemplate('HASH(0x9249e3c)') called at /sbin/e-smith/expand-template line 45
WARNING in /etc/e-smith/templates//etc/httpd/conf/httpd.conf/80VirtualHosts: WARNING: Template processing succeeded for //etc/httpd/conf/httpd.conf/VirtualHosts: 1 fragment generated warnings
 at /etc/e-smith/templates//etc/httpd/conf/httpd.conf/80VirtualHosts line 38
WARNING: Template processing succeeded for //etc/httpd/conf/httpd.conf: 6 fragments generated warnings
 at /sbin/e-smith/expand-template line 45

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Gelöst - Problem mit der httpd.conf
« Reply #4 on: April 16, 2007, 04:27:19 PM »
Das Problem is nicht im config.pm aber wahrscheinlich im /etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf/VirtualHosts                                                                             /50ProxyPass. Im template fragment wird irgendwon die Database mit der configurations Parameter angesprochen auf falsche, alte Weise.
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Toppi

Gelöst - Problem mit der httpd.conf
« Reply #5 on: April 16, 2007, 04:37:24 PM »
Hier meine 50ProxyPass:

Code: [Select]
{
tie my %domains, 'esmith::config', '/home/e-smith/domains';

my $target = db_get_prop(\%domains, "$virtualHost", "ProxyTarget") || "";

if ("$target" ne "")
        {
        $result .= "\n";
        $result .= "    #-----------------------------------\n";
        $result .= "    # Added to ProxyPass virtual domain \n";
        $result .= "    #-----------------------------------\n";
        $result .= "\n";
        $result .= "    ProxyPass\t/\t$target\n";
        $result .= "    ProxyPassReverse\t/\t$target\n";
        $result .= "\n";
        $result .= "\ \n";
        }
}


Vielleicht hilft es ja

Toppi

Gelöst - Problem mit der httpd.conf
« Reply #6 on: April 16, 2007, 04:56:34 PM »
Quote from: "cactus"
Das Problem is nicht im config.pm aber wahrscheinlich im /etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf/VirtualHosts                                                                             /50ProxyPass. Im template fragment wird irgendwon die Database mit der configurations Parameter angesprochen auf falsche, alte Weise.


Ich danke Dir cactus, habe die 50ProxyPass gelöscht und jetzt geht es wieder. Ich hoffe nur das es auf andere Programme keine Auswirkung hat.

Gruß, Ralf

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Gelöst - Problem mit der httpd.conf
« Reply #7 on: April 16, 2007, 07:33:03 PM »
Quote from: "Toppi"
Ich danke Dir cactus, habe die 50ProxyPass gelöscht und jetzt geht es wieder. Ich hoffe nur das es auf andere Programme keine Auswirkung hat.
Vielleicht kannst du dir neue version mahl posten, damit wir überprüfen können ob es weitere probleme mit bringen wird.
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Toppi

Gelöst - Problem mit der httpd.conf
« Reply #8 on: April 16, 2007, 08:42:44 PM »
Eine neue Version gibt es ja nicht, wie beschrieben habe ich die Datei einfach gelöscht.
Den Inhalt der 50ProxyPass habe ich ja weiter oben geposted.

Oder meinst Du was anderes :?:

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Gelöst - Problem mit der httpd.conf
« Reply #9 on: April 16, 2007, 09:13:28 PM »
Quote from: "Toppi"
Eine neue Version gibt es ja nicht, wie beschrieben habe ich die Datei einfach gelöscht.
Den Inhalt der 50ProxyPass habe ich ja weiter oben geposted.

Oder meinst Du was anderes :?:
Entschuldigung, hatte gedacht das du es modifiziert hat, ich weiss nicht wo das Fragment herrkommt, aber ich weiss wie mann es änderen kann:

Die richtige weise für SME 7.x ist:
Code: [Select]
{
use esmith::DomainsDB;

my $db_domains = esmith::DomainsDB->open_ro() or
    die "Couldn't open Domains DB\n";

my $target = $db_domains->get_prop($virtualHost => 'ProxyTarget');

if ("$target" ne "")
        {
        $result .= "\n";
        $result .= "    #-----------------------------------\n";
        $result .= "    # Added to ProxyPass virtual domain \n";
        $result .= "    #-----------------------------------\n";
        $result .= "\n";
        $result .= "    ProxyPass\t/\t$target\n";
        $result .= "    ProxyPassReverse\t/\t$target\n";
        $result .= "\n";
        $result .= "\ \n";
        }
}


(Entschuldigung für mein Deutsch, est ist nicht meine Muttersprache)
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Toppi

Gelöst - Problem mit der httpd.conf
« Reply #10 on: April 16, 2007, 09:31:37 PM »
Genau das hab ich mich ja auch gefragt und ich überlege auch schon die ganze zeit woher die Datei stammen könnte...

Ich warte jetzt erstmal ab ob alles funktioniert und  wenn sich herrausstellen sollte das etwas nicht funktioniert, werde ich deine Version testen.

PS: Dafür das du nicht aus Deutschland kommst, ist dein deutsch ziemlich gut  :!:

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Gelöst - Problem mit der httpd.conf
« Reply #11 on: April 16, 2007, 09:46:56 PM »
Quote from: "Toppi"
Genau das hab ich mich ja auch gefragt und ich überlege auch schon die ganze zeit woher die Datei stammen könnte...
Vielleicht da das folgende noch etwas bringt:
Code: [Select]
rpm -q --whatrequires /etc/e-smith/templates/etc/httpd/conf/httpd.conf/VirtualHosts/50ProxyPassWenn Vielleicht gibt es die name von einem RPM das das Fragment installiert.
Quote from: ""
PS: Dafür das du nicht aus Deutschland kommst, ist dein deutsch ziemlich gut :!:
Danke! Übung macht Meister!
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Toppi

Gelöst - Problem mit der httpd.conf
« Reply #12 on: April 16, 2007, 09:51:44 PM »
Code: [Select]
[root@server ~]# rpm -q --whatrequires /etc/e-smith/templates/etc/httpd/conf/httpd.conf/VirtualHosts/50ProxyPass
kein Paket verlangt /etc/e-smith/templates/etc/httpd/conf/httpd.conf/VirtualHosts/50ProxyPass


Spookie, oder? Wäre ja auch warscheinlich zu einfach gewesen  :wink:

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Gelöst - Problem mit der httpd.conf
« Reply #13 on: April 16, 2007, 09:59:17 PM »
Quote from: "Toppi"
Code: [Select]
[root@server ~]# rpm -q --whatrequires /etc/e-smith/templates/etc/httpd/conf/httpd.conf/VirtualHosts/50ProxyPass
kein Paket verlangt /etc/e-smith/templates/etc/httpd/conf/httpd.conf/VirtualHosts/50ProxyPass


Spookie, oder? Wäre ja auch warscheinlich zu einfach gewesen  :wink:
Dan ist es wahrscheinlich besser das template Fragment zu löschen wie du gemacht hast, weil das Original woher er kam nicht mehr auf deinem System ist.
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)