Après un problème avec une lib PHP manquante (mbstring), j’ai:

Error: bootstrap/cache, storage, storage/framework/sessions, 
storage/framework/views, storage/framework/cache not writable! Run these 
commands as root on your LibreNMS server to fix:

chown -R librenms:librenms /opt/librenms/bootstrap/cache /opt/librenms/storage 
/opt/librenms/storage/framework/sessions /opt/librenms/storage/framework/views 
/opt/librenms/storage/framework/cache

setfacl -R -m g::rwx /opt/librenms/bootstrap/cache /opt/librenms/storage 
/opt/librenms/storage/framework/sessions /opt/librenms/storage/framework/views 
/opt/librenms/storage/framework/cache

setfacl -d -m g::rwx /opt/librenms/bootstrap/cache /opt/librenms/storage 
/opt/librenms/storage/framework/sessions /opt/librenms/storage/framework/views 
/opt/librenms/storage/framework/cache

If using SELinux you may also need:

semanage fcontext -a -t httpd_sys_content_t 
'/opt/librenms/bootstrap/cache(/.*)?'

semanage fcontext -a -t httpd_sys_rw_content_t 
'/opt/librenms/bootstrap/cache(/.*)?'

restorecon -RFvv /opt/librenms/bootstrap/cache

semanage fcontext -a -t httpd_sys_content_t '/opt/librenms/storage(/.*)?'

semanage fcontext -a -t httpd_sys_rw_content_t '/opt/librenms/storage(/.*)?'

restorecon -RFvv /opt/librenms/storage

semanage fcontext -a -t httpd_sys_content_t 
'/opt/librenms/storage/framework/sessions(/.*)?'

semanage fcontext -a -t httpd_sys_rw_content_t 
'/opt/librenms/storage/framework/sessions(/.*)?'

restorecon -RFvv /opt/librenms/storage/framework/sessions

semanage fcontext -a -t httpd_sys_content_t 
'/opt/librenms/storage/framework/views(/.*)?'

semanage fcontext -a -t httpd_sys_rw_content_t 
'/opt/librenms/storage/framework/views(/.*)?'

restorecon -RFvv /opt/librenms/storage/framework/views

semanage fcontext -a -t httpd_sys_content_t 
'/opt/librenms/storage/framework/cache(/.*)?'

semanage fcontext -a -t httpd_sys_rw_content_t 
'/opt/librenms/storage/framework/cache(/.*)?'

restorecon -RFvv /opt/librenms/storage/framework/cache


J’ai beau faire le chown (pas le reste, j’ai pas selinux installé), le message 
persiste.
apt-get upgrade fait
reboot fait
(debian 9.4)


On 11 mai 2018 10:43 +0200, Armel Chargé - frekences <[email protected]>, 
wrote:
> Salut,
>
> Quels soucis as tu rencontré ?
>
> J’ai plusieurs instances UP sans défauts particulier malgré le daily.sh qui a 
> tourné.
>
> Armel
>
>
> De: David Ponzone <[email protected]>
> Répondre: David Ponzone <[email protected]>
> Date: 11 mai 2018 at 10:36:40
> À: Frnog-tech <[email protected]>
> Sujet:  [FRnOG] [TECH] LilbreNMS HS
>
> > Je suis le seul à avoir LibreNMS HS ?
> > A priori y a pas mal de monde concerné…
> >
> >
> > ---------------------------
> > Liste de diffusion du FRnOG
> > http://www.frnog.org/

---------------------------
Liste de diffusion du FRnOG
http://www.frnog.org/

Répondre à