When I try to install errata security on RHEL servers, I have the error message in object.
So, I restart katello services. All services work good.
I execute the hammer command : hammer ping
And look the bad result :
candlepin:
Statut: ok
Server Response: Duration: 17ms
candlepin_auth:
Statut: ok
Server Response: Duration: 13ms
pulp:
Statut: FAIL
Server Response:
pulp_auth:
Statut: FAIL
foreman_tasks:
Statut: ok
Server Response: Duration: 2ms
Since, I search where is the pulp problem and donât find any message which can help me.
In /var/log/messages, I have a lot of messages but any error messages. I see one strange thing, I often have this message even I donât restart pulp:
Dec 4 15:00:43 katello-02 pulp: pulp.server.webservices.application:INFO: *************************************************************
Dec 4 15:00:43 katello-02 pulp: pulp.server.webservices.application:INFO: The Pulp server has been successfully initialized
Dec 4 15:00:43 katello-02 pulp: pulp.server.webservices.application:INFO: *************************************************************
I donât understand, Itâs like pulp restart indefinitely.
I have too this critical error :
Jan 24 11:34:29 katello-03 kernel: httpd[1201]: segfault at 10 ip 00007fb2e177309f sp 00007fb2c685fc30 error 4 in libpython2.7.so.1.0[7fb2e1710000+17e000]
I donât find a lot of things about it. I watch some defunct httpd process.
I have one more stranger thing :
[root@katello-03 ~]# pulp-admin server distributors
There was an internal server error while trying to access the Pulp application.
One possible cause is that the database needs to be migrated to the latest
version. If this is the case, run pulp-manage-db and restart the services. More
information may be found in Apacheâs log.
[root@katello-03 ~]# pulp-admin server distributors
^[[A±---------------------------------------------------------------------+
Supported Distributors
±---------------------------------------------------------------------+
When I execute : watch " pulp-admin server distributors", I can see some OK connections. When I look /var/log/messages, I have many messages (about 15 per minutes) :
Apr 10 09:58:09 katello-03 pulp: pulp.server.webservices.application:INFO: The Pulp server has been successfully initialized
My best wai is that U have a problem with a port. I think that 2 processes want access the same port at the same time but how to indentify which port and whoch process ?
I hope to have a reply, Iâm on this problem for 3 days, I desesperate, Iâm cryingâŠ
After a reboot, pulp was ok during some (milli)seconds :
[root@katello-03 ~]# hammer ping
database:
Status: ok
Server Response: Duration: 0ms
candlepin:
Status: ok
Server Response: Duration: 22ms
candlepin_auth:
Status: ok
Server Response: Duration: 24ms
pulp:
Status: ok
Server Response: Duration: 573ms
pulp_auth:
Status: FAIL
Server Response: Message: 500 Internal Server Error
foreman_tasks:
Status: FAIL
Server Response: Message: some executors are not responding, check /foreman_tasks/dynflow/status
[root@katello-03 ~]# hammer ping
database:
Status: ok
Server Response: Duration: 0ms
candlepin:
Status: ok
Server Response: Duration: 14ms
candlepin_auth:
Status: ok
Server Response: Duration: 14ms
pulp:
Status: FAIL
Server Response: Message: 500 Internal Server Error
pulp_auth:
Status: FAIL
Server Response: Message: Skipped pulp_auth check after failed pulp check
foreman_tasks:
Status: ok
Server Response: Duration: 3ms
thanks for you help but I tried it. I had 3 elements which didnât upgrade. Itâs was the same situation after.
I install a new katello server (itâs OK) but keep the old to test if needed.
ok, from here see section âCAPSULE SERVERâ, I was able to run the following to fix the db issue:
$ for i in pulp_celerybeat pulp_resource_manager pulp_workers httpd foreman-proxy; do service $i stop; done
$ sudo -u apache pulp-manage-db
$ for i in pulp_celerybeat pulp_resource_manager pulp_workers httpd foreman-proxy; do service $i start; done
can you verify your mongodb server health? I found out that even after the âfixâ I provided the issues were present where pulp would report all was ok but as soon as I did a package task (e.g. sync a repo) it would fail immediately.
I later found out that the issue was when I was trying to move my mongodb folder to another partition. my mv command was not right and had a typo.
sudo -u apache pulp-manage-db âfixedâ the error but not the underlying issue.
Iâm desesperate. I reproduce the same error on my last Katello Server but I know how to reproduce it.
I execute this command :
liste_errata=hammer erratum list --errata-restrict-installable true --organization "CD35" | grep "| security |" | grep RHSA | awk '{printf $3","}' | sed "s/.$//"
hammer host-collection erratum install --errata=$liste_errata --name RHEL_TEST --organization âCD35â
Since the firts execution of this script, Pulp server is down and even a restart doesnât worked it.
In /var/log/messages, logs continue to display each 30 seconds like in this video (at 13" and 43") : https://youtu.be/mXG91meks60