Asterisk 10 with free pbx 2.10 problem , please hel p

Hi ,
I am trying to install free pbx 2.10 with asterisk 10 i got the following error

[email protected]debian:/usr/src/freepbx-2.10.0# ./install_amp --username=admin --password=amp111
Checking for PEAR DB…OK
Checking for PEAR Console::Getopt…OK
Using username: admin
Using password: ******
Checking user…OK
Checking if Asterisk is running…running with PID: 1814…OK
Checking for /etc/amportal.conf…OK
Reading /etc/amportal.conf…parsed amp_conf variables from /etc/amportal.conf:
amp_conf [AMPDBHOST] => [localhost]
amp_conf [AMPDBENGINE] => [mysql]
amp_conf [AMPENGINE] => [asterisk]
amp_conf [AMPMGRUSER] => [admin]
amp_conf [AMPMGRPASS] => [amp111]
amp_conf [AMPBIN] => [/var/lib/asterisk/bin]
amp_conf [AMPSBIN] => [/usr/local/sbin]
amp_conf [AMPWEBROOT] => [/var/www/html]
amp_conf [AMPCGIBIN] => [/var/www/cgi-bin ]
amp_conf [FOPWEBROOT] => [/var/www/html/panel]
amp_conf [FOPPASSWORD] => [passw0rd]
amp_conf [AUTHTYPE] => [database]
amp_conf [AMPEXTENSIONS] => [extensions]
amp_conf [AMPDBNAME] => [asterisk]
amp_conf [ASTETCDIR] => [/etc/asterisk]
amp_conf [ASTMODDIR] => [/usr/lib/asterisk/modules]
amp_conf [ASTVARLIBDIR] => [/var/lib/asterisk]
amp_conf [ASTAGIDIR] => [/var/lib/asterisk/agi-bin]
amp_conf [ASTSPOOLDIR] => [/var/spool/asterisk]
amp_conf [ASTRUNDIR] => [/var/run/asterisk]
amp_conf [ASTLOGDIR] => [/var/log/asterisk]
amp_conf [AMPDBUSER] => [root]
amp_conf [AMPDBPASS] => [gulfsip]
OK
Checking for /etc/asterisk/asterisk.conf…OK
Reading /etc/asterisk/asterisk.conf…OK
Using asterisk as PBX Engine
Checking for Asterisk version…10.0.1
Checking for selinux…PHP Notice: Undefined offset: 0 in /usr/src/freepbx-2.10.0/install_amp on line 969
OK
Connecting to database…FAILED
Try running ./install_amp --username=user --password=pass (using your own user and pass)
[FATAL] Cannot connect to database

i also tried with user name and password that i can connect to database which are root and gulfsip also the same

so please can you advice me what to do ?
Thanks ,

Now i got different error ? please check it here

./install_amp --username=root --password=gulfsip
Checking for PEAR DB…OK
Checking for PEAR Console::Getopt…OK
Using username: root
Using password: *******
Checking user…OK
Checking if Asterisk is running…running with PID: 3288…OK
Checking for /etc/amportal.conf…OK
Reading /etc/amportal.conf…parsed amp_conf variables from /etc/amportal.conf:
amp_conf [AMPDBHOST] => [localhost]
amp_conf [AMPDBENGINE] => [mysql]
amp_conf [AMPENGINE] => [asterisk]
amp_conf [AMPMGRUSER] => [admin]
amp_conf [AMPMGRPASS] => [amp111]
amp_conf [AMPBIN] => [/var/lib/asterisk/bin]
amp_conf [AMPSBIN] => [/usr/local/sbin]
amp_conf [AMPWEBROOT] => [/var/www/html]
amp_conf [AMPCGIBIN] => [/var/www/cgi-bin ]
amp_conf [FOPWEBROOT] => [/var/www/html/panel]
amp_conf [FOPPASSWORD] => [passw0rd]
amp_conf [AUTHTYPE] => [database]
amp_conf [AMPEXTENSIONS] => [extensions]
amp_conf [AMPDBNAME] => [asterisk]
amp_conf [ASTETCDIR] => [/etc/asterisk]
amp_conf [ASTMODDIR] => [/usr/lib/asterisk/modules]
amp_conf [ASTVARLIBDIR] => [/var/lib/asterisk]
amp_conf [ASTAGIDIR] => [/var/lib/asterisk/agi-bin]
amp_conf [ASTSPOOLDIR] => [/var/spool/asterisk]
amp_conf [ASTRUNDIR] => [/var/run/asterisk]
amp_conf [ASTLOGDIR] => [/var/log/asterisk]
amp_conf [AMPDBUSER] => [root]
amp_conf [AMPDBPASS] => [gulfsip]
OK
Checking for /etc/asterisk/asterisk.conf…OK
Reading /etc/asterisk/asterisk.conf…OK
Using asterisk as PBX Engine
Checking for Asterisk version…10.0.1
Checking for selinux…PHP Notice: Undefined offset: 0 in /usr/src/freepbx-2.10. 0/install_amp on line 969
OK
Connecting to database…OK
Checking current version of AMP…no version information
Assuming new installation
Installing new FreePBX files…OK (564 files copied, 0 skipped)
Configuring install for your environment…amportal…no fpbx…freepbx_engine…fre epbx_setting…gen_amp_conf.php…done
/var/lib/asterisk/bin/freepbx_engine: line 98: [FATAL]: command not found
mkdir: missing operand
Try mkdir --help' for more information. apply username/password changes to conf files: running apply_conf.sh from /etc/amportal.conf chown: invalid user:asterisk:asterisk’
chown: invalid user: asterisk:asterisk' chown: invalid user:asterisk:asterisk’
chown: invalid user: asterisk:asterisk' chown: invalid user:asterisk:asterisk’
chown: invalid user: asterisk:asterisk' chown: invalid user:asterisk:asterisk’
chown: invalid user: asterisk:asterisk' chown: invalid user:asterisk:asterisk’
chown: invalid user: asterisk:asterisk' chown: invalid user:asterisk:asterisk’
chown: invalid user: asterisk:asterisk' chown: invalid user:asterisk’
chown: invalid user: asterisk:asterisk' chown: invalid user:asterisk:asterisk’
Reading /etc/amportal.conf
Updating configuration…
/etc/asterisk/cdr_mysql.conf user: [root] password: [gulfsip] hostname: [localho st]
/etc/asterisk/manager.conf user: [admin] secret: [amp111]
/etc/asterisk/vm_email.inc
You might need to modify /etc/asterisk/vm_email.inc manually
Adjusting File Permissions…

