- Configuring LinuxCNC
- Advanced Configuration
- EtherCAT
- Failed to open /dev/EtherCAT0: Permission denied
Failed to open /dev/EtherCAT0: Permission denied
14 Jul 2024 12:52 #305140
by bkt
Failed to open /dev/EtherCAT0: Permission denied was created by bkt
in new mini pc installation mint21 Lcnc 2.9.2 try to launch a copy of my old config ..... I obtain these error :
Failed to open /dev/EtherCAT0: Permission denied
But file owner is root and GRUP is mine .... so can launch in terminal freely command "ethercat slaves" with reply whitout using sudo .... why these? First time see these error ...
regeards for any suggest
Failed to open /dev/EtherCAT0: Permission denied
But file owner is root and GRUP is mine .... so can launch in terminal freely command "ethercat slaves" with reply whitout using sudo .... why these? First time see these error ...
regeards for any suggest
Please Log in or Create an account to join the conversation.
14 Jul 2024 12:58 #305145
by bkt
Replied by bkt on topic Failed to open /dev/EtherCAT0: Permission denied
exactly obtain these if lauch from terminal ..
Starting LinuxCNC...
linuxcnc TPMOD=tpmod HOMEMOD=homemod EMCMOT=motmod
Note: Using POSIX realtime
Found file(REL): ./gc_sim_1ax_cl.hal
creating ladder-state
Failed to open /dev/EtherCAT0: Permission denied
LCEC: requesting master 0 (index 0) failed
LCEC: failure, clearing config
LCEC: exiting
LCEC: returning -EINVAL
lcec: rtapi_app_main: Invalid argument (-22)
./gc_sim_1ax_cl.hal:17: waitpid failed /usr/bin/rtapi_app lcec
./gc_sim_1ax_cl.hal:17: /usr/bin/rtapi_app exited without becoming ready
./gc_sim_1ax_cl.hal:17: insmod for lcec failed, returned -1
Shutting down and cleaning up LinuxCNC...
Note: Using POSIX realtime
Please Log in or Create an account to join the conversation.
14 Jul 2024 21:02 #305172
by rodw
Replied by rodw on topic Failed to open /dev/EtherCAT0: Permission denied
Sound like you missed an installation step. Please refer to the sticky where it mentions udev rules.
The following user(s) said Thank You: bkt
Please Log in or Create an account to join the conversation.
14 Jul 2024 22:20 #305177
by bkt
Replied by bkt on topic Failed to open /dev/EtherCAT0: Permission denied
other problem with permission ... but not all ...in these config i have not joint or axis .... and when I've these situation until 2.9.0 I use one axis, for example X, witout set it on hal file and whitout move it. I set only on ini file. But because never use it ... no problem ... not in 2.9.2 I have a problem whit these situations ..... and obtain:
but not know how eliminate it ... is not set on xml where there is only digital In Out el1008 and el2008 .... not set in .hal file ... and present only in .ini file .... but never use it because use only classic ladder .... but seems 2.9.2 check if axis is well set ... so i have a problem .... there are a way to solve or need to use core_sim.hal file? ....
Starting LinuxCNC...
linuxcnc TPMOD=tpmod HOMEMOD=homemod EMCMOT=motmod
Note: Using POSIX realtime
Found file(REL): ./gc_sim_1ax_cl.hal
creating ladder-state
(classicladder:13667): dbind-WARNING **: 00:13:43.156: Couldn't connect to accessibility bus: Failed to connect to socket /root/.cache/at-spi/bus_0: Permission denied
task: machine: 'GC-SIM-CL' version 'unknown'
note: MAXV max: 1200.000 units/sec 72000.000 units/min
note: LJOG max: 1200.000 units/sec 72000.000 units/min
note: LJOG default: 1000.000 units/sec 60000.000 units/min
waiting for s.joints<0>, s.kinematics_type<0>
waiting for s.joints<0>, s.kinematics_type<0>
waiting for s.joints<0>, s.kinematics_type<0>
waiting for s.joints<0>, s.kinematics_type<0>
waiting for s.joints<0>, s.kinematics_type<0>
waiting for s.joints<0>, s.kinematics_type<0>
USRMOT: ERROR: command timeout
emcMotionInit: emcTrajInit failed
waiting for s.joints<0>, s.kinematics_type<0>
waiting for s.joints<0>, s.kinematics_type<0>
Waiting for component 'inihal' to become ready...........USRMOT: ERROR: command timeout
emcMotionInit: emcTrajInit failed
waiting for s.joints<0>, s.kinematics_type<0>
....................USRMOT: ERROR: command timeout
emcMotionInit: emcTrajInit failed
.....A configuration error is preventing LinuxCNC from starting.
More information may be available when running from a terminal.
.Shutting down and cleaning up LinuxCNC...
.............USRMOT: ERROR: command timeout
emcMotionInit: emcTrajInit failed
but not know how eliminate it ... is not set on xml where there is only digital In Out el1008 and el2008 .... not set in .hal file ... and present only in .ini file .... but never use it because use only classic ladder .... but seems 2.9.2 check if axis is well set ... so i have a problem .... there are a way to solve or need to use core_sim.hal file? ....
Please Log in or Create an account to join the conversation.
14 Jul 2024 22:27 #305178
by bkt
Replied by bkt on topic Failed to open /dev/EtherCAT0: Permission denied
these can be a problem?? ... seems classicladder is correctly show ... after i have problem above .... if add core_sim.hal in my .ini file hal sections .... joint0 problem disappear ... but rem,ain cassicladder warning and these messages ...
so if someone have some ideas ... it help a lot.
(classicladder:14034): dbind-WARNING **: 00:22:21.274: Couldn't connect to accessibility bus: Failed to connect to socket /root/.cache/at-spi/bus_0: Permission denied
Found file(REL): ./core_sim.hal
trivkins: already exists
./core_sim.hal:5: waitpid failed /usr/bin/rtapi_app trivkins
./core_sim.hal:5: /usr/bin/rtapi_app exited without becoming ready
./core_sim.hal:5: insmod for trivkins failed, returned -1
Shutting down and cleaning up LinuxCNC...
ERROR CLASSICLADDER- Error initializing classicladder user module.
Note: Using POSIX realtime
so if someone have some ideas ... it help a lot.
Please Log in or Create an account to join the conversation.
14 Jul 2024 22:29 #305179
by bkt
Replied by bkt on topic Failed to open /dev/EtherCAT0: Permission denied
seems completely missing .... these new install was paused from 2 weeks ... so these is loose ... thanks a lot
udev rules.
The following user(s) said Thank You: rodw
Please Log in or Create an account to join the conversation.
15 Jul 2024 05:07 - 15 Jul 2024 05:08 #305191
by bkt
Replied by bkt on topic Failed to open /dev/EtherCAT0: Permission denied
about joint-0 problem I solve adding in my hal file these row for simulate X axis that not use ...
about warning is disappear adding these ... so seems nothing so important .... all works
loadrt ddt names=ddt_x,ddt_xv
# load additional blocks
loadrt hypot names=vel_xy
# add motion controller functions to servo thread
addf motion-command-handler servo-thread
addf motion-controller servo-thread
# link the differentiator functions into the code
addf ddt_x servo-thread
addf ddt_xv servo-thread
# create HAL signals for position commands from motion module
# loop position commands back to motion module feedback
net Xpos joint.0.motor-pos-cmd => joint.0.motor-pos-fb ddt_x.in
# send the position commands thru differentiators to
# generate velocity and accel signals
net Xvel ddt_x.out => ddt_xv.in vel_xy.in0
net Xacc <= ddt_xv.out
about warning is disappear adding these ... so seems nothing so important .... all works
Last edit: 15 Jul 2024 05:08 by bkt.
The following user(s) said Thank You: tommylight, rodw
Please Log in or Create an account to join the conversation.
- scottlaird
- Offline
- Premium Member
Less
More
- Posts: 136
- Thank you received: 155
15 Jul 2024 23:19 #305292
by scottlaird
Replied by scottlaird on topic Failed to open /dev/EtherCAT0: Permission denied
We should really modify the EtherCAT package to install these automatically, as it's a common problem. Presumably we'd want to create an `ethercat` group and use it in udev instead of giving EtherCAT access to everyone.
The following user(s) said Thank You: endian
Please Log in or Create an account to join the conversation.
- scottlaird
- Offline
- Premium Member
Less
More
- Posts: 136
- Thank you received: 155
15 Jul 2024 23:27 #305293
by scottlaird
Replied by scottlaird on topic Failed to open /dev/EtherCAT0: Permission denied
I'm not actually sure who owns the EtherCAT package, but I sent email to Bjarne about it, hopefully he can help get it to the right people.
Please Log in or Create an account to join the conversation.
- scottlaird
- Offline
- Premium Member
Less
More
- Posts: 136
- Thank you received: 155
16 Jul 2024 14:50 #305362
by scottlaird
Replied by scottlaird on topic Failed to open /dev/EtherCAT0: Permission denied
...and Bjarne says that it's been added. Hopefully this won't be a problem in the future.
Please Log in or Create an account to join the conversation.
- Configuring LinuxCNC
- Advanced Configuration
- EtherCAT
- Failed to open /dev/EtherCAT0: Permission denied
Time to create page: 0.092 seconds