Автор Тема: Установка Asterisk - asterisk is dead, but stale PID file exists  (Прочитано 1945 раз)

Оффлайн ApB

  • Давно тут
  • **
  • Сообщений: 328
Приветствую!

Попытался поставить asterisk на сизиф, но при попытке запуска ...

Установка:
apt-get install alterator-asterisk-gateway asterisk13-chan_sip
Далее было описано в Лабораторных работах, описанных Salomatin, предпологалось:
service asterisk restart( в общем-то на текущий момент уже aster dead)
за тем
asterisk -rполучаю
Unable to connect to remote asterisk (does /var/run/asterisk/asterisk.ctl exist?)проверяю /var/run/asterisk
[root@daikoku asterisk]# ls -la
итого 12
drwxr-s--T  2 _asterisk pbxadmin 4096 июл 31 23:25 .
drwxr-xr-x 21 root      root     4096 июл 31 23:24 ..
srw-rw----  1 _asterisk pbxadmin    0 июл 31 23:25 asterisk.ctl
-rw-r--r--  1 _asterisk pbxadmin    6 июл 31 23:25 asterisk.pid
лог астериска:
[Jul 31 23:54:07] Asterisk UNKNOWN__and_probably_unsupported built by builder @ localhost.localdomain on a x86_64 running Linux on 2015-04-06 12:40:22 UTC
[Jul 31 23:54:07] ERROR[11827] config_options.c: Unable to load config file 'features.conf'
[Jul 31 23:54:07] NOTICE[11827] features_config.c: Could not load features config; using defaults
[Jul 31 23:54:07] ERROR[11827] config_options.c: Unable to load config file 'acl.conf'
[Jul 31 23:54:07] NOTICE[11827] cdr.c: CDR simple logging enabled.
[Jul 31 23:54:07] WARNING[11827] udptl.c: t38faxudpec in udptl.conf is no longer supported; use the t38pt_udptl configuration option in sip.conf instead.
[Jul 31 23:54:07] WARNING[11827] udptl.c: t38faxmaxdatagram in udptl.conf is no longer supported; value is now supplied by T.38 applications.
[Jul 31 23:54:07] ERROR[11827] config_options.c: Unable to load config file 'cel.conf'
[Jul 31 23:54:07] NOTICE[11827] cel.c: Failed to process CEL configuration; using defaults
[Jul 31 23:54:07] NOTICE[11827] manager.c: Unable to open AMI configuration manager.conf, or configuration is invalid.
[Jul 31 23:54:07] WARNING[11827] ccss.c: Could not find valid ccss.conf file. Using cc_max_requests default
[Jul 31 23:54:07] WARNING[11827] ccss.c: Could not find valid ccss.conf file. Using cc_[state]_devstate defaults
[Jul 31 23:54:07] ERROR[11827] sounds_index.c: Failed to open /var/lib/asterisk/sounds
Понятно, что лог не пуст, но вроде ошибки не на этапе настройки ...

Однако:

[root@daikoku asterisk]# asterisk -vvvvgc
Asterisk UNKNOWN__and_probably_unsupported, Copyright (C) 1999 - 2013 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
Running as user '_asterisk'
Running under group '_asterisk'
[ Initializing Custom Configuration Options ]
  == Parsing '/etc/asterisk/asterisk.conf': Found
XSLT support not found. XML documentation may be incomplete.
  == Sorcery registered wizard 'bucket'
  == Sorcery registered wizard 'bucket_file'
  == Parsing '/etc/asterisk/logger.conf': Found
  == Manager registered action DBGet
  == Manager registered action DBPut
  == Manager registered action DBDel
  == Manager registered action DBDelTree
  == Registered custom function 'MESSAGE'
  == Registered custom function 'MESSAGE_DATA'
  == Registered application 'MessageSend'
  == Manager registered action MessageSend
  == Manager registered action DataGet
  == Registered channel type 'Surrogate' (Surrogate channel used to pull channel from an application)
  == Parsing '/etc/asterisk/codecs.conf': Found
  == Manager registered action BridgeTechnologyList
  == Manager registered action BridgeTechnologySuspend
  == Manager registered action BridgeTechnologyUnsuspend
 Asterisk Dynamic Loader Starting:
  == Parsing '/etc/asterisk/modules.conf': Found
