Class 'CI_Controller' not found

1,873 views
Skip to first unread message

GlennUK

unread,
Jun 10, 2019, 7:52:48 AM6/10/19
to ASTPP
Hi All

Wanted to try out version 4 so did a fresh install using the script on Debain 9.9. When trying to login I get the following error in the web browser Class 'CI_Controller' not found

I have done a second built just incase I did something wrong but same error. All services are running and astpp user showing in database and password seems correct in config files.

I have gone through the log files but don't see any errors in any logs

Anyone got any ideas?

Thanks

Glenn

Craig Wilson

unread,
Jun 10, 2019, 8:08:59 AM6/10/19
to as...@googlegroups.com
In my case. It's MySql. The install.sh uses a random password generator.  But the MySql password plugin has strict criteria. In my case or needed a number as well as upper, lower case and special character.

As this fails on install, the astppuser isn't created. Therefore, the db connection fails. Hence, the error.

Also, if you login to MySql and inspect user, host, you will see host is (localhost) not 127.0.0.1 as specified in /var/lib/astpp-config.conf

I created astppuser manually with a number in password. This got rid of the error.  But now login page hangs.

I believe a new install.sh has been created with a fix in the password generator to overcome the issue.

Cheers!

On 5 Jun 2019, at 18:47, Florent GOUE <flore...@gmail.com> wrote:

Hello
I did a V4 installation on debian 9.
when i try to connect to the interface via the ip address, it shows me:

An Error Was Encountered
Class 'CI_Controller' not found

Can someone help me

Thx


<Capture.JPG>


-- 
=====================================================================
Documentation:https://astpp.readthedocs.io/
Please contact at sa...@inextrix.comfor commercial support.
--- 
You received this message because you are subscribed to the Google Groups "ASTPP" group.
To unsubscribe from this group and stop receiving emails from it, send an email toastpp+un...@googlegroups.com.
To view this discussion on the web visithttps://groups.google.com/d/msgid/astpp/2ede568d-2621-4151-b8f9-8a7044d2cc8a%40googlegroups.com.
<Capture.JPG>
--
=====================================================================
Documentation: https://astpp.readthedocs.io/
Please contact at sa...@inextrix.com for commercial support.
---
You received this message because you are subscribed to the Google Groups "ASTPP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to astpp+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/astpp/f1988267-58aa-49f5-9349-a6f2df8167b8%40googlegroups.com.

Devang Nathwani

unread,
Jun 10, 2019, 8:18:58 AM6/10/19
to as...@googlegroups.com
Hello,

"I believe a new install.sh has been created with a fix in the password generator to overcome the issue."
This is correct.
Get the latest install.sh and try please.



--
Thanks,
Devang Nathwani

Disclaimer:
The information contained in this communication is confidential and may be legally privileged. It is intended solely for the use of the individual or entity to whom it is addressed and others authorized to receive it. If you are not the intended recipient you are hereby notified that any disclosure, copying, distribution or taking action in reliance of the contents of this information is strictly prohibited and may be unlawful. Please notify the sender immediately and destroy all copies of this message and any attachments contained in it.

GlennUK

unread,
Jun 10, 2019, 8:54:58 AM6/10/19
to ASTPP
Hi thanks.

This is the latest install script from the website, was only downloaded today.

I have checked the database and the user has been created.

Many thanks

Glenn

To unsubscribe from this group and stop receiving emails from it, send an email toas...@googlegroups.com.
<Capture.JPG>

On 10 Jun 2019, at 12:52, "'GlennUK' via ASTPP" <as...@googlegroups.com> wrote:

Hi All

Wanted to try out version 4 so did a fresh install using the script on Debain 9.9. When trying to login I get the following error in the web browser Class 'CI_Controller' not found

I have done a second built just incase I did something wrong but same error. All services are running and astpp user showing in database and password seems correct in config files.

I have gone through the log files but don't see any errors in any logs

Anyone got any ideas?

Thanks

Glenn

