I am not by my BBB right now, but will take a look at the forum results. [image: Mailtrack] <https://mailtrack.io?utm_source=gmail&utm_medium=signature&utm_campaign=signaturevirality5&> Sender notified by Mailtrack <https://mailtrack.io?utm_source=gmail&utm_medium=signature&utm_campaign=signaturevirality5&> 04/15/19, 5:52:19 PM
On Mon, Apr 15, 2019 at 2:52 PM [email protected] <[email protected]> wrote: > This has come up previously on this list. > > If your kernel is not recognised as rt-preempt, flavour will default to > POSIX. > > Then when machinekit tries to load the posix version of rtapi_app, it > fails because that does not exist. > The setuid warning is a red herring. > > Your kernel *4.14.108-ti-r104* #1 SMP *PREEMPT* > may be the same one someone else tried to use with the same result. > > I would expect to see ' SMP RT PREEMPT' in the uname output if it was a > proper rt-preempt kernel. > > Search the posts and you will find which kernel they went with in the end. > > > On 15/04/19 09:38, Sardar Vayghannezgad wrote: > > Hi > I want to run the PocketNC config on my BBB, but it outputs (lines looking > important to my eyes are in colors or underlined): > > machinekit@beaglebone:~$ machinekit > MACHINEKIT - 0.1 > Machine configuration directory is > '/home/machinekit/machinekit/configs/ARM.BeagleBone.PocketNC' > Machine configuration file is 'PocketNC.ini' > Starting Machinekit... > *Warning - /usr/libexec/linuxcnc/rtapi_app_posix not setuid* > 'sudo make setuid' missing? > rtapi_msgd command: /usr/libexec/linuxcnc/rtapi_msgd --instance=0 > --rtmsglevel=1 --usrmsglevel=1 --halsize=524288 > rtapi_app command: /usr/libexec/linuxcnc/rtapi_app_posix --instance=0 > */usr/bin/realtime: line 237: /usr/libexec/linuxcnc/rtapi_app_posix: No > such file or directory* > rtapi_app startup failed; aborting > halcmd: cant connect to rtapi_app: -1 (uri= > uuid=cbc792ea-1cc7-4bda-a949-9dd1552ce3bc): rtapi_rpc(): reply timeout > > halcmd: the rtapi:0 RT demon is not running - please investigate > /var/log/linuxcnc.log > E: 19-04-15 10:33:22 dangling 'DEALER' socket created at > hal/utils/halcmd_rtapiapp.cc:284 > io started > halcmd: cant connect to rtapi_app: -1 (uri= > uuid=cbc792ea-1cc7-4bda-a949-9dd1552ce3bc): rtapi_rpc(): reply timeout > > halcmd: the rtapi:0 RT demon is not running - please investigate > /var/log/linuxcnc.log > E: 19-04-15 10:33:27 dangling 'DEALER' socket created at > hal/utils/halcmd_rtapiapp.cc:284 > halcmd loadusr io started > halcmd: cant connect to rtapi_app: -1 (uri= > uuid=cbc792ea-1cc7-4bda-a949-9dd1552ce3bc): rtapi_rpc(): reply timeout > > halcmd: the rtapi:0 RT demon is not running - please investigate > /var/log/linuxcnc.log > E: 19-04-15 10:33:33 dangling 'DEALER' socket created at > hal/utils/halcmd_rtapiapp.cc:284 > halcmd: cant connect to rtapi_app: -1 (uri= > uuid=cbc792ea-1cc7-4bda-a949-9dd1552ce3bc): rtapi_rpc(): reply timeout > > halcmd: the rtapi:0 RT demon is not running - please investigate > /var/log/linuxcnc.log > E: 19-04-15 10:33:38 dangling 'DEALER' socket created at > hal/utils/halcmd_rtapiapp.cc:284 > Shutting down and cleaning up Machinekit... > halcmd: cant connect to rtapi_app: -1 (uri= > uuid=cbc792ea-1cc7-4bda-a949-9dd1552ce3bc): rtapi_rpc(): reply timeout > > halcmd: the rtapi:0 RT demon is not running - please investigate > /var/log/linuxcnc.log > E: 19-04-15 10:33:46 dangling 'DEALER' socket created at > hal/utils/halcmd_rtapiapp.cc:284 > halcmd: cant connect to rtapi_app: -1 (uri= > uuid=cbc792ea-1cc7-4bda-a949-9dd1552ce3bc): rtapi_rpc(): reply timeout > > halcmd: the rtapi:0 RT demon is not running - please investigate > /var/log/linuxcnc.log > E: 19-04-15 10:33:51 dangling 'DEALER' socket created at > hal/utils/halcmd_rtapiapp.cc:284 > halcmd: cant connect to rtapi_app: -1 (uri= > uuid=cbc792ea-1cc7-4bda-a949-9dd1552ce3bc): rtapi_rpc(): reply timeout > > halcmd: the rtapi:0 RT demon is not running - please investigate > /var/log/linuxcnc.log > halcmd: cant connect to rtapi_app: -1 (uri= > uuid=cbc792ea-1cc7-4bda-a949-9dd1552ce3bc): rtapi_rpc(): reply timeout > > halcmd: the rtapi:0 RT demon is not running - please investigate > /var/log/linuxcnc.log > halcmd: cant connect to rtapi_app: -1 (uri= > uuid=cbc792ea-1cc7-4bda-a949-9dd1552ce3bc): rtapi_rpc(): reply timeout > > halcmd: the rtapi:0 RT demon is not running - please investigate > /var/log/linuxcnc.log > halcmd: cant connect to rtapi_app: -1 (uri= > uuid=cbc792ea-1cc7-4bda-a949-9dd1552ce3bc): rtapi_rpc(): reply timeout > > halcmd: the rtapi:0 RT demon is not running - please investigate > /var/log/linuxcnc.log > halcmd: cant connect to rtapi_app: -1 (uri= > uuid=cbc792ea-1cc7-4bda-a949-9dd1552ce3bc): rtapi_rpc(): reply timeout > > halcmd: the rtapi:0 RT demon is not running - please investigate > /var/log/linuxcnc.log > halcmd: cant connect to rtapi_app: -1 (uri= > uuid=cbc792ea-1cc7-4bda-a949-9dd1552ce3bc): rtapi_rpc(): reply timeout > > halcmd: the rtapi:0 RT demon is not running - please investigate > /var/log/linuxcnc.log > halcmd: cant connect to rtapi_app: -1 (uri= > uuid=cbc792ea-1cc7-4bda-a949-9dd1552ce3bc): rtapi_rpc(): reply timeout > > halcmd: the rtapi:0 RT demon is not running - please investigate > /var/log/linuxcnc.log > halcmd: cant connect to rtapi_app: -1 (uri= > uuid=cbc792ea-1cc7-4bda-a949-9dd1552ce3bc): rtapi_rpc(): reply timeout > > halcmd: the rtapi:0 RT demon is not running - please investigate > /var/log/linuxcnc.log > halcmd: cant connect to rtapi_app: -1 (uri= > uuid=cbc792ea-1cc7-4bda-a949-9dd1552ce3bc): rtapi_rpc(): reply timeout > > halcmd: the rtapi:0 RT demon is not running - please investigate > /var/log/linuxcnc.log > halcmd: cant connect to rtapi_app: -1 (uri= > uuid=cbc792ea-1cc7-4bda-a949-9dd1552ce3bc): rtapi_rpc(): reply timeout > > halcmd: the rtapi:0 RT demon is not running - please investigate > /var/log/linuxcnc.log > Warning - /usr/libexec/linuxcnc/rtapi_app_posix not setuid > 'sudo make setuid' missing? > ERROR: msgd:0 failed to exit on its own; sending SIGTERM > Cleanup done > Machinekit terminated with an error. For simple cases more information > can be found in the following files: > /home/machinekit/linuxcnc_debug.txt > /home/machinekit/linuxcnc_print.txt > > For other cases get more meaningfull information by restarting after > export DEBUG=5 > > *and look at the output of:* > * /var/log/linuxcnc.log* > * dmesg* > > When looking for errors, specifically look for libraries that fail to load > by looking for lines with 'insmod failed' as per example below. > > *insmod failed, returned -1:* > *do_load_cmd: dlopen: nonexistant-component.so: cannot open shared object > file:* > *No such file or directory* > > For getting help, please have a look here: > www.machinekit.io/docs/getting-help/ > > > My system info. is: > Linux beaglebone *4.14.108-ti-r104* #1 SMP *PREEMPT* Tue Apr 9 18:16:29 > UTC 2019 armv7l GNU/Linux > > > As for the *warning in red *In the error above, I browsed the directory, > and found it looks like: > machinekit@beaglebone:/usr/libexec/linuxcnc$ ls > flavor inivar pci_read pci_write rtapi_app_rt-preempt rtapi_msgd > As obvious, *rtapi_app_posix *is missing. > > As for the line in yellow, line 237 of my *realtime* file goes: > local cmd=(${rtapi_app} --instance=$MK_INSTANCE $RTAPI_APP_OPTS) > if [ $DEBUG -gt 0 ] ; then > echo "rtapi_app command: ${cmd[@]}" >&2 > *"${cmd[@]}"* *|| (* > e=$?; echo "rtapi_app startup failed; aborting" >&2; exit $e) > else > "${cmd[@]}" 2>&1 || ( > e=$?; echo "rtapi_app startup failed; aborting" >&2; exit $e) > fi > > > As for the closing errors, I have no idea what to do. > Opening the file /var/log/linuxcnc.log, pointed out in the error, > > *I have already done these to fix previous/this problem:* > > > - Applied these instructions > <https://elinux.org/Beagleboard:BeagleBoneBlack_Debian#U-Boot_Overlays> > to shift from tree overlays to U-boots. > - To overcome a *"permission denied"* error I used to get, a friend of > mine applied a *chmod 755 *command (or something) and the error > doesn't appear anymore apparently. > > > If you believe any of the steps I have already taken should have fixed my > problem, let me know please; as I might have missed something somewhere, as > someone new to Linux, M.K and BBB. > > *It looks like I have ended up in a dead end on my task. Please help me > out with this, I feel like I have already gone the extent to which I could > go as a beginner.* > > > -- > 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. > > > -- > website: http://www.machinekit.io blog: http://blog.machinekit.io github: > https://github.com/machinekit > --- > You received this message because you are subscribed to a topic in the > Google Groups "Machinekit" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/machinekit/82h11IE_VX0/unsubscribe. > To unsubscribe from this group and all its topics, 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. > -- 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.
