Carlos Aguni

Highly motivated self-taught IT analyst. Always learning and ready to explore new skills. An eternal apprentice.


All features test

01 May 2020 »

<!DOCTYPE HTML PUBLIC “-//W3C//DTD HTML 4.01 Transitional//EN” “http://www.w3.org/TR/html4/loose.dtd”>

OSError: [Errno 116] Stale file handle: './wkdir/data/a057f0c6e403495abc6704341e782beb.md' // Werkzeug Debugger

OSError

OSError: [Errno 116] Stale file handle: './wkdir/data/a057f0c6e403495abc6704341e782beb.md'

Traceback (most recent call last)

  • File "/usr/local/lib/python3.7/site-packages/flask/app.py", line 2091, in __call__

        def __call__(self, environ: dict, start_response: t.Callable) -> t.Any:
            """The WSGI server calls the Flask application object as the
            WSGI application. This calls :meth:`wsgi_app`, which can be
            wrapped to apply middleware.
            """
            return self.wsgi_app(environ, start_response)
  • File "/usr/local/lib/python3.7/site-packages/flask/app.py", line 2076, in wsgi_app

                try:
                    ctx.push()
                    response = self.full_dispatch_request()
                except Exception as e:
                    error = e
                    response = self.handle_exception(e)
                except:  # noqa: B001
                    error = sys.exc_info()[1]
                    raise
                return response(environ, start_response)
            finally:
  • File "/usr/local/lib/python3.7/site-packages/flask_cors/extension.py", line 194, in wrapped_function

            # Wrap exception handlers with cross_origin
            # These error handlers will still respect the behavior of the route
            if options.get('intercept_exceptions', True):
                def _after_request_decorator(f):
                    def wrapped_function(*args, **kwargs):
                        return cors_after_request(app.make_response(f(*args, **kwargs)))
                    return wrapped_function
     
                if hasattr(app, 'handle_exception'):
                    app.handle_exception = _after_request_decorator(
                        app.handle_exception)
  • File "/usr/local/lib/python3.7/site-packages/flask/app.py", line 2073, in wsgi_app

            ctx = self.request_context(environ)
            error: t.Optional[BaseException] = None
            try:
                try:
                    ctx.push()
                    response = self.full_dispatch_request()
                except Exception as e:
                    error = e
                    response = self.handle_exception(e)
                except:  # noqa: B001
                    error = sys.exc_info()[1]
  • File "/usr/local/lib/python3.7/site-packages/flask/app.py", line 1519, in full_dispatch_request

                request_started.send(self)
                rv = self.preprocess_request()
                if rv is None:
                    rv = self.dispatch_request()
            except Exception as e:
                rv = self.handle_user_exception(e)
            return self.finalize_request(rv)
     
        def finalize_request(
            self,
            rv: t.Union[ft.ResponseReturnValue, HTTPException],
  • File "/usr/local/lib/python3.7/site-packages/flask_cors/extension.py", line 194, in wrapped_function

            # Wrap exception handlers with cross_origin
            # These error handlers will still respect the behavior of the route
            if options.get('intercept_exceptions', True):
                def _after_request_decorator(f):
                    def wrapped_function(*args, **kwargs):
                        return cors_after_request(app.make_response(f(*args, **kwargs)))
                    return wrapped_function
     
                if hasattr(app, 'handle_exception'):
                    app.handle_exception = _after_request_decorator(
                        app.handle_exception)
  • File "/usr/local/lib/python3.7/site-packages/flask/app.py", line 1517, in full_dispatch_request

            self.try_trigger_before_first_request_functions()
            try:
                request_started.send(self)
                rv = self.preprocess_request()
                if rv is None:
                    rv = self.dispatch_request()
            except Exception as e:
                rv = self.handle_user_exception(e)
            return self.finalize_request(rv)
     
        def finalize_request(
  • File "/usr/local/lib/python3.7/site-packages/flask/app.py", line 1503, in dispatch_request

                getattr(rule, "provide_automatic_options", False)
                and req.method == "OPTIONS"
            ):
                return self.make_default_options_response()
            # otherwise dispatch to the handler for that endpoint
            return self.ensure_sync(self.view_functions[rule.endpoint])(**req.view_args)
     
        def full_dispatch_request(self) -> Response:
            """Dispatches the request and on top of that performs request
            pre and postprocessing as well as HTTP exception catching and
            error handling.
  • File "/backend/app.py", line 114, in r_download

     
  • File "/usr/local/lib/python3.7/site-packages/magic/__init__.py", line 112, in from_file

                except MagicException as e:
                    return self._handle509Bug(e)
     
        def from_file(self, filename):
            # raise FileNotFoundException or IOError if the file does not exist
            with _real_open(filename):
                pass
     
            with self.lock:
                try:
                    return maybe_decode(magic_file(self.cookie, filename))
    </ul>
    OSError: [Errno 116] Stale file handle: './wkdir/data/a057f0c6e403495abc6704341e782beb.md'
    </div>

    This is the Copy/Paste friendly version of the traceback.

    The debugger caught an exception in your WSGI application. You can now look at the traceback which led to the error. If you enable JavaScript you can also use additional features such as code execution (if the evalex feature is enabled), automatic pasting of the exceptions and much more.
    </div>

    Console Locked

    The console is locked and needs to be unlocked by entering the PIN. You can find the PIN printed out on the standard output of your shell that runs the server.

    PIN: </form> </div> </div> </body> </html>