On Wed, May 18, 2022 at 9:15 AM Harsh Rathore <hvrconsole...@gmail.com> wrote: > > I will attach, the Code file and the sTrace logs. > > It basically tries to run a shell command via golang. > > When I try to run it in ESXI-670, it errors with: > > program is running > fork/exec /bin/sh: no space left on device > > Here is what I have tried: > > I have tried doing this with cmd.Output(). > I have tried building using CGO_ENABLED=1 > In the code above, I have tried to run by redirecting os.Stdout. > > This code works and provides desired output in all locations, other than > ESXI. I am using ESXI-6.7.0. > > Please help me in identifying the cause. > > I am certain there is space left on device
Thanks for including the strace output. It shows that the clone system call is failing with ENOSPC. There are several reasons that clone can fail with ENOSPC. None of them have anything to do with disk space (though shortage of inodes appears to be a possibility). ESXI appears to map several internal errors to ENOSPC as well, mostly dealing with lack of memory. You may need to discuss this with someone familiar with ESXI. Sorry this isn't much help. Ian -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/CAOyqgcUBcpW6_%2Bb93a3%3DGiX1d5D1Ka%2BaGYiKKiBgBFaohEbcBQ%40mail.gmail.com.