LinuxCNC 2.8 doesn't run after upgrading from 2.7

More
29 Nov 2020 19:11 - 29 Nov 2020 19:17 #190619 by rbarry1068
Hope someone can help me debug my installation. I was running LinuxCnc 2.7 then upgraded to 2.8, now I can't get LinuxCnc up and running with my machine configuration (it runs until I try to load in my machine config file). I'm running Debian Stretch with RTAI. See attached error log file:

Error report created by /usr/lib/tcltk/linuxcnc/show_errors.tcl:

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/lib/tcltk/linuxcnc/msgs
INIVAR=inivar
HALCMD=halcmd
LINUXCNC_EMCSH=/usr/bin/wish8.6
LINUXCNC - 2.8.0
Machine configuration directory is '/home/robert/linuxcnc/configs/Solsylva_24by48'
Machine configuration file is 'Solsylva_24by48.ini'
INIFILE=/home/robert/linuxcnc/configs/Solsylva_24by48/Solsylva_24by48.ini
VERSION=1.1
PARAMETER_FILE=linuxcnc.var
TASK=milltask
HALUI=halui
DISPLAY=axis
COORDINATES=X Y Z
KINEMATICS=trivkins
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): ./Solsylva_24by48.hal
Found file(REL): ./custom.hal
INFO CLASSICLADDER- No ladder GUI requested-Realtime runs till HAL closes.
Starting TASK program: milltask
Starting DISPLAY program: axis
USRMOT: ERROR: command timeout
emcMotionInit: emcTrajInit failed
USRMOT: ERROR: command timeout
emcMotionInit: emcTrajInit failed
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 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>
waiting for s.joints<0>, s.kinematics_type<0>
Shutting down and cleaning up LinuxCNC...
USRMOT: ERROR: command timeout
Removing HAL_LIB, RTAPI, and Real Time OS modules
Removing NML shared memory segments

Debug file information:
Note: Using POSIX non-realtime
note: MAXV max: 1.000 units/sec 60.000 units/min
note: LJOG max: 1.000 units/sec 60.000 units/min
note: LJOG default: 0.200 units/sec 12.000 units/min
Waiting for component 'inihal' to become ready...................................A configuration error is preventing LinuxCNC from starting.
More information may be available when running from a terminal.
..11442
11493
..........HAL: ERROR: exit called before init
<commandline>:0: waitpid failed milltask inihal

<commandline>:0: milltask exited without becoming ready
Stopping realtime threads
Unloading hal components
Waited 3 seconds for master. giving up.
Note: Using POSIX non-realtime
classicladder_rt: not loaded
<commandline>:0: exit value: 255
<commandline>:0: rmmod failed, returned -1
Note: Using POSIX non-realtime
stepgen: not loaded
<commandline>:0: exit value: 255
<commandline>:0: rmmod failed, returned -1
Note: Using POSIX non-realtime
hal_parport: not loaded
<commandline>:0: exit value: 255
<commandline>:0: rmmod failed, returned -1
Note: Using POSIX non-realtime
motmod: not loaded
<commandline>:0: exit value: 255
<commandline>:0: rmmod failed, returned -1
Note: Using POSIX non-realtime
trivkins: not loaded
<commandline>:0: exit value: 255
<commandline>:0: rmmod failed, returned -1
<commandline>:0: unloadrt failed
Note: Using POSIX non-realtime



Info report created by linuxcnc_info:
The file: /tmp/linuxcnc_info.txt
can be posted to a forum or a web site like:
pastebin.com
in order to provide information about the linuxcnc
system and configuration.

