Symlink from modules failed on status screen after upgrade

jsherk's picture

I am using FreePBX v2.7.0.3 with Asterisk v1.4.18.

The freepbx status screen said there were 7 new modules to upgrade, so I went to module admin and selected them and clicked process and the upgrades all went thru (except Fax Configuration.. see here for more details):
http://www.freepbx.org/forum/freepbx/users/upgrade-fax-configuration-cre...

When I returned to the Status Screen it says:

Error Symlink from modules failed
retrieve_conf failed to sym link:
   /var/lib/asterisk/bin/retrieve_op_conf_from_mysql.php
   /var/lib/asterisk/bin/retrieve_op_conf_from_mysql.pl
This can result in FATAL failures to your PBX. If the
target file exists, the symlink will not occur and you
should rename the target file to allow the automatic
sym link to occur and remove this error, unless this is
an intentional customization.
Added 7 seconds ago
(retrieve_conf.SYMLINK)

Does anybody know what this means and what I should do about it (if anything)? Everything appears to still be working!

Thanks


__________________


Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

delete those two files, then

p_lindheimer's picture

delete those two files, then press the "apply configuration settings" orange bar again and the warnings will go away.


__________________

Philippe Lindheimer - FreePBX Project Leader
FreePBX Training Opportunities - Click Here
Get Official Paid Support - Click Here


Error Symlink from modules failed

arusnet's picture

Hi friends, I have Elastix FreePBX 1.6 and upgrade to version 2.8, but got the same error with some differences.

"Error Symlink from modules failed
retrieve_conf failed to sym link:
/var/www/html/admin/images/sound_delete.png
/var/www/html/admin/images/play.png
/var/www/html/admin/images/application_link.png
/var/www/html/admin/images/notify_notice.png
/var/www/html/admin/images/notify_delete.png
/var/www/html/admin/images/notify_error.png
/var/www/html/admin/images/notify_update.png
/var/www/html/admin/images/notify_critical.png
/var/www/html/admin/images/notify_security.png
/var/www/html/admin/images/dashboard-sysinfo.png
/var/www/html/admin/images/notify_warning.png
/var/lib/asterisk/bin/retrieve_op_conf_from_mysql.php
/var/lib/asterisk/bin/retrieve_op_conf_from_mysql.pl
This can result in FATAL failures to your PBX. If the target file exists, the symlink will not occur and you should rename the target file to allow the automatic sym link to occur and remove this error, unless this is an intentional customization."

I have made the process of renaming. Old all files listed above. But far to correct the problem remains.
Any ideas? Thank you very much.


Error Symlink from modules failed after upgrade... me, too!

GoodOlDan's picture

Got a similar error after normal module upgrades today. Haven't renamed or deleted files yet... everything seems stable at the moment.

retrieve_conf failed to sym link:
/var/www/html/admin/images/delete.gif
/var/lib/asterisk/bin/retrieve_op_conf_from_mysql.php
/var/lib/asterisk/bin/retrieve_op_conf_from_mysql.pl
This can result in FATAL failures to your PBX. If the target file exists, the symlink will not occur and you should rename the target file to allow the automatic sym link to occur and remove this error, unless this is an intentional customization.
Added 11 minutes ago
(retrieve_conf.SYMLINK)


I renamed the two files

jsherk's picture

I renamed the two files below (did not want to delete them) per p_lindheimer's note above, and restarted asterisk and the message went away!

Note that I had to RESTART asterisk... I did a RELOAD first, but the error message remained on the status screen.

 /var/lib/asterisk/bin/retrieve_op_conf_from_mysql.php
 /var/lib/asterisk/bin/retrieve_op_conf_from_mysql.pl

Thanks p_lindheimer


restarting asterisk has

p_lindheimer's picture

restarting asterisk has nothing to do with it.

The error is detected and reported, or deleted when retrieve_conf runs, and only then.

That is what "apply configuration changes" does, it runs retrieve_conf and then does a module reload in Asterisk afterwards (but the latter is not related)


__________________

Philippe Lindheimer - FreePBX Project Leader
FreePBX Training Opportunities - Click Here
Get Official Paid Support - Click Here


I had the same error on the

edisoninfo's picture

I had the same error on the two mysql.... files but also had errors for these two files:

/etc/asterisk/sip_notify.conf
/var/www/html/admin/images/delete.gif

I moved them out of the way but these two did not correct themselves like the mysql files did.


