Upgrading from 3.1.2 to 3.3 error 500

Hi everyone: I’ve tried to upgrade from version 3.1.2 to the last version 3.3., via web. I follow these steps:

Create a folder “OJS_new”

Decompress the OJS 3.3 in that folder

Moved public/ directory and config.inc.php in the folder OJS_new

Change to ‘"installed = Off’ in the config.inc.php in the folder OJS_new

Access by the URL to folder OJS_new

Get to the screen:

Instalationfailure

But when i press the “Actualizar …” button get to error 500

What is wrong in this procedure.

Thank you

Joaquín

What is your php version?

It must be 7.3+

Thank you Kerimsarigul. The PHP version is appropiated (7.4).

I have tried another way, but it didn’t work at all.

  1. I compress the old OJS folder (as backup)
  2. I replace the folder ‘public’ and the ‘config.ini’ of the previous OJS
  3. Changed in config.ini: ‘installed: off’
  4. Get the installation page, but when I press the butto ‘error 500’

in your config file
driver = mysqli or mysql?

If it’s not mysqli, make mysqli and try?

Hi Kerimsarigul, thank you for your time.

In config.ini.php “dirver=mysqli”. Any other idea?

Your update steps should be:
First step: Update from 3.1.1.2 to 3.2.1-4.
Second step: Update from 3.2.1-4 to 3.3.0.8.

Note: Never forget to backup the current site!

Thank you kermsarigul. Upgrade from 3.1.1.2 to 3.2.1-4, worked perfecto. But from 3.2.1-4 to 3.3.0.8 didn´t work at all. I’ve tried from 3.2.1-4 to 3.3.0 but didn’t work either.

Cheked php version and mysqli.

Any other recomendation?

There can be many reasons for failure.
What errors do you encounter when it fails?
Can you share the PHP Error log?

Hi Kerimsarigul (incluyo a @marc -perdón por no haberte arrobado aquí-). These are the error log.

[Wed Nov 17 20:05:37.900380 2021] [proxy_fcgi:error] [pid 21842:tid 140331188160256] [client 190.195.32.87:43242] AH01070: Error parsing script headers, referer: Prueba | Desarrollo Económico. Revista de Ciencias Sociales
[Wed Nov 17 20:05:37.900692 2021] [proxy_fcgi:error] [pid 21842:tid 140331188160256] [client 190.195.32.87:43242] AH01068: Got bogus version 32, referer: Prueba | Desarrollo Económico. Revista de Ciencias Sociales
[Wed Nov 17 20:05:37.900763 2021] [proxy_fcgi:error] [pid 21842:tid 140331188160256] (22)Invalid argument: [client 190.195.32.87:43242] AH01075: Error dispatching request to :, referer: Prueba | Desarrollo Económico. Revista de Ciencias Sociales
[Wed Nov 17 20:23:40.709003 2021] [proxy_fcgi:error] [pid 21993:tid 140331335018240] [client 82.76.234.73:51370] AH01071: Got error ‘PHP message: ojs2: 404 Not Found’, referer: Desarrollo Económico. Revista de Ciencias Sociales
[Wed Nov 17 22:56:47.775933 2021] [proxy_fcgi:error] [pid 21993:tid 140331293058816] [client 82.76.234.73:49186] AH01071: Got error ‘PHP message: ojs2: 404 Not Found’, referer: Desarrollo Económico. Revista de Ciencias Sociales

Hi @Jvil, nothing to sorry.

This is wired, but looks like a server misconfiguration than a real OJS problem.

All errors are related with the fastcgi proxy.
Do you mind to explain us better the infrastructure under your OJS?

  1. Do you mind to confirm that you using apache as a reverse proxy?
  2. What is the general schema? ie: Firewall > apache-proxy > apache > OJS?
  3. What did you change from ojs 3.2 to 3.3?
  4. When the error appears?
  5. What are your apache rules in the proxy?
  6. And in your vhost/.htaccess?

Questions 5 and 6 are a lot of info, so let’s focus in the general scope first to identify where the issue is happening before going deeper.

Cheers,
m.

Hi, well the information I obtained is Nginx is functioning as Apache Proxy.

The shcema is: Nginx proxy > Apache > OJS

Regards
J.-

Wired… proxy_fcgi is an apache-proxy.
If you also have a nginx, does it means you have two reverse proxies before arriving to your OJS?

Setting OJS behind a single reverse proxy is tricky. You can get trouble with certificates, with the urls, headers… behind two of them sounds like a madness.

To know what happens, we need logs from nginx.
Right now, your apache-proxy log shows an error when it tries to parse the headers:

[proxy_fcgi:error] [pid 21842:tid 140331188160256] [client 190.195.32.87:43242] AH01070: Error parsing script headers, referer: [Prueba | Desarrollo Económico. Revista de Ciencias Sociales ](https://ojs.ides.org.ar/index.php/desarrollo-economico/pruebadepagina)
[proxy_fcgi:error] [pid 21842:tid 140331188160256] [client 190.195.32.87:43242] AH01068: Got bogus version 32, referer: [Prueba | Desarrollo Económico. Revista de Ciencias Sociales ](https://ojs.ides.org.ar/index.php/desarrollo-economico/pruebadepagina)
[proxy_fcgi:error] [pid 21842:tid 140331188160256] (22)Invalid argument: [client 190.195.32.87:43242] AH01075: Error dispatching request to :, referer: [Prueba | Desarrollo Económico. Revista de Ciencias Sociales ](https://ojs.ides.org.ar/index.php/desarrollo-economico/pruebadepagina)

And finally it drives to a 404 page… but all this is not related with OJS.

It would probably happen with any page created in same path (idea: create a test.php page with a simple <?php echo "hello world"; ?> and try to visit it… so you can tell your SysOps the problem is not OJS releated).

I searched three errors but I didn’t find a clear answer to your problem.
I’m sorry but I don’t know much about nginx.

Anyway, all points this is something you need to talk with your system administrator or your hosting company.