Oracle Linux 8.3 : Module yaml error: Unexpected key in data: static_context [line 9 col 3]

206 x served & 123 x viewed

J’ai pu voir l’erreur suivante :

Module yaml error: Unexpected key in data: static_context [line 9 col 3]

Pour fixer le problème :

# yum update libmodulemd
rabbitmq_erlang                                                                                        315  B/s | 833  B     00:02    
rabbitmq_erlang-source                                                                                 489  B/s | 819  B     00:01    
#ff0000;">Module yaml error: Unexpected key in data: static_context [line 9 col 3]
Module yaml error: Unexpected key in data: static_context [line 9 col 3]
Dépendances résolues.
=======================================================================================================================================
 Paquet                         Architecture              Version                           Dépôt                                Taille
=======================================================================================================================================
Mise à jour:
 libmodulemd                    x86_64                    2.13.0-1.el8                      ol8_baseos_latest                    233 k

Résumé de la transaction
=======================================================================================================================================
Mettre à niveau  1 Paquet

Taille totale des téléchargements : 233 k
Voulez-vous continuer ? [o/N] : o
Téléchargement des paquets :
libmodulemd-2.13.0-1.el8.x86_64.rpm                                                                    3.4 MB/s | 233 kB     00:00    
---------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                  3.2 MB/s | 233 kB     00:00     
Test de la transaction
La vérification de la transaction a réussi.
Lancement de la transaction de test
Transaction de test réussie.
Exécution de la transaction
  Préparation           :                                                                                                          1/1 
  Mise à jour           : libmodulemd-2.13.0-1.el8.x86_64                                                                          1/2 
  Nettoyage de          : libmodulemd-2.9.4-2.el8.x86_64                                                                           2/2 
  Exécution du scriptlet: libmodulemd-2.9.4-2.el8.x86_64                                                                           2/2 
  Vérification de       : libmodulemd-2.13.0-1.el8.x86_64                                                                          1/2 
  Vérification de       : libmodulemd-2.9.4-2.el8.x86_64                                                                           2/2 

Mis à niveau:
  libmodulemd-2.13.0-1.el8.x86_64                                                                                                      

Terminé !

Ma version de Oracle Linux 8.3 :

# cat /etc/os-release 
NAME="Oracle Linux Server"
VERSION="8.3"
ID="ol"
ID_LIKE="fedora"
VARIANT="Server"
VARIANT_ID="server"
VERSION_ID="8.3"
PLATFORM_ID="platform:el8"
#ff0000;">PRETTY_NAME="Oracle Linux Server 8.3"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:oracle:linux:8:3:server"
HOME_URL="https://linux.oracle.com/"
BUG_REPORT_URL="https://bugzilla.oracle.com/"

ORACLE_BUGZILLA_PRODUCT="Oracle Linux 8"
ORACLE_BUGZILLA_PRODUCT_VERSION=8.3
ORACLE_SUPPORT_PRODUCT="Oracle Linux"
ORACLE_SUPPORT_PRODUCT_VERSION=8.3

Migration de Oracle Linux 7.x vers Oracle Linux 8.x avec leapp : Echec complet

142 x served & 45 x viewed

J’ai essayé une migration avec Leapp mais sans succès, pourtant je pense bien avoir suivi la procédure.

Etape 1 : Mise en place de la dernier version de la Oracle Linux 7.x :

 

# sudo yum upgrade
... reboot ...
# cat /etc/system-release
Oracle Linux Server release 7.9
# yum repolist
Modules complémentaires chargés : ulninfo
id du dépôt                                                             nom du dépôt                                                                                                                           statut
ol7_UEKR5/x86_64                                                        Latest Unbreakable Enterprise Kernel Release 5 for Oracle Linux 7Server (x86_64)                                                          702
ol7_latest/x86_64                                                       Oracle Linux 7Server Latest (x86_64)                                                                                                   24 259
repolist: 24 961

Etape 2 : Suppression des anciens Kernel :

# rpm -q kernel
kernel-3.10.0-1160.49.1.el7.x86_64
kernel-3.10.0-1160.53.1.el7.x86_64
kernel-3.10.0-1160.62.1.el7.x86_64
# package-cleanup --oldkernels --count=1 
# uname -sr
Linux 4.14.35-2047.513.2.el7uek.x86_64
# rpm -q kernel
kernel-3.10.0-1160.62.1.el7.x86_64

Etape 3 : Ajout du repo :

# curl https://copr.fedorainfracloud.org/coprs/g/leapp/leapp-devel/repo/epel-7/group_leapp-leapp-devel-epel-7.repo -o /etc/yum.repos.d/group_leapp-leapp-devel-epel-7.repo
# sudo yum install -y leapp

Etape 4 : Pre-upgrade :

# leapp preupgrade --oraclelinux

A noter que dans mon yum.repos.d j’ai :

yum.repos.d]# ls -ltr
total 40
-rw-r--r--. 1 root root 13093  2 nov.   2018 public-yum-ol7.repo.sav
-rw-r--r--  1 root root   226  9 juin   2021 virt-ol7.repo
-rw-r--r--  1 root root  4586 20 déc.  15:17 oracle-linux-ol7.repo
-rw-r--r--  1 root root  2587 20 déc.  15:18 uek-ol7.repo
-rw-r--r--  1 root root  2575 10 févr. 17:09 leapp-upgrade-repos-ol8.repo
-rw-r--r--  1 root root   381 12 mai   15:52 group_leapp-leapp-devel-epel-7.repo

# cat leapp-upgrade-repos-ol8.repo | grep "^\["
[ol8_baseos_latest]
[ol8_appstream]
[ol8_codeready_builder]
[ol8_addons]
[ol8_UEKR6]
[ol8_ksplice]
[ol8_oci_included]
[ol8_MySQL80]
[ol8_UEKR6_RDMA]
[ol8_oraclelinuxmanager210_client]
[ol8_kvm_appstream]

Etape 5 : Réponse aux questions :

# cat /var/log/leapp/answerfile
[remove_pam_pkcs11_module_check]
# Title:              None
# Reason:             Confirmation
# =================== remove_pam_pkcs11_module_check.confirm ==================
# Label:              Disable pam_pkcs11 module in PAM configuration? If no, the upgrade process will be interrupted.
# Description:        PAM module pam_pkcs11 is no longer available in OL-8 since it was replaced by SSSD.
# Type:               bool
# Default:            None
# Available choices: True/False
# Unanswered question. Uncomment the following line with your answer
# confirm =

# leapp answer --section remove_pam_pkcs11_module_check.confirm=True

Etape 6 : Finalisation :

– Test 1 :

leapp upgrade --oraclelinux

– Test 2 :

leapp upgrade --oraclelinux  --enablerepo ol8_codeready_builder

– Test 3 :

leapp upgrade --oraclelinux --enablerepo ol8_baseos_latest

Je me retrouve toujours avec l’erreur suivante :

============================================================
                           ERRORS                           
============================================================
 
2022-05-12 16:33:30.411911 [ERROR] Actor: target_userspace_creator
Message: Unable to install OL 8 userspace packages.
Summary:
    Details: Command ['systemd-nspawn', '--register=no', '--quiet', '-D', '/var/lib/leapp/scratch/mounts/root_/system_overlay', '--bind=/etc/hosts:/etc/hosts', '--setenv=LEAPP_EXPERIMENTAL=0', '--setenv=LEAPP_COMMON_TOOLS=:/etc/leapp/repos.d/system_upgrade/el7toel8/tools', '--setenv=LEAPP_COMMON_FILES=:/etc/leapp/repos.d/system_upgrade/el7toel8/files', '--setenv=LEAPP_ENABLE_REPOS=ol8_baseos_latest,ol8_appstream,ol8_UEKR6,ol8_codeready_builder', '--setenv=LEAPP_UNSUPPORTED=0', '--setenv=LEAPP_EXECUTION_ID=12546ba8-da78-496b-8489-f39686b2a838', '--setenv=LEAPP_HOSTNAME=PeDevOracle7.6', 'dnf', 'install', '-y', '--nogpgcheck', '--setopt=module_platform_id=platform:el8', '--setopt=keepcache=1', '--releasever', u'8.4', '--installroot', '/el8target', '--disablerepo', '*', '--enablerepo', u'ol8_baseos_latest', '--enablerepo', u'ol8_codeready_builder', '--enablerepo', u'ol8_UEKR6', '--enablerepo', u'ol8_appstream', 'dnf', '--disableplugin', 'subscription-manager'] failed with exit code 1.
    Stderr: Failed to create directory /var/lib/leapp/scratch/mounts/root_/system_overlay//sys/fs/selinux: Read-only file system
            Failed to create directory /var/lib/leapp/scratch/mounts/root_/system_overlay//sys/fs/selinux: Read-only file system
            Host and machine ids are equal (b947571a5b6f4b4485914d6b5da8c598): refusing to link journals
            Failed to synchronize cache for repo 'ol8_UEKR6', ignoring this repo.
            Failed to synchronize cache for repo 'ol8_appstream', ignoring this repo.
            Failed to synchronize cache for repo 'ol8_codeready_builder', ignoring this repo.
            Failed to synchronize cache for repo 'ol8_baseos_latest', ignoring this repo.
            Error: Unable to find a match: dnf
 