something else must be

p_lindheimer's picture

something else must be copying those files there then. Do you have any non-FreePBX core modules installed?


__________________

Philippe Lindheimer - FreePBX Project Leader
FreePBX Training Opportunities - Click Here
Get Official Paid Support - Click Here


Yes, it seems to be the

edisoninfo's picture

Yes, it seems to be the endpoint manager module that is conflicting. It keeps wanting the symlinks pointed to folders within it's area.


Symlink from modules failed

arusnet's picture

Hello again, in view of the problem I reinstalled the system. Upgrade to version 2.7 everything that I had no problem. But the error reappeared.

"Symlink from modules failed"

Anyone know what the update that is giving these problems.
Thank you.


Renamed the files, reloaded

GoodOlDan's picture

Renamed the files, reloaded ("Apply Configuration Changes"), and error is gone!


is it conflicting with the

p_lindheimer's picture

is it conflicting with the restart module?


__________________

Philippe Lindheimer - FreePBX Project Leader
FreePBX Training Opportunities - Click Here
Get Official Paid Support - Click Here


Problem solved

arusnet's picture

Problem solved ... renaming all the files that were reported in error.
Thank you very much.


Same error - different files

cfiaime's picture

Greetings...

I'm getting the same error message but on the files:
/etc/asterisk/extensions.conf
/etc/asterisk/iax.conf

I don't think we want to rename these.

The system is running:
* Running Asterisk Version : Asterisk 1.4.21.2
* Asterisk Source Version : 1.4.21.2
* Zaptel Source Version : 1.4.12.1
* Libpri Source Version : 1.4.7
* Addons Source Version : 1.4.7

and FreePBX 2.7.0.4

Thanks.


__________________

jeff williams - Hospice of Saint John
jwilliams@hospiceofsaintjohn.org


Symlink error on 2.8.0.0

ou812's picture

I upgraded today to 2.8.0.0 and received the following symlink error.

retrieve_conf failed to sym link:
/etc/asterisk/sip_notify.conf
/var/www/html/admin/images/spacer.gif
This can result in FATAL failures to your PBX. If the target file exists and not identical, the symlink will not occur and you should rename the target file to allow the automatic sym link to occur and remove this error, unless this is an intentional customization.
Added 7 seconds ago
(retrieve_conf.SYMLINK)

I removed these 2 files and made a change in freepbx and applied, the files were recreated but the error still remains.

my system is as follows.

Status Version 1.2.9 released on Date 042310
********************************************************************
* PBX in a Flash Version Daemon Status *
* Running Asterisk 1.4 *
********************************************************************
* Asterisk * ONLINE * Zaptel * ONLINE * MySQL * ONLINE *
* SSH * ONLINE * Apache * ONLINE * Iptables * ONLINE *
* Fail2ban * ONLINE * IP Connect* ONLINE * Ip6tables * OFFLINE *
* BlueTooth * ONLINE * Hidd * ONLINE * NTPD * ONLINE *
* Sendmail * ONLINE * Samba * OFFLINE * Webmin * ONLINE *
* Ethernet0 * ONLINE * Ethernet1 * N/A * Wlan0 * N/A *
********************************************************************
* Running Asterisk Version : Asterisk 1.4.21.2
* Asterisk Source Version : 1.4.21.2
* Zaptel Source Version : 1.4.12.1
* Libpri Source Version : 1.4.10
* Addons Source Version : 1.4.7
********************************************************************
pbx.home on 192.168.0.200 - eth0
CentOS release 5.3 (Final) :32 Bit Kernel: 2.6.18-128.el5

I did receive symlink errors for different files before when in beta and the removing of files did the trick but not this time.

Not sure if something like this should be reported as a bug so I put it here first.

Gary.


I'm not sure who is messing

p_lindheimer's picture

I'm not sure who is messing with spacer.gif and thus where that is coming from. If you have the Endpoint Manager installed and the restart module installed, then you would be getting a conflict between those as they both try to do a symlink and only one will be successful.

I'm working with tm1000 on that issue so we can get it resolved between the two modules...


__________________

Philippe Lindheimer - FreePBX Project Leader
FreePBX Training Opportunities - Click Here
Get Official Paid Support - Click Here


spacer.gif

greg75's picture

Don't mean to hijack this thread, but I am also getting this message, but it's for 3 gif files (twice for spacer.gif).
/var/www/html/admin/images/grey_block.gif
/var/www/html/admin/images/logo.gif
/var/www/html/admin/images/spacer.gif
/var/www/html/admin/images/spacer.gif

