[Eisfair_dev] [e1] Asterisk unstable fue Kernel 2.6.32-eisfair-1{-SMP}

Stefan Welte post at stefan-welte.de
Mi Apr 11 00:09:42 CEST 2012


Am 09.04.2012 19:46, schrieb Holger Bruenjes:
> Am 2012-04-08 11:38, schrieb Benjamin Heide:
>> ich habe mal versucht das Asterisk zu installieren.
> > nach dem bearbeiten der config erhalte ich massenweise Fehlermeldungen.
>> ...
>>
>> Notice: Undefined index: ASTERISK_REDIRECT in
>> /var/lib/asterisk/config/configParsing.php on line 60
>
> Das habe ich noch nicht loesen koennen.

Ich bekam bereits bei der Installation von Asterisk bzw. dem 
php5_ccpp-update Fehler der folgenden Art:

Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to 
allocate 77824 bytes) in /usr/share/php5/PEAR/PackageFile/v1.php on line 
1483
Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to 
allocate 72573 bytes) in /usr/share/php5/PEAR/Task/Replace.php on line 171

Der komplette Installationsbericht bis zum Installationsbeginn von 
Asterisk 1.3.0:

   Status:    unstable
   Section:   communication
   This package includes the following features of Asterisk:
   - connecting ISDN telephone devices to the Asterisk
   [CAPI/SIP(VoIP) --- Asterisk --- CAPI/SIP(VoIP)]
   - voicebox
   - execute a command on ring
   - call forwarding by time
   - callthrough

   Optional hard-/software:
   - ISDN card with HFC-S chipset
   - AVM ISDN Card
   - SIP-Account (e.g. sipgate, GMX, web.de, QSC, T-Online, etc.)

   Asterisk binaries and kernel modules created by bristuff-0.3.0-PRE-1z-d.
   Asterisk - 1.2.40

This package requires the following packages:

   php5_ccpp >= 1.1.1 - PHP5: CGI - CLI - PEAR - PECL
Package: php5_ccpp

   URL:       http://www.pack-eis.de/dl.php?l=10699/php5_ccpp.tar.bz2

   Name:      php5_ccpp
   Package:   PHP5: CGI - CLI - PEAR - PECL
   Version:   1.1.1
   Date:      2011-02-02
   Space:     27 MB required
   Author:    the eisfair team, team(at)eisfair(dot)org
   Status:    testing
   Section:   interpreter
   Internal Program Version: php-5.3.3

   This is the cammand line version of PHP5.
   This package includes the PECL and PEAR system of PHP5.
   The binary can called like:
   CLI:  /usr/bin/php
   PECL: /usr/bin/pecl
   PEAR: /usr/bin/pear
   Source: http://www.php.net/

The required package is no longer available.

   libpcre5-0 >= 1.0.3 install the libpcre package please > since 1.7.1

Install (y=yes, n=no, a=all)? y
--2012-04-07 12:48:43-- 
http://www.pack-eis.de/dl.php?l=10699/php5_ccpp.tar.bz2
Aufl¦sen des Hostnamen ¦proxy.meinnetz.homeip.net 
(proxy.meinnetz.homeip.net)¦... 192.168.178.41
Verbindungsaufbau zu proxy.meinnetz.homeip.net 
(proxy.meinnetz.homeip.net)|192.168.178.41|:3128... verbunden.
Proxy-Anforderung gesendet, warte auf Antwort... 302 Moved Temporarily
Platz: 
http://download.eisfair.org/pack-eis/download/10699/php5_ccpp.tar.bz2[folge]
--2012-04-07 12:48:44-- 
http://download.eisfair.org/pack-eis/download/10699/php5_ccpp.tar.bz2
Wiederverwendung der bestehenden Verbindung zu 
proxy.meinnetz.homeip.net:3128.
Proxy-Anforderung gesendet, warte auf Antwort... 200 OK
L¦nge: 4903824 (4,7M) [application/x-bzip2]
In ¦¦php5_ccpp.tar.bz2¦¦ speichern.

