Project

General

Profile

Tâche #31562

Scénario #31587: Traitement express MEN (05-07)

Hâpy 2.8: erreur d’accès à /usr/lib/one/sunstone/public/dist/main.js

Added by Daniel Dehennin over 2 years ago. Updated about 2 years ago.

Status:
Fermé
Priority:
Normal
Assigned To:
Start date:
01/20/2021
Due date:
% Done:

100%

Remaining (hours):
0.0

Description

Sur un Hâpy 2.8.0, il y a un message d’erreur dans les journaux nginx :

==> /var/log/nginx/opennebula-sunstone-error.log <==
2021/01/20 11:12:41 [crit] 5594#5594: *35 stat() "/usr/lib/one/sunstone/public/dist/main.js" failed (13: Permission denied), client: 192.168.230.30, server: hapy.ac-test.fr, request: "GET /dist/main.js?v=5.12.0.3 HTTP/1.1", host: "hapy.ac-test.fr", referrer: "https://hapy.ac-test.fr/" 
  • Ce fichier est un lien symbolique vers /var/lib/one/sunstone/main.js
    root@hapy:~# ls -l /usr/lib/one/sunstone/public/dist/main.js
    lrwxrwxrwx 1 root root 29 oct.  14 09:51 /usr/lib/one/sunstone/public/dist/main.js -> /var/lib/one/sunstone/main.js
    
  • Les droits sur le répertoire /var/lib/one
    root@hapy:~# ls -ld /var/lib/one/
    drwxr-x--- 13 oneadmin oneadmin 4096 janv. 20 11:13 /var/lib/one/
    
  • Les droits sur le répertoire /var/lib/one/sunstone
    root@hapy:~# ls -ld /var/lib/one/sunstone
    drwxr-x--- 2 oneadmin oneadmin 4096 déc.  17 18:13 /var/lib/one/sunstone
    
  • Les droits sur le fichier /var/lib/one/sunstone/main.js
    root@hapy:~# ls -l /var/lib/one/sunstone/main.js 
    -rw-r--r-- 1 oneadmin oneadmin 7573672 janv. 20 11:01 /var/lib/one/sunstone/main.js
    

Il faut ajouter le droit de traverser les répertoires :

root@hapy:~# chmod +x /var/lib/one/
root@hapy:~# chmod +x /var/lib/one/sunstone/

Associated revisions

Revision 412486e2 (diff)
Added by Joël Cuissinat over 2 years ago

Fix Sunstone access rights

Ref: #31562

History

#1 Updated by Joël Cuissinat over 2 years ago

  • Status changed from Nouveau to En cours
  • Assigned To set to Joël Cuissinat
  • Parent task changed from #31492 to #31587

Daniel a écrit :

il y a un sûrement un posttemplate à modifier

#2 Updated by Joël Cuissinat over 2 years ago

Pour reproduire :

root@hapy:~# tail -f /var/log/nginx/opennebula-sunstone-error.log

Une ligne d'erreur s'ajoute à chaque fois que l'on authentifie sur https://hapy.ac-test.fr/login

Il n'y a pas d'erreur équivalente en 2.7.2.

#3 Updated by Joël Cuissinat over 2 years ago

  • Status changed from En cours to Résolu
  • % Done changed from 0 to 100

#4 Updated by Joël Cuissinat about 2 years ago

  • Status changed from Résolu to Fermé
  • Remaining (hours) set to 0.0

Also available in: Atom PDF