I have a V14 that after an update TC and TG are disabled and cel can not be installed due to an error --> Can not create cel table. When I attempt to auto correct the database the issue persists.
Detected Missing Dependency of: cel
Found local Dependency of: cel 14.0.6
Installing Missing Dependency of: cel
Creating cel if needed…
In utility.functions.php line 207:
Can not create cel table::
mysqlcheck -u root -p asteriskcdr db --auto-repair
Enter password:
asteriskcdrdb.cdr OK
Working system:
mysqlcheck -u root -p asteriskcdrdb --auto-repair
Enter password:
asteriskcdrdb.cdr OK
asteriskcdrdb.cel OK
asteriskcdrdb.queuelog OK
I am also having the same issue with one of my v14 systems. CEL is disabled along with TC and TG. The error i get from command line is "In utility.functions.php line 207: can not create cel table::.
Any ideas on how to fix?
# fwconsole ma downloadinstall cel
No repos specified, using: [standard] from last GUI settings
Downloading module 'cel'
Processing cel
Verifying local module download...Verified
Extracting...Done
Download completed in 11 seconds
Creating cel if needed..
In utility.functions.php line 207:
Can not create cel table::
It might be time to pop the hood on the mysql database directory.
IIRC, the database table files are in “/var/lib/mysql”. ‘cd’ to that and see what’s going on.
I’m going to guess that some of the ‘cel’ files are there and some aren’t. If worse comes to worse, you can delete all of the ‘cel’ files and restore them from a backup or recreate them using the “fwconsole install” approach. Another thing you can try is dropping the cel table from mysql to get rid of the reference pointers (which may not work, but should be worth a shot).
The data and index files aren’t there, so yeah, it’s going to have trouble with that. The “right” way to do this from another server would be to use
“mysqldump … --tables cel > cel.sql”
and
“mysql … asteriskcdrdb < cel.sql”
If you’re feeling creative, you can do it in one line:
“mysqldump … -h remote.ip --databases asteriskcdrdb --tables cel | mysql -u root”
That should drop the table if it exists and recreate the table for you with allocated space for the data ready to go.