100%[====================================================================================>] 
4.903.824   1,13M/s   in 4,2s

2012-04-07 12:48:48 (1,11 MB/s) - ¦¦php5_ccpp.tar.bz2¦¦ gespeichert 
[4903824/4903824]

Please wait ...
   preinstalling php5_ccpp...
   installing php5_ccpp...
   Creating default PHP5-CGI-CLI-PEAR-PECL configuration...
Creating PHP5CCPP_CCPP configuration ...
config-set succeeded
   Installing default Pear packages...
   installing PEAR default packages...
Updating channel "pear.php.net"
Update of Channel "pear.php.net" succeeded
Updating channel "doc.php.net"
Update of Channel "doc.php.net" succeeded
Updating channel "pear.php.net"
Channel "pear.php.net" is up to date
Updating channel "pecl.php.net"
Update of Channel "pecl.php.net" succeeded
   installing: xml_rpc2
pear/HTTP_Request2 requires PEAR Installer (version >= 1.9.2), installed 
version is 1.9.1
pear/HTTP_Request2 requires package "pear/PEAR" (version >= 1.9.2), 
installed version is 1.9.0
pear/XML_RPC2 requires package "pear/HTTP_Request2" (version >= 0.6.0)
downloading Cache_Lite-1.7.12.tgz ...
Starting to download Cache_Lite-1.7.12.tgz (30,469 bytes)
.........done: 30,469 bytes
downloading Net_URL2-2.0.0.tgz ...
Starting to download Net_URL2-2.0.0.tgz (11,325 bytes)
...done: 11,325 bytes
install ok: channel://pear.php.net/Cache_Lite-1.7.12
install ok: channel://pear.php.net/Net_URL2-2.0.0
   installing: http
downloading HTTP-1.4.1.tgz ...
Starting to download HTTP-1.4.1.tgz (8,635 bytes)
.....done: 8,635 bytes
downloading PEAR-1.9.4.tgz ...
Starting to download PEAR-1.9.4.tgz (296,332 bytes)
...done: 296,332 bytes
downloading Archive_Tar-1.3.9.tgz ...
Starting to download Archive_Tar-1.3.9.tgz (18,123 bytes)
...done: 18,123 bytes
downloading Structures_Graph-1.0.4.tgz ...
Starting to download Structures_Graph-1.0.4.tgz (30,318 bytes)
...done: 30,318 bytes
downloading Console_Getopt-1.3.1.tgz ...
Starting to download Console_Getopt-1.3.1.tgz (4,471 bytes)
...done: 4,471 bytes
install ok: channel://pear.php.net/Archive_Tar-1.3.9
install ok: channel://pear.php.net/Structures_Graph-1.0.4
install ok: channel://pear.php.net/Console_Getopt-1.3.1

Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to 
allocate 77824 bytes) in /usr/share/php5/PEAR/PackageFile/v1.php on line 
1483
   installing: mail
downloading Mail-1.2.0.tgz ...
Starting to download Mail-1.2.0.tgz (23,214 bytes)
........done: 23,214 bytes
downloading Net_SMTP-1.6.1.tgz ...
Starting to download Net_SMTP-1.6.1.tgz (13,164 bytes)
...done: 13,164 bytes
downloading Net_Socket-1.0.10.tgz ...
Starting to download Net_Socket-1.0.10.tgz (5,429 bytes)
...done: 5,429 bytes
downloading Auth_SASL-1.0.6.tgz ...
Starting to download Auth_SASL-1.0.6.tgz (9,119 bytes)
...done: 9,119 bytes
install ok: channel://pear.php.net/Mail-1.2.0
install ok: channel://pear.php.net/Net_Socket-1.0.10
install ok: channel://pear.php.net/Auth_SASL-1.0.6
install ok: channel://pear.php.net/Net_SMTP-1.6.1
   installing: html_template_it
