Skip to content

Conversation

@bfirsh
Copy link
Member

@bfirsh bfirsh commented Sep 28, 2021

This seemed to be relying on some very subtle behavior. It seems that
the IP returned as the reverse of the local hostname was a local IP that
was just on the host but not inside the container (maybe 127.0.1.1
instead of 127.0.0.1 or something?).

Either way this wasn't working due to something about my local network
setup and my hostname resolved to 127.0.0.1. This is actually localhost
inside the container, hence it couldn't connect to redis.

This is a bodge to get this working. Instead of relying on IP addresses,
use the hostname which will instead defer to DNS to figure out what the
right IP address based on where it is being accessed.

But this is still fragile and I spent laods of time debugging! See also: #262

Signed-off-by: Ben Firshman [email protected]

@bfirsh bfirsh force-pushed the use-hostname-for-redis-tests branch from 41f6914 to 85331da Compare September 28, 2021 01:30
@bfirsh
Copy link
Member Author

bfirsh commented Sep 28, 2021

This works on my local machine but not on CI, lol. I think we need the real fix in #262 unless y'all have any bright ideas for bodges @andreasjansson @zeke.

This seemed to be relying on some very subtle behavior. It seems that
the IP returned as the reverse of the local hostname was a local IP that
was just on the host but not inside the container (maybe 127.0.1.1
instead of 127.0.0.1 or something?).

Either way this wasn't working due to something about my local network
setup and my hostname resolved to 127.0.0.1. This is actually localhost
inside the container, hence it couldn't connect to redis.

This is a bodge to get this working. Instead of relying on IP addresses,
use the hostname which will instead defer to DNS to figure out what the
right IP address based on where it is being accessed.

But this is still fragile and I spent laods of time debugging!
See also: replicate#262

Signed-off-by: Ben Firshman <[email protected]>
@bfirsh bfirsh force-pushed the use-hostname-for-redis-tests branch from 85331da to 8aec74a Compare September 28, 2021 14:34
bfirsh added a commit to bfirsh/cog that referenced this pull request Jan 5, 2022
This is possible now we don't have file upload server.

Closes replicate#262
Closes replicate#263

Signed-off-by: Ben Firshman <[email protected]>
bfirsh added a commit to bfirsh/cog that referenced this pull request Jan 5, 2022
This is possible now we don't have file upload server.

Closes replicate#262
Closes replicate#263

Signed-off-by: Ben Firshman <[email protected]>
bfirsh added a commit to bfirsh/cog that referenced this pull request Jan 7, 2022
This is possible now we don't have file upload server.

Closes replicate#262
Closes replicate#263

Signed-off-by: Ben Firshman <[email protected]>
bfirsh added a commit to bfirsh/cog that referenced this pull request Jan 7, 2022
This is possible now we don't have file upload server.

Closes replicate#262
Closes replicate#263

Signed-off-by: Ben Firshman <[email protected]>
bfirsh added a commit to bfirsh/cog that referenced this pull request Jan 7, 2022
This is possible now we don't have file upload server.

Closes replicate#262
Closes replicate#263

Signed-off-by: Ben Firshman <[email protected]>
bfirsh added a commit to bfirsh/cog that referenced this pull request Jan 8, 2022
This is possible now we don't have file upload server.

Closes replicate#262
Closes replicate#263

Signed-off-by: Ben Firshman <[email protected]>
bfirsh added a commit to bfirsh/cog that referenced this pull request Jan 8, 2022
This is possible now we don't have file upload server.

Closes replicate#262
Closes replicate#263

Signed-off-by: Ben Firshman <[email protected]>
bfirsh added a commit to bfirsh/cog that referenced this pull request Jan 11, 2022
This is possible now we don't have file upload server.

Closes replicate#262
Closes replicate#263

Signed-off-by: Ben Firshman <[email protected]>
bfirsh added a commit to bfirsh/cog that referenced this pull request Jan 12, 2022
The queue_controller server has been replaced by a separate container
that can run inside the network.

Closes replicate#262
Closes replicate#263

Signed-off-by: Ben Firshman <[email protected]>
bfirsh added a commit to bfirsh/cog that referenced this pull request Jan 12, 2022
The queue_controller server has been replaced by a separate container
that can run inside the network.

Closes replicate#262
Closes replicate#263

Signed-off-by: Ben Firshman <[email protected]>
bfirsh added a commit to bfirsh/cog that referenced this pull request Jan 12, 2022
The queue_controller server has been replaced by a separate container
that can run inside the network.

Closes replicate#262
Closes replicate#263

Signed-off-by: Ben Firshman <[email protected]>
bfirsh added a commit to bfirsh/cog that referenced this pull request Jan 12, 2022
The queue_controller server has been replaced by a separate container
that can run inside the network.

Closes replicate#262
Closes replicate#263

Signed-off-by: Ben Firshman <[email protected]>
bfirsh added a commit to bfirsh/cog that referenced this pull request Jan 12, 2022
The queue_controller server has been replaced by a separate container
that can run inside the network.

Closes replicate#262
Closes replicate#263

Signed-off-by: Ben Firshman <[email protected]>
bfirsh added a commit to bfirsh/cog that referenced this pull request Jan 13, 2022
The queue_controller server has been replaced by a separate container
that can run inside the network.

Closes replicate#262
Closes replicate#263

Signed-off-by: Ben Firshman <[email protected]>
bfirsh added a commit to bfirsh/cog that referenced this pull request Jan 13, 2022
The queue_controller server has been replaced by a separate container
that can run inside the network.

Closes replicate#262
Closes replicate#263

Signed-off-by: Ben Firshman <[email protected]>
bfirsh added a commit to bfirsh/cog that referenced this pull request Jan 13, 2022
The queue_controller server has been replaced by a separate container
that can run inside the network.

Closes replicate#262
Closes replicate#263

Signed-off-by: Ben Firshman <[email protected]>
bfirsh added a commit to bfirsh/cog that referenced this pull request Jan 15, 2022
The queue_controller server has been replaced by a separate container
that can run inside the network.

Closes replicate#262
Closes replicate#263

Signed-off-by: Ben Firshman <[email protected]>
@bfirsh bfirsh closed this in #385 Feb 7, 2022
bfirsh added a commit that referenced this pull request Feb 7, 2022
The queue_controller server has been replaced by a separate container
that can run inside the network.

Closes #262
Closes #263

Signed-off-by: Ben Firshman <[email protected]>
@bfirsh bfirsh mentioned this pull request Feb 8, 2022
21 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants