Page 1 of 2
'Cannot connect to database.'-Solved
Posted: 10 Feb 2017, 18:57
by mindy053
php_network_getaddresses: getaddrinfo failed: Name or service not known
Not quite sure what's going on, however, I keep receiving this error when running the Test Database Connectivity. I've walked through the documentation step-by-step and have made sure everything was running correctly. I don't believe I've run into any other errors except this one.
Ubuntu (16.04), PHP (5.6), OpenCATS (0.9.3-3), LAMP
Re: 'Cannot connect to database.'
Posted: 10 Feb 2017, 19:02
by cptr13
Is this a local machine? Or something remote, like a vps ?
Re: 'Cannot connect to database.'
Posted: 10 Feb 2017, 19:15
by cptr13
Did you manually install, or use the script?
You you have the database (third box) set to localhost?
Re: 'Cannot connect to database.'
Posted: 10 Feb 2017, 19:18
by mindy053
cptr13 wrote:Did you manually install, or use the script?
You you have the database (third box) set to localhost?
Hi... I followed Chapter 10 of the documentation for installing on an Ubuntu 16.04 Server. Not quite sure I understand your question?
I am using vSphere.
Re: 'Cannot connect to database.'
Posted: 11 Feb 2017, 00:23
by cptr13
What OS is running on the computer? Ubuntu or windows? What is running Vsphere? I assume you're running Ubuntu inside Vsphere
Re: 'Cannot connect to database.'
Posted: 11 Feb 2017, 05:09
by mindy053
cptr13 wrote:What OS is running on the computer? Ubuntu or windows? What is running Vsphere? I assume you're running Ubuntu inside Vsphere
[misunderstood question, my apologies!]
Re: 'Cannot connect to database.'
Posted: 11 Feb 2017, 11:14
by cptr13
ok, sorry for the excessive questions, but is there a reason you're running it on vsphere instead of doing the install with xampp on Windows? Do you have other applications running on Ubuntu inside vsphere?
If you do, I'll try to help track this solutions down.
If not. There are two easier options.
1) Get rid of Vsphere and Ubuntu, do the Windows install
2) try the Ubuntu install script to make sure you didn't miss any steps in the install process.
Please let me know.
Re: 'Cannot connect to database.'
Posted: 11 Feb 2017, 11:25
by cptr13
For the sake of troubleshooting, if you don't want to install on windows, or try the linux install script, try the followin:
First: The documentation was updated last weekend and trimmed up. I'm not sure what you mean by chapter 10. So I'm working from the current documentation at:
http://opencats-documentation.readthedo ... 16.04.html
I'd like to make sure you have the php5.6-mysql extension installed.
In your browser, go to: localhost/info.php
Check for the mysql extension on the list of information that shows up on the screen.
Re: 'Cannot connect to database.'
Posted: 11 Feb 2017, 12:20
by cptr13
Lastly, because the documentation has changed, can you tell exactly what step you're doing when you get the error?
Re: 'Cannot connect to database.'
Posted: 12 Feb 2017, 23:49
by mindy053
cptr13 wrote:Lastly, because the documentation has changed, can you tell exactly what step you're doing when you get the error?
Sorry.... my mistake! As I said... I didn't think I totally understood your question. Anyhow, problem solved! Needed to refresh php. The error was during the actual installation on 'System Connectivity', Step 2: 'Database Connectivity'.
Thank you!