I can rm -f the files, and when the apply configuration changes is done, they are re-created and I get the error message.

I ran /var/lib/asterisk/bin/retrieve_conf --debug. Here is some snippage that seems relevant.

[DEBUG-retrieve_conf] (devel-debug) Including /var/www/html/admin/modules/configeditoradv/functions.inc.php
[DEBUG-retrieve_conf] (devel-debug) /var/www/html/admin/modules/configeditoradv/functions.inc.php processed OK
[DEBUG-retrieve-conf] (error) /var/www/html/admin/images/grey_block.gif already exists, and is linked to something else!
[DEBUG-retrieve-conf] (error) /var/www/html/admin/images/logo.gif already exists, and is linked to something else!
[DEBUG-retrieve-conf] (error) /var/www/html/admin/images/spacer.gif already exists, and is linked to something else!

[DEBUG-retrieve-conf] (devel-debug) /var/www/html/admin/images/call-compare.png already points to /var/www/html/admin/cdr/images/call-compare.png - OK
[DEBUG-retrieve-conf] (error) /var/www/html/admin/images/spacer.gif already exists, and is linked to something else!

I ran ls -l in the /var/www/html/admin/images directory, here is where I show them linked.

grey_block.gif -> /var/www/html/admin/modules/configeditoradv/images/grey_block.gif
logo.gif -> /var/www/html/admin/modules/configeditoradv/images/logo.gif
spacer.gif -> /var/www/html/admin/modules/configeditoradv/images/spacer.gif

For a bit I had it for some chan_(or -) dahdi.conf file. I deleted it and the error for that one went away.

What I can't seem to figure out is how retrieve_conf determines what to link and where.

Note: This is on AsteriskNOW 1.7 (asterisk 1.6.9) with FreePBX 2.7. I don't know that I started getting these messages right after I installed the advanced config editor though.


it sounds like that module

p_lindheimer's picture

it sounds like that module has conflicting images. I am not familiar with that module, where did it come from as it appears to be creating the problem?

I updated retrieve_conf to compare the files when there is a conflict and not complain if in fact the files are identical (per an md5sum hash). However, that change has not yet been published on the 2.7 branch as I wanted to make sure the fix did not create problems so only published it on 2.8.

So ... once published, if the file it is conflicting with is identical it will no longer complain. (However, it's still an issue that there is a conflict and it's probably that module at fault...)

As far as how retrieve_conf determines what to link, it is based on some defined directories in the modules. The images directory is one of them.


__________________

Philippe Lindheimer - FreePBX Project Leader
FreePBX Training Opportunities - Click Here
Get Official Paid Support - Click Here


Config editor

greg75's picture

The advanced config editor is here:

http://www.freepbx.org/support/documentation/module-documentation/third-...

It allows editing within the web browser of the .conf files in etc and etc/asterisk


retrieve_conf debugging idea

greg75's picture

How about, when using the retrieve_conf --debug command, to get it to output what it wanted the symlink to be and what it is is now?


feel free to put in a

p_lindheimer's picture

feel free to put in a feature request and if you feel like it, modify the code as to what you think it should print out and include a patch.

You can see what it is currently linked to by simply doing an "ls -l" on the target directory and you will see the symlinks.

However, spelling out the conflict in the debug message obviously adds useful information right there.


__________________

Philippe Lindheimer - FreePBX Project Leader
FreePBX Training Opportunities - Click Here
Get Official Paid Support - Click Here


Today I've upgraded Core to

AndrewZ's picture

Today I've upgraded Core to 2.8.0.1 and got another symlink error. I found that /etc/asterisk/sip_notify.conf was not linked to /var/www/html/admin/modules/core/etc/sip_notify.conf as it probably should be.


ln -s

dbouwer's picture

run /var/lib/asterisk/bin/retrieve_conf after adding the symlink as asterisk user in /etc/asterisk/


I had the same problem.

aviya20's picture

After upgrading today:
retrieve_conf failed to sym link:
/etc/asterisk/sip_notify.conf
This can result in FATAL failures to your PBX. If the target file exists and not identical, the symlink will not occur and you should rename the target file to allow the automatic sym link to occur and remove this error, unless this is an intentional customization.
Added 6 hours, 18 minutes ago
(retrieve_conf.SYMLINK)