Date: Sun Nov 29 12:56:40 EST 2020
UTC Date: Sun Nov 29 17:56:40 UTC 2020
this program: /usr/bin/linuxcnc_info
uptime: 12:56:40 up 25 min, 1 user, load average: 0.46, 0.61, 0.40
lsb_release -sa: Debian Debian GNU/Linux 9.13 (stretch) 9.13 stretch
which linuxcnc: /usr/bin/linuxcnc
pwd: /home/robert/linuxcnc/configs/Solsylva_24by48
USER: robert
LOGNAME: robert
HOME: /home/robert
EDITOR:
VISUAL:
LANGUAGE:
TERM: dumb
COLORTERM:
DISPLAY: :0.0
DESKTOP: lightdm-xsession
display size: 1280x1024 pixels (338x270 millimeters)
PATH: /usr/bin:/home/robert/linuxcnc/configs/Solsylva_24by48/bin:/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games

uname items:
nodename -n: robworkshop2
kernel-name -s: Linux
kernel-vers -v: #1 SMP PREEMPT Debian 3.4.55-4linuxcnc
machine -m: i686
processor -p: unknown
platform -i: unknown
oper system -o: GNU/Linux

/proc items:
cmdline: BOOT_IMAGE=/vmlinuz-3.4-9-rtai-686-pae root=/dev/mapper/robworkshop2-root ro initrd=/install/gtk/initrd.gz lapic quiet rootdelay=5
model name: AMD FX(tm)-6300 Six-Core Processor
cores: 3
cpu MHz: 3515.558
parport: 0378-037a : parport0
serial: 03f8-03ff : serial

Versions:
gcc: gcc (Debian 6.3.0-18+deb9u1) 6.3.0 20170516
python: Python 2.7.13
git: git version 2.11.0
git commit: NA
/usr/bin/linuxcnc_info: line 155: tclsh: command not found
tcl:
/usr/bin/linuxcnc_info: line 156: wish: command not found
tk:
glade: not_in_PATH
glade-gtk2: glade3 3.8.0

linuxcnc_var all:

LINUXCNCVERSION: 2.8.0
LINUXCNC_AUX_GLADEVCP: /usr/share/linuxcnc/aux_gladevcp
LINUXCNC_AUX_EXAMPLES: /usr/share/linuxcnc/aux_examples
REALTIME: /etc/init.d/realtime
RTS: uspace
HALLIB_DIR: /usr/share/linuxcnc/hallib

dpkg -l '*linuxcnc*':
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-===============-==========================-============-=====================================================================
rc linuxcnc 1:2.8.0~pre1.3935.g715a485 i386 motion controller for CNC machines and robots
un linuxcnc-doc <none> <none> (no description available)
ii linuxcnc-doc-en 1:2.8.0~pre1.3935.g715a485 all motion controller for CNC machines and robots (English documentation)
ii linuxcnc-doc-es 1:2.8.0 all controlador de movimiento para máquinas CNC y robots (Español).
un linuxcnc-sim <none> <none> (no description available)
ii linuxcnc-uspace 1:2.8.0 i386 motion controller for CNC machines and robots
Last edit: 29 Nov 2020 19:17 by rbarry1068. Reason: added additional details

Please Log in or Create an account to join the conversation.

More
29 Nov 2020 19:27 #190623 by tommylight
Main issue seems to be using a uspace version of LinuxCNC with an RTAI kernel, so it is working as sim only.
You need to install the RTAI version of LinuxCNC, not the Preempt-RT version, or install a Preempt-RT kernel.
See here on how to do that:
linuxcnc.org/docs/2.8/html/getting-start...dating-linuxcnc.html
The easiest would be to download the official ISO, but make sure you back up the configs and anything related to them and that the PC can handle the new operating system.

Please Log in or Create an account to join the conversation.

More
26 Dec 2020 19:52 #193248 by rbarry1068
OK, I have installed Debian 10 with LinuxCnC 2.8.1 from the LinuxCnc 2.8.0 - Buster installation image. I am now running the RT-Preempt kernel. uname -r gives "4.19.0-13-rt-amd64" and I am using uspace LinuxCnC. I think this is correct from what I read in the "getting Started V2.8.1" Manual.

My machine seems to be running OK now.

THanks.
The following user(s) said Thank You: tommylight

Please Log in or Create an account to join the conversation.

Time to create page: 0.152 seconds
Powered by Kunena Forum