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

Suspicious logger exception #130

Closed
GoogleCodeExporter opened this issue Mar 14, 2015 · 4 comments
Closed

Suspicious logger exception #130

GoogleCodeExporter opened this issue Mar 14, 2015 · 4 comments

Comments

@GoogleCodeExporter
Copy link
Contributor

While trying to run memcachedb, this occurs:

Traceback (most recent call last):
  File "/usr/lib/python2.6/logging/handlers.py", line 72, in emit
    self.doRollover()
  File "/usr/lib/python2.6/logging/handlers.py", line 129, in doRollover
    os.rename(self.baseFilename, dfn)
OSError: [Errno 13] Permission denied
appscale-image1 - - [09/Dec/2009 04:06:43] "POST dbtest:1 HTTP/1.1" 200 -
Traceback (most recent call last):
  File "/usr/lib/python2.6/logging/handlers.py", line 71, in emit
    if self.shouldRollover(record):
  File "/usr/lib/python2.6/logging/handlers.py", line 145, in shouldRollover
    self.stream.seek(0, 2)  #due to non-posix-compliant Windows feature
ValueError: I/O operation on closed file
Traceback (most recent call last):
  File "/usr/lib/python2.6/logging/handlers.py", line 71, in emit
    if self.shouldRollover(record):
  File "/usr/lib/python2.6/logging/handlers.py", line 145, in shouldRollover
    self.stream.seek(0, 2)  #due to non-posix-compliant Windows feature
ValueError: I/O operation on closed file
(and so on)

The line in the middle of the exception, 

appscale-image1 - - [09/Dec/2009 04:06:43] "POST dbtest:1 HTTP/1.1" 200 -

, shows that the database can still be written to, so the database and
related components have not failed. Need to investigate what causes this
problem, its effects on the system, and how to resolve it.

Original issue reported on code.google.com by shattere...@gmail.com on 9 Dec 2009 at 6:48

@GoogleCodeExporter
Copy link
Contributor Author

Believed to be this bug:

http://bugs.python.org/issue1425127

Will continue to investigate.

Original comment by shattere...@gmail.com on 10 Dec 2009 at 2:01

  • Changed state: Started

@GoogleCodeExporter
Copy link
Contributor Author

Turns out to be not the bug above. This exception occurs because memcachedb 
logs all
database accesses, which under high load quickly fills up the file system 
(causing
the logger to fail and write the exceptions above).

There appears to be no 'quiet' option for memcachedb, will continue to 
investigate.

Original comment by shattere...@gmail.com on 10 Dec 2009 at 8:41

@GoogleCodeExporter
Copy link
Contributor Author

MemcacheDB offers a flag to cleanup old log files, which solves this problem 
for now.
It won't be fully solved until the following is done:

1) Persistence (issue X), to get bigger disks in EC2/Euca via EBS.

2) Added logging to catch when the file system is full and report it to the user
appropriately (new tool or put it in describe-instances?)

Original comment by shattere...@gmail.com on 7 Jan 2010 at 7:47

  • Changed state: Accepted

@GoogleCodeExporter
Copy link
Contributor Author

Closed for now; not considered to be a true issue since it's a side effect of 
the HD
filling up.

Original comment by shattere...@gmail.com on 27 Jan 2010 at 5:34

  • Changed state: WontFix

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant