{"action":"created","issue":{"url":"https://api.github.com/repos/galaxyproject/galaxy/issues/1002","labels_url":"https://api.github.com/repos/galaxyproject/galaxy/issues/1002/labels{/name}","comments_url":"https://api.github.com/repos/galaxyproject/galaxy/issues/1002/comments","events_url":"https://api.github.com/repos/galaxyproject/galaxy/issues/1002/events","html_url":"https://github.com/galaxyproject/galaxy/issues/1002","id":114075706,"number":1002,"title":"Can't delete user that was created with SSO","user":{"login":"MatthewRalston","id":4308024,"avatar_url":"https://avatars.githubusercontent.com/u/4308024?v=3","gravatar_id":"","url":"https://api.github.com/users/MatthewRalston","html_url":"https://github.com/MatthewRalston","followers_url":"https://api.github.com/users/MatthewRalston/followers","following_url":"https://api.github.com/users/MatthewRalston/following{/other_user}","gists_url":"https://api.github.com/users/MatthewRalston/gists{/gist_id}","starred_url":"https://api.github.com/users/MatthewRalston/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MatthewRalston/subscriptions","organizations_url":"https://api.github.com/users/MatthewRalston/orgs","repos_url":"https://api.github.com/users/MatthewRalston/repos","events_url":"https://api.github.com/users/MatthewRalston/events{/privacy}","received_events_url":"https://api.github.com/users/MatthewRalston/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-10-29T15:31:25Z","updated_at":"2015-10-29T16:02:48Z","closed_at":null,"body":"I recently enabled \"delete user\" for admin users and attempted to delete and purge a user created with LDAP (since we cannot reset their password [#1001](https://github.com/galaxyproject/galaxy/issues/1001) and LDAP needed to be temporarily deactivated [#972](https://github.com/galaxyproject/galaxy/issues/972) for some automation with bioblend). I've run a manual cleanup with the \"cleanup_datasets\" scripts (which to my knowledge only targets datasets) and restarted the server. When I look into the admin view for this user, their status reads \"external: yes, status: purged, activated: no\" and I cannot create this user or delete them. Additional requests for deletion or purge produce no errors (beyond the standard broken pipe/socket errors that never go away). A green icon displays that the deletions/purges are successful and yet the user persists and cannot be deleted or created. \r\n\r\nUpon deletion:\r\n```\r\nException happened during processing of request from ('1.3.3.7', 34824)\r\nTraceback (most recent call last):\r\n  File \"/apps/sys/galaxy/galaxy_env/lib/python2.7/site-packages/paste/httpserver.py\", line 1068, in process_request_in_thread\r\n----------------------------------------\r\nException happened during processing of request from    self.finish_request(request, client_address)\r\n ('1.3.3.7', 34823)  File \"/apps/sys/python/2.7.8/lib/python2.7/SocketServer.py\", line 334, in finish_request\r\n    self.RequestHandlerClass(request, client_address, self)\r\n  File \"/apps/sys/python/2.7.8/lib/python2.7/SocketServer.py\", line 653, in __init__\r\n    self.finish()\r\n\r\n Traceback (most recent call last):\r\n  File \"/apps/sys/galaxy/galaxy_env/lib/python2.7/site-packages/paste/httpserver.py\", line 1068, in process_request_in_thread\r\n----------------------------------------  File \"/apps/sys/python/2.7.8/lib/python2.7/SocketServer.py\", line 712, in finish\r\n\r\nException happened during processing of request from ('1.3.3.7', 34827)    self.wfile.close()\r\n  File \"/apps/sys/python/2.7.8/lib/python2.7/socket.py\", line 279, in close\r\n    self.flush()\r\n    self.finish_request(request, client_address)\r\n  File \"/apps/sys/python/2.7.8/lib/python2.7/SocketServer.py\", line 334, in finish_request\r\n\r\n  File \"/apps/sys/python/2.7.8/lib/python2.7/socket.py\", line 303, in flush\r\n    self._sock.sendall(view[write_offset:write_offset+buffer_size])\r\n    self.RequestHandlerClass(request, client_address, self)\r\nTraceback (most recent call last):\r\n  File \"/apps/sys/galaxy/galaxy_env/lib/python2.7/site-packages/paste/httpserver.py\", line 1068, in process_request_in_thread\r\n  File \"/apps/sys/python/2.7.8/lib/python2.7/SocketServer.py\", line 653, in __init__\r\n    self.finish_request(request, client_address)\r\nerror: [Errno 32] Broken pipe\r\n    self.finish()\r\n  File \"/apps/sys/python/2.7.8/lib/python2.7/SocketServer.py\", line 334, in finish_request\r\n----------------------------------------\r\n  File \"/apps/sys/python/2.7.8/lib/python2.7/SocketServer.py\", line 712, in finish\r\n    self.RequestHandlerClass(request, client_address, self)\r\n  File \"/apps/sys/python/2.7.8/lib/python2.7/SocketServer.py\", line 653, in __init__\r\n    self.wfile.close()\r\n    self.finish()\r\n  File \"/apps/sys/python/2.7.8/lib/python2.7/socket.py\", line 279, in close\r\n  File \"/apps/sys/python/2.7.8/lib/python2.7/SocketServer.py\", line 712, in finish\r\n    self.wfile.close()\r\n  File \"/apps/sys/python/2.7.8/lib/python2.7/socket.py\", line 279, in close\r\n    self.flush()\r\n  File \"/apps/sys/python/2.7.8/lib/python2.7/socket.py\", line 303, in flush\r\n    self._sock.sendall(view[write_offset:write_offset+buffer_size])\r\nerror: [Errno 32] Broken pipe\r\n    self.flush()\r\n----------------------------------------  File \"/apps/sys/python/2.7.8/lib/python2.7/socket.py\", line 303, in flush\r\n    self._sock.sendall(view[write_offset:write_offset+buffer_size])\r\n\r\nerror: [Errno 32] Broken pipe\r\n ----------------------------------------\r\n```\r\n\r\nUpon purge:\r\n```\r\n1.4.4.7 - - [29/Oct/2015:11:24:21 -0400] \"GET /admin/users?status=done&message=Purged+1+users%3A+purged.user__at__domain.com+ HTTP/1.1\" 200 - \"http://galaxy.domain.com/admin/users?status=done&message=Deleted+1+users%3A++purged.user__at__domain.com+\" \"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.81 Safari/537.36\"\r\n------------------------------------------------------------------------------------------------------------------------\r\n\r\n\r\nException happened during processing of request fromException happened during processing of request from  Exception happened during processing of request from('1.3.3.7', 34896)('1.3.3.7', 34895) ('1.3.3.7', 34897)\r\n\r\nTraceback (most recent call last):\r\nTraceback (most recent call last):\r\n  File \"/apps/sys/galaxy/galaxy_env/lib/python2.7/site-packages/paste/httpserver.py\", line 1068, in process_request_in_thread\r\n    self.finish_request(request, client_address)\r\n  File \"/apps/sys/python/2.7.8/lib/python2.7/SocketServer.py\", line 334, in finish_request\r\n  File \"/apps/sys/galaxy/galaxy_env/lib/python2.7/site-packages/paste/httpserver.py\", line 1068, in process_request_in_thread\r\n    self.RequestHandlerClass(request, client_address, self)\r\n  File \"/apps/sys/python/2.7.8/lib/python2.7/SocketServer.py\", line 653, in __init__\r\n\r\n    self.finish_request(request, client_address)\r\n  File \"/apps/sys/python/2.7.8/lib/python2.7/SocketServer.py\", line 334, in finish_request\r\n    self.finish()\r\nTraceback (most recent call last):\r\n    self.RequestHandlerClass(request, client_address, self)\r\n  File \"/apps/sys/galaxy/galaxy_env/lib/python2.7/site-packages/paste/httpserver.py\", line 1068, in process_request_in_thread\r\n  File \"/apps/sys/python/2.7.8/lib/python2.7/SocketServer.py\", line 712, in finish\r\n    self.wfile.close()\r\n  File \"/apps/sys/python/2.7.8/lib/python2.7/SocketServer.py\", line 653, in __init__\r\n    self.finish()\r\n  File \"/apps/sys/python/2.7.8/lib/python2.7/socket.py\", line 279, in close\r\n    self.finish_request(request, client_address)\r\n  File \"/apps/sys/python/2.7.8/lib/python2.7/SocketServer.py\", line 334, in finish_request\r\n  File \"/apps/sys/python/2.7.8/lib/python2.7/SocketServer.py\", line 712, in finish\r\n    self.RequestHandlerClass(request, client_address, self)\r\n    self.wfile.close()\r\n  File \"/apps/sys/python/2.7.8/lib/python2.7/socket.py\", line 279, in close\r\n  File \"/apps/sys/python/2.7.8/lib/python2.7/SocketServer.py\", line 653, in __init__\r\n    self.flush()\r\n    self.flush()\r\n  File \"/apps/sys/python/2.7.8/lib/python2.7/socket.py\", line 303, in flush\r\n  File \"/apps/sys/python/2.7.8/lib/python2.7/socket.py\", line 303, in flush\r\n    self.finish()\r\n  File \"/apps/sys/python/2.7.8/lib/python2.7/SocketServer.py\", line 712, in finish\r\n    self.wfile.close()\r\n    self._sock.sendall(view[write_offset:write_offset+buffer_size])\r\n    self._sock.sendall(view[write_offset:write_offset+buffer_size])\r\nerror: [Errno 32] Broken pipe\r\n----------------------------------------\r\nerror: [Errno 32] Broken pipe\r\n  File \"/apps/sys/python/2.7.8/lib/python2.7/socket.py\", line 279, in close\r\n    self.flush()\r\n----------------------------------------  File \"/apps/sys/python/2.7.8/lib/python2.7/socket.py\", line 303, in flush\r\n    self._sock.sendall(view[write_offset:write_offset+buffer_size])\r\n\r\nerror: [Errno 32] Broken pipe\r\n----------------------------------------\r\n\r\n```\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/galaxyproject/galaxy/issues/comments/152226438","html_url":"https://github.com/galaxyproject/galaxy/issues/1002#issuecomment-152226438","issue_url":"https://api.github.com/repos/galaxyproject/galaxy/issues/1002","id":152226438,"user":{"login":"MatthewRalston","id":4308024,"avatar_url":"https://avatars.githubusercontent.com/u/4308024?v=3","gravatar_id":"","url":"https://api.github.com/users/MatthewRalston","html_url":"https://github.com/MatthewRalston","followers_url":"https://api.github.com/users/MatthewRalston/followers","following_url":"https://api.github.com/users/MatthewRalston/following{/other_user}","gists_url":"https://api.github.com/users/MatthewRalston/gists{/gist_id}","starred_url":"https://api.github.com/users/MatthewRalston/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MatthewRalston/subscriptions","organizations_url":"https://api.github.com/users/MatthewRalston/orgs","repos_url":"https://api.github.com/users/MatthewRalston/repos","events_url":"https://api.github.com/users/MatthewRalston/events{/privacy}","received_events_url":"https://api.github.com/users/MatthewRalston/received_events","type":"User","site_admin":false},"created_at":"2015-10-29T16:02:48Z","updated_at":"2015-10-29T16:02:48Z","body":"In my galaxy.ini configuration, \"auth_config_file\" is disabled/commented but \"use_remote_user\" was true at the time that the user was created."}}