PDA

Voir la version complète : freepbx - Reload failed because retrieve_conf encountered an error: 1



acognard
06/11/2014, 22h20
bonsoir,
en voulant cliquer sur le bouton apply config j'ai le message suivant :
Reload failed because retrieve_conf encountered an error: 1

exit: 1
[FATAL] Unable to connect to Asterisk Manager from /var/lib/asterisk/bin/retrieve_conf, aborting

1 error(s) occurred, you should view the notification log on the dashboard or main screen to check for more details.

impossible de comprendre ce qui se passe. Auriez vous une idée svp. Merci d'avance.
Arnaud

tanguyd
06/11/2014, 22h36
Bonjour

S'agit il d'une installation neuve qui n'a jamais marché ou cela est il venu subitement ?

acognard
07/11/2014, 00h01
bonsoir

Bonjour

S'agit il d'une installation neuve qui n'a jamais marché ou cela est il venu subitement ?

oui, ca a fonctionné, mais j'ai bidouillé (via ihm) pour upgrader (ca commence a dater, je ne me rappelle plus trop).
Depuis, impossible d'avancer.

je peux tout réinstaller, mais j'aime bien comprendre.

ci après le mail que je recois au quotidien, ca peut peut etre aider.

UPDATE NOTICE: There are 19 modules available for online upgrades
asteriskinfo 12.0.1 (current: 2.11.0.89)
backup 12.0.8 (current: 2.11.0.22)
callwaiting 12.0.3 (current: 2.11.0.4)
cdr 12.0.5 (current: 2.11.0.11)
conferences 12.0.8 (current: 2.11.0.6)
core 12.0.3 (current: 12.0.1rc3)
dashboard 12.0.20 (current: 2.11.0.5)
featurecodeadmin 12.0.0 (current: 2.11.0.2)
framework 12.0.9 (current: 12.0.1rc14)
fw_ari 12.0.7 (current: 2.11.1.4)
logfiles 12.0.6 (current: 2.11.1.3)
motif 12.0.3 (current: 2.11.13)
music 12.0.1 (current: 2.11.0.3)
presencestate 12.0.15 (current: 2.11.2)
queues 12.0.11 (current: 2.11.0.26)
recordings 12.0.3 (current: 3.4.0.3)
ringgroups 12.0.1 (current: 2.11.0.6)
sipsettings 12.0.4 (current: 2.11.0.9)
voicemail 12.0.20 (current: 2.11.1.6)

Merci.
Arnaud

fastm3
07/11/2014, 17h38
Ok , tu as upgradé vers la 12 , peut etre la beta. Je me souviens plus mais j'ai eu du mal aussi. En fait, les install mettent bcp plus de temps et tu as peut etre interrompu en cours d'install d'un module.
Ca peut etre plein de choses mais tu resoudras plus facilement ce type de probleme en ligne de commande sous bash.

La le script n'arrive plus a acceder au manager d'asterisk.

Commande deja par;

amportal stop
( attente quelques secondes )

amportal start
puis

amportal a r

Soit c'est bon, soit tu auras deja un message plus clair.

Si ca marche pas

amportal a s

Si toujours pas

amportal a ma upgradeall

Et apres, tu reviens faire un point.

Fastm3

fastm3
07/11/2014, 17h41
Je viens de voir que tu as une release candidate.

Commence plutot donc par

amportal a ma upgradeall
Et ensuite les autres commandes.
Fastm3.

acognard
07/11/2014, 18h03
ok, merci, je regarde ca ce soir !
Arnaud

acognard
08/11/2014, 01h28
re, merci deja pour ton aide.
voici la trace


# amportal a ma upgradeall

Please wait...

sh: 1: asterisk: not found
no repos specified, using: [standard] from last GUI settings

Upgrading: asteriskinfo, backup, callwaiting, cdr, conferences, core, dashboard, featurecodeadmin, framework, logfiles, motif, music, presencestate, queues, recordings, ringgroups , sipsettings, voicemail
Upgrading asteriskinfo..
Downloading 29293 of 29293 (100%)

Untaring..Done
Module asteriskinfo successfully downloaded
The following error(s) occurred:
- Requires engine asterisk, you have: ERROR-UNABLE-TO-PARSE 0
Upgrading backup..
Downloading 172339 of 172339 (100%)

Untaring..Done
Module backup successfully downloaded
Module backup successfully installed
Upgrading callwaiting..
Downloading 22725 of 22725 (100%)

