Unable to move files when upgrade OJS. (folder and files permissions = 777)

Dear OJS Team and Community.

i have ojs version 3.0 and i upgraded to 3.1.2.

I have changed the driver to mysqli, and have given 777 permissions to all folders and files.

But when upgraded, i get http error 500.

then I check the error log and I get a lot of messages. I’ll show you some messages:

1
message: PHP Warning: rename(files/journals/6//articles/1//submission/1-1-1-1-2-20170222.pdf,files/journals/6//articles/1//submission/1-61-1-1-2-20170222.pdf): No such file or directory in /var/www/vhosts/domain/httpdocs/classes/install/Upgrade.inc.php on line 2499\nPHP message: Unable to move “files/journals/6//articles/1//submission/1-1-1-1-2-20170222.pdf” to “files/journals/6//articles/1//submission/1-61-1-1-2-20170222.pdf”.

after I check, I don’t have the file " 1-1-1-1-2-20170222.pdf "

2
PHP Warning: rename(files/journals/6//articles/16//submission/proof/16-1-62-5-10-20170815.pdf,files/journals/6//articles/16//submission/proof/16-61-62-5-10-20170815.pdf): No such file or directory in /var/www/vhosts/domain/httpdocs/classes/install/Upgrade.inc.php on line 2499\nPHP message: Unable to move “files/journals/6//articles/16//submission/proof/16-1-62-5-10-20170815.pdf” to “files/journals/6//articles/16//submission/proof/16-61-62-5-10-20170815.pdf”.

then i check my folder, and i find the file 16-61-62-5-10-20170815.pdf in files/journals/6//articles/16//submission/proof/

Please help me.

Regards,
Aprik

@Aprik Were you able to figure these out? Me too facing the same issues.

Kindly reply asap, it will be great help.