Plus d'acces à Jeedom le matin un jour sur deux depuis deux jours!

Bonjour @naboleo,

Merci de la réponse

J’ai fais CTRL + O, puis entrée mais ça sauvegarde pas !
Il me propose d’autre commandes (voir la fin du log).

login as: pi
pi@192.168.0.17's password:
Access denied
pi@192.168.0.17's password:
Linux jeedom 5.4.72-v7+ #1356 SMP Thu Oct 22 13:56:54 BST 2020 armv7l

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Tue Nov 24 09:40:26 2020 from 192.168.0.29
pi@jeedom:~ $ sudo nano /etc/sysctl.conf
pi@jeedom:~ $ sudo nano /etc/sysctl.conf
  GNU nano 3.2                    /etc/sysctl.conf

#
# /etc/sysctl.conf - Configuration file for setting system variables
# See /etc/sysctl.d/ for additional system variables.
# See sysctl.conf (5) for information.
#

#kernel.domainname = example.com

# Uncomment the following to stop low-level messages on console
#kernel.printk = 3 4 1 3

##############################################################3
# Functions previously found in netbase
#

# Uncomment the next two lines to enable Spoof protection (reverse-path filter)
# Turn on Source Address Verification in all interfaces to
# prevent some spoofing attacks
#net.ipv4.conf.default.rp_filter=1
#net.ipv4.conf.all.rp_filter=1

# Uncomment the next line to enable TCP/IP SYN cookies
# See http://lwn.net/Articles/277146/
# Note: This may impact IPv6 TCP sessions too
#net.ipv4.tcp_syncookies=1

# Uncomment the next line to enable packet forwarding for IPv4
#net.ipv4.ip_forward=1

# Uncomment the next line to enable packet forwarding for IPv6
#  Enabling this option disables Stateless Address Autoconfiguration
#  based on Router Advertisements for this host
#net.ipv6.conf.all.forwarding=1


###################################################################
File Name to Write: /etc/sysctl.conf
^G Get Help         M-D DOS Format      M-A Append          M-B Backup File
^C Cancel           M-M Mac Format      M-P Prepend         ^T To Files

Je commence à angoisser ! !

Tu as bien lancé la commande avec sudo au début, dans tous les cas ??
sudo nano xxxxx
et pas
nano xxxxx
Tu es pas connecté plusieurs fois ?
De toute façon, pas de sauvegarde => pas de risque de tout casser puiqu’on modifie rien

Tu me fais douté ! mais je pense avoir lancé avec sudo nano

Comment le voir !

Tu redémarres ton pi ou ton pc… là tu seras sur qu’il ne reste rien

Ok je redémarre mon RPI et mon PC (Grand luxe)
En tout cas merci pour ton aide

Pour nano c’est
Ctrl-o
enter
ctrl-x

@naboleo,

Bon j’ai redémarré le RPI et le PC
Je me suis connecté au RPI
la commande cat /proc/sys/vm/swappiness fonctionne et me répond 60 OK.
Donc je tape sudo nano /etc/sysctl.conf pour définir la valeur à 10 en ajoutant le bloc vm swappiness = 10 et la je ne peu pas ajouter le bloc, j’ai directement ce message :

login as: pi
pi@192.168.0.17's password:
Linux jeedom 5.4.72-v7+ #1356 SMP Thu Oct 22 13:56:54 BST 2020 armv7l

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Tue Nov 24 16:19:21 2020 from 192.168.0.29
pi@jeedom:~ $ cat /proc/sys/vm/swappiness
60
pi@jeedom:~ $ sudo nano /etc/sysctl.conf
  GNU nano 3.2                    /etc/sysctl.conf

#
# /etc/sysctl.conf - Configuration file for setting system variables
# See /etc/sysctl.d/ for additional system variables.
# See sysctl.conf (5) for information.
#

#kernel.domainname = example.com

# Uncomment the following to stop low-level messages on console
#kernel.printk = 3 4 1 3

##############################################################3
# Functions previously found in netbase
#

# Uncomment the next two lines to enable Spoof protection (reverse-path filter)
# Turn on Source Address Verification in all interfaces to
# prevent some spoofing attacks
#net.ipv4.conf.default.rp_filter=1
#net.ipv4.conf.all.rp_filter=1

# Uncomment the next line to enable TCP/IP SYN cookies
# See http://lwn.net/Articles/277146/
# Note: This may impact IPv6 TCP sessions too
#net.ipv4.tcp_syncookies=1

# Uncomment the next line to enable packet forwarding for IPv4
#net.ipv4.ip_forward=1

# Uncomment the next line to enable packet forwarding for IPv6
#  Enabling this option disables Stateless Address Autoconfiguration
#  based on Router Advertisements for this host
#net.ipv6.conf.all.forwarding=1


###################################################################
# Additional settings - these settings can improve the network
# security of the host and prevent against some network attacks
# including spoofing attacks and man in the middle attacks through
# redirection. Some network environments, however, require that these
# settings are disabled so review and enable them as needed.
#
# Do not accept ICMP redirects (prevent MITM attacks)
#net.ipv4.conf.all.accept_redirects = 0
#net.ipv6.conf.all.accept_redirects = 0
# _or_

^G Get Help  ^O Write Out ^W Where Is  ^K Cut Text  ^J Justify   ^C Cur Pos
^X Exit      ^R Read File ^\ Replace   ^U Uncut Text^T To Spell  ^_ Go To Line

Que faut il faire pour sortir de ce Pb

Comme ça, ça à l’air correct, mais il y a forcement un truc que tu ne nous montres pas…

Essaye autrement :

sudo sysctl vm.swappiness=10

puis

cat /proc/sys/vm/swappiness

et pour finir

sudo sed -i "s/vm.swappiness =( ?\d*)/vm.swappiness=10/g" /etc/sysctl.conf

Tape ctl-x c’est écrit,

Oui j’ai fais ça pour sortir
Maintenant je tape les commandes de @naboleo

Je ne comprends pas qu’est ce que je ne montre pas…
Bon j’ai essayé :

Réponse : vm.swappiness = 10

Reponse : 10

Reponse : rien (j’ai fais deux fois)

Normal ça n’ecrit rien (sauf dans le fichier)

cat /etc/sysctl.conf |grep swap

ça donne 10 ?

@naboleo,

Pour mon info
C’est normal le ~ avant le prompt de Linux !

pi@jeedom:~ $ 

Oui, c’est ton home directory.
=> ton prompt, c’est TOUT ce qu’il y a avant la $ (ou le # quand tu es root)

@naboleo,

OK merci

Bonjour @Xboss06,

ça a fonctionné ce matin ?
Moi pas de Pb ce matin pour acceder à Jeedom
Par contre je galère pour ma page de santé Swappiness 60% ?

Salutations

Oui ce matin aucun soucis!
Pas la moindre erreur dans le log et Jeedom accessible normalement.
C’est curieux ce qu’il s’est passé…

Page santé nickel et swapiness à 10%, comme d’hab’ pour ma part.

Bonjour @Xboss06,

Merci pour la réponse.
Oui c’est curieux a suivre !
Bonne continuation avec ton Jeedom
Salutations

Jean-Paul

1 « J'aime »

@naboleo

Commande :
cat /etc/sysctl.conf |grep swap
Réponse :
#vm.swappiness= 10
Salutations

Ligne en commentaire, donc il faut changer ça:
sudo sed -i "s/#vm.swappiness/vm.swappiness/g" /etc/sysctl.conf
et ensuite reboot