1.8.1.3-2 errors

Downloaded the newest kickstart file and installed 1.8.1.3-2 on a brand new system this morning. (Now we have 2 running 1.8.1.3.2) Did not modify conf files or change anything on the new system. This time it installed clean as 1.8.2.3-2 but we still get the same errors and warnings as on our beta production machine and yesterday’s install. How come nobody gets these errors? This is a clean install using the newest kickstart file on a trixbox certified PhoneBochs rackmount system so everyone who installs the distro should see the same errors (warnings) in
/tmp/freepbx_log
and
/tmp/freepbx_debug.log

*** Everytime we APPLY CONFIGURATION CHANGES we get: ***
[2011-Jun-03 08:12:06] [ERROR] (bin/retrieve_conf:185) - /var/lib/asterisk/agi-bin/queue_devstate.agi failed to copy from module directory
[2011-Jun-03 08:12:06] [ERROR] (bin/retrieve_conf:185) - /var/lib/asterisk/agi-bin/pbdirectory failed to copy from module directory
[2011-Jun-03 08:12:06] [ERROR] (bin/retrieve_conf:185) - /var/lib/asterisk/agi-bin/directory.lib.php failed to copy from module directory
[2011-Jun-03 08:12:06] [ERROR] (bin/retrieve_conf:185) - /var/lib/asterisk/agi-bin/directory.agi failed to copy from module directory
[2011-Jun-03 08:12:06] [ERROR] (bin/retrieve_conf:185) - /var/lib/asterisk/agi-bin/ddns_client.php failed to copy from module directory
[2011-Jun-03 08:12:06] [ERROR] (bin/retrieve_conf:185) - /var/lib/asterisk/agi-bin/LoadLicenseIfExists.php failed to copy from module directory
[2011-Jun-03 08:12:06] [ERROR] (bin/retrieve_conf:185) - /var/lib/asterisk/agi-bin/update_license.php failed to copy from module directory
[2011-Jun-03 08:12:06] [ERROR] (bin/retrieve_conf:185) - /var/lib/asterisk/agi-bin/checksound.agi failed to copy from module directory
[2011-Jun-03 08:12:06] [ERROR] (bin/retrieve_conf:185) - /var/lib/asterisk/agi-bin/directory failed to copy from module directory
[2011-Jun-03 08:12:06] [ERROR] (bin/retrieve_conf:185) - /var/lib/asterisk/agi-bin/enumlookup.agi failed to copy from module directory
[2011-Jun-03 08:12:06] [ERROR] (bin/retrieve_conf:185) - /var/lib/asterisk/agi-bin/sql.php failed to copy from module directory
[2011-Jun-03 08:12:06] [ERROR] (bin/retrieve_conf:185) - /var/lib/asterisk/agi-bin/list-item-remove.php failed to copy from module directory
[2011-Jun-03 08:12:06] [ERROR] (bin/retrieve_conf:185) - /var/lib/asterisk/agi-bin/user_login_out.agi failed to copy from module directory
[2011-Jun-03 08:12:06] [ERROR] (bin/retrieve_conf:185) - /var/lib/asterisk/agi-bin/dialparties.agi failed to copy from module directory
[2011-Jun-03 08:12:06] [ERROR] (bin/retrieve_conf:185) - /var/lib/asterisk/agi-bin/fixlocalprefix failed to copy from module directory

*** permission errors ***
and we also get tons of warnings that are supposedly permission issues yet the permissions are ok when we check. Are we missing something? Do we need to change some settings after the install is completed?

2011-Jun-03 08:06:13 /var/www/html/admin/libraries/utility.functions.php:72
[WARNING]: file_put_contents(/var/log/asterisk/freepbx.log): failed to open stream: Permission denied

[[email protected] ~]# ls -l /var/log/asterisk
total 1268
drwxrwxr-x 2 asterisk asterisk 4096 Jun 3 08:06 cdr-csv
drwxrwxr-x 2 asterisk asterisk 4096 May 2 17:11 cdr-custom
-rw-rw-r-- 1 asterisk asterisk 76879 Jun 3 09:40 freepbx.log
-rw-rw-r-- 1 asterisk asterisk 1186235 Jun 3 09:40 full
-rw-rw-r-- 1 asterisk asterisk 196 Jun 3 09:40 queue_log

2011-Jun-03 08:06:34 /var/www/html/admin/modules/directory/install.php:119
[WARNING]: Invalid argument supplied for foreach()

2011-Jun-03 08:12:06 /var/www/html/admin/modules/sysadmin/functions.inc/licensed.php:0
[WARNING]: No license for this product (‘PBXact’) - make sure zend_optimizer.license_path is properly configured in php.ini!

2011-Jun-03 08:12:06 /var/www/html/admin/modules/sysadmin/functions.inc/licensed.php:0
[WARNING]: License check failed!

2011-Jun-03 08:41:00 /var/www/html/admin/views/freepbx.php:90
[WARNING]: stat() [function.stat]: stat failed for /admin/common/mainstyle.css

2011-Jun-03 08:41:00 /var/www/html/admin/views/freepbx.php:109
[WARNING]: file_get_contents(/admin/common/mainstyle.css) [function.file-get-contents]: failed to open stream: No such file or directory

2011-Jun-03 08:41:00 /var/www/html/admin/views/freepbx.php:113
[WARNING]: file_put_contents(/admin/common/mstyle_autogen_.css) [function.file-put-contents]: failed to open stream: No such file or directory

[[email protected] ~]# ls -l /var/www/html/admin/common
total 400
-rw-rw-r-- 1 asterisk asterisk 1991 Jun 3 08:12 db_connect.php
-rw-rw-r-- 1 asterisk asterisk 34060 Jun 3 08:12 json.inc.php
-rw-rw-r-- 2 asterisk asterisk 302944 Jun 3 08:12 libfreepbx.javascripts.js
-rw-rw-r-- 1 asterisk asterisk 1021 Jun 3 08:12 mainstyle-alternative.css
-rw-rw-r-- 1 asterisk asterisk 15911 Jun 3 08:12 mainstyle.css
-rw-rw-r-- 1 asterisk asterisk 11603 Jun 3 08:41 mstyle_autogen_1307103121.css
-rw-rw-r-- 1 asterisk asterisk 2468 Jun 3 08:12 script.js.php

2011-Jun-03 08:41:03 /var/www/html/admin/modules/dashboard/class.error.inc.php:0
[WARNING]: fsockopen() [function.fsockopen]: unable to connect to localhost:22 (Connection refused)

You need to learn to relax a little here. You keep starting new threads when you don’t like the answer you are given and spend more time worrying about NOTICES and WARNINGS that you need to. Remember the tmp directory error logs are all part of install and that is why most distros remove the install logs because you will always see weird things. Just relax on them a little.

I will look into them but most of them seem to be FreePBX related.

The errors on reload seem to be an issue in FreePBX and will need to be investigated.

These 2 errors

2011-Jun-03 14:00:01 /var/www/html/admin/modules/sysadmin/functions.inc/licensed.php:0
[WARNING]: No license for this product (‘PBXact’) - make sure zend_optimizer.license_path is properly configured in php.ini!

2011-Jun-03 14:00:01 /var/www/html/admin/modules/sysadmin/functions.inc/licensed.php:0
[WARNING]: License check failed!

Are related to having sysadmin installed and it doing a license check for any commercial modules and since the system is not licensed for commercial modules it fails. I am pretty sure we have this fixed on the next release of the sysadmin module so it does not display the errors but they are harmless errors and can be ignored.

which log file do you see all your permissions in? And are the same errors getting added after the whole install is done and the system is just up and running?

The reason I am so obsessed about these errors is that our main system (upgraded to 1.8.1.3.2 from the original beta) was giving us a lot of errors and problems (not just warnings) so we did a clean install to compare the 2 systems and to resolve the issues.

I did say in my previous post that we’ll do a fresh reinstall with a new kickstart iso to see if we get the same issues.

I did not add the new info to my previous post because it was a new install with a new computer and I thought the previous mssg was written off as a random incident because we used the old kickstart file.

Sorry for the double posting. We are monitoring the new system for the permission errors and I will update shortly.

Its not a permissiosn error. Philippe and I are looking into it. It is something to do with FreePBX 2.9 as a whole I think. We should know more later today.

We found the issue in FreePBX retrieve_conf and had nothing to do with the distro. Seems this bug has existed for quite some time. Please see bug ticket http://www.freepbx.org/trac/ticket/5194#comment:1

so it pays to be nervous after all :slight_smile:

well except it has been a error there forever that nobody has ever caught because FreePBX did not really have error logs before the 2.9 release.

I am just happy that we caught this one and we are eliminating all errors one by one. Even small errors can cause system issues, reduce performance and bring down an entire system under the right circumstances.

well all those others errors are not errors but notices. You will see in asterisk all day notices and warnings. YOu will never be able to eliminate them. Same with apache logs. All the undefined variables have existed in FreePBX for years and do not effect performance or create issues.

In the future please open bug reports if you find errors and state what log files you see them in and as much detail as possible. Forums are not really a place to open bugs.

OK but I did not know it was a freepbx bug. It seemed like it was the distro since I had never seen it on any of my other systems (running freepbx 2.8) and all problems regarding the distro are reported in this forum.

Typically (from what I have seen in other posts in the forum) users first report an issue in the forum (not knowing it’s a bug) and then file a bug report. I want to play by the rules but I honestly don’t know freepbx 2.9 and Asterisk 1.8 well enough to know if something is a bug or just me doing something wrong. Thanks for your help.