--
=====================================================================
Documentation: https://astpp.readthedocs.io/
Please contact at sa...@inextrix.com for commercial support.
---
You received this message because you are subscribed to the Google Groups "ASTPP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to as...@googlegroups.com.

--
=====================================================================
Documentation: https://astpp.readthedocs.io/
Please contact at sa...@inextrix.com for commercial support.
---
You received this message because you are subscribed to the Google Groups "ASTPP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to as...@googlegroups.com.

DigitalDaz

unread,
Jun 12, 2019, 9:53:48 AM6/12/19
to ASTPP
I've just installed today and get the same error.

Devang Nathwani

unread,
Jun 13, 2019, 5:35:09 AM6/13/19
to as...@googlegroups.com
Hello,

Can you check that you can connect mysql with details available in /var/lib/astpp/astpp-config.conf ?

To unsubscribe from this group and stop receiving emails from it, send an email to astpp+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/astpp/c9af4c7f-328a-4bd6-b969-9ceb28f925e3%40googlegroups.com.

GlennUK

unread,
Jun 18, 2019, 9:36:45 AM6/18/19
to as...@googlegroups.com
Just done a 3rd build and same issue. 

Through terminal I can login as astpp user in to database and list tables with no problem

MariaDB [(none)]> use astpp

Reading table information for completion of table and column names

You can turn off this feature to get a quicker startup with -A


Database changed

MariaDB [astpp]> show tables;

+-------------------+

| Tables_in_astpp   |

+-------------------+

| accessnumber      |

| accounts          |

| accounts_callerid |

+-------------------+

3 rows in set (0.00 sec)

Kavin Chauhan

unread,
Jun 19, 2019, 12:31:34 AM6/19/19
to ASTPP
Hi,
Your output clearly showing that, your database is not imported completely.
Can you please follow below steps in mysql console.
1> DROP DATABASE astpp;
2> CREATE DATABASE astpp;
3> USE astpp;
4> \. /opt/ASTPP/database/astpp-4.0.sql

If any error then please let me know.

On Tue, Jun 18, 2019 at 7:06 PM 'GlennUK' via ASTPP <as...@googlegroups.com> wrote:
Just done a 3rd build and same issue. 

Through terminal I can login as asp user in to database and list tables with no problem
To unsubscribe from this group and stop receiving emails from it, send an email to astpp+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/astpp/ed8337bb-7db9-4cf5-99a6-2be04e9261e6%40googlegroups.com.


--
Thanks,
Kavin Chauhan,
Sr. Network and VOIP Engineer
Inextrix Technologies Pvt. Ltd.
+91 79 29700670

GlennUK

unread,
Jun 25, 2019, 5:26:31 AM6/25/19
to ASTPP
Many thanks for this. I did a 4th build with the same issues so dropped database as requested and I can now login. Can only guess there must be an issue with the script somewhere. Whilst I can now login things as still not correct as you now get the following error

Error Number: 1146

Table 'astpp.orders' doesn't exist

SELECT `orders`.`id`, `orders`.`order_id`, `orders`.`order_date`, `orders`.`accountid`, `orders`.`payment_gateway`, `orders`.`payment_status`, `orders`.`reseller_id`, `orders`.`accountid`, `order_items`.`setup_fee`, `order_items`.`price` FROM (`orders`) INNER JOIN `order_items` ON `orders`.`id`=`order_items`.`order_id` WHERE `orders`.`reseller_id` = '0' ORDER BY `orders`.`order_date` DESC LIMIT 10

Filename: /opt/ASTPP/web_interface/astpp/models/db_model.php

Line Number: 282


Astpp database after the drop and reimport shows

MariaDB [astpp]> show tables;

+----------------------+

| Tables_in_astpp      |

+----------------------+

| accessnumber         |

| accounts             |

| accounts_callerid    |

| addons               |

| ani_map              |

| backup_database      |

| block_patterns       |

| calltype             |

| cdrs                 |

| cdrs_day_by_summary  |

| cdrs_staging         |

| ci_sessions          |

| cli_group            |

| commission           |

| counters             |

| countrycode          |

| currency             |

| default_templates    |

| dids                 |

| freeswich_servers    |

| gateways             |

| invoice_conf         |

| invoice_details      |

| invoices             |

| ip_map               |

| language             |

| languages            |

| license              |

| mail_details         |

| menu_modules         |

| outbound_routes      |

| package_patterns     |

| payment_transaction  |

| permissions          |

| pricelists           |

| q850code             |

| ratedeck             |

| refill_coupon        |

| reports_process_list |

| reseller_cdrs        |

| roles_and_permission |

| routes               |

| routing              |

| sip_devices          |

| sip_profiles         |

| speed_dial           |

| sweeplist            |

| system               |

| taxes                |

| taxes_to_accounts    |

| timezone             |

| translations         |

| trunks               |

| userlevels           |

| usertracking         |

+----------------------+

55 rows in set (0.00 sec)


Thanks

Kavin Chauhan

unread,
Jun 25, 2019, 6:30:08 AM6/25/19
to ASTPP
This issue is with your database only. Something wrong with your database settings and it's not importing complete database. Please check logs for mysql during import.


To unsubscribe from this group and stop receiving emails from it, send an email to astpp+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/astpp/b51659b3-f1c1-43b3-812b-4022e57afae4%40googlegroups.com.

sam tion

unread,
Jun 25, 2019, 10:09:46 AM6/25/19
to as...@googlegroups.com
To troubleshoot this I would try run the commands from the install script manually to see what is going on.

Vishal Pai

unread,
Jul 1, 2019, 8:16:35 AM7/1/19
to ASTPP
May be the issue is with version of mysql if we are using mysql version 8.0 then working fine. Issue is with mysql older version.

nocpbx

unread,
Jul 29, 2019, 1:47:52 PM7/29/19
to ASTPP
same happen on centos 7, 

just go to astpp-config.conf and change 
dbhost = 127.0.0.1 to  dbhost = localhost and this will fix

Aaryan

unread,
Jul 29, 2019, 1:55:19 PM7/29/19
to ASTPP
first check that your database has correctly imported, if it is imported properly then check the username and password created for astpp it is working or not. because when i faced this issue i found that database was not correctly imported nor the user was properly created. 

ahmedk

unread,
Aug 9, 2019, 1:26:40 AM8/9/19
to ASTPP
ASTPP 4.0 and 4.0.1 requires MySQL 8.

MySql 8 is no longer the default mysql package in Debian 9/Ubuntu 18 so the install script attempts to download & installed the deb file.

mysql-apt-config_0.8.13-1_all.deb requires a pre-dependency called lsb-release. If this is not found, MySQL 8 will not install. Instead, its installs MariaDB and attempts to import the mysqldump file which creates a mess.

MySQL 8.0 and MariaDB 10.3 differ significantly from each other. MariaDB is no longer a drop-in replacement for MySQL. MariaDB is no longer merging new MySQL features with MariaDB nor solving MySQL bugs.

Also note, the MySQL 8 install prompts the user to select between standard and development versions. User has to cursor down to "OK" and select enter.

Simply install with apt-get lsb-release before you run the install.sh script.

        apt-get install lsb-release

Happy installs ☺

kakatua

unread,
Aug 9, 2019, 1:33:42 AM8/9/19
to ASTPP
Before install ASTPP 4.0, 4.1 quick installer
please intsall :
yum group install "Development Tools" for centos7
sudo apt-get install build-essential for debian

SMarkson

unread,
Aug 14, 2019, 6:30:41 PM8/14/19
to ASTPP
 Here's what I've done to solve this issue, using combined answers from this thread (Debian 9)
 
- Before install script:

# apt install lsb-release build-essential
# dpkg -i mysql-apt-config_0.8.13-1_all.deb (Choose MySQL version 8) //I got it from here: https://dev.mysql.com/downloads/file/?id=487007

Quick install AstPP script.

Cheers,

SM
Reply all
Reply to author
Forward
0 new messages