FOP installation errors

Hello,
Just posting here to see if anyone else has run across this issue. I am Installing FOP2 with one command and am getting errors…

wget -O - http://download.fop2.com/install_fop2.sh | bash

Creating /etc/asterisk/extensions_override_fop2.conf …
Done!

Reloading asterisk dialplan…
Done!

Generating FOP2 Manager configuration…

Updating buttons for context GENERAL

┌─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
│ literal │
└─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
string (102) “256, SQL Error: SELECT * FROM fop2buttons ORDER BY sortorder
(/var/www/html/fop2/admin/dblib.php, 108”
═══════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════
Called from …/functions.php:2592 [fop2manager_error()]

┌─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
│ literal │
└─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
string (102) “256, SQL Error: SELECT * FROM fop2buttons ORDER BY sortorder
(/var/www/html/fop2/admin/dblib.php, 108”
═══════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════
Called from …/functions.php:2592 [fop2manager_error()]

┌─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
│ literal │
└─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
string (103) “256, SQL Error: DELETE FROM fop2setup WHERE keyword=‘dbready’
(/var/www/html/fop2/admin/dblib.php, 108”
═══════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════
Called from …/functions.php:2592 [fop2manager_error()]

┌─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
│ literal │
└─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
string (148) “256, SQL Error: INSERT INTO fop2setup (keyword,parameter,value) VALUES (‘dbready’,UNIX_TIMESTAMP(now()),0)
(/var/www/html/fop2/admin/dblib.php, 108”
═══════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════
Called from …/functions.php:2592 [fop2manager_error()]

┌─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
│ literal │
└─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
string (133) “256, SQL Error: REPLACE INTO fop2groups (id,name,context_id) values(’-1’,‘All Buttons’,‘0’)
(/var/www/html/fop2/admin/dblib.php, 108”
═══════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════
Called from …/functions.php:2592 [fop2manager_error()]

┌─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
│ literal │
└─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
string (136) “256, SQL Error: REPLACE INTO fop2groups (id,name,context_id) values(’-2’,‘All Extensions’,‘0’)
(/var/www/html/fop2/admin/dblib.php, 108”
═══════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════
Called from …/functions.php:2592 [fop2manager_error()]

┌─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
│ literal │
└─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
string (132) “256, SQL Error: REPLACE INTO fop2groups (id,name,context_id) values(’-3’,‘All Queues’,‘0’)
(/var/www/html/fop2/admin/dblib.php, 108”
═══════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════
Called from …/functions.php:2592 [fop2manager_error()]

┌─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
│ literal │
└─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
string (137) “256, SQL Error: REPLACE INTO fop2groups (id,name,context_id) values(’-4’,‘All Conferences’,‘0’)
(/var/www/html/fop2/admin/dblib.php, 108”
═══════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════
Called from …/functions.php:2592 [fop2manager_error()]

┌─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
│ literal │
└─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
string (132) “256, SQL Error: REPLACE INTO fop2groups (id,name,context_id) values(’-5’,‘All Trunks’,‘0’)
(/var/www/html/fop2/admin/dblib.php, 108”
═══════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════
Called from …/functions.php:2592 [fop2manager_error()]

┌─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
│ literal │
└─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
string (117) “256, SQL Error: DELETE FROM fop2GroupButton WHERE group_name=‘All Buttons’
(/var/www/html/fop2/admin/dblib.php, 108”
═══════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════
Called from …/functions.php:2592 [fop2manager_error()]

┌─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
│ literal │
└─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
string (120) “256, SQL Error: DELETE FROM fop2GroupButton WHERE group_name=‘All Extensions’
(/var/www/html/fop2/admin/dblib.php, 108”
═══════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════
Called from …/functions.php:2592 [fop2manager_error()]

┌─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
│ literal │
└─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
string (116) “256, SQL Error: DELETE FROM fop2GroupButton WHERE group_name=‘All Queues’
(/var/www/html/fop2/admin/dblib.php, 108”
═══════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════
Called from …/functions.php:2592 [fop2manager_error()]

┌─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
│ literal │
└─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
string (121) “256, SQL Error: DELETE FROM fop2GroupButton WHERE group_name=‘All Conferences’
(/var/www/html/fop2/admin/dblib.php, 108”
═══════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════
Called from …/functions.php:2592 [fop2manager_error()]

┌─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
│ literal │
└─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
string (116) “256, SQL Error: DELETE FROM fop2GroupButton WHERE group_name=‘All Trunks’
(/var/www/html/fop2/admin/dblib.php, 108”
═══════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════
Called from …/functions.php:2592 [fop2manager_error()]

┌─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
│ literal │
└─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
string (103) “256, SQL Error: DELETE FROM fop2setup WHERE keyword=‘dbready’
(/var/www/html/fop2/admin/dblib.php, 108”
═══════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════
Called from …/functions.php:2592 [fop2manager_error()]

┌─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
│ literal │
└─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
string (99) “256, SQL Error: SELECT * FROM fop2plugins ORDER BY name
(/var/www/html/fop2/admin/dblib.php, 108”
═══════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════
Called from …/functions.php:2592 [fop2manager_error()]

┌─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
│ literal │
└─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
string (153) “256, SQL Error: INSERT INTO fop2plugins (rawname, name, version, description, global) values (’’,’’,’’,’’, ‘’)
(/var/www/html/fop2/admin/dblib.php, 108”
═══════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════
Called from …/functions.php:2592 [fop2manager_error()]

Finished!
Restarting fop2 (via systemctl): [ OK ]

Try over adding debugging to bash

wget -O - http://download.fop2.com/install_fop2.sh | bash -x

bummer, didn’t give me anymore details…

I am very surprised, it certainly should, post the revised new output please.

Writing updated /usr/local/fop2/fop2.cfg…
Done!

Reloading Asterisk Manager configuration…
Done!

Restarting FOP2…
Done!

  • /usr/sbin/asterisk -rx ‘manager reload’
  • /usr/local/fop2/generate_override_contexts.pl -w
    Backing up /etc/asterisk/extensions_override_freepbx.conf to /etc/asterisk/extensions_override_freepbx.conf.bak
    Done!

Cleaning and updating /etc/asterisk/extensions_override_freepbx.conf …
Done!

Creating /etc/asterisk/extensions_override_fop2.conf …
Done!

Reloading asterisk dialplan…
Done!

Generating FOP2 Manager configuration…

Updating buttons for context GENERAL

┌────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
│ literal │
└────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
string (102) “256, SQL Error: SELECT * FROM fop2buttons ORDER BY sortorder
(/var/www/html/fop2/admin/dblib.php, 108”
══════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════
Called from …/functions.php:2592 [fop2manager_error()]

┌────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
│ literal │
└────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
string (102) “256, SQL Error: SELECT * FROM fop2buttons ORDER BY sortorder
(/var/www/html/fop2/admin/dblib.php, 108”
══════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════
Called from …/functions.php:2592 [fop2manager_error()]

┌────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
│ literal │
└────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
string (103) “256, SQL Error: DELETE FROM fop2setup WHERE keyword=‘dbready’
(/var/www/html/fop2/admin/dblib.php, 108”
══════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════
Called from …/functions.php:2592 [fop2manager_error()]

┌────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
│ literal │
└────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
string (148) “256, SQL Error: INSERT INTO fop2setup (keyword,parameter,value) VALUES (‘dbready’,UNIX_TIMESTAMP(now()),0)
(/var/www/html/fop2/admin/dblib.php, 108”
══════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════
Called from …/functions.php:2592 [fop2manager_error()]

┌────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
│ literal │
└────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
string (133) “256, SQL Error: REPLACE INTO fop2groups (id,name,context_id) values(’-1’,‘All Buttons’,‘0’)
(/var/www/html/fop2/admin/dblib.php, 108”
══════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════
Called from …/functions.php:2592 [fop2manager_error()]

┌────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
│ literal │
└────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
string (136) “256, SQL Error: REPLACE INTO fop2groups (id,name,context_id) values(’-2’,‘All Extensions’,‘0’)
(/var/www/html/fop2/admin/dblib.php, 108”
══════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════
Called from …/functions.php:2592 [fop2manager_error()]

┌────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
│ literal │
└────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
string (132) “256, SQL Error: REPLACE INTO fop2groups (id,name,context_id) values(’-3’,‘All Queues’,‘0’)
(/var/www/html/fop2/admin/dblib.php, 108”
══════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════
Called from …/functions.php:2592 [fop2manager_error()]

┌────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
│ literal │
└────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
string (137) “256, SQL Error: REPLACE INTO fop2groups (id,name,context_id) values(’-4’,‘All Conferences’,‘0’)
(/var/www/html/fop2/admin/dblib.php, 108”
══════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════
Called from …/functions.php:2592 [fop2manager_error()]

┌────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
│ literal │
└────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
string (132) “256, SQL Error: REPLACE INTO fop2groups (id,name,context_id) values(’-5’,‘All Trunks’,‘0’)
(/var/www/html/fop2/admin/dblib.php, 108”
══════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════
Called from …/functions.php:2592 [fop2manager_error()]

┌────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
│ literal │
└────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
string (117) “256, SQL Error: DELETE FROM fop2GroupButton WHERE group_name=‘All Buttons’
(/var/www/html/fop2/admin/dblib.php, 108”
══════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════
Called from …/functions.php:2592 [fop2manager_error()]

┌────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
│ literal │
└────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
string (120) “256, SQL Error: DELETE FROM fop2GroupButton WHERE group_name=‘All Extensions’
(/var/www/html/fop2/admin/dblib.php, 108”
══════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════
Called from …/functions.php:2592 [fop2manager_error()]

┌────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
│ literal │
└────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
string (116) “256, SQL Error: DELETE FROM fop2GroupButton WHERE group_name=‘All Queues’
(/var/www/html/fop2/admin/dblib.php, 108”
══════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════
Called from …/functions.php:2592 [fop2manager_error()]

┌────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
│ literal │
└────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
string (121) “256, SQL Error: DELETE FROM fop2GroupButton WHERE group_name=‘All Conferences’
(/var/www/html/fop2/admin/dblib.php, 108”
══════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════
Called from …/functions.php:2592 [fop2manager_error()]

┌────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
│ literal │
└────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
string (116) “256, SQL Error: DELETE FROM fop2GroupButton WHERE group_name=‘All Trunks’
(/var/www/html/fop2/admin/dblib.php, 108”
══════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════
Called from …/functions.php:2592 [fop2manager_error()]

┌────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
│ literal │
└────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
string (103) “256, SQL Error: DELETE FROM fop2setup WHERE keyword=‘dbready’
(/var/www/html/fop2/admin/dblib.php, 108”
══════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════
Called from …/functions.php:2592 [fop2manager_error()]

┌────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
│ literal │
└────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
string (99) “256, SQL Error: SELECT * FROM fop2plugins ORDER BY name
(/var/www/html/fop2/admin/dblib.php, 108”
══════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════
Called from …/functions.php:2592 [fop2manager_error()]

┌────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
│ literal │
└────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
string (153) “256, SQL Error: INSERT INTO fop2plugins (rawname, name, version, description, global) values (’’,’’,’’,’’, ‘’)
(/var/www/html/fop2/admin/dblib.php, 108”
══════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════
Called from …/functions.php:2592 [fop2manager_error()]

Finished!

  • service fop2 restart
    Restarting fop2 (via systemctl): [ OK ]

Still without the -x , never mind.

Check that the MySQL credentials in

/var/www/html/fop2/admin/config.php

Match your systen

1 Like

OMG - you are my hero! That was the issue. Thank you so much!

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.