downloading HTML_Template_IT-1.3.0.tgz ...
Starting to download HTML_Template_IT-1.3.0.tgz (23,309 bytes)
........done: 23,309 bytes
install ok: channel://pear.php.net/HTML_Template_IT-1.3.0
WARNING: "pear/HTTP_Request" is deprecated in favor of "pear/HTTP_Request2"
WARNING: "pear/Net_URL" is deprecated in favor of "pear/Net_URL2"
downloading SOAP-0.12.0.tgz ...
Starting to download SOAP-0.12.0.tgz (71,233 bytes)
.................done: 71,233 bytes
downloading HTTP_Request-1.4.4.tgz ...
Starting to download HTTP_Request-1.4.4.tgz (17,109 bytes)
...done: 17,109 bytes
downloading Mail_Mime-1.8.3.tgz ...
Starting to download Mail_Mime-1.8.3.tgz (30,929 bytes)
...done: 30,929 bytes
downloading Net_DIME-1.0.2.tgz ...
Starting to download Net_DIME-1.0.2.tgz (7,581 bytes)
...done: 7,581 bytes
downloading Net_URL-1.0.15.tgz ...
Starting to download Net_URL-1.0.15.tgz (6,303 bytes)
...done: 6,303 bytes
install ok: channel://pear.php.net/Mail_Mime-1.8.3
install ok: channel://pear.php.net/Net_DIME-1.0.2
install ok: channel://pear.php.net/Net_URL-1.0.15
install ok: channel://pear.php.net/HTTP_Request-1.4.4
install ok: channel://pear.php.net/SOAP-0.12.0
WARNING: "pear/DB" is deprecated in favor of "pear/MDB2"
downloading Net_Vpopmaild-0.3.2.tgz ...
Starting to download Net_Vpopmaild-0.3.2.tgz (20,484 bytes)
........done: 20,484 bytes
downloading Log-1.12.7.tgz ...
Starting to download Log-1.12.7.tgz (46,898 bytes)
...done: 46,898 bytes
downloading DB-1.7.14.tgz ...
Starting to download DB-1.7.14.tgz (133,103 bytes)
...done: 133,103 bytes
downloading MDB2-2.4.1.tgz ...
Starting to download MDB2-2.4.1.tgz (119,790 bytes)
...done: 119,790 bytes
install ok: channel://pear.php.net/Log-1.12.7

Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to 
allocate 72573 bytes) in /usr/share/php5/PEAR/Task/Replace.php on line 171
downloading vpopmail-0.2.tgz ...
Starting to download vpopmail-0.2.tgz (8,970 bytes)
.....done: 8,970 bytes
install ok: channel://pear.php.net/vpopmail-0.2
WARNING: "pear/DB" is deprecated in favor of "pear/MDB2"
WARNING: "pear/MDB" is deprecated in favor of "pear/MDB2"
WARNING: "pear/HTTP_Client" is deprecated in favor of "pear/HTTP_Request2"
Failed to download pear/Net_Vpopmaild within preferred state "stable", 
latest release is version 0.3.2, stability "beta", use 
"channel://pear.php.net/Net_Vpopmaild-0.3.2" to install
Failed to download pecl/kadm5 within preferred state "stable", latest 
release is version 0.2.3, stability "alpha", use 
"channel://pecl.php.net/kadm5-0.2.3" to install
WARNING: "pear/XML_Parser" is deprecated in favor of "pear/XML_Parser2"
WARNING: "pear/HTTP_Request" is deprecated in favor of "pear/HTTP_Request2"
pear/Auth can optionally use package "pear/Net_Vpopmaild" (version >= 0.1.0)
pear/Auth can optionally use package "pecl/kadm5" (version >= 0.2.3)
pear/Auth can optionally use PHP extension "saprfc"
downloading Auth-1.6.4.tgz ...
Starting to download Auth-1.6.4.tgz (56,048 bytes)
.............done: 56,048 bytes
downloading File_Passwd-1.1.7.tgz ...
Starting to download File_Passwd-1.1.7.tgz (24,140 bytes)
...done: 24,140 bytes
downloading Net_POP3-1.3.8.tgz ...
Starting to download Net_POP3-1.3.8.tgz (9,657 bytes)
...done: 9,657 bytes
downloading DB-1.7.14.tgz ...
Starting to download DB-1.7.14.tgz (133,103 bytes)
...done: 133,103 bytes

Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to 
allocate 4 bytes) in /usr/share/php5/PEAR/XMLParser.php on line 236
Will upgrade channel://pear.php.net/pear
Will upgrade channel://pear.php.net/xml_rpc
Will upgrade channel://pear.php.net/http
Will upgrade channel://pear.php.net/soap
WARNING: "pear/XML_RPC" is deprecated in favor of "pear/XML_RPC2"
WARNING: "pear/HTTP_Request" is deprecated in favor of "pear/HTTP_Request2"
downloading PEAR-1.9.4.tgz ...
Starting to download PEAR-1.9.4.tgz (296,332 bytes)
.............................................................done: 
296,332 bytes
downloading XML_RPC-1.5.5.tgz ...
Starting to download XML_RPC-1.5.5.tgz (31,862 bytes)
...done: 31,862 bytes
downloading HTTP-1.4.1.tgz ...
Starting to download HTTP-1.4.1.tgz (8,635 bytes)
...done: 8,635 bytes
downloading SOAP-0.13.0.tgz ...
Starting to download SOAP-0.13.0.tgz (85,945 bytes)
...done: 85,945 bytes

Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to 
allocate 32 bytes) in /usr/share/php5/PEAR/Registry.php on line 1145
--2012-04-07 12:50:04-- 
http://www.pack-eis.de/dl.php?l=12243/asterisk.tar.bz2
Aufl¦sen des Hostnamen ¦proxy.meinnetz.homeip.net 
(proxy.meinnetz.homeip.net)¦... 192.168.178.41
Verbindungsaufbau zu proxy.meinnetz.homeip.net 
(proxy.meinnetz.homeip.net)|192.168.178.41|:3128... verbunden.
Proxy-Anforderung gesendet, warte auf Antwort... 302 Moved Temporarily
Platz: 
http://download.eisfair.org/pack-eis/download/12243/asterisk.tar.bz2[folge]
--2012-04-07 12:50:04-- 
http://download.eisfair.org/pack-eis/download/12243/asterisk.tar.bz2
Wiederverwendung der bestehenden Verbindung zu 
proxy.meinnetz.homeip.net:3128.
Proxy-Anforderung gesendet, warte auf Antwort... 200 OK
L¦nge: 2736397 (2,6M) [application/x-bzip2]
In ¦¦asterisk.tar.bz2¦¦ speichern.

