Open Build Service błędy

Dawno temu zainstalowałem sobie OpenSUSE/OBS. Dzisiaj odpaliłem i skrypt budowania zgłaszał w logu, że mam nacisnąć enter (konsola odzyskiwania się ujawniła). Stwierdziłem, że pobierane paczki do budowania muszą być nowsze, więc zaktualizowałem system. Teraz logi się nie pojawiają, a jedynie napis, że połączenie zostało odrzucone.

Czasami korzystam z OBS, jednak w zasadzie tylko ze skryptu debtransform. Mówiąc oględnie w budowanie przez CLI nie bawię się, nie mam czasu tego się nauczyć.

Ktoś tutaj miał podobny problem (EN): connection refused on api - #2 by robertbovens

Trochę mało detali, możesz podać co dokładnie jest napisane w których logach, jaka jest wersja systemu i paczek związanych z OBS?

Zanim podam logi, to ściągnę najnowsze ISO i zainstaluje. Utworzyłem nową VM i to samo, ale instalowałem ze starego ISO. Konfiguracja była prosta. Jestem przekonany, że system się niewłaściwie zaktualizował, a pierwszy problem był spowodowany brakiem aktualizacji. Jednak i tak najpierw pobiorę najnowsze ISO, zainstaluje i skonfiguruję. Skoro komuś działa, a ja dwa razy miałem takie same problemy, to wszystko wskazuje na update.

Teraz skojarzyłem, że w sumie system aktualizowałem przez zypper dup, a OBS nie bazuje na Tumbleweed, tylko Leap.

Cześć.
Dzisiaj postanowiłem coś z tym zrobić. Po reinstalacji, w logach przez frontend www wywala:

[    2s] linux64 /usr/bin/qemu-kvm -nodefaults -no-reboot -nographic -vga none -cpu host -M pc,accel=kvm,usb=off,dump-guest-core=off,vmport=off -sandbox on -object rng-random,filename=/dev/hwrng,id=rng0 -device virtio-rng-pci,rng=rng0 -runas qemu -net none -kernel /var/cache/obs/worker/root_4/.mount/boot/kernel -initrd /var/cache/obs/worker/root_4/.mount/boot/initrd -append root=/dev/disk/by-id/virtio-0 rootfstype=ext4 rootflags=noatime kvmclock mitigations=off elevator=noop nmi_watchdog=0 rw rd.driver.pre=binfmt_misc oops=panic panic=1 quiet console=hvc0 init=/.build/build -m 512 -drive file=/var/cache/obs/worker/root_4/root,format=raw,if=none,id=disk,cache=unsafe,aio=io_uring -device virtio-blk-pci,drive=disk,serial=0 -drive file=/var/cache/obs/worker/root_4/swap,format=raw,if=none,id=swap,cache=unsafe,aio=io_uring -device virtio-blk-pci,drive=swap,serial=1 -device virtio-serial,max_ports=2 -device virtconsole,chardev=virtiocon0 -chardev stdio,id=virtiocon0 -chardev socket,id=monitor,server=on,wait=off,path=/var/cache/obs/worker/root_4/root.qemu/monitor -mon chardev=monitor,mode=readline -smp 1
[    3s] [[0;1;31mFAILED[0m] Failed to start [0;1;39mVirtual Console Setup[0m.

[    3s] [    0.763536] dracut-pre-udev[282]: sh: line 1: /usr/lib/module-init-tools/unblacklist: No such file or directory

Robię:

zypper ref && zypper up

Nie wiem , co jest nie tak. Pobrałem najnowsze ISO, zainstalowałem na KVM+QEMU/libvirt, zalogowałem się na admina, utworzyłem home admina, połączyłem się z zewnętrznym OBS, utworzyłem użytkownika, stworzyłem mu subproject, dodałem repozytorium na podstawie repa OpenSUSE Tumbleweed, utworzyłem paczkę, wysłałem pliczki, a on pokazuje:


[    5s] [    0.953093] dracut-pre-udev[283]: sh: line 1: /usr/lib/module-init-tools/unblacklist: No such file or directory
[    6s] [[0;1;31mFAILED[0m] Failed to start [0;1;39mVirtual Console Setup[0m.

[    6s] [[0;1;31mFAILED[0m] Failed to start [0;1;39mSwitch Root[0m.

[    7s] 
[    7s] Generating "/run/initramfs/rdsosreport.txt"
[    7s] 
[    7s] 
[    7s] Entering emergency mode. Exit the shell to continue.
[    7s] Type "journalctl" to view system logs.
[    7s] You might want to save "/run/initramfs/rdsosreport.txt" to a USB stick or /boot
[    7s] after mounting them and attach it to a bug report.
[    7s] 
[    7s] 
[    7s] Press Enter for maintenance

Wciąż nie jest dla mnie jasne czym jest to “najnowsze ISO”, jaka jest wersja systemu, jaka jest wersja paczek związanych z OBS, albo skąd zostało pobrane to ISO?

https://ftp.gwdg.de/pub/opensuse/repositories/OBS%3A/Server%3A/2.10/images/iso/obs-server.x86_64-oem.iso

Appliance 2.10.22 based on OpenSUSE Leap 15.5

Loading repository data...
Reading installed packages...

S  | Name                                     | Type    | Version               | Arch   | Repository
---+------------------------------------------+---------+-----------------------+--------+-------------------
i+ | obs-api                                  | package | 2.10.22-150500.118.6  | noarch | OBS:Server:2.10
i  | obs-api-deps                             | package | 2.10.22-150500.118.1  | x86_64 | OBS:Server:2.10
i  | obs-backend-testsuite                    | package | 2.10.22-150500.118.6  | noarch | OBS:Server:2.10
i  | obs-bundled-gems                         | package | 2.10.22-150500.118.1  | x86_64 | OBS:Server:2.10
i  | obs-common                               | package | 2.10.22-150500.118.6  | noarch | OBS:Server:2.10
i+ | obs-server                               | package | 2.10.22-150500.118.6  | noarch | OBS:Server:2.10
i+ | obs-service-appimage                     | package | 0.10.43-150500.343.2  | noarch | openSUSE:Tools
i+ | obs-service-download_files               | package | 0.9.2-bp155.1.5       | noarch | openSUSE:Leap:15.5
i+ | obs-service-download_src_package         | package | 0.2-150500.4.1        | noarch | (System Packages)
i+ | obs-service-download_url                 | package | 0.2.0-150500.34.2     | noarch | openSUSE:Tools
i+ | obs-service-extract_file                 | package | 0.4-150500.20.1       | noarch | (System Packages)
i  | obs-service-format_spec_file             | package | 20240121-150500.255.1 | noarch | openSUSE:Tools
i+ | obs-service-generator_driver_update_disk | package | 0.2-150500.2.1        | noarch | (System Packages)
i+ | obs-service-obs_scm                      | package | 0.10.43-150500.343.2  | noarch | openSUSE:Tools
i  | obs-service-obs_scm-common               | package | 0.10.43-150500.343.2  | noarch | openSUSE:Tools
i+ | obs-service-recompress                   | package | 0.5.2-150500.55.1     | noarch | openSUSE:Tools
i+ | obs-service-set_version                  | package | 0.6.2-150500.143.1    | noarch | openSUSE:Tools
i+ | obs-service-snapcraft                    | package | 0.10.43-150500.343.2  | noarch | openSUSE:Tools
i+ | obs-service-source_validator             | package | 0.35-150500.189.2     | noarch | openSUSE:Tools
i+ | obs-service-tar                          | package | 0.10.43-150500.343.2  | noarch | openSUSE:Tools
i+ | obs-service-tar_scm                      | package | 0.10.43-150500.343.2  | noarch | openSUSE:Tools
i+ | obs-service-verify_file                  | package | 0.1.1-150500.38.1     | noarch | (System Packages)
i+ | obs-signd                                | package | 2.5.10-150500.1.3     | x86_64 | OBS:Server:2.10
i+ | obs-utils                                | package | 2.10.22-150500.118.6  | noarch | OBS:Server:2.10
i+ | obs-worker                               | package | 2.10.22-150500.118.6  | noarch | OBS:Server:2.10

Chyba wszystkie paczki z OBS, użyłem:

zypper --non-interactive se -s --installed-only OBS\* > /srv/www/obs/overview/data.txt

Jeszcze:

> cat /etc/os-release > /srv/www/obs/overview/os-release
NAME="openSUSE Leap"
VERSION="15.5"
ID="opensuse-leap"
ID_LIKE="suse opensuse"
VERSION_ID="15.5"
PRETTY_NAME="openSUSE Leap 15.5"
ANSI_COLOR="0;32"
CPE_NAME="cpe:/o:opensuse:leap:15.5"
BUG_REPORT_URL="https://bugs.opensuse.org"
HOME_URL="https://www.opensuse.org/"
DOCUMENTATION_URL="https://en.opensuse.org/Portal:Leap"
LOGO="distributor-logo-Leap"

PS: Zwróciłem uwagę na update, i co rzuciło się moim oczom:

Loading repository data...
Reading installed packages...

The following 15 package updates will NOT be installed:
  build build-initvm-x86_64 build-mkbaselibs dpkg dracut-kiwi-lib dracut-kiwi-live dracut-kiwi-oem-dump dracut-kiwi-oem-repart obs-service-download_files perl-GD perl-JSON-XS perl-Socket-MsgHdr perl-common-sense rubygem-passenger rubygem-passenger-apache2
Nothing to do.

Są tam paczki build-initvm-x86_64, do konstruowania initrrd (dracut), pobierania obrazu dystrybucji, itd. Nie wiem, do czego służą, ale sugerując się nazwą, to może być to - jak odblokować ich instalację?

Wygląda na 1221759 – systemd fails to switch root: os-release file is missing., rzuć okiem w journalctl -u initrd-switch-root.service czy masz podobny error co do pliku os-release, i jeśli tak to warto dać znać w bugu podanym wyżej wspominając że to Leap a nie Tumbleweed.

A i co do tego, zakładam że to kwestia tych paczek mających nowszą wersję w innych repozytoriach. Możesz rzucić okiem w zypper info <nazwa-paczki> czy coś jest na ten temat napisane. Generalnie nie rekomenduje się zmiany repozytoriów od domyślnych

Dane o paczkach.

for a in `list=false; zypper up | while read a; do if echo $a | egrep \^The\ following > /dev/null; then list=true; continue; fi; if [[ $list == 'true' ]]; then echo $a; break; fi;  done`; do zypper info $a; done > /srv/www/obs/overview/paczki.txt
Loading repository data...
Reading installed packages...


Information for package build:
------------------------------
Repository     : OBS:Server:2.10
Name           : build
Version        : 20230628-150500.1.4
Arch           : noarch
Vendor         : obs://build.opensuse.org/OBS
Installed Size : 2.9 MiB
Installed      : Yes
Status         : up-to-date
Source package : build-20230628-150500.1.4.src
Summary        : A Script to Build SUSE Linux RPMs
Description    : 
    This package provides a script for building RPMs for SUSE Linux in a
    chroot environment.

Loading repository data...
Reading installed packages...


Information for package build-initvm-x86_64:
--------------------------------------------
Repository     : OBS:Server:2.10
Name           : build-initvm-x86_64
Version        : 20230628-150500.1.4
Arch           : noarch
Vendor         : obs://build.opensuse.org/OBS
Installed Size : 752.9 KiB
Installed      : Yes
Status         : up-to-date
Source package : build-20230628-150500.1.4.src
Summary        : Virtualization initializer for emulated cross architecture builds
Description    : 
    This package provides a script for building RPMs for SUSE Linux in a
    chroot or a secure virtualized

Loading repository data...
Reading installed packages...


Information for package build-mkbaselibs:
-----------------------------------------
Repository     : OBS:Server:2.10
Name           : build-mkbaselibs
Version        : 20230628-150500.1.4
Arch           : noarch
Vendor         : obs://build.opensuse.org/OBS
Installed Size : 40.8 KiB
Installed      : Yes (automatically)
Status         : up-to-date
Source package : build-20230628-150500.1.4.src
Summary        : Tools to generate base lib packages
Description    : 
    This package contains the parts which may be installed in the inner build system
    for generating base lib packages.

Loading repository data...
Reading installed packages...


Information for package dpkg:
-----------------------------
Repository     : openSUSE:Leap:15.5
Name           : dpkg
Version        : 1.19.0.4-150000.4.4.1
Arch           : x86_64
Vendor         : SUSE LLC <https://www.suse.com/>
Installed Size : 3.1 MiB
Installed      : Yes
Status         : up-to-date
Source package : dpkg-1.19.0.4-150000.4.4.1.src
Upstream URL   : http://www.debian.org
Summary        : Debian package management system
Description    : 
    This package contains tools for working with Debian packages. It makes
    it possible to create and extract Debian packages. If Alien is
    installed, the packages can be converted to RPMs.

    This package contains the following Debian packages: dpkg, dselect,
    dpkg-doc, dpkg-dev.

Loading repository data...
Reading installed packages...


Information for package dracut-kiwi-lib:
----------------------------------------
Repository     : OBS:Server:2.10
Name           : dracut-kiwi-lib
Version        : 9.18.33-150500.6.2
Arch           : x86_64
Vendor         : obs://build.opensuse.org/OBS
Installed Size : 37.0 KiB
Installed      : Yes (automatically)
Status         : up-to-date
Source package : python-kiwi-9.18.33-150500.6.2.src
Upstream URL   : https://github.com/SUSE/kiwi
Summary        : KIWI - Dracut kiwi Library
Description    : 
    This package contains a collection of methods to provide a library
    for tasks done in other kiwi dracut modules

Loading repository data...
Reading installed packages...


Information for package dracut-kiwi-live:
-----------------------------------------
Repository     : OBS:Server:2.10
Name           : dracut-kiwi-live
Version        : 9.18.33-150500.6.2
Arch           : x86_64
Vendor         : obs://build.opensuse.org/OBS
Installed Size : 15.5 KiB
Installed      : Yes
Status         : up-to-date
Source package : python-kiwi-9.18.33-150500.6.2.src
Upstream URL   : https://github.com/SUSE/kiwi
Summary        : KIWI - Dracut module for iso(live) image type
Description    : 
    This package contains the kiwi-live dracut module which is used
    for booting iso(live) images built with KIWI

Loading repository data...
Reading installed packages...


Information for package dracut-kiwi-oem-dump:
---------------------------------------------
Repository     : OBS:Server:2.10
Name           : dracut-kiwi-oem-dump
Version        : 9.18.33-150500.6.2
Arch           : x86_64
Vendor         : obs://build.opensuse.org/OBS
Installed Size : 18.4 KiB
Installed      : Yes
Status         : up-to-date
Source package : python-kiwi-9.18.33-150500.6.2.src
Upstream URL   : https://github.com/SUSE/kiwi
Summary        : KIWI - Dracut module for oem(install) image type
Description    : 
    This package contains the kiwi-dump dracut module which is
    used to install an oem image onto a target disk. It implements
    a simple installer which allows for user selected target disk
    or unattended installation to target. The source of the image
    to install could be either from media(CD/DVD/USB) or from
    remote

Loading repository data...
Reading installed packages...


Information for package dracut-kiwi-oem-repart:
-----------------------------------------------
Repository     : OBS:Server:2.10
Name           : dracut-kiwi-oem-repart
Version        : 9.18.33-150500.6.2
Arch           : x86_64
Vendor         : obs://build.opensuse.org/OBS
Installed Size : 10.7 KiB
Installed      : Yes
Status         : up-to-date
Source package : python-kiwi-9.18.33-150500.6.2.src
Upstream URL   : https://github.com/SUSE/kiwi
Summary        : KIWI - Dracut module for oem(repart) image type
Description    : 
    This package contains the kiwi-repart dracut module which is
    used to repartition the oem disk image to the current disk
    geometry according to the setup in the kiwi image configuration

Loading repository data...
Reading installed packages...


Information for package obs-service-download_files:
---------------------------------------------------
Repository     : openSUSE:Leap:15.5
Name           : obs-service-download_files
Version        : 0.9.2-bp155.1.5
Arch           : noarch
Vendor         : openSUSE
Installed Size : 13.3 KiB
Installed      : Yes
Status         : up-to-date
Source package : obs-service-download_files-0.9.2-bp155.1.5.src
Upstream URL   : https://github.com/openSUSE/obs-service-download_files
Summary        : An OBS source service: download files
Description    : 
    This is a source service for openSUSE Build Service.

    This service is parsing all spec files and downloads all Source files which are specified via a http, https or ftp url.

Loading repository data...
Reading installed packages...


Information for package perl-GD:
--------------------------------
Repository     : OBS:Server:2.10
Name           : perl-GD
Version        : 2.51-150500.2.2.1
Arch           : x86_64
Vendor         : obs://build.opensuse.org/OBS
Installed Size : 356.8 KiB
Installed      : Yes (automatically)
Status         : up-to-date
Source package : perl-GD-2.51-150500.2.2.1.src
Upstream URL   : http://search.cpan.org/dist/GD/
Summary        : Interface to Gd Graphics Library
Description    : 
    *GD.pm* is a Perl interface to Thomas Boutell's gd graphics library
    (version 2.01 or higher; see below). GD allows you to create color drawings
    using a large number of graphics primitives, and emit the drawings as PNG
    files.

Loading repository data...
Reading installed packages...


Information for package perl-JSON-XS:
-------------------------------------
Repository     : OBS:Server:2.10
Name           : perl-JSON-XS
Version        : 2.34-150500.8.2.1
Arch           : x86_64
Vendor         : obs://build.opensuse.org/OBS
Installed Size : 231.1 KiB
Installed      : Yes (automatically)
Status         : up-to-date
Source package : perl-JSON-XS-2.34-150500.8.2.1.src
Upstream URL   : http://search.cpan.org/dist/JSON-XS/
Summary        : JSON serialising/deserialising, done correctly and fast
Description    : 
    This module converts Perl data structures to JSON and vice versa. Its
    primary goal is to be _correct_ and its secondary goal is to be _fast_. To
    reach the latter goal it was written in C.

    Beginning with version 2.0 of the JSON module, when both JSON and JSON::XS
    are installed, then JSON will fall back on JSON::XS (this can be
    overridden) with no overhead due to emulation (by inheriting constructor
    and methods). If JSON::XS is not available, it will fall back to the
    compatible JSON::PP module as backend, so using JSON instead of JSON::XS
    gives you a portable JSON API that can be fast when you need and doesn't
    require a C compiler when that is a problem.

    As this is the n-th-something JSON module on CPAN, what was the reason to
    write yet another JSON module? While it seems there are many JSON modules,
    none of them correctly handle all corner cases, and in most cases their
    maintainers are unresponsive, gone missing, or not listening to bug reports
    for other reasons.

    See MAPPING, below, on how JSON::XS maps perl values to JSON values and
    vice versa.

Loading repository data...
Reading installed packages...


Information for package perl-Socket-MsgHdr:
-------------------------------------------
Repository     : OBS:Server:2.10
Name           : perl-Socket-MsgHdr
Version        : 0.04-150500.20.2.1
Arch           : x86_64
Vendor         : obs://build.opensuse.org/OBS
Installed Size : 28.5 KiB
Installed      : Yes (automatically)
Status         : up-to-date
Source package : perl-Socket-MsgHdr-0.04-150500.20.2.1.src
Upstream URL   : http://search.cpan.org/
Summary        : Perl interface for the sendmsg/recvmsg functions
Description    : 
    Socket::MsgHdr provides advanced socket messaging operations via
    sendmsg and recvmsg.

Loading repository data...
Reading installed packages...


Information for package perl-common-sense:
------------------------------------------
Repository     : OBS:Server:2.10
Name           : perl-common-sense
Version        : 3.5-150500.4.2.1
Arch           : noarch
Vendor         : obs://build.opensuse.org/OBS
Installed Size : 43.9 KiB
Installed      : Yes (automatically)
Status         : up-to-date
Source package : perl-common-sense-3.5-150500.4.2.1.src
Upstream URL   : http://search.cpan.org/dist/common-sense/
Summary        : Save a tree AND a kitten (sane defaults for Perl programs)
Description    : 
    This module implements some sane defaults for Perl programs, as defined
    by two typical (or not so typical - use your common sense) specimens of
    Perl coders. In fact, after working out details on which warnings and
    strict modes to enable and make fatal, we found that we (and our code
    written so far, and others) fully agree on every option, even though we
    never used warnings before, so it seems this module indeed reflects a
    "common" sense among some long-time Perl coders.

    The basic philosophy behind the choices made in common::sense can be
    summarised as: "enforcing strict policies to catch as many bugs as
    possible, while at the same time, not limiting the expressive power
    available to the programmer".

Loading repository data...
Reading installed packages...


Information for package rubygem-passenger:
------------------------------------------
Repository     : OBS:Server:2.10
Name           : rubygem-passenger
Version        : 6.0.14-150500.1870.3
Arch           : x86_64
Vendor         : obs://build.opensuse.org/OBS
Installed Size : 12.1 MiB
Installed      : Yes (automatically)
Status         : up-to-date
Source package : rubygem-passenger-6.0.14-150500.1870.3.src
Upstream URL   : https://www.phusionpassenger.com/
Summary        : A fast and robust web server and application server for Ruby, Python
Description    : 
    A modern web server and application server for Ruby, Python and Node.js,
    optimized for performance, low memory usage and ease of use.

Loading repository data...
Reading installed packages...


Information for package rubygem-passenger-apache2:
--------------------------------------------------
Repository     : OBS:Server:2.10
Name           : rubygem-passenger-apache2
Version        : 6.0.14-150500.1870.3
Arch           : x86_64
Vendor         : obs://build.opensuse.org/OBS
Installed Size : 2.4 MiB
Installed      : Yes
Status         : up-to-date
Source package : rubygem-passenger-6.0.14-150500.1870.3.src
Upstream URL   : https://www.phusionpassenger.com/
Summary        : Passenger apache module
Description    : 

    A modern web server and application server for Ruby, Python and Node.js,
    optimized for performance, low memory usage and ease of use.

    This package holds the apache2 sub package for passenger

Żadnych wpisów - tylko taki, że jednostka była uruchamiana (25.04 o 7)

Budowane lokalnie (chyba) przez osc także wyrzuca błąd, lecz na późniejszym etapie. Nie wygląda to jednak, by problemem był plik .spec lub kod źródłowy (mogły zostac użyte inne flagi niż te w dystrybucji).

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.