I managed to resolve the locked memory error, and started machine kit (at 
least no errors in the log). My python program (I'm not using axis) then 
started, and started homing, but none of the motors moved and the enable 
led on my board didn't light.

As there's nothing arwy in the logs I've not got much to go on. After 
killing the process and starting it as normal, everything works as expected.

Any ideas why things aren't working non-interactively?

Thanks,
Matt

On Wednesday, 27 July 2016 18:52:48 UTC+2, Charles Steinkuehler wrote:
>
> On 7/27/2016 9:35 AM, matthew venn wrote: 
> > 
> > My question is related to starting machinekit at boot. I've made a 
> supervisord 
> > config which at least looks like it starts working (correct user and 
> limited 
> > environment variables set): 
> > 
> > [program:bipod] 
> > directory=/home/machinekit/ 
> > user=machinekit 
> > autostart=false 
> > redirect_stderr=true 
> > autorestart=false 
> > command=/usr/bin/linuxcnc /home/machinekit/bipod/bipod.ini 
> > environment=HOME="/home/machinekit/",USER="machinekit" 
> > 
> > However it doesn't start properly and the logs include the lines: 
> > 
> > mlock(global) failed: 12 'Cannot allocate memory' 
> > msgd:0: Locked memory limit is 64KiB, recommended at least 20480KiB. 
> > 
> > Startup log pasted here: http://pastebin.com/hT64nxRL 
> > 
> > I can't figure out why the memory might be limited when started by 
> supervisord. 
> > The user is set to machinekit, and that user has memory allocation of 
> 32768k in 
> > /etc/security/limits.d/machinekit.conf 
> > 
> > Any clues gratefully received, and thanks for the help! 
>
> This looks like a problem with supervisord, similar to what happens 
> with ssh (which also ignores PAM limits by default).  I don't use 
> supervisor, but after a bit of Googling it looks like you either need 
> to increase the memory limits prior to running supervisord, or add 
> something to the launch script that will set the limits.  Most of the 
> links I found talked about increasing the maximum number of open 
> files, but increasing locked memory should be similar. 
>
> Looks like a great build! 
>
> -- 
> Charles Steinkuehler 
> [email protected] <javascript:> 
>

-- 
website: http://www.machinekit.io blog: http://blog.machinekit.io github: 
https://github.com/machinekit
--- 
You received this message because you are subscribed to the Google Groups 
"Machinekit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
Visit this group at https://groups.google.com/group/machinekit.
For more options, visit https://groups.google.com/d/optout.

Reply via email to