Another Error message

retrieve_conf failed to sym link the /etc/asterisk/extensions.conf.orig file from modules

What did I do to get this message?

the /etc/asterisk/extensions.conf.orig file is a backup file …

Bill

retrieve_conf will symlink all files that are located in certain directories under the various modules. The failure is most likely caused because of permissions at one end or the other of the attempted link.

…and have ruled out some possible things…

1 The retrieve_conf is looking into a directory in the /var/www/html-directory. I have umasked that directory to 0000, and have also done chmod -r 777 …/html
2 The retrieve_conf - file is also looking into the /etc/asterisk - directory. The same umask and chmod-thing written above is also done on that directory.
3 There is also a issue on the retrieve_conf-directory itself, so I umask-and chmodded that directory as well…

Am quite frustrated about it, am I missing a directory here?

  • Am using 2.3.0.3 on my system, it is a fresh install…

"retrieve_conf failed to sym link the /etc/asterisk/extensions.conf file from modules "

This error is not helpful. It doesn’t tell me why retrieve_conf cannot sym link.

… and I can’t see how permissions would be the cause. The Asterisk directory is owned by asterisk:asterisk and has 664 permissions, as are/do all the configuration files inside it.

This is a fresh install. I thought maybe it was because I had done ‘make samples’, but then I discovered the Asterisk must be running in order to install FreePBX, so I need the sample files. A chicken/egg problem. The only way I have been able to get it to work at all is by manually creating the sym links, and even then, it doesn’t work satisfactorily.

Any ideas?

first off - what version of asterisk? I have been able to start asterisk without an extensions.conf file (it’s the same as having no dialplan). Maybe that changed. What does it say in the full log for an error?

As far as the symlink - permissions is usually the only issue. Try running retrieve_conf as user asterisk form the command line, does it give you and more details?

Philippe Lindheimer - FreePBX Project Lead
http//freepbx.org - IRC #freepbx

I am using freepbx 2.3.1.3 on Asterisk 1.4.17 I have the symlink that this error complains about and it is world read writeable… I am not sure what the issue is, I just ignore the error because everything is working ok… has anyone resolved this?

What’s mentioned above is correct about running retrieve_conf and making sure the permissions are correct, but there is one other small detail. You should just need to remove the existing conf file first so that it can create the symlink. It can’t create a symlink if there is already a file there first.

I found the proper solution is to make sure your folders/files in the /ect/asterisk directory are all owned by asterisk user/group and then actually just remove the extensions.conf file (make sure you have a backup just in case.)

Then run retrieve_conf from your /var/lib/asterisk/bin/ (make sure you rut it logged in as the asterisk user and not some other user account on the system.)

That will automatically create the symlink for you and you should be good to go.