You are not logged in.
Pages: 1
Hello Im trying to attach a .png file to a knowledge base file however I get "File move failed." error.
Before I never had it. I can see that other knowledge base files has .png files as well. But now somehow it doesn't let. Even I'm trying with super-admin account.
I didn't update my GLPI or changed anything. Today I just tried to add .png however it gave file move failed error continously. File is 148 kb
I don't know if it is related with PHP Opcode cache. Because Mine seems almost full 128M and has yellow warning.
Im adding related images.
I see error in php-errors.log, logs is below:
[2023-10-14 20:26:31] glpiphplog.WARNING: *** PHP Warning (2): rename(/var/www/html/glpi/files/_tmp/607b0790ab7c98.00660390FEDRExclusion.png,/var/www/html/glpi/files/PNG/ef/54b96cf12cd5ac2fbdbbafeb34c0281c4e2c36.PNG): Permission denied in /var/www/html/glpi/src/Document.php at line 1139
Backtrace :
src/Document.php:1139 rename()
src/Document.php:1343 Document::renameForce()
src/Document.php:264 Document::moveDocument()
src/CommonDBTM.php:1281 Document->prepareInputForAdd()
front/document.form.php:58 CommonDBTM->add()
File move failed. Error:
PHP Opcode Cache:
Last edited by lones (2023-10-14 19:33:15)
As long as you don't stop, it doesn't matter how slow you go
Offline
No one answered my problem but I solved it after a day of struggle.
when I changed permissions of
sudo chmod 777 /var/www/html/glpi/files/PNG/ef
Problem was solved but if someone will face with this issue in future please check php-errors.log
sudo tail -n 10 /var/www/html/glpi/files/_log/php-errors.log
and in error log see which rename() fuctions 2nd argument has issue,
then you can change it to 777 with first command I gave
after adding the file in documents u can change it back to 755
For me it was under /PNG folder because it was PNG file
and under /ef folder. It might be diffirent for your situation.
As long as you don't stop, it doesn't matter how slow you go
Offline
Pages: 1