Giter Site home page Giter Site logo

Comments (7)

psychok7 avatar psychok7 commented on May 26, 2024

it looks like the issue is happending somewhere here in the send_all():

    acquired, lock = acquire_lock()
    if not acquired:
        return

for some reason it now aquiring the lock
Any ideas?

from django-mailer.

spookylukey avatar spookylukey commented on May 26, 2024

The lock file is called "send_mail.lock". https://github.com/pinax/django-mailer/blob/master/mailer/engine.py#L76, in your current directory. You will need to delete this.

from django-mailer.

psychok7 avatar psychok7 commented on May 26, 2024

@spookylukey send_mail.lock is not being created for me to delete it and i do have permissions to write to that folder

from django-mailer.

spookylukey avatar spookylukey commented on May 26, 2024

It sounds like either you are looking in the wrong directory, or you've found a bug in lockfile. https://pypi.python.org/pypi/lockfile

from django-mailer.

psychok7 avatar psychok7 commented on May 26, 2024

@spookylukey i was looking at lockfile source code and i found something interesting:

in the aquire() function in the os.link() it's giving me OSError: [Errno 1] Operation not permitted

i changed it to shutil.copy2 just for testing and it worked so for some reason os.link() its not doing what is supposed to do.

I am sure i am in the right directory because i can see the temporary unique file being generated, it just not able to os.link() and i have no clue why (permissions should be right).

I saw some other recommended locking python apps like https://pypi.python.org/pypi/zc.lockfile for example maybe i am going to give it a try

from django-mailer.

psychok7 avatar psychok7 commented on May 26, 2024

Ok i think i finally got to the bottom of this. So i am using Vagrant 1.7.4 but there appears to be a bug with the symlink creation as reported here hashicorp/vagrant#713

If i do os.link() outside my vagrant it works so i am assuming django-mailer will work too

from django-mailer.

psychok7 avatar psychok7 commented on May 26, 2024

@spookylukey i created a PR with a detailed explanation of how i solved my problem and some code to allow an alternative locking system provided by lockfile as well.

from django-mailer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.