# Problema googleLogout 1. Se ejecuta el actionReducer desde staging.equip.cloud, el cuál ejecuta un request hacia auth ```javascript= const response = await request( 'https://auth.equip.cloud/logout', null, { method: 'POST', body: { userId }, jsonResponse: true } ) ``` 2. Pero el servidor queda esperando la respuesta de staging y finalmente retorna el error cuando se imprime response ```javascript= { error: { FetchError: request to https://auth.equip.cloud/logout failed, reason: connect ETIMEDOUT 165.22.186.183:443 at ClientRequest.<anonymous> (/app/node_modules/node-fetch/lib/index.js:1455:11) at emitOne (events.js:116:13) at ClientRequest.emit (events.js:211:7) at TLSSocket.socketErrorListener (_http_client.js:401:9) at emitOne (events.js:116:13) at TLSSocket.emit (events.js:211:7) at emitErrorNT (internal/streams/destroy.js:66:8) at _combinedTickCallback (internal/process/next_tick.js:139:11) at process._tickDomainCallback (internal/process/next_tick.js:219:9) message: 'request to https://auth.equip.cloud/logout failed, reason: connect ETIMEDOUT 165.22.186.183:443', type: 'system', errno: 'ETIMEDOUT', code: 'ETIMEDOUT' } } ``` 3. Auth no recibe esa llamada. ## Diagnóstico - Corroborar si le llega al servidor la llamada. `ufw -> nginx -> auth` - auth corroborado que no le llega (a través de un middleware) - No le llega a nginx no recibió en el acces log - no llega a ufw - ¿No sale del servidor? - Habilité las llamadas salientes del puerto 442. ¿Será que docker cancela las llamadas salientes? - Sí ## Problema - Nosotros definimos en /etc/docker/daemon.json `iptables: false`, por que si no no podemos utilizar el UFW de ubuntu ya que docker cambia iptables directamente [Problema entre UFW y docker](https://blog.viktorpetersson.com/2014/11/03/the-dangers-of-ufw-docker.html) - Pero aparentemente esta configuración [elimina la conexión a internet](https://stackoverflow.com/questions/40792765/docker-internet-connectivity-with-iptables-false) - [Aparente solución](https://github.com/chaifeng/ufw-docker#solving-ufw-and-docker-issues)