ketan
April 19, 2023, 7:58pm
1
I am trying to run this project via docker. After deployment, I am trying to login with default login credentials i.e. admin/12345678, sadly I am not able to log in.
Branch used
https://github.com/BillRun/system.git [master]
The command used to run the docker
docker-compose -f docker-compose-php80.yml build
docker-compose -f docker-compose-php80.yml up
login details
URL: https://localhost:8080
username: admin
password: 12345678
Error
[19-Apr-2023 19:32:02] WARNING: [pool www] child 190 said into stderr: "NOTICE: PHP message: PHP Fatal error: Declaration of ApiController::render(string $tpl, ?array $parameters = null) must be compatible with Yaf_Controller_Abstract::render(string $tpl, array $parameters = NULL): string|bool|null in /billrun/application/controllers/Api.php on line 174"
10.103.0.4 - 19/Apr/2023:19:32:02 +0000 "POST /index.php" 500
[19-Apr-2023 19:32:14] WARNING: [pool www] child 191 said into stderr: "NOTICE: PHP message: Xdebug: [Step Debug] Could not connect to debugging client. Tried: 10.103.0.1:9091 (through xdebug.client_host/xdebug.client_port)."
Error Log from bill run container
Note: If I try to build docker image from 7.3 or 7.4 docker compose files it gives me build failure exception stating PHP version 8 is required found 7.x
eranu
April 20, 2023, 8:04am
2
Hey @ketan ,
Seems that you are using php 8.0 as the base the current main branch only support up to v7.4.
Changing the php version to 7.x should solve it.
What errors do you get during the docker build stage ?
ketan
April 20, 2023, 8:15am
3
hey @eranu I am attaching the error log while building docker image
❯ docker-compose -f docker-compose-php74.yml build
ketan
April 20, 2023, 9:59am
4
@eranu I was able to get it working by doing following
In the Docker file under folder billrun-php74
I change
`pecl install xdebug` to `pecl install xdebug-3.1.5`
Rebuild the Images
docker-compose -f docker-compose-php74.yml build
The build was successful and the application was accessible at http://localhost:8074
I was also able to log in with default credentials
username: admin
password: 12345678
ketan
April 20, 2023, 10:01am
5
resolved from my end thanks for your response @eranu
ketan
April 21, 2023, 7:18am
6
@eranu getting this error while saving subscribers.
[21-Apr-2023 07:15:24] WARNING: [pool www] child 68 said into stderr: "NOTICE: PHP message: Xdebug: [Step Debug] Could not connect to debugging client. Tried: 10.103.0.1:9090 (through xdebug.client_host/xdebug.client_port) :-("
[21-Apr-2023 07:15:24] WARNING: [pool www] child 68 said into stderr: "NOTICE: PHP message: PHP Warning: Declaration of BillapiController::render($tpl, ?array $parameters = NULL) should be compatible with Yaf_Controller_Abstract::render($tpl, $parameters = NULL) in /billrun/application/modules/Billapi/controllers/Billapi.php on line 224"
10.103.0.2 - 21/Apr/2023:07:15:24 +0000 "POST /index.php" 200
[21-Apr-2023 07:15:24] WARNING: [pool www] child 68 said into stderr: "NOTICE: PHP message: Xdebug: [Step Debug] Could not connect to debugging client. Tried: 10.103.0.1:9090 (through xdebug.client_host/xdebug.client_port) :-("