Skip to content
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

Doctrine\DBAL\Exception #283

Closed
Dedsd opened this issue Jan 21, 2022 · 4 comments
Closed

Doctrine\DBAL\Exception #283

Dedsd opened this issue Jan 21, 2022 · 4 comments

Comments

@Dedsd
Copy link

Dedsd commented Jan 21, 2022

An unhandled exception has been thrown:
Doctrine\DBAL\Exception: Failed to connect to the database: An exception occurred in the driver: SQLSTATE[08006] [7] could not translate host name "postgres" to address: Name or service not known in /home/pi/nextcloud/lib/private/DB/Connection.php:87
@st3iny st3iny closed this as completed Jan 22, 2022
@st3iny st3iny reopened this Jan 22, 2022
@st3iny
Copy link
Member

st3iny commented Jan 22, 2022

It looks like your Nextcloud server is not able to connect to your database. Please make sure that the host name of your database postgres is resolveable.

@Dedsd
Copy link
Author

Dedsd commented Jan 22, 2022

Hi! It's strange that nextcloud can't connect to the database with preview generator, since I made the installation and works fine. What do you suggest me to do? Also, what exactly do you mean with resolveable?

@st3iny
Copy link
Member

st3iny commented Apr 13, 2022

"Resolveable" means that the name postgres can be translated to an IP address. Does your issue persist?

@Dedsd
Copy link
Author

Dedsd commented Apr 21, 2022

Oh, sorry for haven't given you any update on this. In the end was a dns issue. Thanks!

@Dedsd Dedsd closed this as completed Apr 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants