njcuk9999 / apero-drs

A PipelinE to Reduce Observations - The DRS for SPIRou (CFHT)
MIT License
12 stars 0 forks source link

Error resetting telludb with apero_reset.py (0.7.288) #771

Open larnoldgithub opened 1 month ago

larnoldgithub commented 1 month ago

I want to reset the telluric directory, but get an error, see below. I tried twice, got the error twice.

00:22:34.069-**|RESET| ==================================================
00:22:34.075-**|RESET| Calibration directory:
00:22:34.082-**|RESET| ==================================================
00:22:36.386-  |RESET| Are you sure you wish to reset the Calibration directory? If you are sure you
00:22:36.386-  |RESET|  want to reset type 'yes'
00:22:36.394-  |RESET|  (/data/spirou3/apero-data/temptest/calib)

         Reset the Calibration directory?       n

00:22:38.769-  |RESET|  Not resetting CalibDB files.

00:22:38.776-**|RESET| ==================================================
00:22:38.782-**|RESET| Telluric directory:
00:22:38.789-**|RESET| ==================================================
00:23:08.730-  |RESET| Are you sure you wish to reset the Telluric directory? If you are sure you want
00:23:08.730-  |RESET|  to reset type 'yes'
00:23:08.737-  |RESET|  (/data/spirou3/apero-data/temptest/tellu)

         Reset the Telluric directory?  yes

00:23:13.754-  |RESET|   Resetting tellruic database directory
sh: 1: rm: Argument list too long
larnoldgithub commented 1 month ago

Actually after 10min it seems apero did reset the tellu dir. I don't know where the error message above is coming from.

njcuk9999 commented 1 month ago

I think it is just a warning. The problem with the telluric directory is that ls fails because there are too many files in that directory for ls (and hence same for rm) - I'm more surprised that it worked maybe rm does something clever when the ls fails?