Page 1 sur 2

[RESOLU] Plantage de console

Posté : 26 avr. 2018 - 09:52
par renaud.counhaye
Bonjour,

J'ai un petit soucis, après avoir importer plusieurs fichiers ma console plante désormais quand je vais dans la section "Softwares repository"
2018-04-26 09_48_33-WAPT console.png
2018-04-26 09_48_33-WAPT console.png (5.32 Kio) Vu 5526 fois
J'ai check alors si j'avais pas un packet en double sur le serveur, mais ça me semble correcte :
2018-04-26 09_50_24-Settings.png
2018-04-26 09_50_24-Settings.png (31.89 Kio) Vu 5526 fois
et quand je veut essayer de faire un rebuild de l'index des packets via le .py sur le serveur :

Code : Tout sélectionner

rcounhaye@wapt $ /usr/bin/python /opt/wapt/wapt-scanpackages.py /var/www/wapt/
Traceback (most recent call last):
  File "/opt/wapt/wapt-scanpackages.py", line 32, in <module>
    from waptutils import __version__,setloglevel
  File "/opt/wapt/waptutils.py", line 41, in <module>
    import requests
ImportError: No module named requests

[ /var/www ]
rcounhaye@wapt $ sudo /usr/bin/python /opt/wapt/wapt-scanpackages.py /opt/websites/wapt/
Traceback (most recent call last):
  File "/opt/wapt/wapt-scanpackages.py", line 32, in <module>
    from waptutils import __version__,setloglevel
  File "/opt/wapt/waptutils.py", line 41, in <module>
    import requests
ImportError: No module named requests
Bref, il fallait que ça tombe sur moi D:

Serveur WAPT 1.5 sur Debian 9
PC Admin Windows 10.

Re: Plantage de console

Posté : 26 avr. 2018 - 12:00
par sfonteneau
Et comme ceci ?:

Code : Tout sélectionner

wapt-scanpackages /var/www/wapt/

Re: Plantage de console

Posté : 26 avr. 2018 - 16:14
par renaud.counhaye
Hm eh bien

Code : Tout sélectionner

[ ~ ]
rcounhaye@wapt $ sudo wapt-scanpackages /var/www/wapt/
Je n'ai aucun retour, est-ce normal?

Ah et il semblerais que j'ai planté mon serveur désormais :/ je suis vraiment nul :( (502 bad gateway meme sur la console)

Re: Plantage de console

Posté : 26 avr. 2018 - 16:21
par htouvet
Pour avoir plus d'infos :

Code : Tout sélectionner

wapt-scanpackages -ldebug /var/www/wapt
Pour forcer le rescan de tous les paquets :

Code : Tout sélectionner

wapt-scanpackages -f /var/www/wapt

Le 502 bad gateway : le service waptserver est arrêté..

Code : Tout sélectionner

systemctl stop waptserver
systemctl start waptserver
systemctl status waptserver
Le status 502 peut quelquefois être "en cache négatif" dans le reverse proxy (nginx)
Pour être sûr :

Code : Tout sélectionner

systemctl restart nginx

Re: Plantage de console

Posté : 26 avr. 2018 - 17:08
par renaud.counhaye
Ah super, le -ldebug affiche bien le scan :)

Mais parcontre vous avez raison, le server est off, et il ne démarre pas :

Code : Tout sélectionner

