Weird Gitlab-Runner output

Dear Clear Linux Team,

I am trying to use clearlinux together with gitlab(-runner) to set up my own CI. I could install everything perfectly as following this https://docs.gitlab.com/runner/install/linux-manually.html

It works now, however I have the problem that the corresponding runner always has in its log the following lines:

stty: 'standard input': Inappropriate ioctl for device
stty: 'standard input': Inappropriate ioctl for device
setterm: stdin does not refer to a terminal
stty: 'standard input': Inappropriate ioctl for device
stty: 'standard input': Inappropriate ioctl for device
stty: 'standard input': Inappropriate ioctl for device

Is there a way to configure this properly? I have no idea what is going on and I think supporting gitlab-runner would be a nice feature.

I did run clearlinux from a virtual machine that was hosted via VirtualBox. Maybe that could be one reason for the error?

Best,
Alessandro

You can open an package request issue on GitHub.

Note that this shouldn’t cause issues with the service itself. What bundles do you have installed on the system?

I wonder if this is related to some profile changes @mhorn made for the installer…

This is likely from the default profile run for the shell
/usr/share/defaults/etc/profile

19	# Ensure the interactive terminal has rows and columns
20	if [ -n "$PS1" ]; then # Only for interactive shells
21	  tty_rows=$(stty size | cut -d' ' -f1)
22	  tty_columns=$(stty size | cut -d' ' -f2)
23	  if [ $((${tty_rows} + 0)) -le 0 -o $((${tty_columns} + 0)) -le 0 ]; then
24	    [ -x /usr/bin/setterm ] &&  setterm --resize
25	    # fail safe if size still not set
26	    tty_rows=$(stty size | cut -d' ' -f1)
27	    tty_columns=$(stty size | cut -d' ' -f2)
28	    if [ $((${tty_rows} + 0)) -le 0 -o $((${tty_columns} + 0)) -le 0 ]; then
29	      stty rows 24 columns 80
30	    fi
31	  fi
32	  unset tty_rows tty_columns
33	fi

Somehow PS1 is being set cause the shell command to think you have a valid tty.

Hallo guys, I have bare metal installation of the latest version and have exact the same issue. What should be a possible solution for it?

Sorry, for my late reply. Did not hat time to work on this during that last weeks. I got now the following output:

gaia@C3PO~ $ swupd bundle-list
Error: Failed to retrieve 32260 MoM manifest
Warning: Could not determine which installed bundles are experimental
Babel
NetworkManager
NetworkManager-extras
Sphinx
TLP
acpica-unix2
alsa-utils
aspell
aspell-de
aspell-es
aspell-fr
baobab
bc
binutils
bison
bootloader
c-basic
cheese
cloc
cloud-api
clr-network-troubleshooter
computer-vision-basic
computer-vision-models
computer-vision-openvino
cpio
curl
desktop
desktop-apps
desktop-assets
desktop-autostart
desktop-gnomelibs
desktop-locales
dev-utils
devpkg-base
devpkg-boost
devpkg-eigen
devpkg-fann
devpkg-gflags
devpkg-glog
devpkg-googletest
devpkg-libjpeg-turbo
devpkg-llvm
devpkg-opencv
devpkg-protobuf-c
devpkg-tbb
diffutils
dnf
docutils
dpdk
emacs-x11
eog
ethtool
evince
evolution
file
file-roller
findutils
firefox
flatpak
flex
fonts-basic
fuse
gdb
geary
gedit
ghostscript
gimp
git
gjs
glibc-locale
gnome-base-libs
gnome-calculator
gnome-characters
gnome-color-manager
gnome-disk-utility
gnome-font-viewer
gnome-logs
gnome-music
gnome-photos
gnome-screenshot
gnome-system-monitor
gnome-todo
gnome-weather
graphviz
gstreamer
gvim
gzip
hardware-printing
hardware-uefi
htop
icdiff
inotify-tools
intltool
iperf
iproute2
iptables
kbd
kernel-install
kernel-native
less
lib-imageformat
lib-opengl
lib-openssl
lib-samba
libX11client
libglib
libstdcpp
libva-utils
linux-firmware
linux-firmware-extras
linux-firmware-wifi
linux-tools
llvm
lm-sensors
machine-learning-basic
machine-learning-mycroft
machine-learning-pytorch
machine-learning-tensorflow
make
man-pages
minicom
mpv
nasm
nautilus
net-tools
network-basic
openblas
openldap
openssh-client
openssh-server
openssl
openvswitch
os-core
os-core-plus
os-core-update
os-core-webproxy
p11-kit
parallel
patch
perl-basic
polkit
powertop
procps-ng
protobuf
pulseaudio
pygobject
python-data-science
python-extras
python3-basic
python3-tcl
qemu-guest-additions
qt-basic
qt-core
rsync
seahorse
socat
strace
subversion
sudo
sysadmin-basic
syslinux
tcl-basic
the_silver_searcher
thermal_daemon
tmux
totem
tzdata
unzip
valgrind
vim
vlc
webkitgtk
wget
which
wpa_supplicant
x11-server
xz
znc
zstd

This error is largely cosmetic, and shouldn’t affect anything except the possible display of the output.

Thats good to hear but still a bit annoying because these outputs are used to debug what when wrong and therefore they distract. Is there a way to fix it?

I’ve just pushed a fix for these errors - they should be in a release in 1-2 days.

filesystem-3.0.14-201 has the fix.

Many thanks! Looking forward to use ClearLinux more and more!

1 Like