{"action":"opened","issue":{"url":"https://api.github.com/repos/pinax/django-mailer/issues/80","repository_url":"https://api.github.com/repos/pinax/django-mailer","labels_url":"https://api.github.com/repos/pinax/django-mailer/issues/80/labels{/name}","comments_url":"https://api.github.com/repos/pinax/django-mailer/issues/80/comments","events_url":"https://api.github.com/repos/pinax/django-mailer/issues/80/events","html_url":"https://github.com/pinax/django-mailer/issues/80","id":197860018,"number":80,"title":"send_mail(): LockFailed","user":{"login":"bastbnl","id":5901491,"avatar_url":"https://avatars.githubusercontent.com/u/5901491?v=3","gravatar_id":"","url":"https://api.github.com/users/bastbnl","html_url":"https://github.com/bastbnl","followers_url":"https://api.github.com/users/bastbnl/followers","following_url":"https://api.github.com/users/bastbnl/following{/other_user}","gists_url":"https://api.github.com/users/bastbnl/gists{/gist_id}","starred_url":"https://api.github.com/users/bastbnl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bastbnl/subscriptions","organizations_url":"https://api.github.com/users/bastbnl/orgs","repos_url":"https://api.github.com/users/bastbnl/repos","events_url":"https://api.github.com/users/bastbnl/events{/privacy}","received_events_url":"https://api.github.com/users/bastbnl/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-12-28T14:17:25Z","updated_at":"2016-12-28T14:17:25Z","closed_at":null,"body":"Hi,\r\n\r\nI offloaded the mail sending proces to a celery task and I ran into LockFailed when running it from a user that is not permitted to write to the current directory:\r\n```\r\n[2016-12-28 14:14:00,091: ERROR/PoolWorker-2] Task app.send_email[bc0a43ba-b2cc-4131-bda2-30722665ee4a] raised unexpected: LockFailed('failed to create /var/www/brownpapersession/demo/brownpapersession/xxxxx-vps-76199700.114845734606605386126845',)\r\nTraceback (most recent call last):\r\n  File \"/var/www/brownpapersession/demo/env-brownpapersession/local/lib/python2.7/site-packages/celery/app/trace.py\", line 367, in trace_task\r\n    R = retval = fun(*args, **kwargs)\r\n  File \"/var/www/brownpapersession/demo/env-brownpapersession/local/lib/python2.7/site-packages/celery/app/trace.py\", line 622, in __protected_call__\r\n    return self.run(*args, **kwargs)\r\n  File \"/var/www/brownpapersession/demo/brownpapersession/app/tasks.py\", line 526, in send_email\r\n    send_all()\r\n  File \"/var/www/brownpapersession/demo/env-brownpapersession/local/lib/python2.7/site-packages/mailer/engine.py\", line 123, in send_all\r\n    acquired, lock = acquire_lock()\r\n  File \"/var/www/brownpapersession/demo/env-brownpapersession/local/lib/python2.7/site-packages/mailer/engine.py\", line 94, in acquire_lock\r\n    lock.acquire(LOCK_WAIT_TIMEOUT)\r\n  File \"/var/www/brownpapersession/demo/env-brownpapersession/local/lib/python2.7/site-packages/lockfile/linklockfile.py\", line 21, in acquire\r\n    raise LockFailed(\"failed to create %s\" % self.unique_name)\r\nLockFailed: failed to create /var/www/brownpapersession/demo/brownpapersession/xxxxx-vps-76199700.114845734606605386126845\r\n```\r\n\r\nPR coming up"}}
{"actor":{"display_login":"bastbnl"}}