I just ported my app over from python so I'm a bit new to Go. It seems I am having a memory issues.
getAudioOnlyInfo: fork/exec /usr/local/bin/youtube-dl: cannot allocate memory.
This is run on a ubuntu machine. Via supervisor.
sysctl -w vm.swappiness=1 resolve the issue
For anyone else who runs into this problem, it was a related recent issue <a href="https://github.com/golang/go/issues/5838#issuecomment-171280473" rel="nofollow">in the golang issue</a><blockquote>
For all those affected, temporary workaround on Linux until it is fixed properly can be one of following:<ol><li>enable unconditional overcommit:
sysctl -w vm.overcommit_memory=1</li> <li>enable unconditional overcommit:
sysctl -w vm.overcommit_memory=1add swap to your host, with
sysctl -w vm.swappiness=1it will almost never going to be used, but it participates in calculations where Linux kernel decides to whether it can afford to satisfy allocation or not when
default overcommit_memory=0is in use</li> </ol></blockquote>