============================================================
                       END OF ERRORS                        
============================================================

Misère.

VirtualBox : Problème lors de l’installation d’une nouvelle Box : -> VERR_CPUM_RAISE_GP_0!

371 x served & 91 x viewed

Ma version de VirtualBox: 6.1.18 et ma version de Windows : Windows 10 Entreprise OS Build 18363.1379 .

J’ai du faire ceci :

1-Lancer un prompt en Administrateur ;

2-Lancer la commande :

bcdedit /set hypervisorlaunchtype off

3-Faire un reboot :

shutdown -s -t 2

Voici les logs de Virtual Box qui plantait:

00:00:03.654980 Full Name: "Intel(R) Core(TM) i7-9850H CPU @ 2.60GHz"
00:00:03.654981 TLB 2/4M Instr/Uni: res0 0 entries
00:00:03.654981 TLB 2/4M Data: res0 0 entries
00:00:03.654982 TLB 4K Instr/Uni: res0 0 entries
00:00:03.654982 TLB 4K Data: res0 0 entries
00:00:03.654982 L1 Instr Cache Line Size: 0 bytes
00:00:03.654983 L1 Instr Cache Lines Per Tag: 0
00:00:03.654983 L1 Instr Cache Associativity: res0
00:00:03.654983 L1 Instr Cache Size: 0 KB
00:00:03.654983 L1 Data Cache Line Size: 0 bytes
00:00:03.654984 L1 Data Cache Lines Per Tag: 0
00:00:03.654984 L1 Data Cache Associativity: res0
00:00:03.654984 L1 Data Cache Size: 0 KB
00:00:03.654985 L2 TLB 2/4M Instr/Uni: off 0 entries
00:00:03.654985 L2 TLB 2/4M Data: off 0 entries
00:00:03.654985 L2 TLB 4K Instr/Uni: off 0 entries
00:00:03.654986 L2 TLB 4K Data: off 0 entries
00:00:03.654986 L2 Cache Line Size: 0 bytes
00:00:03.654987 L2 Cache Lines Per Tag: 0
00:00:03.654987 L2 Cache Associativity: off
00:00:03.654987 L2 Cache Size: 0 KB
00:00:03.654988 TS - Temperature Sensor = 0 (0)
00:00:03.654989 FID - Frequency ID control = 0 (0)
00:00:03.654990 VID - Voltage ID control = 0 (0)
00:00:03.654990 TscInvariant - Invariant Time Stamp Counter = 1 (1)
00:00:03.654991 CBP - Core Performance Boost = 0 (0)
00:00:03.654992 EffFreqRO - Read-only Effective Frequency Interface = 0 (0)
00:00:03.654992 ProcFdbkIf - Processor Feedback Interface = 0 (0)
00:00:03.654993 ProcPwrRep - Core power reporting interface support = 0 (0)
00:00:03.654994 Physical Address Width: 39 bits
00:00:03.654994 Virtual Address Width: 48 bits
00:00:03.654994 Guest Physical Address Width: 0 bits
00:00:03.654995 Physical Core Count: 1
00:00:03.654996
00:00:03.654996 ******************** End of CPUID dump **********************
0:00:03.655008 VMEmt: Halt method global1 (5)
00:00:03.655098 VMEmt: HaltedGlobal1 config: cNsSpinBlockThresholdCfg=50000
00:00:03.655176 Changing the VM state from 'CREATING' to 'CREATED'
00:00:03.656076 Changing the VM state from 'CREATED' to 'POWERING_ON'
00:00:03.656236 AIOMgr: Endpoints without assigned bandwidth groups:
00:00:03.656252 AIOMgr: E:\LIVECD\OracleLinux-R8-U3-x86_64-dvd.iso
00:00:03.656258 AIOMgr: E:\Oracle Linux 8.3\Oracle Linux 8.3.vdi
00:00:03.656697 Changing the VM state from 'POWERING_ON' to 'RUNNING'
00:00:03.656717 Console: Machine state changed to 'Running'
00:00:03.658838 VMMDev: Guest Log: BIOS: VirtualBox 6.1.18
00:00:03.659012 PCI: Setting up resources and interrupts
00:00:03.664606 ERROR [COM]: aRC=VBOX_E_VM_ERROR (0x80bb0003) aIID={4680b2de-8690-11e9-b83d-5719e53cf1de} aComponent={DisplayWrap} aText={Could not take a screenshot (VERR_NOT_SUPPORTED)}, preserve=false aResultDetail=-37
00:00:03.690437 PIT: mode=2 count=0x10000 (65536) - 18.20 Hz (ch=0)
00:00:03.706765 Display::i_handleDisplayResize: uScreenId=0 pvVRAM=0000000000000000 w=720 h=400 bpp=0 cbLine=0x0 flags=0x0 origin=0,0
00:00:03.709342 VMMDev: Guest Log: CPUID EDX: 0x178bfbff
00:00:03.709485 PIIX3 ATA: Ctl#0: RESET, DevSel=0 AIOIf=0 CmdIf0=0x00 (-1 usec ago) CmdIf1=0x00 (-1 usec ago)
00:00:03.709529 PIIX3 ATA: Ctl#0: finished processing RESET
00:00:03.712679 AHCI#0: Reset the HBA
00:00:03.712694 VD#0: Cancelling all active requests
00:00:03.712851 AHCI#0: Port 0 reset
00:00:03.712929 VD#0: Cancelling all active requests
00:00:03.713609 VMMDev: Guest Log: BIOS: AHCI 0-P#0: PCHS=16383/16/63 LCHS=1024/255/63 0x000000000a36f580 sectors
00:00:03.717731 PIT: mode=2 count=0x48d3 (18643) - 64.00 Hz (ch=0)
00:00:03.745810 Display::i_handleDisplayResize: uScreenId=0 pvVRAM=000000000f300000 w=640 h=480 bpp=32 cbLine=0xA00 flags=0x0 origin=0,0
00:00:04.157989 GUI: UIMachineViewScale::resendSizeHint: Restoring guest size-hint for screen 0 to 800x600
00:00:04.158041 VMMDev: SetVideoModeHint: Got a video mode hint (800x600x32)@(0x0),(1;0) at 0
00:00:04.161243 GUI: 2D video acceleration is disabled
00:00:04.161314 GUI: HID LEDs sync is enabled
00:00:06.200584 PIT: mode=2 count=0x10000 (65536) - 18.20 Hz (ch=0)
00:00:06.200907 VMMDev: Guest Log: BIOS: Boot : bseqnr=1, bootseq=0023
00:00:06.205053 VMMDev: Guest Log: BIOS: Booting from CD-ROM...
00:00:06.212463 Display::i_handleDisplayResize: uScreenId=0 pvVRAM=0000000000000000 w=720 h=400 bpp=0 cbLine=0x0 flags=0x0 origin=0,0
00:00:06.265354 Display::i_handleDisplayResize: uScreenId=0 pvVRAM=000000000f300000 w=640 h=480 bpp=24 cbLine=0x780 flags=0x0 origin=0,0
00:00:09.954650 Display::i_handleDisplayResize: uScreenId=0 pvVRAM=0000000000000000 w=720 h=400 bpp=0 cbLine=0x0 flags=0x0 origin=0,0
00:00:10.635396 VMMDev: Guest Log: BIOS: KBD: unsupported int 16h function 03
00:00:10.635672 VMMDev: Guest Log: BIOS: AX=0305 BX=0000 CX=0000 DX=0000
00:00:10.636346 VMMDev: Guest Log: int13_harddisk_ext: function 41, unmapped device for ELDL=81
00:00:10.636666 VMMDev: Guest Log: int13_harddisk: function 02, unmapped device for ELDL=81
00:00:10.637007 VMMDev: Guest Log: int13_harddisk_ext: function 41, unmapped device for ELDL=82
00:00:10.637332 VMMDev: Guest Log: int13_harddisk: function 02, unmapped device for ELDL=82
00:00:10.637672 VMMDev: Guest Log: int13_harddisk_ext: function 41, unmapped device for ELDL=83
00:00:10.637991 VMMDev: Guest Log: int13_harddisk: function 02, unmapped device for ELDL=83
00:00:10.638335 VMMDev: Guest Log: int13_harddisk_ext: function 41, unmapped device for ELDL=84
00:00:10.638654 VMMDev: Guest Log: int13_harddisk: function 02, unmapped device for ELDL=84
00:00:10.638994 VMMDev: Guest Log: int13_harddisk_ext: function 41, unmapped device for ELDL=85
00:00:10.639343 VMMDev: Guest Log: int13_harddisk: function 02, unmapped device for ELDL=85
00:00:10.639737 VMMDev: Guest Log: int13_harddisk_ext: function 41, unmapped device for ELDL=86
00:00:10.640057 VMMDev: Guest Log: int13_harddisk: function 02, unmapped device for ELDL=86
00:00:10.640404 VMMDev: Guest Log: int13_harddisk_ext: function 41, unmapped device for ELDL=87
00:00:10.640723 VMMDev: Guest Log: int13_harddisk: function 02, unmapped device for ELDL=87
00:00:10.641063 VMMDev: Guest Log: int13_harddisk_ext: function 41, unmapped device for ELDL=88
00:00:10.641385 VMMDev: Guest Log: int13_harddisk: function 02, unmapped device for ELDL=88
00:00:10.641725 VMMDev: Guest Log: int13_harddisk_ext: function 41, unmapped device for ELDL=89
00:00:10.642044 VMMDev: Guest Log: int13_harddisk: function 02, unmapped device for ELDL=89
00:00:10.642389 VMMDev: Guest Log: int13_harddisk_ext: function 41, unmapped device for ELDL=8a
00:00:10.642709 VMMDev: Guest Log: int13_harddisk: function 02, unmapped device for ELDL=8a
00:00:10.643172 VMMDev: Guest Log: int13_harddisk_ext: function 41, unmapped device for ELDL=8b
00:00:10.643494 VMMDev: Guest Log: int13_harddisk: function 02, unmapped device for ELDL=8b
00:00:10.643908 VMMDev: Guest Log: int13_harddisk_ext: function 41, unmapped device for ELDL=8c
00:00:10.644298 VMMDev: Guest Log: int13_harddisk: function 02, unmapped device for ELDL=8c
00:00:10.644639 VMMDev: Guest Log: int13_harddisk_ext: function 41, unmapped device for ELDL=8d
00:00:10.644956 VMMDev: Guest Log: int13_harddisk: function 02, unmapped device for ELDL=8d
00:00:10.645295 VMMDev: Guest Log: int13_harddisk_ext: function 41, unmapped device for ELDL=8e
00:00:10.645612 VMMDev: Guest Log: int13_harddisk: function 02, unmapped device for ELDL=8e
00:00:10.645949 VMMDev: Guest Log: int13_harddisk_ext: function 41, unmapped device for ELDL=8f
00:00:10.646291 VMMDev: Guest Log: int13_harddisk: function 02, unmapped device for ELDL=8f
00:00:10.981711 GIM: KVM: VCPU 0: Enabled system-time struct. at 0x000000004c401000 - u32TscScale=0xc587b80f i8TscShift=-1 uVersion=2 fFlags=0x1 uTsc=0x46ba43e2f uVirtNanoTS=0x1b496aa89 TscKHz=2592008
00:00:10.981754 TM: Host/VM is not suitable for using TSC mode 'RealTscOffset', request to change TSC mode ignored
00:00:11.616013 GIM: KVM: Enabled wall-clock struct. at 0x000000004c400000 - u32Sec=1615824502 u32Nano=683849407 uVersion=2
00:00:11.665390 PIT: mode=2 count=0x4a9 (1193) - 1000.15 Hz (ch=0)
#ff0000;">00:00:11.776216 MsrExit/0: 0010:ffffffffabe64d98/LM: WRMSR 00000033, 20000000:00000000 -> VERR_CPUM_RAISE_GP_0!