100%[====================================================================================>] 
2.736.397   1,10M/s   in 2,4s

2012-04-07 12:50:06 (1,10 MB/s) - ¦¦asterisk.tar.bz2¦¦ gespeichert 
[2736397/2736397]

Please wait ...
ATTENTION: During the installation proccess the Asterisk call system 
won't be available.
            Asterisk will shutdown after pressing ENTER!
Press ENTER to continue



Bei der Konfiguration von Asterisk 1.3.0:

... "viele weitere Zeilen dieser Notice-Zeilen, der Anfang fehlt, da der 
Putty-Puffer zu klein war und ich kein log habe" ...

Notice: Undefined variable: slash in 
/var/lib/asterisk/config/writeFunc.php on line 49

Notice: Undefined variable: slash in 
/var/lib/asterisk/config/writeFunc.php on line 49

Notice: Undefined variable: wcContent in 
/var/lib/asterisk/config/wcUnistim.php on line 17

Notice: Undefined variable: wcContent in 
/var/lib/asterisk/config/wcManager.php on line 44

Notice: Undefined variable: wcContent in 
/var/lib/asterisk/config/wcSkinny.php on line 16

Notice: Undefined variable: wcContent in 
/var/lib/asterisk/config/wcCapi.php on line 16

Notice: Undefined offset: 1 in /var/lib/asterisk/config/writeFunc.php on 
line 351

