2017-08-03 4 views
0

Error Log:jenkins fichier de téléchargement à Artifactory a échoué, je suis 413 erreur

For pattern: EMB5216_DO/DEVELOPER/SCTF/OUT/* 23 artifacts were found. 
17:32:52 Deploying artifact:http://192.168.5.2:9081/artifactory/LTEV5/SCTF/232/sctf_usdpaa_eth.so 
17:32:52 Deploying artifact:http://192.168.5.2:9081/artifactory/LTEV5/SCTF/232/framework.so 
17:32:52 Deploying artifact:http://192.168.5.2:9081/artifactory/LTEV5/SCTF/232/changefiles/HLPR_MP_changefiles.txt 
17:32:53 Deploying artifact:http://192.168.5.2:9081/artifactory/LTEV5/SCTF/232/sctf_om.so 
17:32:53 Deploying artifact: http://192.168.5.2:9081/artifactory/LTEV5/SCTF/232/sctf_dd_major.so 

Response received: <html> <head><title>413 Request Entity Too Large</title></head> 17:32:53 <body bgcolor="white"> <center><h1>413 Request Entity Too Large</h1></center> <hr><center>nginx/1.11.8</center> </body> </html> 

17:32:53 Failed while reading the response from: PUT http://192.168.5.2:9081/artifactory/LTEV5/SCTF/232/sctf_dd_major.so;vcs.revision=3f031a59068b91dfcc6647d44584f07a0c734f93;build.timestamp=1501665987574;build.name=LTEV5_SCTF;build.number=232 HTTP/1.1 
17:32:53 ERROR: remote file operation failed: /opt/workspace/LTEV5_SCTF at [email protected]:Channel to /192.168.5.101: java.io.IOException: Failed to deploy file. Status code: 413 

il n'y a pas de serveur nginx dans le système ci, ne peut pas modifier nginx.conf pour résoudre cette question.

version jenkins: 2.46.2
Artifactory version plugin: 2.12.2
version Artifactory-oss: 4.14

merci beaucoup

+1

La réponse est clairement retournée par NginX (nginx/1.11.8). Vous avez probablement un NginX devant Artifactory qui sert de proxy HTTP. Vous devriez configurer NginX comme recommandé dans la réponse par @arifCee –

Répondre

3

Pourriez-vous vérifier la taille votre plus grand artefact est?

Votre serveur d'application nginx n'accepte pas les fichiers dépassant une certaine taille de fichier.

Regardez vos configurations nginx. Cet article peut vous aider: https://www.cyberciti.biz/faq/linux-unix-bsd-nginx-413-request-entity-too-large/.

+0

config par défaut (10240MB) – Ling

+0

il n'y a pas de serveur nginx dans mon système ci, alors? – Ling

+0

dans jenkins "réglage du système" -> "plugins gérer" -> "avance", effacer les paramètres de proxy, le problème disparu ~~ – Ling