SETTING FILE PERMISSIONS
Permissions OK
Done
done with apply_conf.sh
creating missing #include files…sh: sudo: not found
Error code 127: trying to create empty file /etc/asterisk/logger_general_additio nal.conf
sh: sudo: not found
Error code 127: trying to create empty file /etc/asterisk/logger_general_custom. conf
sh: sudo: not found
Error code 127: trying to create empty file /etc/asterisk/logger_logfiles_additi onal.conf
sh: sudo: not found
Error code 127: trying to create empty file /etc/asterisk/logger_logfiles_custom .conf
sh: sudo: not found
Error code 127: trying to create empty file /etc/asterisk/manager_additional.con f
sh: sudo: not found
Error code 127: trying to create empty file /etc/asterisk/manager_custom.conf
sh: sudo: not found
Error code 127: trying to create empty file /etc/asterisk/meetme_additional.conf
sh: sudo: not found
Error code 127: trying to create empty file /etc/asterisk/musiconhold_custom.con f
sh: sudo: not found
Error code 127: trying to create empty file /etc/asterisk/musiconhold_additional .conf
sh: sudo: not found
Error code 127: trying to create empty file /etc/asterisk/queues_general_additio nal.conf
sh: sudo: not found
Error code 127: trying to create empty file /etc/asterisk/queues_custom_general. conf
sh: sudo: not found
Error code 127: trying to create empty file /etc/asterisk/queues_custom.conf
sh: sudo: not found
Error code 127: trying to create empty file /etc/asterisk/queues_additional.conf
sh: sudo: not found
Error code 127: trying to create empty file /etc/asterisk/queues_post_custom.con f
OK
Setting permissions on files…chown: invalid user: asterisk:asterisk' chown: invalid user:asterisk:asterisk’
chown: invalid user: asterisk:asterisk' chown: invalid user:asterisk:asterisk’
chown: invalid user: asterisk:asterisk' chown: invalid user:asterisk:asterisk’
chown: invalid user: asterisk:asterisk' chown: invalid user:asterisk:asterisk’
chown: invalid user: asterisk:asterisk' chown: invalid user:asterisk:asterisk’
chown: invalid user: asterisk:asterisk' chown: invalid user:asterisk:asterisk’
chown: invalid user: asterisk' chown: invalid user:asterisk:asterisk’
chown: invalid user: asterisk:asterisk' OK Checking for upgrades..59 found Upgrading to 1.10.007beta1.. -> Running SQL script /usr/src/freepbx-2.10.0/upgrades/1.10.007beta1/tables.sql [FATAL] ALTER TABLEsipCHANGEidid` BIGINT( 11 ) DEFAULT “-1” NOT NULL [n ativecode=1146 ** Table ‘asterisk.sip’ doesn’t exist]" while running tables.sql

============================================================================
when try to run the ./install_amp script

??

I have not read that FreePBX 2.10 supports Asterisk 10.

i tried free pbx 2.9 it told me it doesnot support asterisk 10
but when try to use free pbx 2.10 it did not give me this error ?

In another thread , Tony Lewis reported that they are working on Beta of FreePBX 2.10 and Asterisk 10.

I would expect there to be issues through the beta period… since that hasn’t started yet. I think you’re on your own.

looks like you didn’t create your initial tables:

-> Running SQL script /usr/src/freepbx-2.10.0/upgrades/1.10.007beta1/tables.sql
[FATAL] ALTER TABLE sip CHANGE id id BIGINT( 11 ) DEFAULT “-1” NOT NULL [n ativecode=1146 ** Table ‘asterisk.sip’ doesn’t exist]" while running tables.sql

you may be better off using the Distro to load FreePBX, you can then manually upgrade to Asterisk 10 if you don’t want to wait for Distro options to do that though they are coming soon.

2.10 does support Asterisk 10 though being pretty bleeding edge be prepared for a more rugged road. Right now known issues are app_confbridge does not work with FreePBX though app_meetme should be fine.