No Code Attached Yet
avatar jperrygodfrey
jperrygodfrey
17 Nov 2022

Steps to reproduce the issue

$ sudo dnf install httpd httpd-tools
$ sudo systemctl start httpd
$ sudo systemctl enable httpd
$ sudo dnf install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm
$ sudo dnf install -y https://rpms.remirepo.net/enterprise/remi-release-8.rpm
$ sudo dnf module list php
$ sudo dnf module reset php
$ sudo dnf module enable php:remi-8.1
$ sudo dnf install php php-opcache php-gd php-curl php-mysqlnd php-mbstring php-xml php-pear php-fpm php-mysql php-pdo php-json php-zip php-common php-cli php-xmlrpc php-xml php-tidy php-soap php-bcmath php-devel
$ sudo systemctl start php-fpm
$ sudo systemctl enable php-fpm
$ sudo setsebool -P httpd_execmem 1
$ sudo dnf install mysql-server
$ sudo systemctl start mysqld
$ sudo systemctl enable mysqld
$ mysql -u root -h localhost -p
mysql> CREATE USER 'usrjoomla'@'localhost' IDENTIFIED BY 'pAss1@7k(90432';
mysql> CREATE DATABASE joomla_db;
mysql> GRANT ALL PRIVILEGES ON joomla_db.* TO 'usrjoomla'@'localhost';
mysql> exit
$ wget https://downloads.joomla.org/us/cms/joomla4/4-2-5/Joomla_4-2-5-Stable-Full_Package.tar.gz
$ sudo mkdir -p /var/www/html/joomla
$ sudo tar -xvf Joomla_4-2-5-Stable-Full_Package.tar.gz -C /var/www/html/joomla
$ sudo chown -R apache:apache /var/www/html/joomla/
$ sudo chmod -R 755 /var/www/html/joomla/
$ sudo nano /etc/httpd/conf.d/joomla.conf
<VirtualHost *:80>
ServerAdmin admin@vmlocal.local
DocumentRoot /var/www/html/joomla/
ServerName vmlocal.local
ServerAlias vmlocal.local
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined

<Directory /var/www/html/joomla/>
        Options FollowSymLinks
        AllowOverride All
        Require all granted
</Directory>
$ sudo apachectl -t $ sudo semanage fcontext -a -t httpd_sys_rw_content_t "/var/www/html/joomla(/.*)?" $ sudo semanage fcontext -a -t httpd_sys_rw_content_t '/var/www/html/joomla/installation/configuration.php-dist' $ sudo semanage fcontext -a -t httpd_sys_rw_content_t '/var/www/html/joomla/installation' $ sudo restorecon -Rv /var/www/html/joomla $ sudo restorecon -v /var/www/html/joomla/installation/configuration.php-dist $ sudo restorecon -Rv /var/www/html/joomla/installation $ sudo chown -R apache:apache /var/www/html/joomla $ sudo systemctl restart httpd Open http://vmlocal.local Setup Joomla su1234 pAss1@7k(90432 Open Administrator

Expected result

XML updates show needed updates or no updates needed.

Actual result

Shows these errors:
Warning
Update: Could not open update site #1 "Joomla! Core", URL: https://update.joomla.org/core/list.xml
Update: Could not open update site #2 "Accredited Joomla! Translations", URL: https://update.joomla.org/language/translationlist_4.xml
Update: Could not open update site #3 "Joomla! Update Component", URL: https://update.joomla.org/core/extensions/com_joomlaupdate.xml

System information (as much as possible)

LSB Version: :core-4.1-amd64:core-4.1-noarch
Distributor ID: RedHatEnterprise
Description: Red Hat Enterprise Linux release 8.7 (Ootpa)
Release: 8.7
Codename: Ootpa
PHP: 8.1
MYSQL Ver 8.0.30 for Linux on x86_64
Server version: Apache/2.4.37 (Red Hat Enterprise Linux)

Additional comments

I have tested this implementation on Debian 11.5 with PHP 8.1 and mysql 8.0.31 and it does not have this error looking for the XML file.

avatar jperrygodfrey jperrygodfrey - open - 17 Nov 2022
avatar jperrygodfrey jperrygodfrey - change - 17 Nov 2022
Labels Removed: ?
avatar joomla-cms-bot joomla-cms-bot - change - 17 Nov 2022
Labels Added: No Code Attached Yet
avatar joomla-cms-bot joomla-cms-bot - labeled - 17 Nov 2022
avatar brianteeman
brianteeman - comment - 17 Nov 2022

This is a server configuration issue. Not a joomla issue

avatar jperrygodfrey
jperrygodfrey - comment - 17 Nov 2022

brianteeman you might think that, but if you review this post and comparisons, there is a pretty good case the Joomla is not performing the get/post the same way on these new Red Hats and Rocky spins. https://forum.joomla.org/viewtopic.php?f=811&t=997748


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/39231.

avatar zero-24
zero-24 - comment - 17 Nov 2022

What happens when you do a plain curl call to the update server XMLs?

avatar jperrygodfrey
jperrygodfrey - comment - 17 Nov 2022

curl https://update.joomla.org/core/extensions/com_joomlaupdate.xml

Joomla! Update Component Update Joomla Update Component com_joomlaupdate component administrator 3.6.1 https://www.joomla.org/ https://github.com/joomla/joomla-cms/releases/download/3.6.1/com_joomlaupdate-3.6.1.zip stable Joomla! Production Department https://www.joomla.org Joomla! Update Component Update Joomla Update Component com_joomlaupdate component administrator 4.0.2 https://www.joomla.org/announcements/release-news/5847-joomla-4-0-2-bug-fix.html https://downloads.joomla.org/cms/joomla4/4-0-2/com_joomlaupdate-4.0.2.zip https://github.com/joomla/joomla-cms/releases/download/4.0.2/com_joomlaupdate-4.0.2.zip https://update.joomla.org/releases/4.0.2/com_joomlaupdate-4.0.2.zip stable 7.2.5 5a16b2e000a0d8723e26fa340ee267bc78070fa85ff916f483f278f0684e3cdf e6c0dad8bfe27817ca3fffdbb2975db11d266bce0decbc7294fba9018235d556a5f536a00ff8f7a43f2d3ad69f9fa285 4e51154ed8580dbdeb6d7892ed68af652925415b25ab6b1b1e6a9affffd3abb09caa2f901db7f22570fbf114ca6463986504cbb687734f2a680c2edda68f9bfa Joomla! Production Department https://www.joomla.org
This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/39231.
avatar jperrygodfrey
jperrygodfrey - comment - 17 Nov 2022

SELinux on both Red Hat and Rocky are blocking updates. I set to Permissive via # setenforce 0 and now the updates are working. I am not sure where to allow this yet while keeping SELinux enforced, but I am working on it. The help page https://www.linuxshelltips.com/install-joomla-rhel/ did not have the SELinux settings for these updates.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/39231.

avatar jperrygodfrey
jperrygodfrey - comment - 18 Nov 2022

So false alarm no bug just a setting in SELinux:

~]# setsebool -P 'httpd_can_network_connect' on


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/39231.

avatar zero-24
zero-24 - comment - 18 Nov 2022

closing thanks

avatar zero-24 zero-24 - change - 18 Nov 2022
Status New Closed
Closed_Date 0000-00-00 00:00:00 2022-11-18 00:23:47
Closed_By zero-24
avatar zero-24 zero-24 - close - 18 Nov 2022
avatar brianteeman
brianteeman - comment - 18 Nov 2022

Exactly what I said.

Add a Comment

Login with GitHub to post a comment