Vous avez trouvé un bug dans l'application (dernière version stable ou bêta): Décrivez le ici afin que la correction soit intégrée a la prochaine version.
0x2424
Gsup LEVEL 0
Messages : 7 Enregistré le : ven. 22 sept. 2023 11:06
jeu. 16 janv. 2025 16:53
Bonjour,
J'ai procédé à la mise à jour vers la 3.2.53.
A la suite de celle-ci, les utilisateurs n'ont plus accès à serveur GestSup : erreur 500.
J'ai réinstallé le patch en suivant la procédure manuelle, mais je rencontre l'erreur suivante :
Le serveur, lui, délivre toujours une erreur 500.
Pouvez-vous m'aider s'il vous plait ?
---
Edit : Rajout des logs apache2
Code : Tout sélectionner
[Thu Jan 16 17:18:18.829330 2025] [php:warn] [pid 2752:tid 2752] [client 192.168.1.137:61517] PHP Warning:
file_get_contents(connect.php): Failed to open stream: Permission denied in /var/www/html/core/init_get.php on line 170
[Thu Jan 16 17:18:18.829557 2025] [php:warn] [pid 2752:tid 2752] [client 192.168.1.137:61517] PHP Warning:
require_once(/var/www/html/connect.php): Failed to open stream: Permission denied in /var/www/html/plugin.php on line 14
[Thu Jan 16 17:18:18.829617 2025] [php:error] [pid 2752:tid 2752] [client 192.168.1.137:61517] PHP Fatal error:
Uncaught Error: Failed opening required 'connect.php' (include_path='.:/usr/share/php') in /var/www/html/plugin.php:14\nStack trace:\n#0 /var/www/html/core/init_get.php(170): include()\n#1 /var/www/html/index.php(17): require('...')\n#2 {main}\n thrown in /var/www/html/plugin.php on line 14
GestSup: 3.2.53 | Debian: 12.7 | Apache: 2.4.62 | MariaDB: 10.11.6 | PHP: 8.3.15
0x2424
Gsup LEVEL 0
Messages : 7 Enregistré le : ven. 22 sept. 2023 11:06
ven. 17 janv. 2025 08:44
Bonjour,
J'ai réappliqué les commandes disponibles dans la documentation pour la mise à jour, le site n'est toujours pas accessible.
Voici le résultat des droits :
Code : Tout sélectionner
root@GestSup:/var/www/html# ls -l
total 1420
drwxr-x--- 5 gestsup www-data 4096 12 juin 2024 admin
-rw-r----- 1 gestsup www-data 1332 31 août 2023 admin.php
drwxr-x--- 2 gestsup www-data 4096 12 juin 2024 ajax
drwxr-x--- 3 gestsup www-data 4096 12 juin 2024 api
-rw-r----- 1 gestsup www-data 57956 16 janv. 15:27 asset_list.php
-rw-r----- 1 gestsup www-data 18600 8 nov. 18:08 asset_network_scan.php
-rw-r----- 1 gestsup www-data 53862 8 nov. 18:10 asset.php
-rw-r----- 1 gestsup www-data 7333 8 nov. 18:09 asset_stat.php
-rw-r----- 1 gestsup www-data 11262 8 nov. 18:09 asset_stock.php
-rw-r----- 1 gestsup www-data 6837 8 nov. 18:09 attachment.php
-rw-r----- 1 gestsup www-data 4043 8 nov. 18:10 azure_ad_auth2.php
-rw-r----- 1 gestsup www-data 4041 8 nov. 18:10 azure_ad_auth.php
drwxrwx--- 2 gestsup www-data 4096 16 janv. 15:29 backup
-rw-r----- 1 gestsup www-data 12382 8 nov. 18:10 calendar.php
-rw-r----- 1 gestsup www-data 212507 16 janv. 15:27 changelog.php
drwxr-x--- 20 gestsup www-data 4096 5 sept. 2022 components
-rw-r----- 1 gestsup www-data 774 20 sept. 2023 composer.json
-rw-r----- 1 gestsup www-data 67675 20 sept. 2023 composer.lock
-rw-r----- 1 gestsup gestsup 884 8 nov. 18:10 connect.php
-rw-r----- 1 gestsup www-data 18501 28 juin 2023 contract.php
drwxr-x--- 2 gestsup www-data 4096 8 nov. 18:10 core
-rw-r----- 1 gestsup www-data 116485 16 janv. 15:27 dashboard.php
drwxr-x--- 2 gestsup www-data 4096 16 janv. 15:27 download
drwxr-x--- 2 gestsup www-data 4096 12 juin 2024 error
-rw-r----- 1 gestsup www-data 14666 8 nov. 18:10 forgot_pwd.php
drwxr-x--- 3 gestsup www-data 4096 30 janv. 2024 gestsup
drwxr-x--- 8 gestsup www-data 4096 16 janv. 16:25 Gestsup
-rw-r----- 1 gestsup www-data 11874 27 nov. 2023 get_oauth_token.php
drwxr-x--- 4 gestsup www-data 4096 12 juin 2024 images
drwxr-x--- 2 gestsup www-data 4096 12 juin 2024 includes
-rw-r----- 1 gestsup www-data 24443 16 janv. 15:27 index.php
drwxr-x--- 5 gestsup www-data 4096 6 sept. 2022 intranet
drwxr-x--- 2 gestsup www-data 4096 12 juin 2024 js
drwxr-x--- 6 gestsup www-data 4096 12 juin 2024 locale
-rw-r----- 1 gestsup www-data 1832 20 mai 2022 localization.php
-rw-r----- 1 gestsup www-data 29608 16 janv. 15:27 login.php
-rw-r----- 1 gestsup www-data 5346 8 nov. 18:09 mail2ticket.php
-rw-r----- 1 gestsup www-data 37934 16 janv. 15:27 main.php
-rw-r----- 1 gestsup www-data 58878 16 janv. 15:27 menu.php
-rw-r----- 1 gestsup gestsup 6552 8 nov. 18:10 mfa.php
-rw-r----- 1 gestsup www-data 4605 8 nov. 18:09 modify_pwd.php
-rw-r----- 1 gestsup www-data 7575 4 déc. 2023 monitor.php
-rw-r----- 1 gestsup www-data 6225 16 janv. 15:27 plugin.php
drwxr-x--- 3 gestsup www-data 4096 8 nov. 18:09 plugins
-rw-r----- 1 gestsup www-data 31265 8 déc. 2023 preview_mail.php
-rw-r----- 1 gestsup www-data 20126 8 nov. 18:09 procedure.php
-rw-r----- 1 gestsup www-data 15689 8 nov. 18:09 project.php
-rw-r----- 1 gestsup www-data 17720 8 nov. 18:10 register.php
-rw-r----- 1 gestsup www-data 2627 8 nov. 18:09 reminder.php
-rw-r----- 1 gestsup www-data 26 28 janv. 2016 robots.txt
-rw-r----- 1 root root 842 8 nov. 17:59 save.sh
-rw-r----- 1 gestsup www-data 282 8 nov. 18:09 SECURITY.md
-rw-r----- 1 gestsup www-data 16 13 juin 2023 server-status
drwxr-x--- 2 gestsup www-data 4096 12 juin 2024 sessions
drwxr-x--- 2 gestsup www-data 4096 12 juin 2024 sounds
drwxrwx--- 2 gestsup www-data 12288 16 janv. 15:27 _SQL
-rw-r----- 1 gestsup www-data 2886 20 févr. 2020 stat_bar_stacked.php
-rw-r----- 1 gestsup www-data 2384 22 juin 2020 stat_histo.php
-rw-r----- 1 gestsup www-data 3787 22 juin 2020 stat_line.php
-rw-r----- 1 gestsup www-data 9566 8 nov. 18:10 stat.php
-rw-r----- 1 gestsup www-data 2169 22 juin 2020 stat_pie.php
drwxr-x--- 2 gestsup www-data 4096 12 juin 2024 stats
-rw-r----- 1 gestsup www-data 21548 4 déc. 2023 survey.php
-rw-r----- 1 gestsup www-data 77033 8 nov. 18:10 system.php
drwxr-x--- 3 root root 4096 12 juin 2024 temp
drwxr-x--- 4 gestsup www-data 4096 12 juin 2024 template
-rw-r----- 1 gestsup www-data 21 26 juil. 2023 test.php
-rw-r----- 1 gestsup www-data 22115 8 nov. 18:09 thread.php
-rw-r----- 1 gestsup www-data 112163 16 janv. 15:27 ticket.php
-rw-r----- 1 gestsup www-data 15633 8 nov. 18:09 ticket_print.php
-rw-r----- 1 gestsup www-data 15064 8 nov. 18:09 ticket_stat.php
drwxr-x--- 2 gestsup gestsup 4096 8 nov. 17:51 tmp
drwxrwx--- 1029 gestsup www-data 20480 12 juin 2024 upload
-rw-r----- 1 gestsup www-data 19874 8 nov. 18:10 userbar.php
-rw-r----- 1 gestsup www-data 12757 8 nov. 18:09 user_validation.php
drwxr-x--- 34 gestsup www-data 4096 12 juin 2024 vendor
-rw-r----- 1 gestsup www-data 11710 16 janv. 15:27 wysiwyg.php
edit :
Le problème est résolu. Le fichier connect.php n'avait pas les bons droits. J'ai appliqué
chown gestsup:www-data connect.php et tout est rentré dans l'ordre.
Merci !
GestSup: 3.2.53 | Debian: 12.7 | Apache: 2.4.62 | MariaDB: 10.11.6 | PHP: 8.3.15
Riley
Gsup LEVEL 0
Messages : 1 Enregistré le : mar. 28 janv. 2025 15:07
mer. 29 janv. 2025 06:49
Pour éviter ce genre de galère à l’avenir, un bon monitoring des accès et des logs peut faire gagner un temps fou. Automatiser certaines vérifications avec des outils adaptés, voire une solution sur mesure, peut être un vrai plus pour fluidifier la gestion des incidents. Une bonne infrastructure, bien pensée dès le départ, permet d’éviter ce genre de blocage et d’assurer une dispo optimale.