Project

General

Profile

Bug #11987

Temp folders of jetty are piling up in /var/rudder/tmp/jetty

Added by Nicolas CHARLES 11 months ago. Updated 8 months ago.

Status:
Released
Priority:
N/A
Category:
System integration
Target version:
Severity:
Minor - inconvenience | misleading | easy workaround
User visibility:
Operational - other Techniques | Technique editor | Rudder settings
Effort required:
Priority:
32
Tags:

Description

I've got a debian 9 where install didn't go as planned, but nonetheless Rudder tries to work
However, Jetty keeps restarting, but tmp folder is not purged:

root@server:/var/rudder/tmp/jetty# ls -al
total 320
drwxr-xr-x 78 root root 12288 Jan 17 13:16 .
drwxr-xr-x  3 root root  4096 Jan 17 09:42 ..
drwxrwx---  3 root root  4096 Jan 17 12:35 jetty-127.0.0.1-8080-endpoint.war-_endpoint-any-1652398674793611548.dir
drwxrwx---  3 root root  4096 Jan 17 12:16 jetty-127.0.0.1-8080-endpoint.war-_endpoint-any-1778866183250476239.dir
drwxrwx---  3 root root  4096 Jan 17 12:40 jetty-127.0.0.1-8080-endpoint.war-_endpoint-any-2557747153445574362.dir
drwxrwx---  3 root root  4096 Jan 17 13:11 jetty-127.0.0.1-8080-endpoint.war-_endpoint-any-3068862526493252137.dir
drwxrwx---  3 root root  4096 Jan 17 12:50 jetty-127.0.0.1-8080-endpoint.war-_endpoint-any-3097158731682323188.dir
drwxrwx---  3 root root  4096 Jan 17 12:26 jetty-127.0.0.1-8080-endpoint.war-_endpoint-any-3102127482672246348.dir
drwxrwx---  3 root root  4096 Jan 17 12:21 jetty-127.0.0.1-8080-endpoint.war-_endpoint-any-3130327985477770207.dir
drwxrwx---  3 root root  4096 Jan 17 12:35 jetty-127.0.0.1-8080-endpoint.war-_endpoint-any-3183768153696962757.dir
drwxrwx---  3 root root  4096 Jan 17 13:00 jetty-127.0.0.1-8080-endpoint.war-_endpoint-any-3459747787700378045.dir
drwxrwx---  3 root root  4096 Jan 17 12:41 jetty-127.0.0.1-8080-endpoint.war-_endpoint-any-3526166768276140870.dir
drwxrwx---  3 root root  4096 Jan 17 12:50 jetty-127.0.0.1-8080-endpoint.war-_endpoint-any-3700353456795145437.dir
drwxrwx---  3 root root  4096 Jan 17 09:55 jetty-127.0.0.1-8080-endpoint.war-_endpoint-any-45347772095125599.dir
drwxrwx---  3 root root  4096 Jan 17 09:45 jetty-127.0.0.1-8080-endpoint.war-_endpoint-any-5542460284547103235.dir
drwxrwx---  3 root root  4096 Jan 17 12:10 jetty-127.0.0.1-8080-endpoint.war-_endpoint-any-5700302430198095038.dir
drwxrwx---  3 root root  4096 Jan 17 12:16 jetty-127.0.0.1-8080-endpoint.war-_endpoint-any-5820810793488011012.dir
drwxrwx---  3 root root  4096 Jan 17 12:55 jetty-127.0.0.1-8080-endpoint.war-_endpoint-any-5829518244394994495.dir
drwxrwx---  3 root root  4096 Jan 17 10:01 jetty-127.0.0.1-8080-endpoint.war-_endpoint-any-5844234154082482789.dir
drwxrwx---  3 root root  4096 Jan 17 13:05 jetty-127.0.0.1-8080-endpoint.war-_endpoint-any-5961951584429048392.dir
drwxrwx---  3 root root  4096 Jan 17 13:01 jetty-127.0.0.1-8080-endpoint.war-_endpoint-any-6004410152183951453.dir
drwxrwx---  3 root root  4096 Jan 17 13:01 jetty-127.0.0.1-8080-endpoint.war-_endpoint-any-6100122956837001076.dir
drwxrwx---  3 root root  4096 Jan 17 12:25 jetty-127.0.0.1-8080-endpoint.war-_endpoint-any-6767778033239221809.dir
drwxrwx---  3 root root  4096 Jan 17 10:06 jetty-127.0.0.1-8080-endpoint.war-_endpoint-any-7148123589068771208.dir
drwxrwx---  3 root root  4096 Jan 17 13:05 jetty-127.0.0.1-8080-endpoint.war-_endpoint-any-7226386665829109333.dir
drwxrwx---  3 root root  4096 Jan 17 12:31 jetty-127.0.0.1-8080-endpoint.war-_endpoint-any-7318146282571459763.dir
drwxrwx---  3 root root  4096 Jan 17 09:55 jetty-127.0.0.1-8080-endpoint.war-_endpoint-any-7602415629117390563.dir
drwxrwx---  3 root root  4096 Jan 17 12:31 jetty-127.0.0.1-8080-endpoint.war-_endpoint-any-7663135268007964041.dir
drwxrwx---  3 root root  4096 Jan 17 09:42 jetty-127.0.0.1-8080-endpoint.war-_endpoint-any-7689520201468082917.dir
drwxrwx---  3 root root  4096 Jan 17 13:10 jetty-127.0.0.1-8080-endpoint.war-_endpoint-any-7808971594392451485.dir
drwxrwx---  3 root root  4096 Jan 17 12:58 jetty-127.0.0.1-8080-endpoint.war-_endpoint-any-789349385762115155.dir
drwxrwx---  3 root root  4096 Jan 17 12:56 jetty-127.0.0.1-8080-endpoint.war-_endpoint-any-8187680760683295318.dir
drwxrwx---  3 root root  4096 Jan 17 13:15 jetty-127.0.0.1-8080-endpoint.war-_endpoint-any-8288278090231432193.dir
drwxrwx---  3 root root  4096 Jan 17 12:46 jetty-127.0.0.1-8080-endpoint.war-_endpoint-any-8905527602001588015.dir
drwxrwx---  3 root root  4096 Jan 17 09:51 jetty-127.0.0.1-8080-endpoint.war-_endpoint-any-8972268984875919271.dir
drwxrwx---  3 root root  4096 Jan 17 12:58 jetty-127.0.0.1-8080-endpoint.war-_endpoint-any-9138419514594719260.dir
drwxrwx---  3 root root  4096 Jan 17 09:51 jetty-127.0.0.1-8080-rudder.war-_rudder-any-1141799582939456800.dir
drwxrwx---  3 root root  4096 Jan 17 12:35 jetty-127.0.0.1-8080-rudder.war-_rudder-any-1396437282099137921.dir
drwxrwx---  3 root root  4096 Jan 17 12:55 jetty-127.0.0.1-8080-rudder.war-_rudder-any-1400301249041341533.dir
drwxrwx---  3 root root  4096 Jan 17 13:05 jetty-127.0.0.1-8080-rudder.war-_rudder-any-1726972372328574268.dir
drwxrwx---  3 root root  4096 Jan 17 12:50 jetty-127.0.0.1-8080-rudder.war-_rudder-any-195135399437076837.dir
drwxrwx---  3 root root  4096 Jan 17 09:55 jetty-127.0.0.1-8080-rudder.war-_rudder-any-2271407353972448793.dir
drwxrwx---  3 root root  4096 Jan 17 09:51 jetty-127.0.0.1-8080-rudder.war-_rudder-any-2485454553845189650.dir
drwxrwx---  3 root root  4096 Jan 17 12:46 jetty-127.0.0.1-8080-rudder.war-_rudder-any-2622516963946961715.dir
drwxrwx---  3 root root  4096 Jan 17 12:58 jetty-127.0.0.1-8080-rudder.war-_rudder-any-2670986815671135577.dir
drwxrwx---  3 root root  4096 Jan 17 09:55 jetty-127.0.0.1-8080-rudder.war-_rudder-any-2753547782085378042.dir
drwxrwx---  3 root root  4096 Jan 17 10:01 jetty-127.0.0.1-8080-rudder.war-_rudder-any-2973304202225811362.dir
drwxrwx---  3 root root  4096 Jan 17 12:21 jetty-127.0.0.1-8080-rudder.war-_rudder-any-3429430765042743984.dir
drwxrwx---  3 root root  4096 Jan 17 13:15 jetty-127.0.0.1-8080-rudder.war-_rudder-any-3597671763307808686.dir
drwxrwx---  3 root root  4096 Jan 17 12:56 jetty-127.0.0.1-8080-rudder.war-_rudder-any-3636053542858049601.dir
drwxrwx---  3 root root  4096 Jan 17 10:01 jetty-127.0.0.1-8080-rudder.war-_rudder-any-3641996646121529259.dir
drwxrwx---  3 root root  4096 Jan 17 13:15 jetty-127.0.0.1-8080-rudder.war-_rudder-any-4503875588953645743.dir
drwxrwx---  3 root root  4096 Jan 17 13:11 jetty-127.0.0.1-8080-rudder.war-_rudder-any-4665613779486713006.dir
drwxrwx---  3 root root  4096 Jan 17 13:05 jetty-127.0.0.1-8080-rudder.war-_rudder-any-4666233746276253096.dir
drwxrwx---  3 root root  4096 Jan 17 12:31 jetty-127.0.0.1-8080-rudder.war-_rudder-any-4768325417055496838.dir
drwxrwx---  3 root root  4096 Jan 17 13:00 jetty-127.0.0.1-8080-rudder.war-_rudder-any-4985039240417007847.dir
drwxrwx---  3 root root  4096 Jan 17 13:00 jetty-127.0.0.1-8080-rudder.war-_rudder-any-5037447276978398587.dir
drwxrwx---  3 root root  4096 Jan 17 12:58 jetty-127.0.0.1-8080-rudder.war-_rudder-any-5065989649352108269.dir
drwxrwx---  3 root root  4096 Jan 17 13:01 jetty-127.0.0.1-8080-rudder.war-_rudder-any-5739647430461651801.dir
drwxrwx---  3 root root  4096 Jan 17 12:25 jetty-127.0.0.1-8080-rudder.war-_rudder-any-6097319309878421121.dir
drwxrwx---  3 root root  4096 Jan 17 13:10 jetty-127.0.0.1-8080-rudder.war-_rudder-any-6232791764024863198.dir
drwxrwx---  3 root root  4096 Jan 17 10:06 jetty-127.0.0.1-8080-rudder.war-_rudder-any-6385040604036816686.dir
drwxrwx---  3 root root  4096 Jan 17 12:40 jetty-127.0.0.1-8080-rudder.war-_rudder-any-6655596371759468047.dir
drwxrwx---  3 root root  4096 Jan 17 12:50 jetty-127.0.0.1-8080-rudder.war-_rudder-any-6891457281668854451.dir
drwxrwx---  3 root root  4096 Jan 17 12:31 jetty-127.0.0.1-8080-rudder.war-_rudder-any-6971388850158597396.dir
drwxrwx---  3 root root  4096 Jan 17 09:42 jetty-127.0.0.1-8080-rudder.war-_rudder-any-7288846328908310381.dir
drwxrwx---  3 root root  4096 Jan 17 12:16 jetty-127.0.0.1-8080-rudder.war-_rudder-any-7451179307968781875.dir
drwxrwx---  3 root root  4096 Jan 17 12:10 jetty-127.0.0.1-8080-rudder.war-_rudder-any-7471688114925014955.dir
drwxrwx---  3 root root  4096 Jan 17 12:41 jetty-127.0.0.1-8080-rudder.war-_rudder-any-7659865732612851950.dir
drwxrwx---  3 root root  4096 Jan 17 09:46 jetty-127.0.0.1-8080-rudder.war-_rudder-any-7818079800668351454.dir
drwxrwx---  3 root root  4096 Jan 17 13:01 jetty-127.0.0.1-8080-rudder.war-_rudder-any-7920214930173847404.dir
drwxrwx---  3 root root  4096 Jan 17 12:16 jetty-127.0.0.1-8080-rudder.war-_rudder-any-8189600014272154748.dir
drwxrwx---  3 root root  4096 Jan 17 12:26 jetty-127.0.0.1-8080-rudder.war-_rudder-any-837613762917261680.dir
drwxrwx---  3 root root  4096 Jan 17 12:35 jetty-127.0.0.1-8080-rudder.war-_rudder-any-9112259611741834036.dir
root@server:/var/rudder/tmp/jetty# 