[Aug  1 00:03:26] ERROR[11878]: config_options.c:641 aco_process_config: Unable to load config file 'features.conf'
[Aug  1 00:03:26] NOTICE[11878]: features_config.c:1801 load_config: Could not load features config; using defaults
  == Registered custom function 'FEATURE'
  == Registered custom function 'FEATUREMAP'
  == Registered application 'Bridge'
  == Manager registered action Bridge
[Aug  1 00:03:26] ERROR[11878]: config_options.c:641 aco_process_config: Unable to load config file 'acl.conf'
  == Parsing '/etc/asterisk/indications.conf': Found
    -- Registered indication country 'cl'
    -- Registered indication country 'tw'
    -- Registered indication country 'us'
    -- Registered indication country 'au'
    -- Registered indication country 'fr'
    -- Registered indication country 'nl'
    -- Registered indication country 'uk'
    -- Registered indication country 'fi'
    -- Registered indication country 'no'
    -- Registered indication country 'br'
    -- Registered indication country 'za'
    -- Registered indication country 'it'
    -- Registered indication country 'us-old'
    -- Registered indication country 'gr'
    -- Registered indication country 'ru'
    -- Registered indication country 'nz'
    -- Registered indication country 'sg'
    -- Registered indication country 'hu'
    -- Registered indication country 'lt'
    -- Registered indication country 'pl'
    -- Registered indication country 'pt'
    -- Registered indication country 'ee'
    -- Registered indication country 'mx'
    -- Setting default indication country to 'ru'
  == Parsing '/etc/asterisk/cdr.conf': Found
[Aug  1 00:03:26] NOTICE[11878]: cdr.c:4141 cdr_toggle_runtime_options: CDR simple logging enabled.
  == Parsing '/etc/asterisk/udptl.conf': Found
[Aug  1 00:03:26] WARNING[11878]: udptl.c:1298 removed_options_handler: t38faxudpec in udptl.conf is no longer supported; use the t38pt_udptl configuration option in sip.conf instead.
[Aug  1 00:03:26] WARNING[11878]: udptl.c:1300 removed_options_handler: t38faxmaxdatagram in udptl.conf is no longer supported; value is now supplied by T.38 applications.
 Asterisk PBX Core Initializing
  == Registering builtin applications and functions:
  == Registered custom function 'EXCEPTION'
  == Registered custom function 'TESTTIME'
  == Registered application 'Answer'
  == Registered application 'BackGround'
  == Registered application 'Busy'
  == Registered application 'Congestion'
  == Registered application 'ExecIfTime'
  == Registered application 'Goto'
  == Registered application 'GotoIf'
  == Registered application 'GotoIfTime'
  == Registered application 'ImportVar'
  == Registered application 'Hangup'
  == Registered application 'Incomplete'
  == Registered application 'NoOp'
  == Registered application 'Proceeding'
  == Registered application 'Progress'
  == Registered application 'RaiseException'
  == Registered application 'Ringing'
  == Registered application 'SayAlpha'
  == Registered application 'SayAlphaCase'
  == Registered application 'SayDigits'
  == Registered application 'SayNumber'
  == Registered application 'SayPhonetic'
  == Registered application 'Set'
  == Registered application 'MSet'
  == Registered application 'SetAMAFlags'
  == Registered application 'Wait'
  == Registered application 'WaitExten'
  == Manager registered action ShowDialPlan
  == Registered channel type 'Local' (Local Proxy Channel Driver)
  == Manager registered action LocalOptimizeAway
[Aug  1 00:03:26] ERROR[11878]: config_options.c:641 aco_process_config: Unable to load config file 'cel.conf'
[Aug  1 00:03:26] NOTICE[11878]: cel.c:1749 ast_cel_engine_init: Failed to process CEL configuration; using defaults
  == Manager registered action Ping
  == Manager registered action Events
  == Manager registered action Logoff
  == Manager registered action Login
  == Manager registered action Challenge
  == Manager registered action Hangup
  == Manager registered action Status
  == Manager registered action Setvar
  == Manager registered action Getvar
  == Manager registered action GetConfig
  == Manager registered action GetConfigJSON
  == Manager registered action UpdateConfig
  == Manager registered action CreateConfig
  == Manager registered action ListCategories
  == Manager registered action Redirect
  == Manager registered action Atxfer
  == Manager registered action Originate
  == Manager registered action Command
  == Manager registered action ExtensionState
  == Manager registered action PresenceState
  == Manager registered action AbsoluteTimeout
  == Manager registered action MailboxStatus
  == Manager registered action MailboxCount
  == Manager registered action ListCommands
  == Manager registered action SendText
  == Manager registered action UserEvent
  == Manager registered action WaitEvent
  == Manager registered action CoreSettings
  == Manager registered action CoreStatus
  == Manager registered action Reload
  == Manager registered action LoggerRotate
  == Manager registered action CoreShowChannels
  == Manager registered action ModuleLoad
  == Manager registered action ModuleCheck
  == Manager registered action AOCMessage
  == Manager registered action Filter
  == Manager registered action BlindTransfer
  == Registered custom function 'AMI_CLIENT'
[Aug  1 00:03:26] NOTICE[11878]: manager.c:8199 __init_manager: Unable to open AMI configuration manager.conf, or configuration is invalid.
  == Registered application 'CallCompletionRequest'
  == Registered application 'CallCompletionCancel'
[Aug  1 00:03:26] WARNING[11878]: ccss.c:4376 initialize_cc_max_requests: Could not find valid ccss.conf file. Using cc_max_requests default
[Aug  1 00:03:26] WARNING[11878]: ccss.c:4433 initialize_cc_devstate_map: Could not find valid ccss.conf file. Using cc_[state]_devstate defaults
[Aug  1 00:03:26] ERROR[11878]: sounds_index.c:71 get_languages: Failed to open /var/lib/asterisk/sounds
В части:
Running as user '_asterisk'
Running under group '_asterisk'

меняю группу на pbxadmin - та же ситуация.

В соответствии с логом - там вроде дефолтовые конфиги прогрузились...

Где искать ответ?

Оффлайн Геннадий К

  • Завсегдатай
  • *
  • Сообщений: 11
Поставьте Elastix 2.5.0. :-) и не мучайтесь.

Оффлайн ApB

  • Давно тут
  • **
  • Сообщений: 328
Нет ... надо было просто мне недалёкому ПРОЧИТАТЬ ОПИСАНИЕ к пакету ... и тут всё стало ясно.

При установке не надо было ставить 13 астериск, а просто 11 - и уперЁд ... на танке ... усё взлетело в 2 счёта =)

Оффлайн across

  • Завсегдатай
  • *
  • Сообщений: 14
как обстоят дела на сегодняшний день с 13й версией?
Взялся устанавливать и точно такие же ошибки, наставите на путь истинный ?!

Оффлайн ApB

  • Давно тут
  • **
  • Сообщений: 328
ну ... мой путь упёрся в итоге в установку 11 версии ... в итоге. По причине того, что в описании к 13 написано, что "неподдерживаемая и ..."

Оффлайн across

  • Завсегдатай
  • *
  • Сообщений: 14
итог такой: отключаете автозагрузку модулей - взлетает.
ищем какой бажный и почему, возвращаем автозагрузку модулей (прописываем какеи точно нужно подгружать) в modules.conf

Оффлайн kln2004

  • Завсегдатай
  • *
  • Сообщений: 19
Так будет когда нибудь 13 Asterisk работать в Альте или он в нём ни кому не нужен, заброшен, для Asterisk используют другие заточенные дистрибутивы?

Оффлайн asy

  • alt linux team
  • ***
  • Сообщений: 6 078
  • Sunny 273 RUS crew
Так будет когда нибудь 13 Asterisk работать в Альте или он в нём ни кому не нужен, заброшен, для Asterisk используют другие заточенные дистрибутивы?
Вам в рассылку. Скорее всего в Sisyphus: mithraen@ тут не появляется. Хотя и в рассылках он в начале года что-то писал последний раз.
« Последнее редактирование: 18.10.2017 10:19:08 от asy »