Solution:
you need to do a shortcut to /var/www/html/admin/modules/endpointman/etc/sip_notify.conf


I do not have 'endpointman'

AndrewZ's picture

I do not have 'endpointman' in /var/www/html/admin/modules/ !


then remove your copy (or

p_lindheimer's picture

then remove your copy (or move it into sip_notify_custom.conf and press reload so it can symlink.


__________________

Philippe Lindheimer - FreePBX Project Leader
FreePBX Training Opportunities - Click Here
Get Official Paid Support - Click Here


still getting symlink errors

mykroft's picture

still getting symlink errors on 2.7.0.5 - any updates on this prob?


Same error retrieve_conf

witdirect's picture

I had the same problem with retrieve_conf and found that if I disabled SetCallerID module the problem went away and i was able to do a reload.

/var/www/html/admin/modules/setcid/functions.inc.php its getting the error on line 130.


seeing the same but with a DADHI

misterq's picture

retrieve_conf failed to sym link:
/etc/asterisk/chan_dahdi.conf from dahdiconfig/etc
This can result in FATAL failures to your PBX. If the target file exists and not identical, the symlink will not occur and you should rename the target file to allow the automatic sym link to occur and remove this error, unless this is an intentional customization.


that's because the dahdi

p_lindheimer's picture

that's because the dahdi module provides it's own dahdi.conf file which it configures.

if you already have a dahdi configuration that works, you don't need the module. If you want to use the dahdi module, then you will have to remove your configuration file and let it do it for you.


__________________

Philippe Lindheimer - FreePBX Project Leader
FreePBX Training Opportunities - Click Here
Get Official Paid Support - Click Here


Re: dahdi module provides it's own dahdi.conf

equality4xy's picture

I have the same issue...

To use the dahdi modules config, which file do I delete exactly?


/etc/asterisk/chan_dahdi.conf from dahdiconfig/etc

Mastapat11's picture

if you do an "ls -l /etc/asterisk/chan_dahdi*" it'll show you a link to
/var/www/html/admin/modules/dahdiconfig/etc/chan_dahdi.conf

rename that file (or delete it) and that'll remove the error after a page refresh.
i didn't need to 'amportal restart' or 'apply configs'


I got the same error:

gogasca's picture

I got the same error:
/etc/asterisk/sip_notify.conf from core/etc

I did:
rename /etc/asterisk/sip_notify.conf
create symlink
Run
/var/lib/asterisk/bin/retrieve_conf --debug
restart Asterisk
core restart now
Error is gone

lrwxrwxrwx 1 root root 52 Dec 1 21:44 sip_notify.conf -> /var/www/html/admin/modules/core/etc/sip_notify.conf
-rw-r--r-- 1 root root 646 Dec 1 21:41 sip_notify.conf.old


Fixing it...

yenagade's picture

To fix the file error do the following
Open Putty
Connect to your machine IP
Login as root

Then type the following

cd ..
cd etc/asterisk/
mv sip_notify.conf sip_notify1.conf
exit

Reboot the machine and it should link the file correctly thus removing the error.

Regards.
Yen


same issue with Dahdi

navtech's picture

when this occurs with Dahdi, which file exactly should we delete?


sip_notify.conf symlink error cause

wardmundy's picture

The apparent cause of the sip_notify.conf symlink error is systems with older versions of the Endpoint Manager software. Download and install the latest release from:

Latest Endpoint Manager

and the problem should go away once you do the following while logged in as root:

cd /etc/asterisk
mv sip_notify.conf sip_notify.conf.old
/var/lib/asterisk/bin/retrieve_conf

Now reload FreePBX with your browser and click on the reload button when prompted.

[p_lindheimer] edited with the always most up-to-date link to what ever the latest endpoint manager is as the one over at the old project is usually lagging until it gets copied from the freepbx repos.


none of the above fixed my problem

franklin's picture

I noticed on a box where I had not updated DAHDi config that I did not have the problem. On 3 boxes where I had I got teh nasty "retrieve_conf failed to sym link:
/etc/asterisk/chan_dahdi.conf from dahdiconfig/etc
This can result in FATAL failures to your PBX. If the target file exists and not identical, the symlink will not occur and you should rename the target file to allow the automatic sym link to occur and remove this error, unless this is an intentional customization."

All 2.9 loads from the FreePBX ISO. So I just disabled DAHDi Config in Modules and the problem went away.