Untaring..Done
Module callwaiting successfully downloaded
Module callwaiting successfully installed
Upgrading cdr..
Downloading 185502 of 185502 (100%)

Untaring..Done
Module cdr successfully downloaded
Checking if field did is present in cdr table..
did field already present.
Checking if field recordingfile is present in cdr table..
recordingfile field already present.
Checking if field cnum is present in cdr table..
cnum field already present.
Checking if field cnam is present in cdr table..
cnam field already present.
Checking if field outbound_cnum is present in cdr table..
outbound_cnum field already present.
Checking if field outbound_cnam is present in cdr table..
outbound_cnam field already present.
Checking if field dst_cnam is present in cdr table..
dst_cnam field already present.
Creating cel if needed..OK
Module cdr successfully installed
Upgrading conferences..
Downloading 63020 of 63020 (100%)

Untaring..Done
Module conferences successfully downloaded
Checking if music field present..already present
Checking if recordings need migration..already migrated
Checking for users field..already present
Module conferences successfully installed
Upgrading core..
Downloading 1031481 of 1031481 (100%)

Untaring..Done
Module core successfully downloaded
The following error(s) occurred:
- FreePBX version 12.0.1rc16 or higher is required, you have 12.0.1rc14
Upgrading dashboard..
Downloading 347647 of 347647 (100%)

Untaring..Done
Module dashboard successfully downloaded
The following error(s) occurred:
- The Module Named "<strong>Core</strong>" is required, but yours is disabled because it needs to be upgraded. Please upgrade <strong>Core</strong> first, and then try again.
Upgrading featurecodeadmin..
Downloading 16026 of 16026 (100%)

Untaring..Done
Module featurecodeadmin successfully downloaded
Module featurecodeadmin successfully installed
Upgrading framework..
Downloading 4427604 of 4427604 (100%)

Untaring..Done
Module framework successfully downloaded
installing files to /var/www/html..done
installing files to /var/lib/asterisk/bin..done
installing files to /var/lib/asterisk/agi-bin..done
Checking for upgrades..No further upgrades necessary
framework file install done, removing packages from module
file/directory: /var/www/html/admin/modules/framework/amp_conf removed successfully
file/directory: /var/www/html/admin/modules/framework/upgrades removed successfully
file/directory: /var/www/html/admin/modules/framework/libfreepbx.install.php removed successfully
Module framework successfully installed
Upgrading logfiles..
Downloading 33572 of 33572 (100%)

Untaring..Done
Module logfiles successfully downloaded
Module logfiles successfully installed
Upgrading motif..
Downloading 24125 of 24125 (100%)

Untaring..Done
Module motif successfully downloaded
The following error(s) occurred:
- <strong>Asterisk SIP Settings</strong> module version 12.0 or higher is required, you have 2.11.0.9
- Requires engine asterisk (>= 11), you have: ERROR-UNABLE-TO-PARSE 0
Upgrading music..
Downloading 47685 of 47685 (100%)

Untaring..Done
Module music successfully downloaded
Module music successfully installed
Upgrading presencestate..
Downloading 27795 of 27795 (100%)

Untaring..Done
Module presencestate successfully downloaded
Module presencestate successfully installed
Upgrading queues..
Downloading 285953 of 285953 (100%)

Untaring..Done
Module queues successfully downloaded
The following error(s) occurred:
- The Module Named "<strong>Core</strong>" is required, but yours is disabled because it needs to be upgraded. Please upgrade <strong>Core</strong> first, and then try again.
Upgrading recordings..
Downloading 78473 of 78473 (100%)

Untaring..Done
Module recordings successfully downloaded
checking for fcode field..already exists
checking for fcode_pass field..already exists
Module recordings successfully installed
Upgrading ringgroups..
Downloading 86151 of 86151 (100%)

Untaring..Done
Module ringgroups successfully downloaded
Checking if recordings need migration..already migrated
Module ringgroups successfully installed
Upgrading sipsettings..
Downloading 83681 of 83681 (100%)

Untaring..Done
Module sipsettings successfully downloaded
The following error(s) occurred:
- The Module Named "<strong>Core</strong>" is required, but yours is disabled because it needs to be upgraded. Please upgrade <strong>Core</strong> first, and then try again.
Upgrading voicemail..
Downloading 265650 of 265650 (100%)

