Error upgrading from 2.4.8.0 to 3.2.0.3

Running the upgrade script I get warnings that no files are found.
The printout shows a double slash in the warning line: …/journals/1//articles/49/
However searching the directory manually without that double slash the file exists.

Printout:
php tools/upgrade.php upgrade
[pre-install]
[load: upgrade.xml]
[version: 3.2.0.3]

[code: Installer Installer::checkPhpVersion]

[code: Installer Installer::syncSeriesAssocType]
[data: dbscripts/xml/upgrade/2.4.0_preupdate_usageStatistics.xml (skipped)]
[data: dbscripts/xml/upgrade/2.4.0_preupdate_usageStatistics2.xml (skipped)]

[code: Installer Installer::removeReviewEntries]
WARNING: Unable to find a match for “49-110-1-RV.docx” in “”/var/www/editora.sepq/files/journals/1//articles/49/". Skipping this file.
WARNING: Unable to find a match for “81-207-1-RV.doc” in “”/var/www/editora.sepq/files/journals/1//articles/81/". Skipping this file.
WARNING: Unable to find a match for “106-300-1-RV.docx” in “”/var/www/editora.sepq/files/journals/1//articles/106/". Skipping this file.
etc…

Searching with double slash no file is found:
cd /var/www/editora.sepq/files/journals/1//articles/49/
-bash: cd: /var/www/editora.sepq/files/journals/1//articles/49/: File or directory not found

Searching without double slash the file is found:
cd /var/www/editora.sepq/files/journals/1/articles/49/submission/review#
-rw-r–r-- 1 www-data www-data 212305 dez 1 2016 49-110-1-RV.docx

Ant idea how to fix this issue?

Hi @lobo,

Interesting – the double slash has been around for a while but I haven’t fixed it because it’s always worked without issue (i.e. the double slash has been ignored). Looks like that might not be the case on your system.

I’ve filed an issue including a patch that will remove the double slash. Could you verify whether or not this resolves the problem during upgrade?

Regards,
Alec Smecher
Public Knowledge Project Team

Thank you for your response.

Our system:
uname -a
Linux NS1b 4.19.0-8-amd64 #1 SMP Debian 4.19.98-1 (2020-01-26) x86_64 GNU/Linux

php -v
PHP 7.3.14-1~deb10u1 (cli) (built: Feb 16 2020 15:07:23) ( NTS )

New Database upload.
Patch applied.

Same error:

php tools/upgrade.php upgrade
[pre-install]
[load: upgrade.xml]
[version: 3.2.0.3]

[code: Installer Installer::checkPhpVersion]

[code: Installer Installer::syncSeriesAssocType]
[data: dbscripts/xml/upgrade/2.4.0_preupdate_usageStatistics.xml (skipped)]
[data: dbscripts/xml/upgrade/2.4.0_preupdate_usageStatistics2.xml (skipped)]

[code: Installer Installer::removeReviewEntries]
WARNING: Unable to find a match for “49-110-1-RV.docx” in “”/var/www/editora.sepq/files/journals/1//articles/49/". Skipping this file.
WARNING: Unable to find a match for “81-207-1-RV.doc” in “”/var/www/editora.sepq/files/journals/1//articles/81/". Skipping this file.
WARNING: Unable to find a match for “106-300-1-RV.docx” in “”/var/www/editora.sepq/files/journals/1//articles/106/". Skipping this file.
WARNING: Unable to find a match for “107-307-1-RV.docx” in “”/var/www/editora.sepq/files/journals/1//articles/107/". Skipping this file.
etc …

Hi @lobo,

Note the weird double quote at the start of the pathname:

WARNING: Unable to find a match for “49-110-1-RV.docx” in “”/var/www/editora.sepq/files/journals/1//articles/49/". Skipping this file.

Is that an accident of the forum post, or does it actually appear that way?

Regards,
Alec Smecher
Public Knowledge Project Team

The double quote ist there on my screen:
WARNING: Unable to find a match for “143-414-1-RV.doc” in “”/var/www/editora.sepq/files/journals/1//articles/143/". Skipping this file.

Hi @lobo,

Hmm, I’ll bet that’s the problem rather than the double slash. What is the files_dir in your config.inc.php? (Please post that line of the config file using the </> code quoting tool at the top of the compose window, so I can be sure to see exactly what the line looks like.)

Regards,
Alec Smecher
Public Knowledge Project Team

I found the problem. It was the missing double quote at the end of files_dir string.
Running the script I got: Successfully upgraded to version 3.2.0.3
Thank you very much for your help.

1 Like