Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Thread failure "too many open files" #1

Closed
mzelinka opened this issue May 24, 2017 · 19 comments
Closed

Thread failure "too many open files" #1

mzelinka opened this issue May 24, 2017 · 19 comments

Comments

@mzelinka
Copy link

Exception in thread Thread-10423:
Traceback (most recent call last):
  File "/usr/local/anaconda2/envs/2.10/lib/python2.7/threading.py", line 801, in __bootstrap_inner
    self.run()
  File "/usr/local/anaconda2/envs/2.10/lib/python2.7/threading.py", line 754, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/usr/local/anaconda2/envs/2.10/lib/python2.7/site-packages/cdat_info/cdat_info.py", line 277, in submitPing
    clean_cache()
  File "/usr/local/anaconda2/envs/2.10/lib/python2.7/site-packages/cdat_info/cdat_info.py", line 272, in clean_cache
    with bz2.BZ2File(cache_file,"w") as f:
IOError: [Errno 24] Too many open files: '/work/zelinka1/.uvcdat/.cdat_cache'
@doutriaux1
Copy link
Contributor

ouch... I'll take a look right away. What were you doing?

@mzelinka
Copy link
Author

Mutli-linear regression, but using numpy. It is not clear exactly where in the code the error is being generated.

@doutriaux1
Copy link
Contributor

do you mind sending me the python code? By email if you don't feel comfortable posting it here.

@mzelinka
Copy link
Author

I don't get the error when I switch back to cdat version 2.8

@doutriaux1
Copy link
Contributor

yes this bz2 cache thing as been introduced in 2.10

@mzelinka
Copy link
Author

mzelinka commented Oct 4, 2017

Just curious if there are any updates on this? It is preventing me from using the latest version!

@doutriaux1
Copy link
Contributor

I'll take a look either today or tomorrow.

@doutriaux1 doutriaux1 reopened this Oct 4, 2017
dnadeau4 pushed a commit that referenced this issue Feb 13, 2019
@durack1
Copy link
Member

durack1 commented Dec 3, 2019

@mzelinka @doutriaux1 @dnadeau4 @pochedls just wondering what happened with this back in Feb?

@pochedls
Copy link

pochedls commented Dec 3, 2019

I have some code in cdat82 that is producing this error (on f = cdms2.open). I believe I am closing all the file handles I open (after reading in the data).

@durack1
Copy link
Member

durack1 commented Dec 3, 2019

@pochedls the cdat_info reference means that some weird logging thing with CDAT is likely causing your issue, if you make sure to set logging to off then this might fix you

@durack1
Copy link
Member

durack1 commented Dec 3, 2019

@muryanto1 @downiec pinging you both as this is a nasty little bug that would benefit from a fix

@pochedls
Copy link

pochedls commented Dec 3, 2019

Does UVCDAT_ANONYMOUS_LOG='no' in my bash profile still turn off logging?

@durack1
Copy link
Member

durack1 commented Dec 3, 2019

@pochedls theoretically yes

@doutriaux1
Copy link
Contributor

@muryanto1 @downiec Dean really wanted the logging for statisictics purposes. But the server is pretty much broken (and might down Chris Mauzey would know) so it's probably safe to remove this. Double check with Ghaleb though. At least turn it off by default for now.

@downiec
Copy link
Contributor

downiec commented Dec 3, 2019

@doutriaux1 Yes, we discussed this last week actually and Ghaleb agreed we should go ahead and remove the logging at this time. I'm looking into removing it

@durack1
Copy link
Member

durack1 commented Dec 3, 2019

@downiec to be honest I have hit my head against this many times, so removing it altogether is going to prevent a bunch of weird behaviors that slow down or make code bomb - two thumbs up for trim down

@github-actions
Copy link

Marking issue as stale, since there has been no activity in 30 days.

Unless the issue is updated or the 'stale' tag is removed, this issue will be closed in 7 days.

@github-actions github-actions bot added the stale label Aug 27, 2020
@durack1
Copy link
Member

durack1 commented Aug 27, 2020

I believe this was resolved in the 8.2.1 release by #2 - so a candidate for closure

@downiec

@github-actions github-actions bot removed the stale label Aug 27, 2020
@jasonb5
Copy link
Collaborator

jasonb5 commented Aug 28, 2020

@durack1 That's correct anonymous logging was removed, seems like the culprit. Closing as this should not be fixed.

@jasonb5 jasonb5 closed this as completed Aug 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants