Actually i changed the certificate and after that W2P can't connect to the 
postgresql container.

It returns connection refused error.

<type 'exceptions.RuntimeError'> Failure to connect, tried 5 times: 
Traceback (most recent call last): File 
"/home/www-data/web2py/gluon/packages/dal/pydal/base.py", line 455, in 
__init__ self._adapter = adapter(**kwargs) File 
"/home/www-data/web2py/gluon/packages/dal/pydal/adapters/postgres.py", line 
27, in __call__ return AdapterMeta.__call__(cls, *args, **kwargs) File 
"/home/www-data/web2py/gluon/packages/dal/pydal/adapters/__init__.py", line 
40, in __call__ obj = super(AdapterMeta, cls).__call__(*args, **kwargs) 
File "/home/www-data/web2py/gluon/packages/dal/pydal/adapters/postgres.py", 
line 50, in __init__ driver_args, adapter_args, do_connect, 
after_connection) File 
"/home/www-data/web2py/gluon/packages/dal/pydal/adapters/base.py", line 
369, in __init__ super(SQLAdapter, self).__init__(*args, **kwargs) File 
"/home/www-data/web2py/gluon/packages/dal/pydal/adapters/base.py", line 53, 
in __init__ self.reconnect() File 
"/home/www-data/web2py/gluon/packages/dal/pydal/helpers/classes.py", line 
181, in _reconnect_and_configure self._connection_reconnect() File 
"/home/www-data/web2py/gluon/packages/dal/pydal/connection.py", line 172, 
in reconnect self.connection = self.connector() File 
"/home/www-data/web2py/gluon/packages/dal/pydal/adapters/postgres.py", line 
114, in connector return self.driver.connect(**self.driver_args) File 
"/home/www-data/web2py/gluon/contrib/pg8000/__init__.py", line 336, in 
connect user, host, unix_sock, port, database, password, ssl) File 
"/home/www-data/web2py/gluon/contrib/pg8000/core.py", line 969, in __init__ 
raise InterfaceError("communication error", exc_info()[1]) InterfaceError: 
('communication error', error(111, 'Connection refused'))Version
web2py™ Version 2.17.2-stable+timestamp.2018.10.06.18.54.02

Did you face any issue like that?

On Thursday, February 21, 2019 at 2:22:56 PM UTC+9, 黄祥 wrote:
>
> perhaps you can use docker mount volume (-v)
> *e.g. (not tested)*
> docker -v 
> generated_letsencrypt_path_in_host:apache_cert_path_configuration_in_docker
>
> note change the value with your own path:
> - generated_letsencrypt_path_in_host
> - apache_cert_path_configuration_in_docker
>
> best regards,
> stifan
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to