it stopped there, because of lack of free space (4.6 Go used there :( )

Associated revisions

Revision 904c87fa (diff)
Added by Nicolas CHARLES 11 months ago

Fixes #11987: Temp folders of jetty are piling up in /var/rudder/tmp/jetty

History

#1 Updated by François ARMAND 11 months ago

We should tell Jetty to always use the same tmp directory for a given war: http://www.eclipse.org/jetty/documentation/current/ref-temporary-directories.html#_setting_a_specific_temp_directory

It may cause problem with hot-redeployment when dependencies change, but we don't do that in any case.

#2 Updated by Benoît PECCATTE 11 months ago

  • Severity set to Minor - inconvenience | misleading | easy workaround
  • User visibility set to Operational - other Techniques | Technique editor | Rudder settings
  • Priority changed from 0 to 32

#3 Updated by Nicolas CHARLES 11 months ago

it still happens on centos 6

#4 Updated by Nicolas CHARLES 11 months ago

  • Subject changed from Temp folders of jetty are piling up in :var/rudder/tmp/jetty on debian9 to Temp folders of jetty are piling up in /var/rudder/tmp/jetty

setting

   <Set name="tempDirectory">/var/rudder/tmp/jetty/jetty-127.0.0.1-8080-rudder.war.dir</Set>

in /opt/rudder/share/webapps/rudder.xml
solves the issue

#5 Updated by Nicolas CHARLES 11 months ago

  • Status changed from New to In progress
  • Assignee set to Nicolas CHARLES

#6 Updated by Nicolas CHARLES 11 months ago

  • Status changed from In progress to Pending technical review
  • Assignee changed from Nicolas CHARLES to François ARMAND
  • Pull Request set to https://github.com/Normation/rudder-packages/pull/1478

#7 Updated by Vincent MEMBRÉ 11 months ago

  • Target version changed from 4.3.0~beta1 to 4.3.0~rc1

#8 Updated by Vincent MEMBRÉ 9 months ago

  • Target version changed from 4.3.0~rc1 to 4.3.0~rc2

#9 Updated by Nicolas CHARLES 9 months ago

  • Tags set to Blocking 4.3

#10 Updated by Vincent MEMBRÉ 9 months ago

  • Target version changed from 4.3.0~rc2 to 4.3.0~rc3

#11 Updated by Nicolas CHARLES 8 months ago

  • Status changed from Pending technical review to Pending release

#12 Updated by Vincent MEMBRÉ 8 months ago

  • Status changed from Pending release to Released

This bug has been fixed in Rudder 4.3.0~rc3 which was released today.

Also available in: Atom PDF