You are not logged in.

Announcement

 Téléchargez la dernière version stable de GLPI      -     Et vous, que pouvez vous faire pour le projet GLPI ? :  Contribuer
 Download last stable version of GLPI                      -     What can you do for GLPI ? :  Contribute

#1 2024-05-15 12:56:39

alientm
Member
Registered: 2014-07-07
Posts: 53

Problem downloading old attachments after updating to GLPI 10.0.15

I updated GLPI to version 10.0.15. I made a backup according to the update procedure and restored the files in the config, files, marketplace and plugins directories.

When I try to access attachments from the latest version of GLPI, I get the message "File Not Found: here is the file name
Return to previous page".

Newly added ticket - attachment works correctly.

Any suggestion how to fix this?


GLPI 9.4.4 + FusionInventory 9.4+1.1 on Ubuntu 18.04

Offline

#2 2024-05-15 13:09:56

mmoral
Member
Registered: 2023-12-28
Posts: 50

Re: Problem downloading old attachments after updating to GLPI 10.0.15

Hello,

You checked the permissions of old attachments files?
If possible in the moment of backup/restore the folder and files the permissions is not set correctly.

Regards

Offline

#3 2024-05-15 13:45:23

LaDenrée
HELPER
Registered: 2012-11-19
Posts: 6,287

Re: Problem downloading old attachments after updating to GLPI 10.0.15

by default files are in /var/www/glpi/files . 
as a good practice they should be in /var/lib/ (https://glpi-install.readthedocs.io/en/ … -locations)

did you also move  glpi_old/files/*  to your new instance ?


Trouver la panne avant de réparer...
GLPI10.0.16 (ubuntu 22.04 PHP8.1  Mariadb10.6 ) plugins : comportements 2.7.3 reports 1.16.0 formcreator 2.13.9, datainjection 2.13.5 fields 1.21.9

Offline

#4 2024-05-20 12:24:14

alientm
Member
Registered: 2014-07-07
Posts: 53

Re: Problem downloading old attachments after updating to GLPI 10.0.15

ls -l /var/www/glpi/
razem 344
drwxrwxrwx  2 www-data www-data  4096 kwi 24 09:39 ajax
-rwxrwxrwx  1 www-data www-data 61850 kwi 24 09:39 apirest.md
-rwxrwxrwx  1 www-data www-data  1594 kwi 24 09:39 apirest.php
-rwxrwxrwx  1 www-data www-data  1561 kwi 24 09:39 apixmlrpc.php
drwxrwxrwx  2 www-data www-data  4096 kwi 24 09:39 bin
-rwxrwxrwx  1 www-data www-data  1460 kwi 24 09:39 caldav.php
-rwxrwxrwx  1 www-data www-data 44954 kwi 24 09:39 CHANGELOG.md
drwxrwxrwx  2 www-data www-data  4096 maj 14 14:47 config
-rwxrwxrwx  1 www-data www-data  2060 kwi 24 09:39 CONTRIBUTING.md
drwxrwxrwx  7 www-data www-data  4096 kwi 24 09:39 css
drwxrwxrwx  2 www-data www-data  4096 kwi 24 09:41 css_compiled
drwxrwxrwx 37 www-data www-data  4096 maj 15 12:51 files
drwxrwxrwx  4 www-data www-data 32768 kwi 24 09:39 front
drwxrwxrwx  2 www-data www-data  4096 kwi 24 09:39 inc
-rwxrwxrwx  1 www-data www-data  6368 kwi 24 09:39 index.php
drwxrwxrwx  4 www-data www-data  4096 maj 14 15:03 install
-rwxrwxrwx  1 www-data www-data   682 kwi 24 09:39 INSTALL.md
drwxrwxrwx  5 www-data www-data  4096 kwi 24 09:39 js
drwxrwxrwx  4 www-data www-data  4096 kwi 24 09:39 lib
-rwxrwxrwx  1 www-data www-data 35148 kwi 24 09:39 LICENSE
drwxrwxrwx  2 www-data www-data  4096 kwi 24 09:41 locales
drwxrwxrwx  4 www-data www-data  4096 maj 15 12:51 marketplace
drwxrwxrwx 10 www-data www-data  4096 kwi 24 09:39 pics
drwxrwxrwx  3 www-data www-data  4096 wrz 12  2023 plugins
drwxrwxrwx  3 www-data www-data  4096 kwi 24 09:39 public
-rwxrwxrwx  1 www-data www-data  8705 kwi 24 09:39 README.md
drwxrwxrwx  3 www-data www-data  4096 kwi 24 09:39 resources
-rwxrwxrwx  1 www-data www-data  1070 kwi 24 09:39 SECURITY.md
drwxrwxrwx  2 www-data www-data  4096 kwi 24 09:39 sound
drwxrwxrwx 25 www-data www-data 32768 kwi 24 09:39 src
-rwxrwxrwx  1 www-data www-data  2476 kwi 24 09:39 status.php
-rwxrwxrwx  1 www-data www-data   481 kwi 24 09:39 SUPPORT.md
drwxrwxrwx  8 www-data www-data  4096 kwi 24 09:39 templates
drwxrwxrwx 38 www-data www-data  4096 kwi 24 09:41 vendor
drwxrwxrwx  2 www-data www-data  4096 kwi 24 09:39 version

files from glpi old/files/* were moved after updating to /var/www/glpi/files


GLPI 9.4.4 + FusionInventory 9.4+1.1 on Ubuntu 18.04

Offline

#5 2024-05-22 12:59:42

mmoral
Member
Registered: 2023-12-28
Posts: 50

Re: Problem downloading old attachments after updating to GLPI 10.0.15

LaDenrée wrote:

by default files are in /var/www/glpi/files . 
as a good practice they should be in /var/lib/

did you also move  glpi_old/files/*  to your new instance ?

If possible modify a running glpi to use the good practice directory?

Regards

Offline

#6 2024-05-23 13:45:27

alientm
Member
Registered: 2014-07-07
Posts: 53

Re: Problem downloading old attachments after updating to GLPI 10.0.15

The problem was solved, I restored the GLPI directory from the backup and reinstalled the version 10.0.15


GLPI 9.4.4 + FusionInventory 9.4+1.1 on Ubuntu 18.04

Offline

#7 2024-07-08 09:47:18

carmona
Member
Registered: 2022-05-11
Posts: 7

Re: Problem downloading old attachments after updating to GLPI 10.0.15

I want to update from 10.0.9 to 10.0.15 the last time I updated it didn't stop me from folder permissions I had to install it from scratch after copying the files I don't know if there is another way how you did the backup by copying the folders and then putting them in your place.

Thank you so much.

Offline

Board footer

Powered by FluxBB