You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
SQLSTATE[HY000] [1130] Host '172.19.0.8' is not allowed to connect to this MariaDB server #18
After freshly setting up appwrite on my local and try to test the sign up functionality. I encountered the error "SQLSTATE[HY000] [1130] Host '172.19.0.8' is not allowed to connect to this MariaDB server. Screenshot below:
Doesn't look like a good idea to me to just use root@%. Instead, I presume this bug to be caused by underlying MySQL changes in password systematics since MySQL 8.0. Can somebody confirm this? I haven't had time to look into the repository itself and this error reminded me directly of a MySQL issue I had in 8.0.
Me & @christyjacob4 have fixed some issues we found in the DB directory. It seems like the Appwrite container have changed the DB directory read & write permissions on some linux distributions.
You can take a look at the fix in this commit: #37
This fix will be released in upcoming version 0.2.0 and theres a good chance it might help with this issue as well.
@Riyenz let me know if you can test this against the dev (master) version.
I am working through the master branch of this repository and this issue does not exist anymore. I am wondering which part of the mentioned PR solved it?
@christyjacob4 has seen that the Appwrite container was changing DB permissions in his setup and by that denying MariaDB from accessing the DB storage.
Reacted by (╯°□°)╯︵ uᴉǝssnH ɐɟɐʇsoW and Christy Jacob
Hey @Riyenz It would be great if you could send us outputs of the following
in the appwrite root list the permissions of the files
ls -l
Log into the mariadb container use password as rootsecretpassword
(base) christy@admin:~$ docker exec -it appwrite_mariadb_1 bash
root@6622670c390e:/ mysql -u root -p
Enter password:
Welcome to the MariaDB monitor. Commands end with ; or \g.
Your MariaDB connection id is 13
Server version: 10.4.4-MariaDB-1:10.4.4+maria~bionic mariadb.org binary distribution
Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.
Type 'help;' or '\h'for help. Type '\c' to clear the current input statement.
MariaDB [(none)]> SELECT host, user FROM mysql.user;
+-----------+------+
| Host | User |
+-----------+------+
| % | root || % | user || localhost | root |
+-----------+------+
3 rows inset (0.008 sec)
MariaDB [(none)]>
rienz@pop-os:~/Projects/appwrite(master)$ ls -l
total 524
drwxrwxr-x 10 www-data www-data 4096 Oct 8 23:42 app
-rw-rw-r-- 1 rienz rienz 792 Oct 8 23:42 build.sh
-rw-rw-r-- 1 rienz rienz 1500 Oct 8 23:42 CHANGES.md
-rw-rw-r-- 1 rienz rienz 3343 Oct 8 23:42 CODE_OF_CONDUCT.md
-rw-rw-r-- 1 rienz rienz 2169 Oct 8 23:42 composer.json
-rw-rw-r-- 1 rienz rienz 113684 Oct 8 23:42 composer.lock
-rw-rw-r-- 1 rienz rienz 6447 Oct 8 23:42 CONTRIBUTING.md
drwxrwxr-x 3 rienz rienz 4096 Oct 8 23:42 docker
-rw-rw-r-- 1 rienz rienz 1827 Oct 8 23:43 docker-compose.yml
-rwxrwxr-x 1 rienz rienz 3033 Oct 8 23:42 Dockerfile
drwxrwxr-x 5 rienz rienz 4096 Oct 8 23:42 docs
-rw-rw-r-- 1 rienz rienz 3951 Oct 8 23:42 gulpfile.js
-rw-rw-r-- 1 rienz rienz 1525 Oct 8 23:42 LICENSE
drwxrwxr-x 593 rienz rienz 20480 Oct 8 23:43 node_modules
-rw-rw-r-- 1 rienz rienz 361 Oct 8 23:42 package.json
-rw-rw-r-- 1 rienz rienz 304518 Oct 8 23:42 package-lock.json
-rw-rw-r-- 1 rienz rienz 503 Oct 8 23:42 phpunit.xml
drwxrwxr-x 6 www-data www-data 4096 Oct 8 23:42 public
-rw-rw-r-- 1 rienz rienz 8907 Oct 8 23:42 README.md
drwxrwxr-x 11 www-data www-data 4096 Oct 8 23:42 src
drwxr-xr-x 6 root root 4096 Oct 9 00:26 storage
drwxrwxr-x 4 rienz rienz 4096 Oct 8 23:42 tests
drwxrwxr-x 25 www-data www-data 4096 Oct 8 23:42 vendor
2
root with password doesnt work. by default it doesnt have a password
root@5aa16fb8bafa:/# mysql -u root -p
Enter password:
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
root@5aa16fb8bafa:/# mysql -u root
Welcome to the MariaDB monitor. Commands end with ; or \g.
Your MariaDB connection id is 12
Server version: 10.4.4-MariaDB-1:10.4.4+maria~bionic mariadb.org binary distribution
Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
MariaDB [(none)]> SELECT host, user FROM mysql.user;
+--------------+------+
| Host | User |
+--------------+------+
| 127.0.0.1 | root |
| 5aa16fb8bafa | |
| 5aa16fb8bafa | root |
| ::1 | root |
| localhost | |
| localhost | root |
+--------------+------+
6 rows in set (0.376 sec)
MariaDB [(none)]>
Activity
eldadfux commentedon Sep 11, 2019
Should check and see how we can add this solution by default to the appwrite/mariadb image in this repo:
https://github.com/appwrite/docker-mariadb
I am marking this issue as 'help-wanted', if no help is out there I will probably get to it after solving other more urgent issues.
jbehrens94 commentedon Sep 25, 2019
Doesn't look like a good idea to me to just use
root@%. Instead, I presume this bug to be caused by underlying MySQL changes in password systematics since MySQL 8.0. Can somebody confirm this? I haven't had time to look into the repository itself and this error reminded me directly of a MySQL issue I had in 8.0.eldadfux commentedon Sep 30, 2019
Me & @christyjacob4 have fixed some issues we found in the DB directory. It seems like the Appwrite container have changed the DB directory read & write permissions on some linux distributions.
You can take a look at the fix in this commit: #37
This fix will be released in upcoming version 0.2.0 and theres a good chance it might help with this issue as well.
@Riyenz let me know if you can test this against the dev (master) version.
mostafahussein commentedon Oct 8, 2019
I am working through the master branch of this repository and this issue does not exist anymore. I am wondering which part of the mentioned PR solved it?
eldadfux commentedon Oct 8, 2019
@mostafahussein We have seen this issue happening only in a few setups, still waiting for @Riyenz to confirm this has solved his original problem.
This set of commits were attempting to solve a similar (or the same?) issue @christyjacob4 had:
f739f4e#diff-3254677a7917c6c01f55212f86c57fbf
b5d4692#diff-3254677a7917c6c01f55212f86c57fbf
8fe3291#diff-3254677a7917c6c01f55212f86c57fbf
@christyjacob4 has seen that the Appwrite container was changing DB permissions in his setup and by that denying MariaDB from accessing the DB storage.
Riyenz commentedon Oct 8, 2019
@eldadfux will try now from fresh setup. it might take a while.
eldadfux commentedon Oct 8, 2019
🤞
Riyenz commentedon Oct 8, 2019
@eldadfux fresh setup here's my current error.
I only change one file.

Expected would be the home page to be displayed with no errors
eldadfux commentedon Oct 8, 2019
@Riyenz You need to make sure you delete your storage directory and remove all previous containers before running the setup script.
Riyenz commentedon Oct 8, 2019
I deleted storage and remove previous containers but still occured.

I've done the following.
christyjacob4 commentedon Oct 8, 2019
Hey @Riyenz It would be great if you could send us outputs of the following
Riyenz commentedon Oct 8, 2019
13 remaining items
slashdotted commentedon Oct 19, 2023
Hello,
I've encountered the same issue while executing a migration from version 1.4.2 to 1.4.5.
The _APP_DB_PASS contained two special characters: ! and @. Removing them fixed the problem.
fix(telemetry,pools): support multiple observers per observable gauge (…
Merge pull request appwrite#18 from utopia-php/fix-gravity
Merge pull request appwrite#18 from utopia-php/revert-connection-health
fix(telemetry,pools): support multiple observers per observable gauge (…
Merge pull request appwrite#18 from aaheli8/main
Merge pull request appwrite#18 from utopia-php/feat-get-text-default
Merge pull request appwrite#18 from utopia-php/fix/nuxt-output-directory
Merge pull request appwrite#18 from utopia-php/feat-new-default-sensi…
Merge pull request appwrite#18 from utopia-php/fix-sensitivity-error
Merge pull request appwrite#18 from utopia-php/refactor/remove-silent…
Merge pull request appwrite#18 from utopia-php/feat-dependency-injection
Merge pull request appwrite#18 from utopia-php/chore/database-caret-c…
Merge pull request appwrite#18 from utopia-php/feat-use-namespace-as-…
Merge pull request appwrite#18 from utopia-php/cli-lib-upgrade