nuxsmin / docker-syspass

Docker stuff for running sysPass on Docker
GNU General Public License v3.0
39 stars 21 forks source link

Please Help Us. We can't access any of our passwords. #9

Closed dylanswirk closed 6 years ago

dylanswirk commented 6 years ago

Hello,

My name is Dylan and I work as the IT Director at a large High School district. We can't use our SysPass to access passwords and we're dead in the water at figuring out what's wrong. The error I receive when I visit the SysPass URL is:

Unable to connect to the DB Error 2002: SQLSTATE[HY000] [2002] Connection refused

Any help would be so much appreciated!

Thanks in advance!

dylanswirk commented 6 years ago

Also this is SysPass running in a Docker Container. Thanks.

Please let me know if you'd like remote access to my computer to try to see what's wrong.

nuxsmin commented 6 years ago

Hello @dylanswirk

Please, let me know how did you deploy the Docker containers, either using composer or individually. Did you follow the instructions on Docker hub?

Kind regards.

dylanswirk commented 6 years ago

Hello,

I installed it with composer.

It was working for weeks and then I had to restart the server and now I get this error.

On Thu, Dec 21, 2017 at 3:05 PM RubénD notifications@github.com wrote:

Hello @dylanswirk https://github.com/dylanswirk

Please, let me know how did you deploy the Docker containers, either using composer or individually. Did you follow the instructions on Docker hub?

Kind regards.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/nuxsmin/docker-syspass/issues/9#issuecomment-353457524, or mute the thread https://github.com/notifications/unsubscribe-auth/AefX0Y35Wjg_46j_w7-iKmFcnv6R4_riks5tCsgOgaJpZM4RKMQt .

-- [image: photo] Dylan Swirkowski St. Thomas More High School, DJ Swirk MKE & Swirk IT Solutions LLC P 414-614-9920 <4146149920>E dylan@djswirkmke.com dylan@djswirkmke.com W swirkit.com http://web.swirkit.com/

http://facebook.com/dylanswirk http://linkedin.com/in/dylanswirk http://twitter.com/djswirk

nuxsmin commented 6 years ago

Hello,

It seems that you pointed to the database using its ip address. If so you would only need to change it in config.xml file within the sysPass container by using its hostname (same as docker container).

dylanswirk commented 6 years ago

Ok, I tried as you recommended changing the dbHost to the container name which is Pass and then I get this error: Error 2002: SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo failed: Name or service not known

When I change it to the IP of the container which is 172.17.0.3 it says: Error 2002: SQLSTATE[HY000] [2002] Connection refused

When I change it to localhost it says: Error 2002: SQLSTATE[HY000] [2002] No such file or directory

Thanks. On Thu, Dec 21, 2017 at 3:38 PM RubénD notifications@github.com wrote:

Hello,

It seems that you pointed to the database using its ip address. If so you would only need to change it in config.xml file within the sysPass container by using its hostname (same as docker container).

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/nuxsmin/docker-syspass/issues/9#issuecomment-353464112, or mute the thread https://github.com/notifications/unsubscribe-auth/AefX0e8_y9V0Ef9ftry1e_xhPg0Npno8ks5tCs_jgaJpZM4RKMQt .

-- [image: photo] Dylan Swirkowski St. Thomas More High School, DJ Swirk MKE & Swirk IT Solutions LLC P 414-614-9920 <4146149920>E dylan@djswirkmke.com dylan@djswirkmke.com W swirkit.com http://web.swirkit.com/

http://facebook.com/dylanswirk http://linkedin.com/in/dylanswirk http://twitter.com/djswirk

nuxsmin commented 6 years ago

Hmm, there should be 2 containers, one for the database and the other for sysPass code (Apache+PHP). Did you point to the db container?. Are both up?