Ticket #4310 (closed Bugs: fixed)

Opened 3 years ago

Last modified 3 years ago

2.8 install notices/error's

Reported by: mbrevda Assigned to:
Priority: minor Milestone: 2.8
Component: FreePBX Framework Version: 2.7-branch
Keywords: Cc:
Confirmation: Unreviewed Distro:
Backend Engine: All Distro Ver:
Backend Ver: SVN Revision (if applicable):

Description

Here are a couple of notices/errors that get generate on new installs (from svn with --dev-links). I'm not looking closely, just copying and pasting for reference:

[ERROR] queues access failed, Queues module may not be installed: DB Error: no s  uch table
grep: /etc/asterisk/cdr_odbc.conf: No such file or directory
grep: /etc/asterisk/manager_custom.conf: No such file or directory
touch: cannot touch `/etc/asterisk/manager_custom.conf': No such file or directo  ry
[ERROR] Error code 1: trying to create empty file /etc/asterisk/manager_custom.c  onf
Please update your modules and reload Asterisk by browsing to your server.
Generating AMP configs..OK
Checking timeconditions..
PHP Notice:  Undefined index:  dbversion in /home/svn.freepbx.org/freepbx/branch  es/2.8/amp_conf/htdocs/admin/modules/timeconditions/install.php on line 182
Checking for old timeconditions to upgrade..no upgrade needed
converting timeconditions time field to int..OK
Module timeconditions successfully installed
Checking music..
PHP Warning:  mkdir(): No such file or directory in /home/svn.freepbx.org/freepb  x/branches/2.8/amp_conf/htdocs/admin/modules/music/install.php on line 20
PHP Warning:  touch(): Unable to create file /var/lib/asterisk/mohmp3/.nomusic_r  eserved/silence.wav because No such file or directory in /home/svn.freepbx.org/f  reepbx/branches/2.8/amp_conf/htdocs/admin/modules/music/install.php on line 22
Module music successfully installed
Checking voicemail..
PHP Notice:  Undefined index:  dbversion in /home/svn.freepbx.org/freepbx/branch  es/2.8/amp_conf/htdocs/admin/modules/voicemail/install.php on line 45
Module voicemail successfully installed
The following error(s) occured:
 - Module customappsreg is already enabled
installed
Checking ivr..
[FATAL] ALTER TABLE ivr CHANGE COLUMN announcement announcement VARCHAR ( 255 )   [nativecode=1054 ** Unknown column 'announcement' in 'ivr']
Array
(
    [0] => Array
        (
            [file] => /home/svn.freepbx.org/freepbx/branches/2.8/amp_conf/htdocs  /admin/modules/ivr/install.php
            [line] => 94
            [function] => die_freepbx
            [args] => Array
                (
                    [0] => ALTER TABLE ivr CHANGE COLUMN announcement announceme  nt VARCHAR ( 255 ) [nativecode=1054 ** Unknown column 'announcement' in 'ivr']
                )

        )

    [1] => Array
        (
            [file] => /home/svn.freepbx.org/freepbx/branches/2.8/amp_conf/htdocs  /admin/functions.inc.php
            [line] => 3470
            [args] => Array
                (
                    [0] => /home/svn.freepbx.org/freepbx/branches/2.8/amp_conf/h  tdocs/admin/modules/ivr/install.php
                )

            [function] => include_once
        )

    [2] => Array
        (
            [file] => /home/svn.freepbx.org/freepbx/branches/2.8/amp_conf/htdocs  /admin/functions.inc.php
            [line] => 3444
            [function] => _modules_doinclude
            [args] => Array
                (
                    [0] => /var/www/html/admin/modules/ivr/install.php
                    [1] => ivr
                )

        )

    [3] => Array
        (
            [file] => /home/svn.freepbx.org/freepbx/branches/2.8/amp_conf/htdocs  /admin/functions.inc.php
            [line] => 3142
            [function] => _module_runscripts
            [args] => Array
                (
                    [0] => ivr
                    [1] => install
                )

        )

    [4] => Array
        (
            [file] => /home/svn.freepbx.org/freepbx/branches/2.8/amp_conf/bin/mo  dule_admin
            [line] => 130
            [function] => module_install
            [args] => Array
                (
                    [0] => ivr
                    [1] => 1
                )

        )

    [5] => Array
        (
            [file] => /home/svn.freepbx.org/freepbx/branches/2.8/amp_conf/bin/mo  dule_admin
            [line] => 698
            [function] => doInstall
            [args] => Array
                (
                    [0] => ivr
                    [1] => 1
                )

        )

)

The following error(s) occured:
 - Module parking is already enabled
installed
Checking directory..
PHP Notice:  Undefined index:  dbversion in /home/svn.freepbx.org/freepbx/branch  es/2.8/amp_conf/htdocs/admin/modules/directory/install.php on line 23
Adding directory_details table if needed...ok
Adding directory_entries table if needed...ok
Module directory successfully installed
Checking fw_langpacks..
No directory /home/svn.freepbx.org/freepbx/branches/2.8/amp_conf/htdocs/admin/mo  dules/fw_langpacks/htdocs, install script not needed
Module fw_langpacks successfully installed

The following error(s) occured:
 - Module irc is already enabled
installed
Checking vmblast..
Upgrading vmblast to add audio_label field..Not Required<br />Upgrading vmblast   to add password field..Not Required<br />Dropping grplist..Not Needed<br />Modul  e vmblast successfully installed
Checking sipstation..
PHP Notice:  Undefined variable: trunks_hash in /home/svn.freepbx.org/freepbx/br  anches/2.8/amp_conf/htdocs/admin/modules/sipstation/install.php on line 61
Checking routes for trunks..found 0
PHP Notice:  Undefined variable: trunks_hash in /home/svn.freepbx.org/freepbx/br  anches/2.8/amp_conf/htdocs/admin/modules/sipstation/install.php on line 69
PHP Warning:  Invalid argument supplied for foreach() in /home/svn.freepbx.org/f  reepbx/branches/2.8/amp_conf/htdocs/admin/modules/sipstation/install.php on line   69
checking for phantoms..none
Module sipstation successfully installed

The following error(s) occured:
 - Module sipstation is already enabled
installed
Checking fw_ari..
No directory /home/svn.freepbx.org/freepbx/branches/2.8/amp_conf/htdocs/admin/mo  dules/fw_ari/htdocs_ari, install script not needed
Module fw_ari successfully installed
Checking fw_fop..
No directory /home/svn.freepbx.org/freepbx/branches/2.8/amp_conf/htdocs/admin/mo  dules/fw_fop/htdocs_panel, install script not needed
Module fw_fop successfully installed

Change History

05/30/10 15:54:32 changed by p_lindheimer

(In [9789]) no need to change annoucement type since it will be removed further down re #4310

05/31/10 16:07:15 changed by p_lindheimer

  • owner deleted.
  • component changed from - choose - to FreePBX Framework.

all of these are harmless errors. We'll go ahead and fix them (at least most) and hope that we don't introduce new bugs fixing the harmless but valid warnings :)

  • timeconditions - check
  • music - check (call mkdir forcing recursive creation of all dirs in the path)
  • voicemail - check
  • ivr - check
  • directory - check
  • vmblast - check
  • sipstation - check
  • fw_ari and fw_fop not errors

05/31/10 16:08:27 changed by p_lindheimer

  • status changed from new to closed.
  • resolution set to fixed.

(In [9798]) closes #4310 define or check for undefined vars as appropriate, music module create intermediate directories if not there

05/31/10 17:48:37 changed by mbrevda

thanks!