Error Starting Linuxcnc
Any ideas as to what would be causing the below error with the iptables and how to solve it?
Print file information:
RUN_IN_PLACE=no
LINUXCNC_DIR=
LINUXCNC_BIN_DIR=/usr/bin
LINUXCNC_TCL_DIR=/usr/lib/tcltk/linuxcnc
LINUXCNC_SCRIPT_DIR=
LINUXCNC_RTLIB_DIR=/usr/lib/linuxcnc/modules
LINUXCNC_CONFIG_DIR=
LINUXCNC_LANG_DIR=/usr/share/linuxcnc/tcl/msgs
INIVAR=inivar
HALCMD=halcmd
LINUXCNC_EMCSH=/usr/bin/wish8.6
LINUXCNC - 2.7.12
Machine configuration directory is '/home/jeff/linuxcnc/configs/machine1'
Machine configuration file is 'machine1.ini'
INIFILE=/home/jeff/linuxcnc/configs/machine1/machine1.ini
PARAMETER_FILE=linuxcnc.var
TASK=milltask
HALUI=halui
DISPLAY=axis
Starting LinuxCNC...
Starting LinuxCNC server program: linuxcncsvr
Loading Real Time OS, RTAPI, and HAL_LIB modules
Starting LinuxCNC IO program: io
Starting HAL User Interface program: halui
Found file(REL): ./machine1.hal
hm2: loading Mesa HostMot2 driver version 0.15
hm2_eth: loading Mesa AnyIO HostMot2 ethernet driver version 0.2
hm2_eth: ERROR: Failed to create iptables chain hm2-eth-rules-outputhm2_eth: ERROR: can't connect: Network is unreachable
Shutting down and cleaning up LinuxCNC...
Running HAL shutdown script
Killing task linuxcncsvr, PID=8937
hm2: unloading
Removing HAL_LIB, RTAPI, and Real Time OS modules
Removing NML shared memory segments
Debug file information:
Note: Using POSIX realtime
iptables v1.6.0: can't initialize iptables table `filter': Permission denied (you must be root)
Perhaps iptables or your kernel needs to be upgraded.
hm2_eth: rtapi_app_main: Network is unreachable (-101)
./machine1.hal:8: waitpid failed /usr/bin/rtapi_app hm2_eth
./machine1.hal:8: /usr/bin/rtapi_app exited without becoming ready
./machine1.hal:8: insmod for hm2_eth failed, returned -1
8937
PID TTY STAT TIME COMMAND
Stopping realtime threads
Unloading hal components
Note: Using POSIX realtime
Please Log in or Create an account to join the conversation.
hm2_eth: rtapi_app_main: Network is unreachable (-101)
Are you sure you have your Ethernet MAC setup properly to access the card at 10.10.10.10?
(what does 'ip a" report?)
I dont recall the exact details but there some issue with Ubuntu 16.04 derived
OS's (Mint 18 for example) and LinuxCNC's iptables handling. The error is not fatal
and is fixed in LinuxCNC master
Please Log in or Create an account to join the conversation.
Here is the report from ip a
ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: enp3s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
link/ether e0:d5:5e:5a:c1:3e brd ff:ff:ff:ff:ff:ff
3: wlp2s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
link/ether 40:9f:38:f9:43:27 brd ff:ff:ff:ff:ff:ff
inet 192.168.43.148/24 brd 192.168.43.255 scope global dynamic wlp2s0
valid_lft 7074sec preferred_lft 7074sec
inet6 fe80::30c1:b31a:9098:382b/64 scope link
valid_lft forever preferred_lft forever
I tossed in an ip show
$ ip addr show
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: enp3s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
link/ether e0:d5:5e:5a:c1:3e brd ff:ff:ff:ff:ff:ff
inet6 fe80::6c1b:59b1:322:7123/64 scope link
valid_lft forever preferred_lft forever
3: wlp2s0: <BROADCAST,MULTICAST> mtu 1500 qdisc mq state DOWN group default qlen 1000
link/ether 40:9f:38:f9:43:27 brd ff:ff:ff:ff:ff:ff
So obviously Ive not done something. How does one go about correcting this?
Please Log in or Create an account to join the conversation.
I normally set the host to 10.10.10.1 with a 255.255.255.0 netmask
You can do this either with the netmanager tool or by editing the config files as described in the hm2_eth manual page
Please Log in or Create an account to join the conversation.
Thanks for the quick reply.
Ignore this comment .... I have a new issue with not having permissions to create a file within the /ect/network/interfaces.d location. Its always something. Praying the fix doesnt require anything drastic
Please Log in or Create an account to join the conversation.
$ ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: enp3s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
link/ether e0:d5:5e:5a:c1:3e brd ff:ff:ff:ff:ff:ff
inet 10.10.10.1/24 brd 10.10.10.255 scope global enp3s0
valid_lft forever preferred_lft forever
inet6 fe80::e2d5:5eff:fe5a:c13e/64 scope link
valid_lft forever preferred_lft forever
3: wlp2s0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000
link/ether 40:9f:38:f9:43:27 brd ff:ff:ff:ff:ff:ff
Error Message:
Print file information:
RUN_IN_PLACE=no
LINUXCNC_DIR=
LINUXCNC_BIN_DIR=/usr/bin
LINUXCNC_TCL_DIR=/usr/lib/tcltk/linuxcnc
LINUXCNC_SCRIPT_DIR=
LINUXCNC_RTLIB_DIR=/usr/lib/linuxcnc/modules
LINUXCNC_CONFIG_DIR=
LINUXCNC_LANG_DIR=/usr/share/linuxcnc/tcl/msgs
INIVAR=inivar
HALCMD=halcmd
LINUXCNC_EMCSH=/usr/bin/wish8.6
LINUXCNC - 2.7.12
Machine configuration directory is '/home/jeff/linuxcnc/configs/machine1'
Machine configuration file is 'machine1.ini'
INIFILE=/home/jeff/linuxcnc/configs/machine1/machine1.ini
PARAMETER_FILE=linuxcnc.var
TASK=milltask
HALUI=halui
DISPLAY=axis
Starting LinuxCNC...
Starting LinuxCNC server program: linuxcncsvr
Loading Real Time OS, RTAPI, and HAL_LIB modules
Starting LinuxCNC IO program: io
Starting HAL User Interface program: halui
Found file(REL): ./machine1.hal
hm2: loading Mesa HostMot2 driver version 0.15
hm2_eth: loading Mesa AnyIO HostMot2 ethernet driver version 0.2
hm2_eth: ERROR: Failed to create iptables chain hm2-eth-rules-outputhm2_eth: WARNING: Unable to restrict other access to the hm2-eth device.
This means that other software using the same network interface can violate
realtime guarantees. See hm2_eth(9) for more information.
hm2_eth: 10.10.10.10: Hardware address: 00:60:1b:10:41:ba
hm2_eth: discovered 7I76E-16
hm2/hm2_7i76e.0: Smart Serial Firmware Version 43
Board hm2_7i76e.0.7i76.0.0 Hardware Mode 0 = standard
Board hm2_7i76e.0.7i76.0.0 Software Mode 0 = io_spin
Board hm2_7i76e.0.7i76.0.0 Software Mode 1 = io_ana_spin
Board hm2_7i76e.0.7i76.0.0 Software Mode 2 = io_enc_ana_spin_fv
hm2/hm2_7i76e.0: 51 I/O Pins used:
hm2/hm2_7i76e.0: IO Pin 000 (P1-01): StepGen #0, pin Direction (Output)
hm2/hm2_7i76e.0: IO Pin 001 (P1-14): StepGen #0, pin Step (Output)
hm2/hm2_7i76e.0: IO Pin 002 (P1-02): StepGen #1, pin Direction (Output)
hm2/hm2_7i76e.0: IO Pin 003 (P1-15): StepGen #1, pin Step (Output)
hm2/hm2_7i76e.0: IO Pin 004 (P1-03): StepGen #2, pin Direction (Output)
hm2/hm2_7i76e.0: IO Pin 005 (P1-16): StepGen #2, pin Step (Output)
hm2/hm2_7i76e.0: IO Pin 006 (P1-04): StepGen #3, pin Direction (Output)
hm2/hm2_7i76e.0: IO Pin 007 (P1-17): StepGen #3, pin Step (Output)
hm2/hm2_7i76e.0: IO Pin 008 (P1-05): StepGen #4, pin Direction (Output)
hm2/hm2_7i76e.0: IO Pin 009 (P1-06): StepGen #4, pin Step (Output)
hm2/hm2_7i76e.0: IO Pin 010 (P1-07): Smart Serial Interface #0, pin TxData0 (Output)
hm2/hm2_7i76e.0: IO Pin 011 (P1-08): Smart Serial Interface #0, pin RxData0 (Input)
I cut off the error message as it was seeing parts of the board apparently but no need to put the whole 22 page list up here. Nevertheless you can get the idea of what it was seeing.
Thanks for all the help brother.
Please Log in or Create an account to join the conversation.
you can use the network manager GUI
Please Log in or Create an account to join the conversation.
I dont think its a serious issue but is fixed in LinuxCNC master
Please Log in or Create an account to join the conversation.
By the way, a serious thank you for your help. I would be in the woods without it. Brand new to all this but enjoying the challenge.
Please Log in or Create an account to join the conversation.
If you use Mint17 both LinuxCNC 2.7 and master work
Please Log in or Create an account to join the conversation.