Forum

Ask, reply and learn. Join the community of Akaunting.

New Discussion

Weird App Installation Error

Muhammad Shahid   ( User )

Commented 1 year ago

Hello everyone, I have successfully installed the Version 3.0.11 and working fine.

I am facing issue to install a new app like Currency-Calculator. The module downloaded successfully and during installation throws an error like:
The command C:/xampp/php/php.exe artisan module:install currency-calculator 1 failed.



Exit Code: 1(General error)



Working directory: C:\\xampp\\htdocs\\akaunting



Output:
================



Illuminate\\Database\\QueryException



SQLSTATE[HY000] [2002] Unknown error while connecting (SQL: select * from `gfp_modules` where `gfp_modules`.`company_id` = 1 and `alias` = currency-calculator and `gfp_modules`.`deleted_at` is null limit 1)



at C:\\xampp\\htdocs\\akaunting\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php:760


756 // If an exception occurs when attempting to run a query, well format the error


757 // message to include the bindings with SQL, which will make this exception a


758 // lot more helpful to the developer instead of just the databases errors.


759 catch (Exception $e) {


760 throw new QueryException(


761 $query, $this->prepareBindings($bindings), $e


762 );


763 }


764 }



1 C:\\xampp\\htdocs\\akaunting\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connectors\\Connector.php:70


PDOException::(SQLSTATE[HY000] [2002] Unknown error while connecting)



2 C:\\xampp\\htdocs\\akaunting\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connectors\\Connector.php:70


PDO::__construct(mysql:host=127.0.0.1;port=3306;dbname=akaunting, root, , [])




Error Output:
================



Can someone please give any clue to trace this fix

Thanks

Muhammad Shahid   ( User )

Commented 1 year ago

To make the error more readable:
-------------------------------------
The command C:/xampp/php/php.exe artisan module:install currency-calculator 1 failed.

Exit Code: 1(General error)

Working directory: C:\\xampp\\htdocs\\akaunting

Output:
================

Illuminate\\Database\\QueryException

SQLSTATE[HY000] [2002] Unknown error while connecting (SQL: select * from `gfp_modules` where `gfp_modules`.`company_id` = 1 and `alias` = currency-calculator and `gfp_modules`.`deleted_at` is null limit 1)

at C:\\xampp\\htdocs\\akaunting\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php:760

// If an exception occurs when attempting to run a query, well format the error

// message to include the bindings with SQL, which will make this exception a

// lot more helpful to the developer instead of just the databases errors.

catch (Exception $e) {

throw new QueryException(

$query, $this->prepareBindings($bindings), $e

);

}

}


1 C:\\xampp\\htdocs\\akaunting\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connectors\\Connector.php:70

PDOException::(SQLSTATE[HY000] [2002] Unknown error while connecting)


2 C:\\xampp\\htdocs\\akaunting\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connectors\\Connector.php:70

PDO::__construct(mysql:host=127.0.0.1;port=3306;dbname=akaunting, root, , [])

Error Output:
================

Please login or register to leave a response.

Showing 1 to 2 of 2 discussions