Oracle Linux 8.2 : Installation de redis.so pour PHP 7.2

243 x served & 129 x viewed

Voici l’erreur que j’avais :

# php -v
PHP Warning:  PHP Startup: Unable to load dynamic library 'redis.so' (tried: /usr/lib64/php/modules/redis.so (/usr/lib64/php/modules/redis.so: #ff0000;">undefined symbol: zval_used_for_init), /usr/lib64/php/modules/redis.so.so (/usr/lib64/php/modules/redis.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
PHP 7.2.24 (cli) (built: Oct 22 2019 08:28:36) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies

La procédure d’installation :

# yum install glibc glibc-devel gcc-c++
# yum install php-devel
# yum install make
# pecl install redis
# yum install curl-devel
# yum install php-json
# pecl install phalcon

Encore une erreur :

# php -v
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/redis.so' (tried: /usr/lib64/php/modules/redis.so (/usr/lib64/php/modules/redis.so: #ff0000;">undefined symbol: php_json_decode_ex), /usr/lib64/php/modules//usr/lib64/php/modules/redis.so.so (/usr/lib64/php/modules//usr/lib64/php/modules/redis.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0

Je déplace le module redis pour qu’il soit lancé en dernier :

# mv /etc/php.d/redis.ini /etc/php.d/40-redis.ini
# systemctl restart php-fpm.service

Et au final ;

# php -v
PHP 7.2.24 (cli) (built: Oct 22 2019 08:28:36) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies

Maintenant cela fonctionne correctement, la version de Oracle Linux :

# cat /etc/redhat-release 
Red Hat Enterprise Linux release 8.2 (Ootpa)