Untaring..Done
Module voicemail successfully downloaded
The following error(s) occurred:
- The Module Named "<strong>Core</strong>" is required, but yours is disabled because it needs to be upgraded. Please upgrade <strong>Core</strong> first, and then try again.
All upgrades done!

SETTING FILE PERMISSIONS..............Done
Removing any dangling symlinks
Dangling symlinks removed
/var/lib/asterisk/bin/freepbx_engine: line 690: al: command not found
/var/lib/asterisk/bin/freepbx_engine: line 691: every: command not found
/var/lib/asterisk/bin/freepbx_engine: line 692: When: command not found
/var/lib/asterisk/bin/freepbx_engine: line 693: contexts: command not found
/var/lib/asterisk/bin/freepbx_engine: line 694: \033[1mma\033[0m:: command not found
/var/lib/asterisk/bin/freepbx_engine: line 694: \033[1mmodadmin\033[0m: command not found
/var/lib/asterisk/bin/freepbx_engine: line 701: unexpected EOF while looking for matching `''
/var/lib/asterisk/bin/freepbx_engine: line 726: syntax error: unexpected end of file



# amportal a ma upgradeall

Please wait...

no repos specified, using: [standard] from last GUI settings

Upgrading: voicemail
Upgrading voicemail..
Found module locally, verifying...Verified. Using Local

Untaring..Done
Module voicemail successfully downloaded
Detected Missing Dependency of: core 12.0.1alpha26
Downloading Missing Dependency of: core 12.0.1alpha26
Found module locally, verifying...Verified. Using Local

Untaring..Done
Module core successfully downloaded
Installing Missing Dependency of: core 12.0.1alpha26
Checking if directdids need migrating..already done
updating zap callgroup, pickupgroup..not needed
checking for delay_answer field ..already exists
checking for reversal field ..added
checking for pricid field ..already exists
Checking if trunk table migration required..not needed
Checking if privacy manager options exists..already exists
Checking for noanswer_cid field..already exists
Checking for busy_cid field..already exists
Checking for chanunavail_cid field..already exists
Checking for noanswer_dest field..already exists
Checking for busy_dest field..already exists
Checking for chanunavail_dest field..already exists
Checking for General Setting migrations..not needed
Deleting unused globals..done
Converting IAX notransfer to transfer if needed..updated 0000 records
deleting obsoleted record_in and record_out entries..ok
checking for dest field in outbound_routes..already exists
checking for continue field in trunks..already exists
upgrading any zap trunks to dahdi if foundok
Installed Missing Dependency of: core 12.0.1alpha26
Installing Missing Dependency of: core 12.0.1alpha26
Installed Missing Dependency of: core 12.0.1alpha26
Checking for General Setting migrations..not needed
checking if Voicemail Admin (vmailadmin) is installed..not installed, ok
Module voicemail successfully installed
All upgrades done!

SETTING FILE PERMISSIONS..............Done
Removing any dangling symlinks
Dangling symlinks removed




# amportal stop

Please wait...


STOPPING ASTERISK
Waiting for Asterisk to Stop Gracefully...
root@raspbx:~# amportal start

Please wait...

SETTING FILE PERMISSIONS..............Done
Removing any dangling symlinks
Dangling symlinks removed

STARTING ASTERISK
/var/lib/asterisk/bin/freepbx_engine: line 319: /usr/sbin/safe_asterisk: No such file or directory
Asterisk Started




# amportal a r

Please wait...

sh: 1: asterisk: not found
Error(s) have occured, the following is the retrieve_conf output:
exit: 1
[FATAL] Unable to connect to Asterisk Manager from /var/lib/asterisk/bin/retrieve_conf, aborting



~# amportal a s

Please wait...

sh: 1: -rx: not found
Manager ReSynced, restarting Asterisk

STOPPING ASTERISK
Waiting for Asterisk to Stop Gracefully...
SETTING FILE PERMISSIONS..............Done
Removing any dangling symlinks
Dangling symlinks removed

STARTING ASTERISK
/var/lib/asterisk/bin/freepbx_engine: line 319: /usr/sbin/safe_asterisk: No such file or directory
Asterisk Started


bon ca me semble pas trop mal, sauf le fatal et le no such file or dir :(.
plus d'accès a l ihm , je reboot

a savoir que jeedom cohabite sur le meme serveur avec nginx, c peut etre la piste...
Cdlmnt.
Arnaud