[ ~ ]
rcounhaye@wapt $ sudo systemctl status waptserver
● waptserver.service - WAPT Server startup script
   Loaded: loaded (/usr/lib/systemd/system/waptserver.service; enabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since Thu 2018-04-26 17:07:10 CEST; 2s ago
  Process: 11218 ExecStart=/opt/wapt/bin/python /opt/wapt/waptserver/waptserver.py (code=exited, status=1/FAILURE)
 Main PID: 11218 (code=exited, status=1/FAILURE)

Apr 26 17:07:10 wapt systemd[1]: waptserver.service: Failed with result 'exit-code'.
Apr 26 17:07:10 wapt systemd[1]: waptserver.service: Service hold-off time over, scheduling restart.
Apr 26 17:07:10 wapt systemd[1]: Stopped WAPT Server startup script.
Apr 26 17:07:10 wapt systemd[1]: waptserver.service: Start request repeated too quickly.
Apr 26 17:07:10 wapt systemd[1]: Failed to start WAPT Server startup script.
Apr 26 17:07:10 wapt systemd[1]: waptserver.service: Unit entered failed state.
Apr 26 17:07:10 wapt systemd[1]: waptserver.service: Failed with result 'exit-code'.

Re: Plantage de console

Posté : 02 mai 2018 - 08:41
par renaud.counhaye
Ok.
Pour une raison que j'ignore les permissions sur le dossier /etc/ssl/private était devenue mauvaise.
Ce qui bloquais le start du service "postgresql@9.6-main.service"

Code : Tout sélectionner

● postgresql@9.6-main.service - PostgreSQL Cluster 9.6-main
   Loaded: loaded (/lib/systemd/system/postgresql@.service; disabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since Wed 2018-05-02 08:32:10 CEST; 20s ago
  Process: 8843 ExecStart=postgresql@9.6-main --skip-systemctl-redirect 9.6-main start (code=exited, status=1/FAILURE)

May 02 08:32:10 wapt systemd[1]: Starting PostgreSQL Cluster 9.6-main...
May 02 08:32:10 wapt postgres[8848]: [1-1] 2018-05-02 08:32:10.305 CEST [8848] FATAL:  could not access private key file "/etc/ssl/private/ssl-cert-snakeoil.key": Permission denied
May 02 08:32:10 wapt postgresql@9.6-main[8843]: The PostgreSQL server failed to start. Please check the log output:
May 02 08:32:10 wapt postgresql@9.6-main[8843]: 2018-05-02 08:32:10.305 CEST [8848] FATAL:  could not access private key file "/etc/ssl/private/ssl-cert-snakeoil.key": Permission denied
May 02 08:32:10 wapt postgresql@9.6-main[8843]: 2018-05-02 08:32:10.305 CEST [8848] LOG:  database system is shut down
May 02 08:32:10 wapt systemd[1]: postgresql@9.6-main.service: Control process exited, code=exited status=1
May 02 08:32:10 wapt systemd[1]: Failed to start PostgreSQL Cluster 9.6-main.
May 02 08:32:10 wapt systemd[1]: postgresql@9.6-main.service: Unit entered failed state.
May 02 08:32:10 wapt systemd[1]: postgresql@9.6-main.service: Failed with result 'exit-code'.
Et donc le serveur WAPT ne démarrait pas non plus sans son gestionnaire SQL (en supposant que c'est ça).
Il manque peut être d'un exit-code correct au serveur WAPT pour pointer du doigt ce coupable.

Re: Plantage de console

Posté : 02 mai 2018 - 08:43
par htouvet
Bonjour,
merci pour ce retour.

Re: Plantage de console

Posté : 02 mai 2018 - 09:05
par renaud.counhaye
Re-bonjour,

Malheureusement j'ai toujours ce problème :
2018-04-26 09_48_33-WAPT console.png
2018-04-26 09_48_33-WAPT console.png (5.32 Kio) Vu 5456 fois
Je vais tenter une réinstallation du software :?

Re: Plantage de console

Posté : 02 mai 2018 - 09:13
par htouvet
Il faudrait regarder dans le fichier waptconsole.ini
%LOCALAPPDATA%\waptconsole\waptconsole.ini

s'il n'y a pas un paramètre timeout avec une valeur décimale.
Si oui, supprimer la partie décimale.

Vous dites plus haut que ce problème est apparu après avoir importé des paquets...
Vous souvenez-vous quels paquets et depuis quel dépôt ?

Re: Plantage de console

Posté : 02 mai 2018 - 10:06
par renaud.counhaye
En effet, pas de décimale dans le .ini parcontre j'ai bien importer des anciens paquets de mon ancien repo privé wapt 1.3 vers ce nouveau repo 1.5 aillant lu que c'était faisable. Mais j'ai peut être sauter une étape dans la foulée...

je viens de faire un
sudo wapt-scanpackages -f -ldebug /var/www/wapt
histoire de check, je n'ai pas a prioris d'erreurs fatales :
rcounhaye@wapt $ sudo wapt-scanpackages -f -ldebug /var/www/wapt
2018-05-02 09:54:12,869 INFO Processing new /var/www/wapt/ymg-teamviewer-full_13.0.5640.0-8_all.wapt
2018-05-02 09:54:12,983 INFO Processing new /var/www/wapt/ymg-teamviewer-host-only_13.0.5640.0-17_all.wapt

2018-05-02 09:54:13,116 INFO Processing new /var/www/wapt/ymg-viscosity_1.7.8-39_all.wapt
2018-05-02 09:54:13,146 INFO Processing new /var/www/wapt/ymg-disable-ipv6_1.0-5_all.wapt
2018-05-02 09:54:13,148 DEBUG Unable to extract icon for /var/www/wapt/ymg-disable-ipv6_1.0-5_all.wapt:no icon.png found in package name /var/www/wapt/ymg-disable-ipv6_1.0-5_all.wapt
2018-05-02 09:54:13,149 INFO Processing new /var/www/wapt/ymg-wapt-schtask-auto-upgrade_6_all.wapt
2018-05-02 09:54:13,152 INFO Processing new /var/www/wapt/ymg-java8_8.171-2_all.wapt
2018-05-02 09:54:13,523 INFO Processing new /var/www/wapt/ymg-SAP74_7.4.3-24_all.wapt
2018-05-02 09:54:14,513 INFO Processing new /var/www/wapt/ymg-vpn-schrewsoft_2.2.2-3_all.wapt
2018-05-02 09:54:14,572 DEBUG Unable to extract icon for /var/www/wapt/ymg-vpn-schrewsoft_2.2.2-3_all.wapt:no icon.png found in package name /var/www/wapt/ymg-vpn-schrewsoft_2.2.2-3_all.wapt
2018-05-02 09:54:14,573 INFO Processing new /var/www/wapt/ymg-BizagiModeler-32_3.1.11.0-2_all.wapt
2018-05-02 09:54:15,389 INFO Processing new /var/www/wapt/ymg-add-YMCA-autolaunch_0.8_all.wapt
2018-05-02 09:54:15,393 INFO Processing new /var/www/wapt/ymg-ms-teams_1.1.0.2253-0.1_all.wapt
2018-05-02 09:54:15,855 INFO Processing new /var/www/wapt/ymg-check-point-vpn_98.60.276-7_all.wapt

2018-05-02 09:54:15,902 INFO Processing new /var/www/wapt/ymg-python27_2.7.14-2_all.wapt
2018-05-02 09:54:16,022 INFO Processing new /var/www/wapt/ymg-pyscripter_3.3.2-14_all.wapt
2018-05-02 09:54:16,077 INFO Processing new /var/www/wapt/ymg-FsFInventory_0.7_all.wapt
2018-05-02 09:54:16,137 DEBUG Unable to extract icon for /var/www/wapt/ymg-FsFInventory_0.7_all.wapt:no icon.png found in package name /var/www/wapt/ymg-FsFInventory_0.7_all.wapt
2018-05-02 09:54:16,137 INFO Processing new /var/www/wapt/ymg-7zip_18.1.0.0-3_all.wapt
2018-05-02 09:54:16,149 INFO Processing new /var/www/wapt/ymg-adobeair_27.0.0.124-2_all.wapt

2018-05-02 09:54:16,214 INFO Processing new /var/www/wapt/ymg-addfont_0.9_all.wapt
2018-05-02 09:54:16,227 INFO Processing new /var/www/wapt/ymg-Office2016-launcher-english_1.1_all.wapt
2018-05-02 09:54:16,346 INFO Processing new /var/www/wapt/ymg-BizagiModeler_3.1.11.0-2_all.wapt
2018-05-02 09:54:16,349 INFO Processing new /var/www/wapt/ymg-waptupgrade_1.5.1.23-7_all.wapt
2018-05-02 09:54:16,458 INFO Processing new /var/www/wapt/ymg-BizagiModeler-64_3.1.11.0-2_all.wapt
2018-05-02 09:54:17,009 INFO Processing new /var/www/wapt/ymg-FileMakerPro16-x32_16.0.1.162-5_all.wapt

2018-05-02 09:54:18,534 INFO Processing new /var/www/wapt/ymg-waptdev.wapt
2018-05-02 09:54:18,562 INFO Processing new /var/www/wapt/ymg-windowsupdate-no-ads_13_all.wapt
2018-05-02 09:54:18,565 INFO Processing new /var/www/wapt/ymg-dotnetfx4.6_4.6.2-7_all.wapt

2018-05-02 09:54:18,738 DEBUG Unable to extract icon for /var/www/wapt/ymg-dotnetfx4.6_4.6.2-7_all.wapt:no icon.png found in package name /var/www/wapt/ymg-dotnetfx4.6_4.6.2-7_all.wapt
2018-05-02 09:54:18,738 INFO Processing new /var/www/wapt/ymg-ff-ggl-intranet_1.0-13_all.wapt
2018-05-02 09:54:18,743 INFO Processing new /var/www/wapt/ymg-add-YMCA-desktop_0.5_all.wapt
2018-05-02 09:54:18,746 INFO Processing new /var/www/wapt/ymg-telephony-fuze_1.11_all.wapt

2018-05-02 09:54:18,967 INFO Processing new /var/www/wapt/ymg-dotnetfx4.7_4.7.2046-9_all.wapt
2018-05-02 09:54:19,141 INFO Processing new /var/www/wapt/ymg-Office2016-launcher-deutch_1.1_all.wapt
2018-05-02 09:54:19,262 INFO Processing new /var/www/wapt/ymg-FileMakerPro16-x64_16.0.1.162-5_all.wapt
2018-05-02 09:54:20,886 INFO Processing new /var/www/wapt/ymg-OutlookSignatureFix_1.0-2_all.wapt

2018-05-02 09:54:20,888 DEBUG Unable to extract icon for /var/www/wapt/ymg-OutlookSignatureFix_1.0-2_all.wapt:no icon.png found in package name /var/www/wapt/ymg-OutlookSignatureFix_1.0-2_all.wapt
2018-05-02 09:54:20,889 INFO Processing new /var/www/wapt/ymg-chrome_66.0.3359.117-3_all_all.wapt
2018-05-02 09:54:21,340 DEBUG Unable to extract icon for /var/www/wapt/ymg-chrome_66.0.3359.117-3_all_all.wapt:no icon.png found in package name /var/www/wapt/ymg-chrome_66.0.3359.117-3_all_all.wapt
2018-05-02 09:54:21,340 INFO Processing new /var/www/wapt/ymg-Office2016-launcher-french_1.1_all.wapt
2018-05-02 09:54:21,437 INFO Processing new /var/www/wapt/ymg-SAP-BO_1.21_all.wapt
2018-05-02 09:54:21,729 INFO Processing new /var/www/wapt/ymg-SAP-config-files-wapt_1.0-10_all.wapt

2018-05-02 09:54:21,732 DEBUG Unable to extract icon for /var/www/wapt/ymg-SAP-config-files-wapt_1.0-10_all.wapt:no icon.png found in package name /var/www/wapt/ymg-SAP-config-files-wapt_1.0-10_all.wapt
2018-05-02 09:54:21,732 INFO Processing new /var/www/wapt/ymg-vlc_2.2.6-5_all.wapt
2018-05-02 09:54:21,917 INFO Processing new /var/www/wapt/ymg-ymagis-signature-updater_1.6_all.wapt
2018-05-02 09:54:21,920 INFO Processing new /var/www/wapt/ymg-proscope16_16.0.3.0-6_all.wapt
2018-05-02 09:54:22,230 INFO Processing new /var/www/wapt/ymg-avid-codecs_2.7.3.39175-1_all.wapt

2018-05-02 09:54:22,282 DEBUG Unable to extract icon for /var/www/wapt/ymg-avid-codecs_2.7.3.39175-1_all.wapt:no icon.png found in package name /var/www/wapt/ymg-avid-codecs_2.7.3.39175-1_all.wapt
2018-05-02 09:54:22,283 INFO Check / update CRL for embedded certificates
2018-05-02 09:54:22,283 INFO Writing new /var/www/wapt/Packages
2018-05-02 09:54:22,286 INFO Finished
2018-05-02 09:54:22,286 INFO Set Packages file ownership to wapt
Je met en gras ceux que j'ai importer.