Skip to content

Losing stdout data in python

I’m trying to make a python script which is going run a bash script on a remote machine via ssh and then parse its output. The bash script outputs lot of data (like 5 megabytes of text / 50k lines) in stdout and here is a problem – I’m getting all the data only in ~10% cases. In other 90%

Can’t listen on IPv4 and IPv6 together (address already in use)

I don’t think the precise code is important. Instead, I’ll give the strace output: We can see that socket 5 (IPv4) successfully bound to port any:31337, but when I try to bind socket 6 (IPv6), it fails with EADDRINUSE. You can also see that I did set SO_REUSEADDR on both sockets, so I believe this…

syscall or gettid system function from Cython

I need to call gettid from Cython. Accordingly to its man page, I should use the syscall function. I’m running Linux. I can easily get the gettid function number: But I cannot find how to import, or better cimport, syscall. Any ideas? Thanks. Answer You can look up in the cython’s github repositor…

Local CircleCI reports “Unexpected environment preparation error: error looking up self container id: Found multiple cgroups for outer container”

I am getting the following error when I run circleci build locally on Ubuntu 18.04. The build runs perfectly inside the hosted CircleCI. CircleCI version: Docker-ce version: I installed Docker exactly as specified on the website, including setting the usergroup. I used the instructions here to install CircleC…

Passing environment variables not working with Docker

I am learning how to pass environment variables to Docker containers. While the following works fine, Dockerfile Build & run commands docker ps -a gives docker logs 2a3a69aa7868 gives The following doesn’t work Dockerfile Build & run commands Here the run command gives this, While docker ps -a g…