LibreBooking / docker

Librebooking as a docker container
GNU General Public License v3.0
11 stars 12 forks source link

Unknow error #9

Closed ben13300 closed 1 year ago

ben13300 commented 1 year ago

Hello, I am trying to use LibreBooking docker, and i got the classic issue "Unknow error". Which PHP's version did you use inside your docker ? Thanks. Benoit (Newbie)

colisee commented 1 year ago

Hi @ben13300 ,

the current docker image (2.8.5.5) is based on Apache:php-7

Normally, you should have no issues… Did you try one of the docker-compose.yml samples I mentioned inside the README.md document?

FYI, I will soon package a new docker image, based on the just released librebooking (2.8.6)

Kind regards.

Robin

ben13300 commented 1 year ago

Dear @colisee, Thank you for your job and help. I chose the 'docker-compose: simple setup', I copied/pasted your docker-compose.yml, and tested it in a Synology docker.

I'll try again, as said I'm a newbie, and maybe I did something wrong

Thanks you very much Best Regards benoit

ben13300 commented 1 year ago

I tested it an other time.. Same issue. Thanks Benoit

colisee commented 1 year ago

Hi @ben13300,

I could not see anything wrong from the log output you shared with me.

Here are my questions:

  1. In the docker-compose.yml file, did you set values for variables MYSQL_ROOT_PASSWORD, MYSQL_PASSWORD, TZ, LB_INSTALL_PWD and LB_DB_USER_PWD? The examples I gave come without values...
  2. If you set values for the above variables, then could you share the screen copies from the moment you run the application setup ?
ben13300 commented 1 year ago

Hi @colisee , Thanks for your help. I setted now values (sorry for my previous mistake) and here a screen copie of the application setup page. image

The linuxserver/mariadb has not published port for mysql access , how the librebooking/librebooking can access to it ?

colisee commented 1 year ago

Bonjour @ben13300,

The screen copy indicates that you did not set the installation password for librebooking (environment variable LB_INSTALL_PWD). But there is also an issue connecting to the mariadb container, apparently...

Could you please share your docker-compose.yml file ?

Merci.

Robin

ben13300 commented 1 year ago

Here the file, thanks for your help. I put the same Password everywhere.

(txt extension put to allow upload on the site) docker-compose.yml.txt

colisee commented 1 year ago

Rebonjour,

Your docker-compose.yml file is correct, although you should specify a value for the environment variable TZ (ex: TZ=Europe/Paris).

Regardless of the remark on TZ, I tried your file on my computer and it worked perfectly...! Just to be sure, the URL for setting the application up is: http://192.168.0.109:7080/Web/install (in my case, the IP address was 192.168.0.95)

Here are my screen captures:

  1. Setup: 1st display Capture d’écran de 2023-04-19 17-12-46

  2. Setup: 2nd display The MySQL user must be root Capture d’écran de 2023-04-19 17-14-39

  3. Setup: 3rd display All instructions performed successfully Capture d’écran de 2023-04-19 17-15-17

Could you please check again on your side?

colisee commented 1 year ago

Benoît,

Please run these commands when performing the new attempt:

docker volume rm librebooking_html librebooking-db_data
docker-compose up --detach

This will make sure that the 2 volumes are re-created anew.

ben13300 commented 1 year ago

OK thanks you. So : first try, without removing the 2 volumes ---> Same issue. Second try, with removing the 2 volumes --> Good news, but connection mysql refused

Step 1 : image

Step 2: image

Step 3 : image All is correct NOW !!!

THANK YOU VERY MUCH, sorry for my fist mistake (no password).

ben13300 commented 1 year ago

The first SQL warning should be ignored.

ben13300 commented 1 year ago

I can close the issue. Everything works fine now. It could be interesting to add The "rm" command into the installation guide.

Unfortunately, bookedscheduler may not meet my expectations, I have to make reservations like "every 2nd Tuesday of each month"... Not sure that's possible.

THANK YOU VERY MUCH @colisee FOR YOUR HELP !