Symlink from modules failed on status screen after upgrade

38 posts / 0 new
Last post
jsherk
jsherk's picture
Symlink from modules failed on status screen after upgrade

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-creates-error

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

p_lindheimer
p_lindheimer's picture
delete those two files, then

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

arusnet
arusnet's picture
Error Symlink from modules failed

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.

GoodOlDan
GoodOlDan's picture
Error Symlink from modules failed after upgrade... me, too!

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)

jsherk
jsherk's picture
I renamed the two files

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

p_lindheimer
p_lindheimer's picture
restarting asterisk has

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)

edisoninfo
edisoninfo's picture
I had the same error on the

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.

p_lindheimer
p_lindheimer's picture
something else must be

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

edisoninfo
edisoninfo's picture
Yes, it seems to be the

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

arusnet
arusnet's picture
Symlink from modules failed

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.

GoodOlDan
GoodOlDan's picture
Renamed the files, reloaded

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

p_lindheimer
p_lindheimer's picture
is it conflicting with the

is it conflicting with the restart module?

arusnet
arusnet's picture
Problem solved

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

cfiaime
cfiaime's picture
Same error - different files

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

ou812
ou812's picture
Symlink error on 2.8.0.0

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.

p_lindheimer
p_lindheimer's picture
I'm not sure who is messing

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...

greg75
greg75's picture
spacer.gif

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.

p_lindheimer
p_lindheimer's picture
it sounds like that module

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.

greg75
greg75's picture
Config editor

The advanced config editor is here:

http://www.freepbx.org/support/documentation/module-documentation/third-party-unsupported-modules/config-editor-advanced

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

greg75
greg75's picture
retrieve_conf debugging idea

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?

p_lindheimer
p_lindheimer's picture
feel free to put in a

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.

AndrewZ
AndrewZ's picture
Today I've upgraded Core to

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.

dbouwer
dbouwer's picture
ln -s

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

aviya20
aviya20's picture
I had the same problem.

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

AndrewZ
AndrewZ's picture
I do not have 'endpointman'

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

p_lindheimer
p_lindheimer's picture
then remove your copy (or

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

mykroft
mykroft's picture
still getting symlink errors

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

witdirect
witdirect's picture
Same error retrieve_conf

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.

misterq
misterq's picture
seeing the same but with a DADHI

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.

p_lindheimer
p_lindheimer's picture
that's because the dahdi

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.

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

I have the same issue...

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

Mastapat11
Mastapat11's picture
/etc/asterisk/chan_dahdi.conf from dahdiconfig/etc

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'

gogasca
gogasca's picture
I got the same error:

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

yenagade
yenagade's picture
Fixing it...

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

navtech
navtech's picture
same issue with Dahdi

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

wardmundy
wardmundy's picture
sip_notify.conf symlink error cause

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.

franklin
franklin's picture
none of the above fixed my problem

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.

hatredman
hatredman's picture
FreePBX 2.10 (and 2.11) and openSUSE - same issue

Not the FreePBX Distro, but openSUSE 12.2 with Asterisk 10 and FreePBX 2.10. I also tested with Asterisk 11 and FreePBX 2.11 beta and got the same error. Both fresh installs, not upgrades. And I fresh installed them many times, all of them showing this behaviour.

Im my case, many files (not just one) were never copied to core/etc, so the symlinks were not created - including some important stuff like sip.conf.

I thought the install_amp script was supposed to do the trick, but looks like it didn't. Am I supposed to manually create the symlinks by myself? Or am I doing something wrong?

I already made the copies/symlinks myself, but bugs me that FreePBX can't handle it properly.

- Everybody loves The Hypnotoad