{"action":"closed","issue":{"url":"https://api.github.com/repos/jupyterlab/jupyterlab/issues/4057","repository_url":"https://api.github.com/repos/jupyterlab/jupyterlab","labels_url":"https://api.github.com/repos/jupyterlab/jupyterlab/issues/4057/labels{/name}","comments_url":"https://api.github.com/repos/jupyterlab/jupyterlab/issues/4057/comments","events_url":"https://api.github.com/repos/jupyterlab/jupyterlab/issues/4057/events","html_url":"https://github.com/jupyterlab/jupyterlab/issues/4057","id":300823051,"number":4057,"title":"Error 500 on \"delete file\" from JL GUI - exception from send2trash","user":{"login":"mj-harvey","id":7896589,"avatar_url":"https://avatars3.githubusercontent.com/u/7896589?v=4","gravatar_id":"","url":"https://api.github.com/users/mj-harvey","html_url":"https://github.com/mj-harvey","followers_url":"https://api.github.com/users/mj-harvey/followers","following_url":"https://api.github.com/users/mj-harvey/following{/other_user}","gists_url":"https://api.github.com/users/mj-harvey/gists{/gist_id}","starred_url":"https://api.github.com/users/mj-harvey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mj-harvey/subscriptions","organizations_url":"https://api.github.com/users/mj-harvey/orgs","repos_url":"https://api.github.com/users/mj-harvey/repos","events_url":"https://api.github.com/users/mj-harvey/events{/privacy}","received_events_url":"https://api.github.com/users/mj-harvey/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-02-27T22:47:42Z","updated_at":"2018-02-27T22:57:54Z","closed_at":"2018-02-27T22:57:54Z","author_association":"NONE","body":"Hi,\r\n\r\nAttempting to delete a file from the JupyterLab GUI gives a 500 server error, and the exception below.\r\nSeems a thing called \"send2trash\" is trying to make a .Trash directory in the root of an NFS mount. Can this be disabled, and the file simply deleted? There's no need for Freedesktop integration on this system.\r\n\r\n```\r\n   Traceback (most recent call last):\r\n      File \"/apps/jupyterhub/2018-02-19/anaconda/lib/python3.6/site-packages/tornado/web.py\", line 1512, in _execute\r\n        result = yield result\r\n      File \"/apps/jupyterhub/2018-02-19/anaconda/lib/python3.6/site-packages/tornado/gen.py\", line 1055, in run\r\n        value = future.result()\r\n      File \"/apps/jupyterhub/2018-02-19/anaconda/lib/python3.6/site-packages/tornado/concurrent.py\", line 238, in result\r\n        raise_exc_info(self._exc_info)\r\n      File \"<string>\", line 4, in raise_exc_info\r\n      File \"/apps/jupyterhub/2018-02-19/anaconda/lib/python3.6/site-packages/tornado/gen.py\", line 307, in wrapper\r\n        yielded = next(result)\r\n      File \"/apps/jupyterhub/2018-02-19/anaconda/lib/python3.6/site-packages/notebook/services/contents/handlers.py\", line 235, in delete\r\n        yield gen.maybe_future(cm.delete(path))\r\n      File \"/apps/jupyterhub/2018-02-19/anaconda/lib/python3.6/site-packages/notebook/services/contents/manager.py\", line 278, in delete\r\n        self.delete_file(path)\r\n      File \"/apps/jupyterhub/2018-02-19/anaconda/lib/python3.6/site-packages/notebook/services/contents/filemanager.py\", line 499, in delete_file\r\n        send2trash(os_path)\r\n      File \"/apps/jupyterhub/2018-02-19/anaconda/lib/python3.6/site-packages/send2trash/plat_other.py\", line 185, in send2trash\r\n        dest_trash = find_ext_volume_trash(topdir)\r\n      File \"/apps/jupyterhub/2018-02-19/anaconda/lib/python3.6/site-packages/send2trash/plat_other.py\", line 145, in find_ext_volume_trash\r\n        trash_dir = find_ext_volume_fallback_trash(volume_root)\r\n      File \"/apps/jupyterhub/2018-02-19/anaconda/lib/python3.6/site-packages/send2trash/plat_other.py\", line 139, in find_ext_volume_fallback_trash\r\n        check_create(trash_dir)\r\n      File \"/apps/jupyterhub/2018-02-19/anaconda/lib/python3.6/site-packages/send2trash/plat_other.py\", line 84, in check_create\r\n        os.makedirs(dir, 0o700)\r\n      File \"/apps/jupyterhub/2018-02-19/anaconda/lib/python3.6/os.py\", line 220, in makedirs\r\n        mkdir(name, mode)\r\n    PermissionError: [Errno 13] Permission denied: b'/export131/.Trash-97933'\r\n[W 2018-02-27 22:40:57.312 SingleUserNotebookApp handlers:525] Unhandled error\r\n```\r\n\r\nlooks similar to  #3793 \r\n"}}
{"actor":{"display_login":"mj-harvey"}}