Database Schema Installer / Updater not working
-
Hi
So another problem occured today, while i was trying to upgrade to SVN 3427.
I can’t update the Database Schema i always get the error:
Database Error: php_network_getaddresses: getaddrinfo failed: Name or service not known, Message: Check that database is running```
-
Hi,
I think it’s better to post it into the dev section : https://forums.fogproject.org/category/17/bug-reports
Regards,
Ch3i. -
I don’t think it is a bug in the update, because here, the update worked without problem.
-
@Polii123 Try to update to 3426
-
What is the syntax to do this?
-
-
Thanks, but this didn’t solve the problem…
-
@Polii123 Which version had you before the upgrade ?
-
3412 i think, just tried to revert to 3412 now, but always the same problem. So it needs to be something diffrent.
-
@Polii123 Are you sure SQL is running?
-
Yes, i can connect to the database fine with phpmyadmin.
-
Could you try re-installing MySQL / MariaDB (don’t know which one you have).
-
@Polii123 said:
php_network_getaddresses: getaddrinfo failed: Name or service not known
Also, what changed? Did you update the OS or system?
This particular error is not something I coded or anything. It seems to be coming from either (or both) apache/PHP.
That’s a link I found pertaining to the first part of the error you’re seeing.
-
Didn’t help either…
-
Din’t saw your post, yeah i found that link too. Nslookup works, i restarted apache, restarted the hole server.
The only change i made was update to the latest SVN…
-
@Polii123 said:
Din’t saw your post, yeah i found that link too. Nslookup works, i restarted apache, restarted the hole server.
The only change i made was update to the latest SVN…
Does your /etc/hosts file have the proper host? What host is the Config.class.php file looking for?
-
hosts
127.0.0.1 localhost 127.0.1.1 Fogagh02.gibwintra.ch Fogagh02
/var/www/fog/lib/fog/config.calss.php
('DATABASE_HOST', '{localhost}');
-
Do me a favor and remove the curly braces from the database host line.
@Polii123 said:hosts
127.0.0.1 localhost 127.0.1.1 Fogagh02.gibwintra.ch Fogagh02
/var/www/fog/lib/fog/config.calss.php
('DATABASE_HOST', '{localhost}');
-
intresting…
Access denied for user '{root}'@'localhost' (using password: YES), Message: Check that database is running
I also removed the curly braces from the username and password line, and my server works!
But how did they come into my config.class.php file?
-