-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docker installation failing to create database #128
Comments
MariaDB |
For reference everything installed fine on release :1.69 |
Try connecting from the LibreNMS container to the database container using the command line.
This should help determine whether there is a communication problem between the containers or a misconfiguration. |
So created a new Standalone DB and Standalone LibreNMS as per below... ** Volumes for persistent data ** Docker MariaDB Installation docker exec -it xxmariadb mysql -u root -p ** Database for LibreNMS
docker restart xxmariadb ** LibreNMS
KEY : base64:zl/bEXXJ/ZRSClWGeNOYw/SFIGcsNgyM7zAdZLXghcM= docker run
|
Hi, I have the same issue using mysql database. `root@29b06f567386:/opt/librenms# mysql --host=$DB_HOST -u $DB_USER -p Copyright (c) 2000, 2020, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. mysql> ^DBye My question now, can you please make the timeout as a variable that we can give with the enviroment variables? This parameter is available in official librenms it seems. Many thanks for all your work |
I did some more testing and I did a manual delete of the librenms database directly on the mysql container and even the delete took 1 minute and 24 secs. This is over the 60 seconds timeout coming from librenms. `root@mysql:/# mysql -p Copyright (c) 2000, 2021, Oracle and/or its affiliates. Oracle is a registered trademark of Oracle Corporation and/or its Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. mysql> show databases; mysql> drop database librenms; |
I just grepped through some source files and have not conducted an in-depth analysis yet. Unfortunately, I do not see an easy way to fix this without sacrificing Laravel's database migrations. As far as I can tell, Laravel's classes (e.g. Perhaps I can help fix this upstream (in Laravel), but it will probably take time to 1) fix in Laravel 2) wait until LibreNMS uses that Laravel version 3) create a new image. |
OK thanks will stick at 1.69 for now |
@uktricky This should be fixed, see laravel/framework#36126 |
Using
docker run \
when I run the "docker exec librenms setup_database"
I get:
In Process.php line 1201:
The process "mysql --host="${:LARAVEL_LOAD_HOST}" --port="${:LARAVEL_LOAD_P
ORT}" --user="${:LARAVEL_LOAD_USER}" --password="${:LARAVEL_LOAD_PASSWORD}"
--database="${:LARAVEL_LOAD_DATABASE}" < "${:LARAVEL_LOAD_PATH}"" exceeded
the timeout of 60 seconds.
running mariadb in a different docker session on same network
zabbix also in same docker without issues against the database
I previously had librenms running for months but messed up a distributed poller setup
so dropped the database (librenms) and the associated user etc.
removed the docker and even the image
recreated the database/user and permissions
then ran the above installation
But getting the database error?!
The text was updated successfully, but these errors were encountered: