Error 500

61 views
Skip to first unread message

Luis Fernando López Falagán

unread,
Apr 25, 2023, 4:46:28 AM4/25/23
to AtoM Users
Hola...

Después de actualizar y revisar varias conversaciones anteriores sobre este error no he sido capaz de solucionarlo. Adjunto alguna información de lo que he visto y pido ayuda para solucionarlo. Muchas Gracias.

Mensajes de error:
2023/04/25 07:56:21 [error] 1390#1390: *93 FastCGI sent in stderr: "PHP message: You must have APCu installed and enabled to use sfAPCCache class" while reading response header from upstream, client: 192.168.1.27, server: _, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/run/php7.2-fpm.atom.sock:", host: "192.168.1.98:8888"

PHP Fatal error:  Uncaught sfInitializationException: arElasticSearchPlugin needs cURL PHP extension in /usr/share/nginx/atom/plugins/arElasticSearchPlugin/config/arElasticSearchPluginConfiguration.class.php:36

Dan Gillean

unread,
Apr 25, 2023, 8:29:24 AM4/25/23
to ica-ato...@googlegroups.com
Hola Luis, 

A bit more context about your environment and what led to this error message would be helpful. For example: 
  • What version are you upgrading from? What version are you trying to install now?
  • After your upgrade attempt, what is the full version number listed in Admin > Settings?
  • Did you follow all the recommended instructions for installing your new version? If no, what changes have you made?
  • Did you remember in the upgrade process to drop and recreate the database before loading your backup (as in step 4 of this section of the docs), run the upgrade task (as per this section), and then run the recommended maintenance tasks after (clear cache, reindex, restart PHP-FPM, etc)?
  • Does your installation include any local customization, such as custom development or a custom theme?
Regarding the PHP fatal error, you could try installing cURL and see if this resolves it: 
  • sudo apt update
  • sudo apt install curl
However, what we really want is the cURL PHP extension. This will depend on what version of AtoM you are installing,... and this may be where the problem lies. 

I can see from the first error message that you are using PHP-FPM version 7.2... which is fine if you are installing AtoM 2.6. However, if you are trying to install AtoM 2.7, then this may be the source of your issues - in which case, you will need to upgrade your PHP version to 7.4. 

Keep in mind that: 
  • AtoM 2.6 uses Ubuntu 18.04, where the default PHP version included is 7.2, and
  • AtoM 2.7 recommends Ubuntu 20.04, where the default PHP version included is 7.4. 
If you have tried to upgrade AtoM without upgrading your Ubuntu version, then this might be the cause of the problem. Installing AtoM 2.7 into a fresh Ubuntu 20.04 VM, and then carefully following all upgrade instructions, will likely resolve all issues. 

However, if that is not the case, we can still try fixing the dependency issues individually.

For the cURL PHP extension, try one of the following, depending on your target AtoM version: 
  • For AtoM 2.6 with PHP 7.2, try: sudo apt-get install php7.2-curl
  • For AtoM 2.7 with PHP 7.4: first, upgrade your PHP version to 7.4. Then, try: sudo apt-get install php7.4-curl
Note that there are a number of other PHP extensions that we install - including php-apcu, which is mentioned in the other error message. Once you sort out the PHP version and have the right one installed, you may want to retry installing all the required PHP extensions, mentioned here: 
Again, hopefully with more information we can provide better suggestions for you. Good luck! 

Dan Gillean, MAS, MLIS
AtoM Program Manager
Artefactual Systems, Inc.
604-527-2056
@accesstomemory
he / him


--
You received this message because you are subscribed to the Google Groups "AtoM Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ica-atom-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ica-atom-users/8b612738-4ea7-4c63-bfd7-e727ea24f9a8n%40googlegroups.com.

Luis Fernando López Falagán

unread,
Apr 26, 2023, 3:51:26 AM4/26/23
to ica-ato...@googlegroups.com
Hola.

Intento clarificar algo más sobre el error:
  • No se trata de una actualización de AtoM sino del propio sistema (apt-get update; apt-get upgrade). A partir de ahí es cuando empezó este error
  • La versión instalada es la 2.6 en un servidor con Ubuntu server 20.04
Estoy probando alguna de las soluciones indicadas, pero creo que falla algo anterior o del acceso a los paquetes de actualización: me aparece este mensaje cuando introduzco el comando apt-get install php7.4-curl

Err:1 http://ppa.launchpad.net/ondrej/php/ubuntu focal/main amd64 php7.4-curl amd64 1:7.4.33-5+ubuntu20.04.1+deb.sury.org+1
  Temporary failure resolving 'ppa.launchpad.net'
E: Failed to fetch http://ppa.launchpad.net/ondrej/php/ubuntu/pool/main/p/php7.4/php7.4-curl_7.4.33-5+ubuntu20.04.1+deb.sury.org+1_amd64.deb  Temporary failure resolving 'ppa.launchpad.net'
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?


Gracias.

El 25 abr 2023, 14:29 +0200, Dan Gillean <d...@artefactual.com>, escribió:
Hola Luis, 

A bit more context about your environment and what led to this error message would be helpful. For example: 
 • What version are you upgrading from? What version are you trying to install now?
 • After your upgrade attempt, what is the full version number listed in Admin > Settings?
 • Did you follow all the recommended instructions for installing your new version? If no, what changes have you made?
 • Did you remember in the upgrade process to drop and recreate the database before loading your backup (as in step 4 of this section of the docs), run the upgrade task (as per this section), and then run the recommended maintenance tasks after (clear cache, reindex, restart PHP-FPM, etc)?
 • Does your installation include any local customization, such as custom development or a custom theme?
Regarding the PHP fatal error, you could try installing cURL and see if this resolves it: 
 • sudo apt update • sudo apt install curlHowever, what we really want is the cURL PHP extension. This will depend on what version of AtoM you are installing,... and this may be where the problem lies. 


I can see from the first error message that you are using PHP-FPM version 7.2... which is fine if you are installing AtoM 2.6. However, if you are trying to install AtoM 2.7, then this may be the source of your issues - in which case, you will need to upgrade your PHP version to 7.4. 

Keep in mind that: 
 • AtoM 2.6 uses Ubuntu 18.04, where the default PHP version included is 7.2, and
 • AtoM 2.7 recommends Ubuntu 20.04, where the default PHP version included is 7.4. 
If you have tried to upgrade AtoM without upgrading your Ubuntu version, then this might be the cause of the problem. Installing AtoM 2.7 into a fresh Ubuntu 20.04 VM, and then carefully following all upgrade instructions, will likely resolve all issues. 

However, if that is not the case, we can still try fixing the dependency issues individually.

For the cURL PHP extension, try one of the following, depending on your target AtoM version: 
 • For AtoM 2.6 with PHP 7.2, try: sudo apt-get install php7.2-curl • For AtoM 2.7 with PHP 7.4: first, upgrade your PHP version to 7.4. Then, try: sudo apt-get install php7.4-curlNote that there are a number of other PHP extensions that we install - including php-apcu, which is mentioned in the other error message. Once you sort out the PHP version and have the right one installed, you may want to retry installing all the required PHP extensions, mentioned here: 
 • https://www.accesstomemory.org/docs/2.7/admin-manual/installation/ubuntu/#phpAgain, hopefully with more information we can provide better suggestions for you. Good luck! 

Dan Gillean, MAS, MLISAtoM Program ManagerArtefactual Systems, Inc.604-527-2056@accesstomemoryhe / him


On Tue, Apr 25, 2023 at 4:46 AM Luis Fernando López Falagán <lu...@salesianos.es> wrote:
Hola...

Después de actualizar y revisar varias conversaciones anteriores sobre este error no he sido capaz de solucionarlo. Adjunto alguna información de lo que he visto y pido ayuda para solucionarlo. Muchas Gracias.

Mensajes de error:
2023/04/25 07:56:21 [error] 1390#1390: *93 FastCGI sent in stderr: "PHP message: You must have APCu installed and enabled to use sfAPCCache class" while reading response header from upstream, client: 192.168.1.27, server: _, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/run/php7.2-fpm.atom.sock:", host: "192.168.1.98:8888"

PHP Fatal error:  Uncaught sfInitializationException: arElasticSearchPlugin needs cURL PHP extension in /usr/share/nginx/atom/plugins/arElasticSearchPlugin/config/arElasticSearchPluginConfiguration.class.php:36
 --
You received this message because you are subscribed to the Google Groups "AtoM Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ica-atom-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ica-atom-users/8b612738-4ea7-4c63-bfd7-e727ea24f9a8n%40googlegroups.com.
 --
You received this message because you are subscribed to the Google Groups "AtoM Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ica-atom-user...@googlegroups.com.

Dan Gillean

unread,
Apr 26, 2023, 9:37:38 AM4/26/23
to ica-ato...@googlegroups.com
Hi again Luis, 

Okay, this has gotten a bit confused, but I think your problems stem from trying to use different versions of Ubuntu and PHP than what are recommended, and what each distribution supports by default. 

  • For AtoM 2.6, we strongly recommend Ubuntu 18.04 with PHP 7.2. This is what we used in development and testing, and what our documentation supports. 
  • Ubuntu 18.04 includes PHP 7.2 by default
  • On the other hand, Ubuntu 20.04 includes PHP 7.4 by default
  • There are some known issues trying to use PHP 7.4 in AtoM 2.6
  • We have not tested Ubuntu 20.04 with AtoM 2.6, so there may be other issues as well
Now, since AtoM 2.6 does not support PHP 7.4 and Ubuntu 20.04 does not include it by default, you will first need to manually install PHP 7.2 from a third party repository  in Ubuntu 20.04, and set it as the default version to use. This example answer looks correct, though I have not tested it: 
And of course, instead of restarting Apache, restart Nginx: 
  • sudo systemctl restart nginx
Then you will probably need to re-run the command to install all of the necessary PHP 7.2 extensions, as found here: 

Hopefully this will help resolve the original issues, as both PHP 7.2 versions of the cur and apcu extensions should be installed after. 

Regards, 

Dan Gillean, MAS, MLIS
AtoM Program Manager
Artefactual Systems, Inc.
604-527-2056
@accesstomemory
he / him

Reply all
Reply to author
Forward
0 new messages