Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentes Révision précédente
Prochaine révision
Révision précédente
infrastructure:virtualisation:proxmox:enlever-message-no-valid-subscription [10/10/2020 11:48] – ↷ Page déplacée de documentation:virtualisation:proxmox:enlever-message-no-valid-subscription à infrastructure:virtualisation:proxmox:enlever-message-no-valid-subscription Stéphane Pailletinfrastructure:virtualisation:proxmox:enlever-message-no-valid-subscription [31/10/2020 18:58] (Version actuelle) Stéphane Paillet
Ligne 1: Ligne 1:
 ====== Enlever message "no valid subscription" ====== ====== Enlever message "no valid subscription" ======
-{{tag>virtualisation Proxmox}}+{{tag>virtualisation Proxmox "valid subscription message"}}
  
-Ouvrir le fichier pvemanagerlib.js : +===== Méthode rapide ===== 
-<code>nano /usr/share/pve-manager/ext6/pvemanagerlib.js</code>+Cette méthode s'applique à Proxmox 6.2.x 
 + 
 +Pour faire l'opération en une seule commande 
 +<code> 
 +# sed -i.backup -z "s/res === null || res === undefined || \!res || res\n\t\t\t.data.status \!== 'Active'/false/g" /usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js && systemctl restart pveproxy.service 
 +</code> 
 + 
 +===== Méthode rapide ===== 
 +Cette méthode s'applique à Proxmox 6.2.x 
 + 
 +Faire une sauvegarde et ouvrir le fichier proxmoxlib.js : 
 +<code> 
 +# cd /usr/share/javascript/proxmox-widget-toolkit 
 +# cp proxmoxlib.js proxmoxlib.js.bak 
 +# vi proxmoxlib.js 
 +</code>
  
 Rechercher cette ligne : Rechercher cette ligne :
-<code>if (data.status !== 'Active') {</code>+<code> 
 +if (res === null || res === undefined || !res || res 
 +    .data.status !== 'Active') { 
 +</code>
  
-Et enlever "!" +Et remplacer par 
-<code>if (data.status == 'Active') {</code>+<code> 
 +if (false) { 
 +</code>
  
 Redémarrer pveproxy : Redémarrer pveproxy :
 <code> <code>
-pveproxy restart+systemctl restart pveproxy.service
 </code> </code>
  
 ===== Lien ===== ===== Lien =====
-  * [[https://memo-linux.com/proxmox-4-2-supprimer-la-banniere-no-valid-subscription/|Proxmox 4.2 supprimer la bannière "no valid subscription"]]+  * [[https://dannyda.com/2020/05/17/how-to-remove-you-do-not-have-a-valid-subscription-for-this-server-from-proxmox-virtual-environment-6-1-2-proxmox-ve-6-1-2-pve-6-1-2/|How toRemove "You do not have a valid subscription for this server…"]]
  • infrastructure/virtualisation/proxmox/enlever-message-no-valid-subscription.1602330492.txt.gz
  • Dernière modification : 10/10/2020 11:48
  • de Stéphane Paillet