Notice: Undefined index: REDIRECT in 
/var/lib/asterisk/config/writeFunc.php on line 358

Notice: Undefined offset: 1 in /var/lib/asterisk/config/writeFunc.php on 
line 351

Notice: Undefined index: REDIRECT in 
/var/lib/asterisk/config/writeFunc.php on line 358

Notice: Undefined offset: 1 in /var/lib/asterisk/config/writeFunc.php on 
line 351

Notice: Undefined index: REDIRECT in 
/var/lib/asterisk/config/writeFunc.php on line 358

Notice: Undefined offset: 1 in /var/lib/asterisk/config/writeFunc.php on 
line 351

Notice: Undefined index: REDIRECT in 
/var/lib/asterisk/config/writeFunc.php on line 358

Notice: Undefined offset: 1 in /var/lib/asterisk/config/writeFunc.php on 
line 351

Notice: Undefined index: REDIRECT in 
/var/lib/asterisk/config/writeFunc.php on line 358

Notice: Undefined offset: 1 in /var/lib/asterisk/config/writeFunc.php on 
line 351

Notice: Undefined index: REDIRECT in 
/var/lib/asterisk/config/writeFunc.php on line 358

Notice: Undefined offset: 1 in /var/lib/asterisk/config/writeFunc.php on 
line 351

Notice: Undefined index: REDIRECT in 
/var/lib/asterisk/config/writeFunc.php on line 358

Notice: Undefined variable: wcContent in 
/var/lib/asterisk/config/wcIax.php on line 17

Notice: Undefined variable: wcContent in 
/var/lib/asterisk/config/wcSip.php on line 18

Notice: Undefined index: ASTERISK_VBOX in 
/var/lib/asterisk/config/wcSip.php on line 99

Notice: Undefined index: ASTERISK_VBOX in 
/var/lib/asterisk/config/wcSip.php on line 99

Notice: Undefined index: ASTERISK_VBOX in 
/var/lib/asterisk/config/wcSip.php on line 99

Notice: Undefined index: ASTERISK_VBOX in 
/var/lib/asterisk/config/wcSip.php on line 99

Notice: Undefined index: ASTERISK_VBOX in 
/var/lib/asterisk/config/wcSip.php on line 99

Notice: Undefined index: ASTERISK_VBOX in 
/var/lib/asterisk/config/wcSip.php on line 99

Notice: Undefined index: ASTERISK_VBOX in 
/var/lib/asterisk/config/wcSip.php on line 99

Notice: Undefined variable: wcContent in 
/var/lib/asterisk/config/wcRtp.php on line 18
.
Unloading Asterisk modules ........
Loading Asterisk modules ......
Activating Channels on HFC-S interface ...
Starting Asterisk ...
Starting Asterisk Webinterface ...
root at eis2:~

Der Asterisk lief danach nicht, weitere Konfigurationsübernahmen 
lieferten dieselben Zeilen.
Da es ein Produktivsystem ist (bin leider gerade nicht am Standort mit 
meinem Testsystem) habe ich 1.1.9 zurückgespielt, aber dieselben 
Notice-Fehler und der Asterisk startete nicht.
Danach noch das php5_ccpp deaktualisiert (von 1.1.1 auf vermutlich 
1.0.0) und jetzt startet Asterisk wieder.

Allerdings kann ich in der Liste der installierten Pakete das php5_ccpp 
nicht finden, dort ist nur php5_cli in der Version 1.0.0. *grübel*

Es scheint also am php5_ccpp v1.1.1 zu liegen.

Falls nötig, wie kann ich helfen, die Fehlerursache zu finden?

Gruß,
Stefan


Mehr Informationen über die Mailingliste Eisfair_dev